2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for linux nfs-utils 1.0.10.
5 # Report bugs to <nfs@lists.sf.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 tagnames=${tagnames+${tagnames},}CXX
691 tagnames=${tagnames+${tagnames},}F77
693 exec 7<&0 </dev/null 6>&1
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 ac_default_prefix=/usr/local
705 ac_config_libobj_dir=.
711 SHELL=${CONFIG_SHELL-/bin/sh}
713 # Identity of this package.
714 PACKAGE_NAME='linux nfs-utils'
715 PACKAGE_TARNAME='nfs-utils'
716 PACKAGE_VERSION='1.0.10'
717 PACKAGE_STRING='linux nfs-utils 1.0.10'
718 PACKAGE_BUGREPORT='nfs@lists.sf.net'
720 ac_unique_file="tools/getiversion/getiversion.c"
721 ac_default_prefix=/usr
722 ac_unique_file="support/include/config.h.in"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
817 INSTALL_STRIP_PROGRAM
908 ac_precious_vars='build_alias
929 # Initialize some variables set by options.
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
941 program_transform_name=s,x,x,
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1017 -datadir | --datadir | --datadi | --datad)
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1029 -disable-* | --disable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1036 eval enable_$ac_feature=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055 eval enable_$ac_feature=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1219 -site=* | --site=* | --sit=*)
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package| sed 's/-/_/g'`
1252 eval with_$ac_package=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/-/_/g'`
1261 eval with_$ac_package=no ;;
1264 # Obsolete; use --with-x.
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1312 # Be sure to have absolute directory names.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-nfsv3 enable support for NFSv3 [default=yes]
1507 --enable-nfsv4 enable support for NFSv4 [default=yes]
1508 --enable-gss enable support for rpcsec_gss [default=yes]
1509 --enable-kprefix install progs as rpc.knfsd etc
1510 --enable-secure-statd Only lockd can use statd (security)
1511 --enable-rquotad enable rquotad [default=yes]
1512 --enable-mount Create mount.nfs and don't use the util-linux
1513 mount(8) functionality. [default=no]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-release=XXX set release to XXX [1]
1526 --with-statedir=/foo use state dir /foo /var/lib/nfs
1527 --with-statduser=rpcuser
1528 statd to run under [rpcuser or nobody]
1529 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1530 (optionally in PATH)
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1532 --with-pic try to use only PIC/non-PIC objects [default=use
1534 --with-tags[=TAGS] include additional configurations [automatic]
1535 --with-krb5=DIR use Kerberos v5 installation in DIR
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1547 CXXCPP C++ preprocessor
1548 F77 Fortran 77 compiler command
1549 FFLAGS Fortran 77 compiler flags
1550 PKG_CONFIG path to pkg-config utility
1552 C compiler flags for RPCSECGSS, overriding pkg-config
1554 linker flags for RPCSECGSS, overriding pkg-config
1556 C compiler flags for GSSAPI, overriding pkg-config
1557 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <nfs@lists.sf.net>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1623 linux nfs-utils configure 1.0.10
1624 generated by GNU Autoconf 2.60
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by linux nfs-utils $as_me 1.0.10, which was
1638 generated by GNU Autoconf 2.60. Invocation command line was
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_must_keep_next=false
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1727 -* ) ac_must_keep_next=true ;;
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 echo "$ac_var='\''$ac_val'\''"
1801 if test -n "$ac_subst_files"; then
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 echo "$ac_var='\''$ac_val'\''"
1819 if test -s confdefs.h; then
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933 echo "$as_me: former value: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935 echo "$as_me: current value: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1992 if test -f "$ac_dir/install-sh"; then
1994 ac_install_sh="$ac_aux_dir/install-sh -c"
1996 elif test -f "$ac_dir/install.sh"; then
1998 ac_install_sh="$ac_aux_dir/install.sh -c"
2000 elif test -f "$ac_dir/shtool"; then
2002 ac_install_sh="$ac_aux_dir/shtool install -c"
2006 if test -z "$ac_aux_dir"; then
2007 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2008 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2009 { (exit 1); exit 1; }; }
2012 # These three variables are undocumented and unsupported,
2013 # and are intended to be withdrawn in a future Autoconf release.
2014 # They can cause serious problems if a builder's source tree is in a directory
2015 # whose full name contains unusual characters.
2016 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2017 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2018 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025 { (exit 1); exit 1; }; }
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038 { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051 { (exit 1); exit 1; }; };;
2054 ac_save_IFS=$IFS; IFS='-'
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test "x$host_alias" = x; then
2073 ac_cv_host=$ac_cv_build
2075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088 { (exit 1); exit 1; }; };;
2091 ac_save_IFS=$IFS; IFS='-'
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
2107 *) ac_macro_dir=$srcdir/aclocal ;;
2109 test -d "$ac_macro_dir" ||
2110 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2111 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2112 { (exit 1); exit 1; }; }
2114 am__api_version="1.9"
2115 # Find a good install program. We prefer a C program (faster),
2116 # so one script is as good as another. But avoid the broken or
2117 # incompatible versions:
2118 # SysV /etc/install, /usr/sbin/install
2119 # SunOS /usr/etc/install
2120 # IRIX /sbin/install
2122 # AmigaOS /C/install, which installs bootblocks on floppy discs
2123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126 # OS/2's system install, which has a completely different semantic
2127 # ./install, which can be erroneously created by make from ./install.sh.
2128 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2129 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2130 if test -z "$INSTALL"; then
2131 if test "${ac_cv_path_install+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 # Account for people who put trailing slashes in PATH elements.
2141 ./ | .// | /cC/* | \
2142 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2143 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2146 # OSF1 and SCO ODT 3.0 have their own names for install.
2147 # Don't use installbsd from OSF since it installs stuff as root
2149 for ac_prog in ginstall scoinst install; do
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2152 if test $ac_prog = install &&
2153 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154 # AIX install. It has an incompatible calling convention.
2156 elif test $ac_prog = install &&
2157 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158 # program-specific install script used by HP pwplus--don't use.
2161 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174 if test "${ac_cv_path_install+set}" = set; then
2175 INSTALL=$ac_cv_path_install
2177 # As a last resort, use the slow shell script. Don't cache a
2178 # value for INSTALL within a source directory, because that will
2179 # break other packages using the cache if that directory is
2180 # removed, or if the value is a relative name.
2181 INSTALL=$ac_install_sh
2184 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2185 echo "${ECHO_T}$INSTALL" >&6; }
2187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188 # It thinks the first close brace ends the variable substitution.
2189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2195 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2196 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2199 echo timestamp > conftest.file
2200 # Do `set' in a subshell so we don't clobber the current shell's
2201 # arguments. Must try -L first in case configure is actually a
2202 # symlink; some systems play weird games with the mod time of symlinks
2203 # (eg FreeBSD returns the mod time of the symlink's containing
2206 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2207 if test "$*" = "X"; then
2209 set X `ls -t $srcdir/configure conftest.file`
2212 if test "$*" != "X $srcdir/configure conftest.file" \
2213 && test "$*" != "X conftest.file $srcdir/configure"; then
2215 # If neither matched, then we have a broken ls. This can happen
2216 # if, for instance, CONFIG_SHELL is bash and it inherits a
2217 # broken ls alias from the environment. This has actually
2218 # happened. Such a system could not be considered "sane".
2219 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2220 alias in your environment" >&5
2221 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2222 alias in your environment" >&2;}
2223 { (exit 1); exit 1; }; }
2226 test "$2" = conftest.file
2232 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2233 Check your system clock" >&5
2234 echo "$as_me: error: newly created file is older than distributed files!
2235 Check your system clock" >&2;}
2236 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 test "$program_prefix" != NONE &&
2241 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2242 # Use a double $ so make ignores it.
2243 test "$program_suffix" != NONE &&
2244 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2245 # Double any \ or $. echo might interpret backslashes.
2246 # By default was `s,x,x', remove it if useless.
2247 cat <<\_ACEOF >conftest.sed
2248 s/[\\$]/&&/g;s/;s,x,x,$//
2250 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2253 # expand $ac_aux_dir to an absolute path
2254 am_aux_dir=`cd $ac_aux_dir && pwd`
2256 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2257 # Use eval to expand $SHELL
2258 if eval "$MISSING --run true"; then
2259 am_missing_run="$MISSING --run "
2262 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2263 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2266 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2267 # We used to keeping the `.' as first argument, in order to
2268 # allow $(mkdir_p) to be used without argument. As in
2269 # $(mkdir_p) $(somedir)
2270 # where $(somedir) is conditionally defined. However this is wrong
2272 # 1. if the package is installed by a user who cannot write `.'
2273 # make install will fail,
2274 # 2. the above comment should most certainly read
2275 # $(mkdir_p) $(DESTDIR)$(somedir)
2276 # so it does not work when $(somedir) is undefined and
2277 # $(DESTDIR) is not.
2278 # To support the latter case, we have to write
2279 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2280 # so the `.' trick is pointless.
2281 mkdir_p='mkdir -p --'
2283 # On NextStep and OpenStep, the `mkdir' command does not
2284 # recognize any option. It will interpret all options as
2285 # directories to create, and then abort because `.' already
2287 for d in ./-p ./--version;
2289 test -d $d && rmdir $d
2291 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2292 if test -f "$ac_aux_dir/mkinstalldirs"; then
2293 mkdir_p='$(mkinstalldirs)'
2295 mkdir_p='$(install_sh) -d'
2299 for ac_prog in gawk mawk nawk awk
2301 # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy $ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_AWK+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$AWK"; then
2309 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_AWK="$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 if test -n "$AWK"; then
2330 { echo "$as_me:$LINENO: result: $AWK" >&5
2331 echo "${ECHO_T}$AWK" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2338 test -n "$AWK" && break
2341 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2343 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.make <<\_ACEOF
2350 @echo '@@@%%%=$(MAKE)=@@@%%%'
2352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2355 eval ac_cv_prog_make_${ac_make}_set=yes;;
2357 eval ac_cv_prog_make_${ac_make}_set=no;;
2361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362 { echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6; }
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2368 SET_MAKE="MAKE=${MAKE-make}"
2371 rm -rf .tst 2>/dev/null
2372 mkdir .tst 2>/dev/null
2373 if test -d .tst; then
2378 rmdir .tst 2>/dev/null
2380 # test to see if srcdir already configured
2381 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2382 test -f $srcdir/config.status; then
2383 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2384 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2385 { (exit 1); exit 1; }; }
2388 # test whether we have cygpath
2389 if test -z "$CYGPATH_W"; then
2390 if (cygpath --version) >/dev/null 2>/dev/null; then
2391 CYGPATH_W='cygpath -w'
2398 # Define the identity of the package.
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE "$PACKAGE"
2408 cat >>confdefs.h <<_ACEOF
2409 #define VERSION "$VERSION"
2412 # Some tools Automake needs.
2414 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2428 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'. However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_STRIP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$STRIP"; then
2444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465 { echo "$as_me:$LINENO: result: $STRIP" >&5
2466 echo "${ECHO_T}$STRIP" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_STRIP"; then
2476 # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_STRIP"; then
2484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_STRIP="strip"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2506 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_STRIP" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2528 STRIP="$ac_cv_prog_STRIP"
2532 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2534 # We need awk for the "check" target. The system "awk" is bad on
2536 # Always define AMTAR for backward compatibility.
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550 # Check whether --with-release was given.
2551 if test "${with_release+set}" = set; then
2552 withval=$with_release; RELEASE=$withval
2559 # Check whether --with-statedir was given.
2560 if test "${with_statedir+set}" = set; then
2561 withval=$with_statedir; statedir=$withval
2563 statedir=/var/lib/nfs
2568 # Check whether --with-statduser was given.
2569 if test "${with_statduser+set}" = set; then
2570 withval=$with_statduser; statduser=$withval
2572 if test "x$cross_compiling" = "xno"; then
2573 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2584 # Check whether --enable-nfsv3 was given.
2585 if test "${enable_nfsv3+set}" = set; then
2586 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2591 if test "$enable_nfsv3" = yes; then
2593 cat >>confdefs.h <<\_ACEOF
2594 #define NFS3_SUPPORTED 1
2601 # Check whether --enable-nfsv4 was given.
2602 if test "${enable_nfsv4+set}" = set; then
2603 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2608 if test "$enable_nfsv4" = yes; then
2610 cat >>confdefs.h <<\_ACEOF
2611 #define NFS4_SUPPORTED 1
2623 if test "$enable_nfsv4" = "yes"; then
2625 CONFIG_NFSV4_FALSE='#'
2627 CONFIG_NFSV4_TRUE='#'
2631 # Check whether --enable-gss was given.
2632 if test "${enable_gss+set}" = set; then
2633 enableval=$enable_gss; enable_gss=$enableval
2638 if test "$enable_gss" = yes; then
2640 cat >>confdefs.h <<\_ACEOF
2641 #define GSS_SUPPORTED 1
2656 if test "$enable_gss" = "yes"; then
2658 CONFIG_GSS_FALSE='#'
2664 # Check whether --enable-kprefix was given.
2665 if test "${enable_kprefix+set}" = set; then
2666 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2672 # Check whether --enable-secure-statd was given.
2673 if test "${enable_secure_statd+set}" = set; then
2674 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2679 if test "$secure_statd" = yes; then
2681 cat >>confdefs.h <<\_ACEOF
2682 #define RESTRICTED_STATD 1
2687 # Check whether --enable-rquotad was given.
2688 if test "${enable_rquotad+set}" = set; then
2689 enableval=$enable_rquotad; enable_rquotad=$enableval
2694 if test "$enable_rquotad" = yes; then
2701 if test "$enable_rquotad" = "yes"; then
2702 CONFIG_RQUOTAD_TRUE=
2703 CONFIG_RQUOTAD_FALSE='#'
2705 CONFIG_RQUOTAD_TRUE='#'
2706 CONFIG_RQUOTAD_FALSE=
2710 # Check whether --enable-mount was given.
2711 if test "${enable_mount+set}" = set; then
2712 enableval=$enable_mount; enable_mount=$enableval
2719 if test "$enable_mount" = "yes"; then
2721 CONFIG_MOUNT_FALSE='#'
2723 CONFIG_MOUNT_TRUE='#'
2728 # Check whether user wants TCP wrappers support
2729 DEPDIR="${am__leading_dot}deps"
2731 ac_config_commands="$ac_config_commands depfiles"
2734 am_make=${MAKE-make}
2735 cat > confinc << 'END'
2740 # If we don't find an include directive, just comment out the code.
2741 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2742 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2746 # First try GNU make style include.
2747 echo "include confinc" > confmf
2748 # We grep out `Entering directory' and `Leaving directory'
2749 # messages which can occur if `w' ends up in MAKEFLAGS.
2750 # In particular we don't look at `^make:' because GNU make might
2751 # be invoked under some other name (usually "gmake"), in which
2752 # case it prints its new name instead of `make'.
2753 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758 # Now try BSD make style include.
2759 if test "$am__include" = "#"; then
2760 echo '.include "confinc"' > confmf
2761 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2762 am__include=.include
2769 { echo "$as_me:$LINENO: result: $_am_result" >&5
2770 echo "${ECHO_T}$_am_result" >&6; }
2771 rm -f confinc confmf
2773 # Check whether --enable-dependency-tracking was given.
2774 if test "${enable_dependency_tracking+set}" = set; then
2775 enableval=$enable_dependency_tracking;
2778 if test "x$enable_dependency_tracking" != xno; then
2779 am_depcomp="$ac_aux_dir/depcomp"
2784 if test "x$enable_dependency_tracking" != xno; then
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CC"; then
2829 { echo "$as_me:$LINENO: result: $CC" >&5
2830 echo "${ECHO_T}$CC" >&6; }
2832 { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2838 if test -z "$ac_cv_prog_CC"; then
2840 # Extract the first word of "gcc", so it can be a program name with args.
2841 set dummy gcc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_CC="gcc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6; }
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2876 if test "x$ac_ct_CC" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2982 if test -n "$CC"; then
2983 { echo "$as_me:$LINENO: result: $CC" >&5
2984 echo "${ECHO_T}$CC" >&6; }
2986 { echo "$as_me:$LINENO: result: no" >&5
2987 echo "${ECHO_T}no" >&6; }
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog in cl.exe
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { echo "$as_me:$LINENO: result: $CC" >&5
3026 echo "${ECHO_T}$CC" >&6; }
3028 { echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6; }
3033 test -n "$CC" && break
3036 if test -z "$CC"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 echo "${ECHO_T}$ac_ct_CC" >&6; }
3072 { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3077 test -n "$ac_ct_CC" && break
3080 if test "x$ac_ct_CC" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3086 whose name does not start with the host triplet. If you think this
3087 configuration is useful to you, please write to autoconf@gnu.org." >&5
3088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet. If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3091 ac_tool_warned=yes ;;
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { (ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3197 for ac_file in $ac_files
3199 test -f "$ac_file" || continue
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 # We found the default executable, but exeext='' is most
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C compiler cannot create executables
3231 See \`config.log' for more details." >&2;}
3232 { (exit 77); exit 77; }; }
3235 ac_exeext=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_file" >&5
3237 echo "${ECHO_T}$ac_file" >&6; }
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3244 # If not cross compiling, check that we can run a simple program.
3245 if test "$cross_compiling" != yes; then
3246 if { ac_try='./$ac_file'
3247 { (case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_try") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 if test "$cross_compiling" = maybe; then
3261 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details." >&5
3264 echo "$as_me: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&2;}
3267 { (exit 1); exit 1; }; }
3271 { echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6; }
3274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 # Check that the compiler produces executables we can run. If not, either
3277 # the compiler is broken, or we cross compile.
3278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3281 echo "${ECHO_T}$cross_compiling" >&6; }
3283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3285 if { (ac_try="$ac_link"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_link") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; then
3295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3299 for ac_file in conftest.exe conftest conftest.*; do
3300 test -f "$ac_file" || continue
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3316 rm -f conftest$ac_cv_exeext
3317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3325 if test "${ac_cv_objext+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3343 rm -f conftest.o conftest.obj
3344 if { (ac_try="$ac_compile"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_compile") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; then
3354 for ac_file in conftest.o conftest.obj conftest.*; do
3355 test -f "$ac_file" || continue;
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3358 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3369 See \`config.log' for more details." >&2;}
3370 { (exit 1); exit 1; }; }
3373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3376 echo "${ECHO_T}$ac_cv_objext" >&6; }
3377 OBJEXT=$ac_cv_objext
3379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_try") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_try") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_save_c_werror_flag=$ac_c_werror_flag
3459 ac_c_werror_flag=yes
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603 { (case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_try") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_try") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3650 if test "$GCC" = yes; then
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_cv_prog_cc_c89=no
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3687 s = g (p, va_arg (v,int));
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3693 function prototypes and stuff, but not '\xHH' hex character constants.
3694 These don't provoke an error unfortunately, instead are silently treated
3695 as 'x'. The following induces an error, until -std is added to get
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3697 array size at least. It's necessary to write '\x00'==0 to get something
3698 that's true only with -std. */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702 inside strings and character constants. */
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 CC="$ac_save_CC $ac_arg"
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3739 { (case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_try") 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_try") 2>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_cv_prog_cc_c89=$ac_arg
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3766 rm -f core conftest.err conftest.$ac_objext
3767 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 rm -f conftest.$ac_ext
3774 case "x$ac_cv_prog_cc_c89" in
3776 { echo "$as_me:$LINENO: result: none needed" >&5
3777 echo "${ECHO_T}none needed" >&6; } ;;
3779 { echo "$as_me:$LINENO: result: unsupported" >&5
3780 echo "${ECHO_T}unsupported" >&6; } ;;
3782 CC="$CC $ac_cv_prog_cc_c89"
3783 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 depcc="$CC" am_compiler_list=
3796 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3798 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802 # We make a subdir and do the tests there. Otherwise we can end up
3803 # making bogus files that we don't know about and never remove. For
3804 # instance it was reported that on HP-UX the gcc test will end up
3805 # making a dummy file named `D' -- because `-MD' means `put the output
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824 for depmode in $am_compiler_list; do
3825 # Setup a source with many dependencies, because some compilers
3826 # like to wrap large dependency lists on column 80 (with \), and
3827 # we should not choose a depcomp mode which is confused by this.
3829 # We need to recreate these files for each test, as the compiler may
3830 # overwrite some of them when testing with obscure command lines.
3831 # This happens at least with the AIX C compiler.
3833 for i in 1 2 3 4 5 6; do
3834 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836 # Solaris 8's {/usr,}/bin/sh.
3837 touch sub/conftst$i.h
3839 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3853 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854 # mode. It turns out that the SunPro C++ compiler does not properly
3855 # handle `-M -o', and we need to detect this.
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3882 am_cv_CC_dependencies_compiler_type=none
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_FALSE='#'
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3907 # Check whether --with-tcp-wrappers was given.
3908 if test "${with_tcp_wrappers+set}" = set; then
3909 withval=$with_tcp_wrappers;
3910 if test "x$withval" != "xno" ; then
3912 saved_LDFLAGS="$LDFLAGS"
3913 saved_CPPFLAGS="$CPPFLAGS"
3914 if test -n "${withval}" -a "${withval}" != "yes"; then
3915 if test -d "${withval}/lib"; then
3916 if test -n "${need_dash_r}"; then
3917 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3919 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3922 if test -n "${need_dash_r}"; then
3923 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3925 LDFLAGS="-L${withval} ${LDFLAGS}"
3928 if test -d "${withval}/include"; then
3929 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3931 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3935 LIBS="$LIBWRAP $LIBS"
3936 { echo "$as_me:$LINENO: checking for libwrap" >&5
3937 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3946 int deny_severity = 0, allow_severity = 0;
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (ac_try="$ac_link"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_link") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest$ac_exeext'
3981 { (case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_try") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3991 { echo "$as_me:$LINENO: result: yes" >&5
3992 echo "${ECHO_T}yes" >&6; }
3995 cat >>confdefs.h <<\_ACEOF
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_LIBWRAP 1
4005 cat >>confdefs.h <<\_ACEOF
4006 #define HAVE_TCP_WRAPPER 1
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4016 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4017 echo "$as_me: error: *** libwrap missing" >&2;}
4018 { (exit 1); exit 1; }; }
4023 rm -f core conftest.err conftest.$ac_objext \
4024 conftest$ac_exeext conftest.$ac_ext
4037 ac_config_headers="$ac_config_headers support/include/config.h"
4040 # Checks for programs.
4042 ac_cpp='$CXXCPP $CPPFLAGS'
4043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4046 if test -z "$CXX"; then
4047 if test -n "$CCC"; then
4050 if test -n "$ac_tool_prefix"; then
4051 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_CXX+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if test -n "$CXX"; then
4061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CXX"; then
4082 { echo "$as_me:$LINENO: result: $CXX" >&5
4083 echo "${ECHO_T}$CXX" >&6; }
4085 { echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6; }
4090 test -n "$CXX" && break
4093 if test -z "$CXX"; then
4095 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test -n "$ac_ct_CXX"; then
4105 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_ac_ct_CXX="$ac_prog"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4125 if test -n "$ac_ct_CXX"; then
4126 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4127 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4129 { echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6; }
4134 test -n "$ac_ct_CXX" && break
4137 if test "x$ac_ct_CXX" = x; then
4140 case $cross_compiling:$ac_tool_warned in
4142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4143 whose name does not start with the host triplet. If you think this
4144 configuration is useful to you, please write to autoconf@gnu.org." >&5
4145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4146 whose name does not start with the host triplet. If you think this
4147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4148 ac_tool_warned=yes ;;
4156 # Provide some information about the compiler.
4157 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4158 ac_compiler=`set X $ac_compile; echo $2`
4159 { (ac_try="$ac_compiler --version >&5"
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compiler --version >&5") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }
4169 { (ac_try="$ac_compiler -v >&5"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compiler -v >&5") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }
4179 { (ac_try="$ac_compiler -V >&5"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compiler -V >&5") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }
4190 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4213 rm -f conftest.$ac_objext
4214 if { (ac_try="$ac_compile"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4261 GXX=`test $ac_compiler_gnu = yes && echo yes`
4262 ac_test_CXXFLAGS=${CXXFLAGS+set}
4263 ac_save_CXXFLAGS=$CXXFLAGS
4264 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_cxx_g+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4270 ac_cxx_werror_flag=yes
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 ac_cv_prog_cxx_g=yes
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_try") 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_prog_cxx_g=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4451 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4452 if test "$ac_test_CXXFLAGS" = set; then
4453 CXXFLAGS=$ac_save_CXXFLAGS
4454 elif test $ac_cv_prog_cxx_g = yes; then
4455 if test "$GXX" = yes; then
4461 if test "$GXX" = yes; then
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 depcc="$CXX" am_compiler_list=
4475 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4477 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4481 # We make a subdir and do the tests there. Otherwise we can end up
4482 # making bogus files that we don't know about and never remove. For
4483 # instance it was reported that on HP-UX the gcc test will end up
4484 # making a dummy file named `D' -- because `-MD' means `put the output
4487 # Copy depcomp to subdir because otherwise we won't find it if we're
4488 # using a relative directory.
4489 cp "$am_depcomp" conftest.dir
4491 # We will build objects and dependencies in a subdirectory because
4492 # it helps to detect inapplicable dependency modes. For instance
4493 # both Tru64's cc and ICC support -MD to output dependencies as a
4494 # side effect of compilation, but ICC will put the dependencies in
4495 # the current directory while Tru64 will put them in the object
4499 am_cv_CXX_dependencies_compiler_type=none
4500 if test "$am_compiler_list" = ""; then
4501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4503 for depmode in $am_compiler_list; do
4504 # Setup a source with many dependencies, because some compilers
4505 # like to wrap large dependency lists on column 80 (with \), and
4506 # we should not choose a depcomp mode which is confused by this.
4508 # We need to recreate these files for each test, as the compiler may
4509 # overwrite some of them when testing with obscure command lines.
4510 # This happens at least with the AIX C compiler.
4512 for i in 1 2 3 4 5 6; do
4513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4515 # Solaris 8's {/usr,}/bin/sh.
4516 touch sub/conftst$i.h
4518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522 # after this tag, mechanisms are not by side-effect, so they'll
4523 # only be used when explicitly requested
4524 if test "x$enable_dependency_tracking" = xyes; then
4532 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4533 # mode. It turns out that the SunPro C++ compiler does not properly
4534 # handle `-M -o', and we need to detect this.
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CXX_dependencies_compiler_type=$depmode
4561 am_cv_CXX_dependencies_compiler_type=none
4565 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4567 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4572 test "x$enable_dependency_tracking" != xno \
4573 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCXX_TRUE=
4575 am__fastdepCXX_FALSE='#'
4577 am__fastdepCXX_TRUE='#'
4578 am__fastdepCXX_FALSE=
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_CC+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 if test -n "$CC"; then
4617 { echo "$as_me:$LINENO: result: $CC" >&5
4618 echo "${ECHO_T}$CC" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4626 if test -z "$ac_cv_prog_CC"; then
4628 # Extract the first word of "gcc", so it can be a program name with args.
4629 set dummy gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$ac_ct_CC"; then
4636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_ac_ct_CC="gcc"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4656 if test -n "$ac_ct_CC"; then
4657 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4658 echo "${ECHO_T}$ac_ct_CC" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4664 if test "x$ac_ct_CC" = x; then
4667 case $cross_compiling:$ac_tool_warned in
4669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4670 whose name does not start with the host triplet. If you think this
4671 configuration is useful to you, please write to autoconf@gnu.org." >&5
4672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4673 whose name does not start with the host triplet. If you think this
4674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4675 ac_tool_warned=yes ;;
4683 if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}cc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_CC="${ac_tool_prefix}cc"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 if test -n "$CC"; then
4714 { echo "$as_me:$LINENO: result: $CC" >&5
4715 echo "${ECHO_T}$CC" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4724 if test -z "$CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_CC
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set CC to just the basename; use the full file name.
4764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4770 if test -n "$CC"; then
4771 { echo "$as_me:$LINENO: result: $CC" >&5
4772 echo "${ECHO_T}$CC" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4780 if test -z "$CC"; then
4781 if test -n "$ac_tool_prefix"; then
4782 for ac_prog in cl.exe
4784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_CC+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -n "$CC"; then
4792 ac_cv_prog_CC="$CC" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 if test -n "$CC"; then
4813 { echo "$as_me:$LINENO: result: $CC" >&5
4814 echo "${ECHO_T}$CC" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 test -n "$CC" && break
4824 if test -z "$CC"; then
4826 for ac_prog in cl.exe
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_ac_ct_CC="$ac_prog"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4856 if test -n "$ac_ct_CC"; then
4857 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4858 echo "${ECHO_T}$ac_ct_CC" >&6; }
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 test -n "$ac_ct_CC" && break
4868 if test "x$ac_ct_CC" = x; then
4871 case $cross_compiling:$ac_tool_warned in
4873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet. If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&5
4876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4877 whose name does not start with the host triplet. If you think this
4878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4879 ac_tool_warned=yes ;;
4888 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: no acceptable C compiler found in \$PATH
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4894 # Provide some information about the compiler.
4895 echo "$as_me:$LINENO: checking for C compiler version" >&5
4896 ac_compiler=`set X $ac_compile; echo $2`
4897 { (ac_try="$ac_compiler --version >&5"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compiler --version >&5") 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }
4907 { (ac_try="$ac_compiler -v >&5"
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_compiler -v >&5") 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }
4917 { (ac_try="$ac_compiler -V >&5"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_compiler -V >&5") 2>&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }
4928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4951 rm -f conftest.$ac_objext
4952 if { (ac_try="$ac_compile"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_compile") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4966 { (case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_try") 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_try") 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4997 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4999 GCC=`test $ac_compiler_gnu = yes && echo yes`
5000 ac_test_CFLAGS=${CFLAGS+set}
5001 ac_save_CFLAGS=$CFLAGS
5002 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_cc_g+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_save_c_werror_flag=$ac_c_werror_flag
5008 ac_c_werror_flag=yes
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_compile") 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5041 { (case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_try") 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest.$ac_objext'
5051 { (case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5096 { (case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_try") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 ac_c_werror_flag=$ac_save_c_werror_flag
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5137 rm -f conftest.$ac_objext
5138 if { (ac_try="$ac_compile"
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_compile") 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5152 { (case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_try") 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; } &&
5161 { ac_try='test -s conftest.$ac_objext'
5162 { (case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_try") 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 ac_c_werror_flag=$ac_save_c_werror_flag
5188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5190 if test "$ac_test_CFLAGS" = set; then
5191 CFLAGS=$ac_save_CFLAGS
5192 elif test $ac_cv_prog_cc_g = yes; then
5193 if test "$GCC" = yes; then
5199 if test "$GCC" = yes; then
5205 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5206 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_cc_c89+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 ac_cv_prog_cc_c89=no
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5220 #include <sys/types.h>
5221 #include <sys/stat.h>
5222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5223 struct buf { int x; };
5224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5225 static char *e (p, i)
5231 static char *f (char * (*g) (char **, int), char **p, ...)
5236 s = g (p, va_arg (v,int));
5241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5242 function prototypes and stuff, but not '\xHH' hex character constants.
5243 These don't provoke an error unfortunately, instead are silently treated
5244 as 'x'. The following induces an error, until -std is added to get
5245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5246 array size at least. It's necessary to write '\x00'==0 to get something
5247 that's true only with -std. */
5248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5251 inside strings and character constants. */
5253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5255 int test (int i, double x);
5256 struct s1 {int (*f) (int a);};
5257 struct s2 {int (*f) (double a);};
5258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5272 CC="$ac_save_CC $ac_arg"
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5288 { (case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_try") 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_try") 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_cv_prog_cc_c89=$ac_arg
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5315 rm -f core conftest.err conftest.$ac_objext
5316 test "x$ac_cv_prog_cc_c89" != "xno" && break
5318 rm -f conftest.$ac_ext
5323 case "x$ac_cv_prog_cc_c89" in
5325 { echo "$as_me:$LINENO: result: none needed" >&5
5326 echo "${ECHO_T}none needed" >&6; } ;;
5328 { echo "$as_me:$LINENO: result: unsupported" >&5
5329 echo "${ECHO_T}unsupported" >&6; } ;;
5331 CC="$CC $ac_cv_prog_cc_c89"
5332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 depcc="$CC" am_compiler_list=
5345 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5346 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5347 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5351 # We make a subdir and do the tests there. Otherwise we can end up
5352 # making bogus files that we don't know about and never remove. For
5353 # instance it was reported that on HP-UX the gcc test will end up
5354 # making a dummy file named `D' -- because `-MD' means `put the output
5357 # Copy depcomp to subdir because otherwise we won't find it if we're
5358 # using a relative directory.
5359 cp "$am_depcomp" conftest.dir
5361 # We will build objects and dependencies in a subdirectory because
5362 # it helps to detect inapplicable dependency modes. For instance
5363 # both Tru64's cc and ICC support -MD to output dependencies as a
5364 # side effect of compilation, but ICC will put the dependencies in
5365 # the current directory while Tru64 will put them in the object
5369 am_cv_CC_dependencies_compiler_type=none
5370 if test "$am_compiler_list" = ""; then
5371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5373 for depmode in $am_compiler_list; do
5374 # Setup a source with many dependencies, because some compilers
5375 # like to wrap large dependency lists on column 80 (with \), and
5376 # we should not choose a depcomp mode which is confused by this.
5378 # We need to recreate these files for each test, as the compiler may
5379 # overwrite some of them when testing with obscure command lines.
5380 # This happens at least with the AIX C compiler.
5382 for i in 1 2 3 4 5 6; do
5383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5384 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5385 # Solaris 8's {/usr,}/bin/sh.
5386 touch sub/conftst$i.h
5388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5392 # after this tag, mechanisms are not by side-effect, so they'll
5393 # only be used when explicitly requested
5394 if test "x$enable_dependency_tracking" = xyes; then
5402 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5403 # mode. It turns out that the SunPro C++ compiler does not properly
5404 # handle `-M -o', and we need to detect this.
5405 if depmode=$depmode \
5406 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5408 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5409 >/dev/null 2>conftest.err &&
5410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5411 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5413 # icc doesn't choke on unknown options, it will just issue warnings
5414 # or remarks (even with -Werror). So we grep stderr for any message
5415 # that says an option was ignored or not supported.
5416 # When given -MP, icc 7.0 and 7.1 complain thusly:
5417 # icc: Command line warning: ignoring option '-M'; no argument required
5418 # The diagnosis changed in icc 8.0:
5419 # icc: Command line remark: option '-MP' not supported
5420 if (grep 'ignoring option' conftest.err ||
5421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5422 am_cv_CC_dependencies_compiler_type=$depmode
5431 am_cv_CC_dependencies_compiler_type=none
5435 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5436 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5442 test "x$enable_dependency_tracking" != xno \
5443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5445 am__fastdepCC_FALSE='#'
5447 am__fastdepCC_TRUE='#'
5448 am__fastdepCC_FALSE=
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5457 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5459 # On Suns, sometimes $CPP names a directory.
5460 if test -n "$CPP" && test -d "$CPP"; then
5463 if test -z "$CPP"; then
5464 if test "${ac_cv_prog_CPP+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 # Double quotes because CPP needs to be expanded
5468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5471 for ac_c_preproc_warn_flag in '' yes
5473 # Use a header file that comes with gcc, so configuring glibc
5474 # with a fresh cross-compiler works.
5475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476 # <limits.h> exists even on freestanding compilers.
5477 # On the NeXT, cc -E runs the code through the compiler's parser,
5478 # not just through cpp. "Syntax error" is here to catch this case.
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 # include <limits.h>
5488 # include <assert.h>
5492 if { (ac_try="$ac_cpp conftest.$ac_ext"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } >/dev/null; then
5505 if test -s conftest.err; then
5506 ac_cpp_err=$ac_c_preproc_warn_flag
5507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5514 if test -z "$ac_cpp_err"; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 # Broken: fails on valid input.
5524 rm -f conftest.err conftest.$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5536 if { (ac_try="$ac_cpp conftest.$ac_ext"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null; then
5549 if test -s conftest.err; then
5550 ac_cpp_err=$ac_c_preproc_warn_flag
5551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558 if test -z "$ac_cpp_err"; then
5559 # Broken: success on invalid input.
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 # Passes both tests.
5570 rm -f conftest.err conftest.$ac_ext
5573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574 rm -f conftest.err conftest.$ac_ext
5575 if $ac_preproc_ok; then
5587 { echo "$as_me:$LINENO: result: $CPP" >&5
5588 echo "${ECHO_T}$CPP" >&6; }
5590 for ac_c_preproc_warn_flag in '' yes
5592 # Use a header file that comes with gcc, so configuring glibc
5593 # with a fresh cross-compiler works.
5594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595 # <limits.h> exists even on freestanding compilers.
5596 # On the NeXT, cc -E runs the code through the compiler's parser,
5597 # not just through cpp. "Syntax error" is here to catch this case.
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5605 # include <limits.h>
5607 # include <assert.h>
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev/null; then
5624 if test -s conftest.err; then
5625 ac_cpp_err=$ac_c_preproc_warn_flag
5626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 if test -z "$ac_cpp_err"; then
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 # Broken: fails on valid input.
5643 rm -f conftest.err conftest.$ac_ext
5645 # OK, works on sane cases. Now check whether nonexistent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null; then
5668 if test -s conftest.err; then
5669 ac_cpp_err=$ac_c_preproc_warn_flag
5670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5677 if test -z "$ac_cpp_err"; then
5678 # Broken: success on invalid input.
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 # Passes both tests.
5689 rm -f conftest.err conftest.$ac_ext
5692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5693 rm -f conftest.err conftest.$ac_ext
5694 if $ac_preproc_ok; then
5697 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5698 See \`config.log' for more details." >&5
5699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5700 See \`config.log' for more details." >&2;}
5701 { (exit 1); exit 1; }; }
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 # Find a good install program. We prefer a C program (faster),
5711 # so one script is as good as another. But avoid the broken or
5712 # incompatible versions:
5713 # SysV /etc/install, /usr/sbin/install
5714 # SunOS /usr/etc/install
5715 # IRIX /sbin/install
5717 # AmigaOS /C/install, which installs bootblocks on floppy discs
5718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5721 # OS/2's system install, which has a completely different semantic
5722 # ./install, which can be erroneously created by make from ./install.sh.
5723 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5724 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5725 if test -z "$INSTALL"; then
5726 if test "${ac_cv_path_install+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir=.
5734 # Account for people who put trailing slashes in PATH elements.
5736 ./ | .// | /cC/* | \
5737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5738 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5741 # OSF1 and SCO ODT 3.0 have their own names for install.
5742 # Don't use installbsd from OSF since it installs stuff as root
5744 for ac_prog in ginstall scoinst install; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5747 if test $ac_prog = install &&
5748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749 # AIX install. It has an incompatible calling convention.
5751 elif test $ac_prog = install &&
5752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753 # program-specific install script used by HP pwplus--don't use.
5756 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5769 if test "${ac_cv_path_install+set}" = set; then
5770 INSTALL=$ac_cv_path_install
5772 # As a last resort, use the slow shell script. Don't cache a
5773 # value for INSTALL within a source directory, because that will
5774 # break other packages using the cache if that directory is
5775 # removed, or if the value is a relative name.
5776 INSTALL=$ac_install_sh
5779 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5780 echo "${ECHO_T}$INSTALL" >&6; }
5782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5783 # It thinks the first close brace ends the variable substitution.
5784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5793 if test "$LN_S" = "ln -s"; then
5794 { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5797 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5798 echo "${ECHO_T}no, using $LN_S" >&6; }
5801 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5803 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.make <<\_ACEOF
5810 @echo '@@@%%%=$(MAKE)=@@@%%%'
5812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5815 eval ac_cv_prog_make_${ac_make}_set=yes;;
5817 eval ac_cv_prog_make_${ac_make}_set=no;;
5821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5822 { echo "$as_me:$LINENO: result: yes" >&5
5823 echo "${ECHO_T}yes" >&6; }
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 SET_MAKE="MAKE=${MAKE-make}"
5831 # Check whether --enable-shared was given.
5832 if test "${enable_shared+set}" = set; then
5833 enableval=$enable_shared; p=${PACKAGE-default}
5835 yes) enable_shared=yes ;;
5836 no) enable_shared=no ;;
5839 # Look at the argument we got. We use all the common list separators.
5840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5841 for pkg in $enableval; do
5843 if test "X$pkg" = "X$p"; then
5855 # Check whether --enable-static was given.
5856 if test "${enable_static+set}" = set; then
5857 enableval=$enable_static; p=${PACKAGE-default}
5859 yes) enable_static=yes ;;
5860 no) enable_static=no ;;
5863 # Look at the argument we got. We use all the common list separators.
5864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5865 for pkg in $enableval; do
5867 if test "X$pkg" = "X$p"; then
5879 # Check whether --enable-fast-install was given.
5880 if test "${enable_fast_install+set}" = set; then
5881 enableval=$enable_fast_install; p=${PACKAGE-default}
5883 yes) enable_fast_install=yes ;;
5884 no) enable_fast_install=no ;;
5886 enable_fast_install=no
5887 # Look at the argument we got. We use all the common list separators.
5888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5889 for pkg in $enableval; do
5891 if test "X$pkg" = "X$p"; then
5892 enable_fast_install=yes
5899 enable_fast_install=yes
5903 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5905 if test "${lt_cv_path_SED+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 # Loop through the user's path and test for sed and gsed.
5909 # Then use that list of sed's as ones to test for truncation.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for lt_ac_prog in sed gsed; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5918 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5926 # along with /bin/sed that truncates output.
5927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5928 test ! -f $lt_ac_sed && continue
5929 cat /dev/null > conftest.in
5931 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5932 # Check for GNU sed and select it if it is found.
5933 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5934 lt_cv_path_SED=$lt_ac_sed
5938 cat conftest.in conftest.in >conftest.tmp
5939 mv conftest.tmp conftest.in
5940 cp conftest.in conftest.nl
5942 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5943 cmp -s conftest.out conftest.nl || break
5944 # 10000 chars as input seems more than enough
5945 test $lt_ac_count -gt 10 && break
5946 lt_ac_count=`expr $lt_ac_count + 1`
5947 if test $lt_ac_count -gt $lt_ac_max; then
5948 lt_ac_max=$lt_ac_count
5949 lt_cv_path_SED=$lt_ac_sed
5957 { echo "$as_me:$LINENO: result: $SED" >&5
5958 echo "${ECHO_T}$SED" >&6; }
5960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5962 if test "${ac_cv_path_GREP+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 # Extract the first word of "grep ggrep" to use in msg output
5966 if test -z "$GREP"; then
5967 set dummy grep ggrep; ac_prog_name=$2
5968 if test "${ac_cv_path_GREP+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_path_GREP_found=false
5972 # Loop through the user's path and test for each of PROGNAME-LIST
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5977 test -z "$as_dir" && as_dir=.
5978 for ac_prog in grep ggrep; do
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5981 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5982 # Check for GNU ac_path_GREP and select it if it is found.
5983 # Check for GNU $ac_path_GREP
5984 case `"$ac_path_GREP" --version 2>&1` in
5986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5992 cat "conftest.in" "conftest.in" >"conftest.tmp"
5993 mv "conftest.tmp" "conftest.in"
5994 cp "conftest.in" "conftest.nl"
5995 echo 'GREP' >> "conftest.nl"
5996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5998 ac_count=`expr $ac_count + 1`
5999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6000 # Best one so far, save it but keep looking for a better one
6001 ac_cv_path_GREP="$ac_path_GREP"
6002 ac_path_GREP_max=$ac_count
6004 # 10*(2^10) chars as input seems more than enough
6005 test $ac_count -gt 10 && break
6007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6011 $ac_path_GREP_found && break 3
6021 GREP="$ac_cv_path_GREP"
6022 if test -z "$GREP"; then
6023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6025 { (exit 1); exit 1; }; }
6029 ac_cv_path_GREP=$GREP
6034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6036 GREP="$ac_cv_path_GREP"
6039 { echo "$as_me:$LINENO: checking for egrep" >&5
6040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6041 if test "${ac_cv_path_EGREP+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6045 then ac_cv_path_EGREP="$GREP -E"
6047 # Extract the first word of "egrep" to use in msg output
6048 if test -z "$EGREP"; then
6049 set dummy egrep; ac_prog_name=$2
6050 if test "${ac_cv_path_EGREP+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_path_EGREP_found=false
6054 # Loop through the user's path and test for each of PROGNAME-LIST
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6059 test -z "$as_dir" && as_dir=.
6060 for ac_prog in egrep; do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6063 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6064 # Check for GNU ac_path_EGREP and select it if it is found.
6065 # Check for GNU $ac_path_EGREP
6066 case `"$ac_path_EGREP" --version 2>&1` in
6068 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6071 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 echo 'EGREP' >> "conftest.nl"
6078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080 ac_count=`expr $ac_count + 1`
6081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_EGREP="$ac_path_EGREP"
6084 ac_path_EGREP_max=$ac_count
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 $ac_path_EGREP_found && break 3
6103 EGREP="$ac_cv_path_EGREP"
6104 if test -z "$EGREP"; then
6105 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6107 { (exit 1); exit 1; }; }
6111 ac_cv_path_EGREP=$EGREP
6117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6119 EGREP="$ac_cv_path_EGREP"
6123 # Check whether --with-gnu-ld was given.
6124 if test "${with_gnu_ld+set}" = set; then
6125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6131 if test "$GCC" = yes; then
6132 # Check if gcc -print-prog-name=ld gives a path.
6133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6137 # gcc leaves a trailing carriage return which upsets mingw
6138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6143 # Accept absolute paths.
6145 re_direlt='/[^/][^/]*/\.\./'
6146 # Canonicalize the pathname of ld
6147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6151 test -z "$LD" && LD="$ac_prog"
6154 # If it fails, then pretend we aren't using GCC.
6158 # If it is relative, then search for the first ld in PATH.
6162 elif test "$with_gnu_ld" = yes; then
6163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6169 if test "${lt_cv_path_LD+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 if test -z "$LD"; then
6173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6174 for ac_dir in $PATH; do
6176 test -z "$ac_dir" && ac_dir=.
6177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6178 lt_cv_path_LD="$ac_dir/$ac_prog"
6179 # Check to see if the program is GNU ld. I'd rather use --version,
6180 # but apparently some variants of GNU ld only accept -v.
6181 # Break only if it was the GNU/non-GNU ld that we prefer.
6182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6183 *GNU* | *'with BFD'*)
6184 test "$with_gnu_ld" != no && break
6187 test "$with_gnu_ld" != yes && break
6194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6199 if test -n "$LD"; then
6200 { echo "$as_me:$LINENO: result: $LD" >&5
6201 echo "${ECHO_T}$LD" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6208 { (exit 1); exit 1; }; }
6209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6215 case `$LD -v 2>&1 </dev/null` in
6216 *GNU* | *'with BFD'*)
6217 lt_cv_prog_gnu_ld=yes
6220 lt_cv_prog_gnu_ld=no
6224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6226 with_gnu_ld=$lt_cv_prog_gnu_ld
6229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6231 if test "${lt_cv_ld_reload_flag+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 lt_cv_ld_reload_flag='-r'
6236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6241 *) reload_flag=" $reload_flag" ;;
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246 if test "$GCC" = yes; then
6247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6256 if test "${lt_cv_path_NM+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 if test -n "$NM"; then
6260 # Let the user override the test.
6263 lt_nm_to_check="${ac_tool_prefix}nm"
6264 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6265 lt_nm_to_check="$lt_nm_to_check nm"
6267 for lt_tmp_nm in $lt_nm_to_check; do
6268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6269 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6271 test -z "$ac_dir" && ac_dir=.
6272 tmp_nm="$ac_dir/$lt_tmp_nm"
6273 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6274 # Check to see if the nm accepts a BSD-compat flag.
6275 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6276 # nm: unknown option "B" ignored
6277 # Tru64's nm complains that /dev/null is an invalid object file
6278 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6279 */dev/null* | *'Invalid file or object type'*)
6280 lt_cv_path_NM="$tmp_nm -B"
6284 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6286 lt_cv_path_NM="$tmp_nm -p"
6290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6291 continue # so that we can try to find one that supports BSD flags
6300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6307 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6308 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6309 if test "${lt_cv_deplibs_check_method+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 lt_cv_file_magic_cmd='$MAGIC_CMD'
6313 lt_cv_file_magic_test_file=
6314 lt_cv_deplibs_check_method='unknown'
6315 # Need to set the preceding variable on all platforms that support
6316 # interlibrary dependencies.
6317 # 'none' -- dependencies not supported.
6318 # `unknown' -- same as none, but documents that we really don't know.
6319 # 'pass_all' -- all dependencies passed with no checks.
6320 # 'test_compile' -- check by making test program.
6321 # 'file_magic [[regex]]' -- check by looking for files in library path
6322 # which responds to the $file_magic_cmd with a given extended regex.
6323 # If you have `file' or equivalent on your system and you're not sure
6324 # whether `pass_all' will *always* work, you probably want this one.
6328 lt_cv_deplibs_check_method=pass_all
6332 lt_cv_deplibs_check_method=pass_all
6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6337 lt_cv_file_magic_cmd='/usr/bin/file -L'
6338 lt_cv_file_magic_test_file=/shlib/libc.so
6342 # func_win32_libid is a shell function defined in ltmain.sh
6343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344 lt_cv_file_magic_cmd='func_win32_libid'
6348 # Base MSYS/MinGW do not provide the 'file' command needed by
6349 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6354 darwin* | rhapsody*)
6355 lt_cv_deplibs_check_method=pass_all
6358 freebsd* | dragonfly*)
6359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6362 # Not sure whether the presence of OpenBSD here was a mistake.
6363 # Let's accept both of them until this is cleared up.
6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365 lt_cv_file_magic_cmd=/usr/bin/file
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6370 lt_cv_deplibs_check_method=pass_all
6375 lt_cv_deplibs_check_method=pass_all
6378 hpux10.20* | hpux11*)
6379 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386 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]'
6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401 irix5* | irix6* | nonstopux*)
6403 *-32|*"-32 ") libmagic=32-bit;;
6404 *-n32|*"-n32 ") libmagic=N32;;
6405 *-64|*"-64 ") libmagic=64-bit;;
6406 *) libmagic=never-match;;
6408 lt_cv_deplibs_check_method=pass_all
6411 # This must be Linux ELF.
6412 linux* | k*bsd*-gnu)
6413 lt_cv_deplibs_check_method=pass_all
6416 netbsd* | netbsdelf*-gnu)
6417 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6431 lt_cv_deplibs_check_method=unknown
6435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442 osf3* | osf4* | osf5*)
6443 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_deplibs_check_method=pass_all
6451 case $host_vendor in
6453 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]'
6454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6457 lt_cv_deplibs_check_method=pass_all
6460 lt_cv_file_magic_cmd='/bin/file'
6461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6464 lt_cv_file_magic_cmd='/bin/file'
6465 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6466 lt_cv_file_magic_test_file=/lib/libc.so
6469 lt_cv_deplibs_check_method=pass_all
6472 lt_cv_deplibs_check_method=pass_all
6477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6478 lt_cv_deplibs_check_method=pass_all
6483 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6484 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6485 file_magic_cmd=$lt_cv_file_magic_cmd
6486 deplibs_check_method=$lt_cv_deplibs_check_method
6487 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6492 # If no C compiler was specified, use CC.
6495 # If no C compiler flags were specified, use CFLAGS.
6496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6498 # Allow CC to be a program name with arguments.
6501 # Check whether --enable-libtool-lock was given.
6502 if test "${enable_libtool_lock+set}" = set; then
6503 enableval=$enable_libtool_lock;
6506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6508 # Some flags need to be propagated to the compiler or linker for good
6512 # Find out which ABI we are using.
6513 echo 'int i;' > conftest.$ac_ext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; then
6519 case `/usr/bin/file conftest.$ac_objext` in
6531 # Find out which ABI we are using.
6532 echo '#line 6532 "configure"' > conftest.$ac_ext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6534 (eval $ac_compile) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; then
6538 if test "$lt_cv_prog_gnu_ld" = yes; then
6539 case `/usr/bin/file conftest.$ac_objext` in
6541 LD="${LD-ld} -melf32bsmip"
6544 LD="${LD-ld} -melf32bmipn32"
6547 LD="${LD-ld} -melf64bmip"
6551 case `/usr/bin/file conftest.$ac_objext` in
6567 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6568 # Find out which ABI we are using.
6569 echo 'int i;' > conftest.$ac_ext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; then
6575 case `/usr/bin/file conftest.o` in
6579 LD="${LD-ld} -m elf_i386"
6581 ppc64-*linux*|powerpc64-*linux*)
6582 LD="${LD-ld} -m elf32ppclinux"
6585 LD="${LD-ld} -m elf_s390"
6588 LD="${LD-ld} -m elf32_sparc"
6595 LD="${LD-ld} -m elf_x86_64"
6597 ppc*-*linux*|powerpc*-*linux*)
6598 LD="${LD-ld} -m elf64ppc"
6601 LD="${LD-ld} -m elf64_s390"
6604 LD="${LD-ld} -m elf64_sparc"
6614 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6615 SAVE_CFLAGS="$CFLAGS"
6616 CFLAGS="$CFLAGS -belf"
6617 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6618 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6619 if test "${lt_cv_cc_needs_belf+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cpp='$CPP $CPPFLAGS'
6624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_link") 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 lt_cv_cc_needs_belf=yes
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 lt_cv_cc_needs_belf=no
6685 rm -f core conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6688 ac_cpp='$CPP $CPPFLAGS'
6689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6695 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6696 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6697 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6698 CFLAGS="$SAVE_CFLAGS"
6702 # Find out which ABI we are using.
6703 echo 'int i;' > conftest.$ac_ext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; then
6709 case `/usr/bin/file conftest.o` in
6711 case $lt_cv_prog_gnu_ld in
6712 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6713 *) LD="${LD-ld} -64" ;;
6724 need_locks="$enable_libtool_lock"
6728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest.$ac_objext'
6777 { (case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_try") 2>&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_header_stdc=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_header_stdc=no
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 if test $ac_cv_header_stdc = yes; then
6797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808 $EGREP "memchr" >/dev/null 2>&1; then
6811 ac_cv_header_stdc=no
6817 if test $ac_cv_header_stdc = yes; then
6818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6819 cat >conftest.$ac_ext <<_ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829 $EGREP "free" >/dev/null 2>&1; then
6832 ac_cv_header_stdc=no
6838 if test $ac_cv_header_stdc = yes; then
6839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6840 if test "$cross_compiling" = yes; then
6843 cat >conftest.$ac_ext <<_ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6851 #if ((' ' & 0x0FF) == 0x020)
6852 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6853 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855 # define ISLOWER(c) \
6856 (('a' <= (c) && (c) <= 'i') \
6857 || ('j' <= (c) && (c) <= 'r') \
6858 || ('s' <= (c) && (c) <= 'z'))
6859 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6867 for (i = 0; i < 256; i++)
6868 if (XOR (islower (i), ISLOWER (i))
6869 || toupper (i) != TOUPPER (i))
6874 rm -f conftest$ac_exeext
6875 if { (ac_try="$ac_link"
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_link") 2>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6885 { (case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_try") 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6896 echo "$as_me: program exited with status $ac_status" >&5
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_header_stdc=no
6903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6909 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6910 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6911 if test $ac_cv_header_stdc = yes; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define STDC_HEADERS 1
6919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6929 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6930 inttypes.h stdint.h unistd.h
6932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6946 #include <$ac_header>
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6963 { (case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_try") 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_try") 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 eval "$as_ac_Header=yes"
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 eval "$as_ac_Header=no"
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 ac_res=`eval echo '${'$as_ac_Header'}'`
6993 { echo "$as_me:$LINENO: result: $ac_res" >&5
6994 echo "${ECHO_T}$ac_res" >&6; }
6995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6996 cat >>confdefs.h <<_ACEOF
6997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7006 for ac_header in dlfcn.h
7008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_res=`eval echo '${'$as_ac_Header'}'`
7016 { echo "$as_me:$LINENO: result: $ac_res" >&5
7017 echo "${ECHO_T}$ac_res" >&6; }
7019 # Is the header compilable?
7020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029 #include <$ac_header>
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7046 { (case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_try") 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_try") 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_header_compiler=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_header_compiler=no
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7075 echo "${ECHO_T}$ac_header_compiler" >&6; }
7077 # Is the header present?
7078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7080 cat >conftest.$ac_ext <<_ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 #include <$ac_header>
7088 if { (ac_try="$ac_cpp conftest.$ac_ext"
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } >/dev/null; then
7101 if test -s conftest.err; then
7102 ac_cpp_err=$ac_c_preproc_warn_flag
7103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7110 if test -z "$ac_cpp_err"; then
7111 ac_header_preproc=yes
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_header_preproc=no
7119 rm -f conftest.err conftest.$ac_ext
7120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7121 echo "${ECHO_T}$ac_header_preproc" >&6; }
7123 # So? What about this header?
7124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7130 ac_header_preproc=yes
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7146 ## ------------------------------- ##
7147 ## Report this to nfs@lists.sf.net ##
7148 ## ------------------------------- ##
7150 ) | sed "s/^/$as_me: WARNING: /" >&2
7153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 eval "$as_ac_Header=\$ac_header_preproc"
7160 ac_res=`eval echo '${'$as_ac_Header'}'`
7161 { echo "$as_me:$LINENO: result: $ac_res" >&5
7162 echo "${ECHO_T}$ac_res" >&6; }
7165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7166 cat >>confdefs.h <<_ACEOF
7167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7178 (test "X$CXX" != "Xg++"))) ; then
7180 ac_cpp='$CXXCPP $CPPFLAGS'
7181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7184 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7185 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7186 if test -z "$CXXCPP"; then
7187 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 # Double quotes because CXXCPP needs to be expanded
7191 for CXXCPP in "$CXX -E" "/lib/cpp"
7194 for ac_cxx_preproc_warn_flag in '' yes
7196 # Use a header file that comes with gcc, so configuring glibc
7197 # with a fresh cross-compiler works.
7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 # <limits.h> exists even on freestanding compilers.
7200 # On the NeXT, cc -E runs the code through the compiler's parser,
7201 # not just through cpp. "Syntax error" is here to catch this case.
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7209 # include <limits.h>
7211 # include <assert.h>
7215 if { (ac_try="$ac_cpp conftest.$ac_ext"
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_cxx_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7237 if test -z "$ac_cpp_err"; then
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 # Broken: fails on valid input.
7247 rm -f conftest.err conftest.$ac_ext
7249 # OK, works on sane cases. Now check whether nonexistent headers
7250 # can be detected and how.
7251 cat >conftest.$ac_ext <<_ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 #include <ac_nonexistent.h>
7259 if { (ac_try="$ac_cpp conftest.$ac_ext"
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev/null; then
7272 if test -s conftest.err; then
7273 ac_cpp_err=$ac_cxx_preproc_warn_flag
7274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7281 if test -z "$ac_cpp_err"; then
7282 # Broken: success on invalid input.
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 # Passes both tests.
7293 rm -f conftest.err conftest.$ac_ext
7296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297 rm -f conftest.err conftest.$ac_ext
7298 if $ac_preproc_ok; then
7303 ac_cv_prog_CXXCPP=$CXXCPP
7306 CXXCPP=$ac_cv_prog_CXXCPP
7308 ac_cv_prog_CXXCPP=$CXXCPP
7310 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7311 echo "${ECHO_T}$CXXCPP" >&6; }
7313 for ac_cxx_preproc_warn_flag in '' yes
7315 # Use a header file that comes with gcc, so configuring glibc
7316 # with a fresh cross-compiler works.
7317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 # <limits.h> exists even on freestanding compilers.
7319 # On the NeXT, cc -E runs the code through the compiler's parser,
7320 # not just through cpp. "Syntax error" is here to catch this case.
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7328 # include <limits.h>
7330 # include <assert.h>
7334 if { (ac_try="$ac_cpp conftest.$ac_ext"
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } >/dev/null; then
7347 if test -s conftest.err; then
7348 ac_cpp_err=$ac_cxx_preproc_warn_flag
7349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7356 if test -z "$ac_cpp_err"; then
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 # Broken: fails on valid input.
7366 rm -f conftest.err conftest.$ac_ext
7368 # OK, works on sane cases. Now check whether nonexistent headers
7369 # can be detected and how.
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <ac_nonexistent.h>
7378 if { (ac_try="$ac_cpp conftest.$ac_ext"
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } >/dev/null; then
7391 if test -s conftest.err; then
7392 ac_cpp_err=$ac_cxx_preproc_warn_flag
7393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7400 if test -z "$ac_cpp_err"; then
7401 # Broken: success on invalid input.
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 # Passes both tests.
7412 rm -f conftest.err conftest.$ac_ext
7415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7416 rm -f conftest.err conftest.$ac_ext
7417 if $ac_preproc_ok; then
7420 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7421 See \`config.log' for more details." >&5
7422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7423 See \`config.log' for more details." >&2;}
7424 { (exit 1); exit 1; }; }
7428 ac_cpp='$CXXCPP $CPPFLAGS'
7429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7437 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7438 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7440 if test -n "$ac_tool_prefix"; then
7441 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_prog_F77+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 if test -n "$F77"; then
7451 ac_cv_prog_F77="$F77" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 if test -n "$F77"; then
7472 { echo "$as_me:$LINENO: result: $F77" >&5
7473 echo "${ECHO_T}$F77" >&6; }
7475 { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7480 test -n "$F77" && break
7483 if test -z "$F77"; then
7485 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7487 # Extract the first word of "$ac_prog", so it can be a program name with args.
7488 set dummy $ac_prog; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 if test -n "$ac_ct_F77"; then
7495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_F77="$ac_prog"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7515 if test -n "$ac_ct_F77"; then
7516 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7517 echo "${ECHO_T}$ac_ct_F77" >&6; }
7519 { echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6; }
7524 test -n "$ac_ct_F77" && break
7527 if test "x$ac_ct_F77" = x; then
7530 case $cross_compiling:$ac_tool_warned in
7532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet. If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&5
7535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7536 whose name does not start with the host triplet. If you think this
7537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7538 ac_tool_warned=yes ;;
7545 # Provide some information about the compiler.
7546 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7547 ac_compiler=`set X $ac_compile; echo $2`
7548 { (ac_try="$ac_compiler --version >&5"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_compiler --version >&5") 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }
7558 { (ac_try="$ac_compiler -v >&5"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compiler -v >&5") 2>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }
7568 { (ac_try="$ac_compiler -V >&5"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compiler -V >&5") 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }
7580 # If we don't use `.F' as extension, the preprocessor is not run on the
7581 # input file. (Note that this only needs to work for GNU compilers.)
7584 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7585 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7586 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7612 { (case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_try") 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_try") 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7643 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7644 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7646 ac_test_FFLAGS=${FFLAGS+set}
7647 ac_save_FFLAGS=$FFLAGS
7649 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_f77_g+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 cat >conftest.$ac_ext <<_ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7675 { (case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_try") 2>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest.$ac_objext'
7685 { (case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_try") 2>&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_prog_f77_g=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7706 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7707 if test "$ac_test_FFLAGS" = set; then
7708 FFLAGS=$ac_save_FFLAGS
7709 elif test $ac_cv_prog_f77_g = yes; then
7710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7716 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7723 G77=`test $ac_compiler_gnu = yes && echo yes`
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7734 # find the maximum length of command line arguments
7735 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 # On DJGPP, this test can blow up pretty badly due to problems in libc
7746 # (any single argument exceeding 2000 bytes causes a buffer overrun
7747 # during glob expansion). Even if it were fixed, the result of this
7748 # check would be larger than it should be.
7749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7753 # Under GNU Hurd, this test is not required because there is
7754 # no limit to the length of command line arguments.
7755 # Libtool will interpret -1 as no limit whatsoever
7756 lt_cv_sys_max_cmd_len=-1;
7760 # On Win9x/ME, this test blows up -- it succeeds, but takes
7761 # about 5 minutes as the teststring grows exponentially.
7762 # Worse, since 9x/ME are not pre-emptively multitasking,
7763 # you end up with a "frozen" computer, even though with patience
7764 # the test eventually succeeds (with a max line length of 256k).
7765 # Instead, let's just punt: use the minimum linelength reported by
7766 # all of the supported platforms: 8192 (on NT/2K/XP).
7767 lt_cv_sys_max_cmd_len=8192;
7771 # On AmigaOS with pdksh, this test takes hours, literally.
7772 # So we just punt and use a minimum line length of 8192.
7773 lt_cv_sys_max_cmd_len=8192;
7776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7777 # This has been around since 386BSD, at least. Likely further.
7778 if test -x /sbin/sysctl; then
7779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7780 elif test -x /usr/sbin/sysctl; then
7781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7785 # And add a safety zone
7786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7792 lt_cv_sys_max_cmd_len=196608
7796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7798 # nice to cause kernel panics so lets avoid the loop below.
7799 # First set a reasonable default.
7800 lt_cv_sys_max_cmd_len=16384
7802 if test -x /sbin/sysconfig; then
7803 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7809 lt_cv_sys_max_cmd_len=102400
7811 sysv5* | sco5v6* | sysv4.2uw2*)
7812 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7813 if test -n "$kargmax"; then
7814 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7816 lt_cv_sys_max_cmd_len=32768
7820 # If test is not a shell built-in, we'll probably end up computing a
7821 # maximum length that is only half of the actual maximum length, but
7823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7824 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7825 = "XX$teststring") >/dev/null 2>&1 &&
7826 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7827 lt_cv_sys_max_cmd_len=$new_result &&
7828 test $i != 17 # 1/2 MB should be enough
7831 teststring=$teststring$teststring
7834 # Add a significant safety factor because C++ compilers can tack on massive
7835 # amounts of additional arguments before passing them to the linker.
7836 # It appears as though 1/2 is a usable value.
7837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7843 if test -n $lt_cv_sys_max_cmd_len ; then
7844 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7845 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7847 { echo "$as_me:$LINENO: result: none" >&5
7848 echo "${ECHO_T}none" >&6; }
7854 # Check for command to grab the raw symbol name followed by C symbol from nm.
7855 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7856 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7857 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 # These are sane defaults that work on at least a few old systems.
7862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7864 # Character class describing NM global symbol codes.
7865 symcode='[BCDEGRST]'
7867 # Regexp to match symbols that can be accessed directly from C.
7868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7870 # Transform an extracted symbol line into a proper C declaration
7871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7873 # Transform an extracted symbol line into symbol name and symbol address
7874 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'"
7876 # Define system-specific variables.
7881 cygwin* | mingw* | pw32*)
7882 symcode='[ABCDGISTW]'
7884 hpux*) # Its linker distinguishes data from code symbols
7885 if test "$host_cpu" = ia64; then
7886 symcode='[ABCDEGRST]'
7888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7889 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'"
7891 linux* | k*bsd*-gnu)
7892 if test "$host_cpu" = ia64; then
7893 symcode='[ABCDGIRSTW]'
7894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7895 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'"
7899 symcode='[BCDEGRST]'
7902 symcode='[BCDEGQRST]'
7913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7921 # Handle CRLF in mingw tool chain
7925 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7929 # If we're using GNU nm, then use its standard symbol codes.
7930 case `$NM -V 2>&1` in
7931 *GNU* | *'with BFD'*)
7932 symcode='[ABCDGIRSTW]' ;;
7935 # Try without a prefix undercore, then with it.
7936 for ac_symprfx in "" "_"; do
7938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7939 symxfrm="\\1 $ac_symprfx\\2 \\2"
7941 # Write the raw and C identifiers.
7942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7944 # Check to see that the pipe works correctly.
7948 cat > conftest.$ac_ext <<EOF
7953 void nm_test_func(){}
7957 int main(){nm_test_var='a';nm_test_func();return(0);}
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; then
7965 # Now try to grab the symbols.
7967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && test -s "$nlist"; then
7972 # Try sorting and uniquifying the output.
7973 if sort "$nlist" | uniq > "$nlist"T; then
7974 mv -f "$nlist"T "$nlist"
7979 # Make sure that we snagged all the symbols we need.
7980 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7981 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7982 cat <<EOF > conftest.$ac_ext
7988 # Now generate the symbol file.
7989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7991 cat <<EOF >> conftest.$ac_ext
7992 #if defined (__STDC__) && __STDC__
7993 # define lt_ptr_t void *
7995 # define lt_ptr_t char *
7999 /* The mapping between symbol names and symbols. */
8004 lt_preloaded_symbols[] =
8007 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8008 cat <<\EOF >> conftest.$ac_ext
8016 # Now try linking the two files.
8017 mv conftest.$ac_objext conftstm.$ac_objext
8018 lt_save_LIBS="$LIBS"
8019 lt_save_CFLAGS="$CFLAGS"
8020 LIBS="conftstm.$ac_objext"
8021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8029 LIBS="$lt_save_LIBS"
8030 CFLAGS="$lt_save_CFLAGS"
8032 echo "cannot find nm_test_func in $nlist" >&5
8035 echo "cannot find nm_test_var in $nlist" >&5
8038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8041 echo "$progname: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 rm -f conftest* conftst*
8046 # Do not use the global_symbol_pipe unless it works.
8047 if test "$pipe_works" = yes; then
8050 lt_cv_sys_global_symbol_pipe=
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057 lt_cv_sys_global_symbol_to_cdecl=
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060 { echo "$as_me:$LINENO: result: failed" >&5
8061 echo "${ECHO_T}failed" >&6; }
8063 { echo "$as_me:$LINENO: result: ok" >&5
8064 echo "${ECHO_T}ok" >&6; }
8067 { echo "$as_me:$LINENO: checking for objdir" >&5
8068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8069 if test "${lt_cv_objdir+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 rm -f .libs 2>/dev/null
8073 mkdir .libs 2>/dev/null
8074 if test -d .libs; then
8077 # MS-DOS does not allow filenames that begin with a dot.
8080 rmdir .libs 2>/dev/null
8082 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8083 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8084 objdir=$lt_cv_objdir
8092 # AIX sometimes has problems with the GCC collect2 program. For some
8093 # reason, if we set the COLLECT_NAMES environment variable, the problems
8094 # vanish in a puff of smoke.
8095 if test "X${COLLECT_NAMES+set}" != Xset; then
8097 export COLLECT_NAMES
8102 # Sed substitution that helps us do robust quoting. It backslashifies
8103 # metacharacters that are still active within double-quoted strings.
8104 Xsed='sed -e 1s/^X//'
8105 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8107 # Same as above, but do not quote variable references.
8108 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8110 # Sed substitution to delay expansion of an escaped shell variable in a
8111 # double_quote_subst'ed string.
8112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8114 # Sed substitution to avoid accidental globbing in evaled expressions
8115 no_glob_subst='s/\*/\\\*/g'
8121 default_ofile=libtool
8122 can_build_shared=yes
8124 # All known linkers require a `.a' archive for static linking (except MSVC,
8125 # which needs '.lib').
8127 ltmain="$ac_aux_dir/ltmain.sh"
8128 ofile="$default_ofile"
8129 with_gnu_ld="$lt_cv_prog_gnu_ld"
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}ar; ac_word=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_prog_AR+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 if test -n "$AR"; then
8140 ac_cv_prog_AR="$AR" # Let the user override the test.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_AR="${ac_tool_prefix}ar"
8150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 if test -n "$AR"; then
8161 { echo "$as_me:$LINENO: result: $AR" >&5
8162 echo "${ECHO_T}$AR" >&6; }
8164 { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8170 if test -z "$ac_cv_prog_AR"; then
8172 # Extract the first word of "ar", so it can be a program name with args.
8173 set dummy ar; ac_word=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 if test -n "$ac_ct_AR"; then
8180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_ac_ct_AR="ar"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8200 if test -n "$ac_ct_AR"; then
8201 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8202 echo "${ECHO_T}$ac_ct_AR" >&6; }
8204 { echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6; }
8208 if test "x$ac_ct_AR" = x; then
8211 case $cross_compiling:$ac_tool_warned in
8213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8214 whose name does not start with the host triplet. If you think this
8215 configuration is useful to you, please write to autoconf@gnu.org." >&5
8216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8217 whose name does not start with the host triplet. If you think this
8218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8219 ac_tool_warned=yes ;;
8227 if test -n "$ac_tool_prefix"; then
8228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8232 if test "${ac_cv_prog_RANLIB+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 if test -n "$RANLIB"; then
8236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 RANLIB=$ac_cv_prog_RANLIB
8256 if test -n "$RANLIB"; then
8257 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8258 echo "${ECHO_T}$RANLIB" >&6; }
8260 { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8266 if test -z "$ac_cv_prog_RANLIB"; then
8267 ac_ct_RANLIB=$RANLIB
8268 # Extract the first word of "ranlib", so it can be a program name with args.
8269 set dummy ranlib; ac_word=$2
8270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 if test -n "$ac_ct_RANLIB"; then
8276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_ac_ct_RANLIB="ranlib"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8296 if test -n "$ac_ct_RANLIB"; then
8297 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8298 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8300 { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8304 if test "x$ac_ct_RANLIB" = x; then
8307 case $cross_compiling:$ac_tool_warned in
8309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8310 whose name does not start with the host triplet. If you think this
8311 configuration is useful to you, please write to autoconf@gnu.org." >&5
8312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8313 whose name does not start with the host triplet. If you think this
8314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8315 ac_tool_warned=yes ;;
8317 RANLIB=$ac_ct_RANLIB
8320 RANLIB="$ac_cv_prog_RANLIB"
8323 if test -n "$ac_tool_prefix"; then
8324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}strip; ac_word=$2
8326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8328 if test "${ac_cv_prog_STRIP+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 if test -n "$STRIP"; then
8332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 STRIP=$ac_cv_prog_STRIP
8352 if test -n "$STRIP"; then
8353 { echo "$as_me:$LINENO: result: $STRIP" >&5
8354 echo "${ECHO_T}$STRIP" >&6; }
8356 { echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6; }
8362 if test -z "$ac_cv_prog_STRIP"; then
8364 # Extract the first word of "strip", so it can be a program name with args.
8365 set dummy strip; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 if test -n "$ac_ct_STRIP"; then
8372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_prog_ac_ct_STRIP="strip"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8392 if test -n "$ac_ct_STRIP"; then
8393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8394 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8396 { echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6; }
8400 if test "x$ac_ct_STRIP" = x; then
8403 case $cross_compiling:$ac_tool_warned in
8405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8406 whose name does not start with the host triplet. If you think this
8407 configuration is useful to you, please write to autoconf@gnu.org." >&5
8408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8409 whose name does not start with the host triplet. If you think this
8410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8411 ac_tool_warned=yes ;;
8416 STRIP="$ac_cv_prog_STRIP"
8421 old_CFLAGS="$CFLAGS"
8423 # Set sane defaults for various variables
8424 test -z "$AR" && AR=ar
8425 test -z "$AR_FLAGS" && AR_FLAGS=cru
8426 test -z "$AS" && AS=as
8427 test -z "$CC" && CC=cc
8428 test -z "$LTCC" && LTCC=$CC
8429 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8430 test -z "$DLLTOOL" && DLLTOOL=dlltool
8431 test -z "$LD" && LD=ld
8432 test -z "$LN_S" && LN_S="ln -s"
8433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8434 test -z "$NM" && NM=nm
8435 test -z "$SED" && SED=sed
8436 test -z "$OBJDUMP" && OBJDUMP=objdump
8437 test -z "$RANLIB" && RANLIB=:
8438 test -z "$STRIP" && STRIP=:
8439 test -z "$ac_objext" && ac_objext=o
8441 # Determine commands to create old-style static archives.
8442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8443 old_postinstall_cmds='chmod 644 $oldlib'
8444 old_postuninstall_cmds=
8446 if test -n "$RANLIB"; then
8449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8458 for cc_temp in $compiler""; do
8460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8469 # Only perform the check for file, if the check method requires it
8470 case $deplibs_check_method in
8472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8473 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8474 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8483 lt_save_MAGIC_CMD="$MAGIC_CMD"
8484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8486 for ac_dir in $ac_dummy; do
8488 test -z "$ac_dir" && ac_dir=.
8489 if test -f $ac_dir/${ac_tool_prefix}file; then
8490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8491 if test -n "$file_magic_test_file"; then
8492 case $deplibs_check_method in
8494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8497 $EGREP "$file_magic_regex" > /dev/null; then
8502 *** Warning: the command libtool uses to detect shared libraries,
8503 *** $file_magic_cmd, produces output that libtool cannot recognize.
8504 *** The result is that libtool may fail to recognize shared libraries
8505 *** as such. This will affect the creation of libtool libraries that
8506 *** depend on shared libraries, but programs linked with such libtool
8507 *** libraries will work regardless of this problem. Nevertheless, you
8508 *** may want to report the problem to your system manager and/or to
8509 *** bug-libtool@gnu.org
8519 MAGIC_CMD="$lt_save_MAGIC_CMD"
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if test -n "$MAGIC_CMD"; then
8526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8527 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8529 { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8533 if test -z "$lt_cv_path_MAGIC_CMD"; then
8534 if test -n "$ac_tool_prefix"; then
8535 { echo "$as_me:$LINENO: checking for file" >&5
8536 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8545 lt_save_MAGIC_CMD="$MAGIC_CMD"
8546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548 for ac_dir in $ac_dummy; do
8550 test -z "$ac_dir" && ac_dir=.
8551 if test -f $ac_dir/file; then
8552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8553 if test -n "$file_magic_test_file"; then
8554 case $deplibs_check_method in
8556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559 $EGREP "$file_magic_regex" > /dev/null; then
8564 *** Warning: the command libtool uses to detect shared libraries,
8565 *** $file_magic_cmd, produces output that libtool cannot recognize.
8566 *** The result is that libtool may fail to recognize shared libraries
8567 *** as such. This will affect the creation of libtool libraries that
8568 *** depend on shared libraries, but programs linked with such libtool
8569 *** libraries will work regardless of this problem. Nevertheless, you
8570 *** may want to report the problem to your system manager and/or to
8571 *** bug-libtool@gnu.org
8581 MAGIC_CMD="$lt_save_MAGIC_CMD"
8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587 if test -n "$MAGIC_CMD"; then
8588 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8589 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8591 { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8607 # Check whether --enable-libtool-lock was given.
8608 if test "${enable_libtool_lock+set}" = set; then
8609 enableval=$enable_libtool_lock;
8612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8615 # Check whether --with-pic was given.
8616 if test "${with_pic+set}" = set; then
8617 withval=$with_pic; pic_mode="$withval"
8622 test -z "$pic_mode" && pic_mode=default
8624 # Use C for the default configuration in the libtool script
8628 ac_cpp='$CPP $CPPFLAGS'
8629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634 # Source file extension for C test sources.
8637 # Object file extension for compiled C test sources.
8641 # Code to be used in simple compile tests
8642 lt_simple_compile_test_code="int some_variable = 0;\n"
8644 # Code to be used in simple link tests
8645 lt_simple_link_test_code='int main(){return(0);}\n'
8648 # If no C compiler was specified, use CC.
8651 # If no C compiler flags were specified, use CFLAGS.
8652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8654 # Allow CC to be a program name with arguments.
8658 # save warnings/boilerplate of simple test code
8659 ac_outfile=conftest.$ac_objext
8660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662 _lt_compiler_boilerplate=`cat conftest.err`
8665 ac_outfile=conftest.$ac_objext
8666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668 _lt_linker_boilerplate=`cat conftest.err`
8673 lt_prog_compiler_no_builtin_flag=
8675 if test "$GCC" = yes; then
8676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 lt_cv_prog_compiler_rtti_exceptions=no
8685 ac_outfile=conftest.$ac_objext
8686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8687 lt_compiler_flag="-fno-rtti -fno-exceptions"
8688 # Insert the option either (1) after the last *FLAGS variable, or
8689 # (2) before a word containing "conftest.", or (3) at the end.
8690 # Note that $ac_compile itself does not contain backslashes and begins
8691 # with a dollar sign (not a hyphen), so the echo should work correctly.
8692 # The option is referenced via a variable to avoid confusing sed.
8693 lt_compile=`echo "$ac_compile" | $SED \
8694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696 -e 's:$: $lt_compiler_flag:'`
8697 (eval echo "\"\$as_me:8697: $lt_compile\"" >&5)
8698 (eval "$lt_compile" 2>conftest.err)
8700 cat conftest.err >&5
8701 echo "$as_me:8701: \$? = $ac_status" >&5
8702 if (exit $ac_status) && test -s "$ac_outfile"; then
8703 # The compiler can only warn and ignore the option if not recognized
8704 # So say no if there are warnings other than the usual output.
8705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8708 lt_cv_prog_compiler_rtti_exceptions=yes
8714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8725 lt_prog_compiler_wl=
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_static=
8729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8732 if test "$GCC" = yes; then
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_static='-static'
8738 # All AIX code is PIC.
8739 if test "$host_cpu" = ia64; then
8740 # AIX 5 now supports IA64 processor
8741 lt_prog_compiler_static='-Bstatic'
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8753 # PIC is the default for these OSes.
8756 mingw* | pw32* | os2*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic='-DDLL_EXPORT'
8762 darwin* | rhapsody*)
8763 # PIC is the default on this platform
8764 # Common symbols not allowed in MH_DYLIB files
8765 lt_prog_compiler_pic='-fno-common'
8769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8770 # Instead, we relocate shared libraries at runtime.
8774 # Just because we use GCC doesn't mean we suddenly get shared libraries
8775 # on systems that don't support them.
8776 lt_prog_compiler_can_build_shared=no
8781 if test -d /usr/nec; then
8782 lt_prog_compiler_pic=-Kconform_pic
8787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8794 lt_prog_compiler_pic='-fPIC'
8800 lt_prog_compiler_pic='-fPIC'
8804 # PORTME Check for flag to pass linker flags through the system compiler.
8807 lt_prog_compiler_wl='-Wl,'
8808 if test "$host_cpu" = ia64; then
8809 # AIX 5 now supports IA64 processor
8810 lt_prog_compiler_static='-Bstatic'
8812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8816 # PIC is the default on this platform
8817 # Common symbols not allowed in MH_DYLIB files
8818 case $cc_basename in
8820 lt_prog_compiler_pic='-qnocommon'
8821 lt_prog_compiler_wl='-Wl,'
8826 mingw* | pw32* | os2*)
8827 # This hack is so that the source file can tell whether it is being
8828 # built for inclusion in a dll (and should export symbols for example).
8829 lt_prog_compiler_pic='-DDLL_EXPORT'
8832 hpux9* | hpux10* | hpux11*)
8833 lt_prog_compiler_wl='-Wl,'
8834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8841 lt_prog_compiler_pic='+Z'
8844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8845 lt_prog_compiler_static='${wl}-a ${wl}archive'
8848 irix5* | irix6* | nonstopux*)
8849 lt_prog_compiler_wl='-Wl,'
8850 # PIC (with -KPIC) is the default.
8851 lt_prog_compiler_static='-non_shared'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8859 linux* | k*bsd*-gnu)
8860 case $cc_basename in
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-static'
8866 pgcc* | pgf77* | pgf90* | pgf95*)
8867 # Portland Group compilers (*not* the Pentium gcc compiler,
8868 # which looks to be a dead project)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='-fpic'
8871 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8875 # All Alpha code is PIC.
8876 lt_prog_compiler_static='-non_shared'
8881 osf3* | osf4* | osf5*)
8882 lt_prog_compiler_wl='-Wl,'
8883 # All OSF/1 code is PIC.
8884 lt_prog_compiler_static='-non_shared'
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8890 case $cc_basename in
8892 lt_prog_compiler_wl='-Qoption ld ';;
8894 lt_prog_compiler_wl='-Wl,';;
8899 lt_prog_compiler_wl='-Qoption ld '
8900 lt_prog_compiler_pic='-PIC'
8901 lt_prog_compiler_static='-Bstatic'
8904 sysv4 | sysv4.2uw2* | sysv4.3*)
8905 lt_prog_compiler_wl='-Wl,'
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8911 if test -d /usr/nec ;then
8912 lt_prog_compiler_pic='-Kconform_pic'
8913 lt_prog_compiler_static='-Bstatic'
8917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_can_build_shared=no
8929 lt_prog_compiler_pic='-pic'
8930 lt_prog_compiler_static='-Bstatic'
8934 lt_prog_compiler_can_build_shared=no
8939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8943 # Check to make sure the PIC flag actually works.
8945 if test -n "$lt_prog_compiler_pic"; then
8947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8949 if test "${lt_prog_compiler_pic_works+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 lt_prog_compiler_pic_works=no
8953 ac_outfile=conftest.$ac_objext
8954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 # The option is referenced via a variable to avoid confusing sed.
8961 lt_compile=`echo "$ac_compile" | $SED \
8962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964 -e 's:$: $lt_compiler_flag:'`
8965 (eval echo "\"\$as_me:8965: $lt_compile\"" >&5)
8966 (eval "$lt_compile" 2>conftest.err)
8968 cat conftest.err >&5
8969 echo "$as_me:8969: \$? = $ac_status" >&5
8970 if (exit $ac_status) && test -s "$ac_outfile"; then
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings other than the usual output.
8973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976 lt_prog_compiler_pic_works=yes
8982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8985 if test x"$lt_prog_compiler_pic_works" = xyes; then
8986 case $lt_prog_compiler_pic in
8988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8991 lt_prog_compiler_pic=
8992 lt_prog_compiler_can_build_shared=no
8997 # For platforms which do not support PIC, -DPIC is meaningless:
8999 lt_prog_compiler_pic=
9002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9007 # Check to make sure the static flag actually works.
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9012 if test "${lt_prog_compiler_static_works+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 lt_prog_compiler_static_works=no
9016 save_LDFLAGS="$LDFLAGS"
9017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020 # The linker can only warn and ignore the option if not recognized
9021 # So say no if there are warnings
9022 if test -s conftest.err; then
9023 # Append any errors to the config.log.
9024 cat conftest.err 1>&5
9025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027 if diff conftest.exp conftest.er2 >/dev/null; then
9028 lt_prog_compiler_static_works=yes
9031 lt_prog_compiler_static_works=yes
9035 LDFLAGS="$save_LDFLAGS"
9038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9041 if test x"$lt_prog_compiler_static_works" = xyes; then
9044 lt_prog_compiler_static=
9048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 lt_cv_prog_compiler_c_o=no
9054 $rm -r conftest 2>/dev/null
9058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9060 lt_compiler_flag="-o out/conftest2.$ac_objext"
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 lt_compile=`echo "$ac_compile" | $SED \
9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068 -e 's:$: $lt_compiler_flag:'`
9069 (eval echo "\"\$as_me:9069: $lt_compile\"" >&5)
9070 (eval "$lt_compile" 2>out/conftest.err)
9072 cat out/conftest.err >&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9081 lt_cv_prog_compiler_c_o=yes
9086 # SGI C++ compiler will create directory out/ii_files/ for
9087 # template instantiation
9088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9089 $rm out/* && rmdir out
9095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9099 hard_links="nottested"
9100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9101 # do not overwrite the value of need_locks provided by the user
9102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9108 ln conftest.a conftest.b 2>&5 || hard_links=no
9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110 { echo "$as_me:$LINENO: result: $hard_links" >&5
9111 echo "${ECHO_T}$hard_links" >&6; }
9112 if test "$hard_links" = no; then
9113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9125 allow_undefined_flag=
9126 enable_shared_with_static_runtimes=no
9128 archive_expsym_cmds=
9129 old_archive_From_new_cmds=
9130 old_archive_from_expsyms_cmds=
9131 export_dynamic_flag_spec=
9132 whole_archive_flag_spec=
9133 thread_safe_flag_spec=
9134 hardcode_libdir_flag_spec=
9135 hardcode_libdir_flag_spec_ld=
9136 hardcode_libdir_separator=
9139 hardcode_shlibpath_var=unsupported
9140 link_all_deplibs=unknown
9141 hardcode_automatic=no
9144 always_export_symbols=no
9145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9146 # include_expsyms should be a list of space-separated symbols to be *always*
9147 # included in the symbol list
9149 # exclude_expsyms can be an extended regexp of symbols to exclude
9150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9152 # as well as any symbol that contains `d'.
9153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9155 # platforms (ab)use it in PIC code, but their linkers get confused if
9156 # the symbol is explicitly referenced. Since portable code cannot
9157 # rely on this symbol name, it's probably fine to never include it in
9158 # preloaded symbol tables.
9159 extract_expsyms_cmds=
9160 # Just being paranoid about ensuring that cc_basename is set.
9161 for cc_temp in $compiler""; do
9163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9172 cygwin* | mingw* | pw32*)
9173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9174 # When not using gcc, we currently assume that we are using
9175 # Microsoft Visual C++.
9176 if test "$GCC" != yes; then
9181 # we just hope/assume this is gcc and not c89 (= MSVC++)
9190 if test "$with_gnu_ld" = yes; then
9191 # If archive_cmds runs LD, not CC, wlarc should be empty
9194 # Set some defaults for GNU ld with shared library support. These
9195 # are reset later if shared libraries are not supported. Putting them
9196 # here allows them to be overridden if necessary.
9197 runpath_var=LD_RUN_PATH
9198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9199 export_dynamic_flag_spec='${wl}--export-dynamic'
9200 # ancient GNU ld didn't support --whole-archive et. al.
9201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9204 whole_archive_flag_spec=
9206 supports_anon_versioning=no
9207 case `$LD -v 2>/dev/null` in
9208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9211 *\ 2.11.*) ;; # other 2.11 versions
9212 *) supports_anon_versioning=yes ;;
9215 # See if GNU ld supports shared libraries.
9217 aix3* | aix4* | aix5*)
9218 # On AIX/PPC, the GNU linker is very broken
9219 if test "$host_cpu" != ia64; then
9223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9224 *** to be unable to reliably create shared libraries on AIX.
9225 *** Therefore, libtool is disabling shared libraries support. If you
9226 *** really care for shared libraries, you may want to modify your PATH
9227 *** so that a non-GNU linker is found, and then restart.
9234 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)'
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_minus_L=yes
9238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9239 # that the semantics of dynamic libraries on AmigaOS, at least up
9240 # to version 4, is to share data among multiple programs linked
9241 # with the same dynamic library. Since this doesn't match the
9242 # behavior of shared libraries on other platforms, we can't use
9248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9249 allow_undefined_flag=unsupported
9250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9251 # support --undefined. This deserves some investigation. FIXME
9252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 cygwin* | mingw* | pw32*)
9259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9260 # as there is no search path for DLLs.
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 allow_undefined_flag=unsupported
9263 always_export_symbols=no
9264 enable_shared_with_static_runtimes=yes
9265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9269 # If the export-symbols file already is a .def file (1st line
9270 # is EXPORTS), use it as is; otherwise, prepend...
9271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9272 cp $export_symbols $output_objdir/$soname.def;
9274 echo EXPORTS > $output_objdir/$soname.def;
9275 cat $export_symbols >> $output_objdir/$soname.def;
9277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9285 hardcode_shlibpath_var=no
9286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287 export_dynamic_flag_spec='${wl}-E'
9288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9289 # Instead, shared libraries are loaded at an image base (0x10000000 by
9290 # default) and relocated if they conflict, which is a slow very memory
9291 # consuming and fragmenting process. To avoid this, we pick a random,
9292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9295 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'
9298 linux* | k*bsd*-gnu)
9299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9301 case $cc_basename,$host_cpu in
9302 pgcc*) # Portland Group C compiler
9303 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'
9304 tmp_addflag=' $pic_flag'
9306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9307 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'
9308 tmp_addflag=' $pic_flag -Mnomain' ;;
9309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9310 tmp_addflag=' -i_dynamic' ;;
9311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9312 tmp_addflag=' -i_dynamic -nofor_main' ;;
9313 ifc* | ifort*) # Intel Fortran compiler
9314 tmp_addflag=' -nofor_main' ;;
9316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318 if test $supports_anon_versioning = yes; then
9319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321 $echo "local: *; };" >> $output_objdir/$libname.ver~
9322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 netbsd* | netbsdelf*-gnu)
9331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9332 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9346 *** create shared libraries on Solaris systems. Therefore, libtool
9347 *** is disabling shared libraries support. We urge you to upgrade GNU
9348 *** binutils to release 2.9.1 or newer. Another option is to modify
9349 *** your PATH or compiler configuration so that the native linker is
9350 *** used, and then restart.
9353 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9362 case `$LD -v 2>&1` in
9363 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9368 *** reliably create shared libraries on SCO systems. Therefore, libtool
9369 *** is disabling shared libraries support. We urge you to upgrade GNU
9370 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9371 *** your PATH or compiler configuration so that the native linker is
9372 *** used, and then restart.
9377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9378 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9389 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
9396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 if test "$ld_shlibs" = no; then
9407 hardcode_libdir_flag_spec=
9408 export_dynamic_flag_spec=
9409 whole_archive_flag_spec=
9412 # PORTME fill in a description of your system's linker (not GNU ld)
9415 allow_undefined_flag=unsupported
9416 always_export_symbols=yes
9417 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'
9418 # Note: this linker hardcodes the directories in LIBPATH if there
9419 # are no directories specified by -L.
9420 hardcode_minus_L=yes
9421 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9422 # Neither direct hardcoding nor static linking is supported with a
9424 hardcode_direct=unsupported
9429 if test "$host_cpu" = ia64; then
9430 # On IA64, the linker does run time linking by default, so we don't
9431 # have to do anything special.
9432 aix_use_runtimelinking=no
9433 exp_sym_flag='-Bexport'
9436 # If we're using GNU nm, then we don't want the "-C" option.
9437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9438 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9439 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'
9441 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'
9443 aix_use_runtimelinking=no
9445 # Test if we are trying to use run time linking or normal
9446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9447 # need to do runtime linking.
9448 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9449 for ld_flag in $LDFLAGS; do
9450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9451 aix_use_runtimelinking=yes
9458 exp_sym_flag='-bexport'
9459 no_entry_flag='-bnoentry'
9462 # When large executables or shared objects are built, AIX ld can
9463 # have problems creating the table of contents. If linking a library
9464 # or program results in "error TOC overflow" add -mminimal-toc to
9465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9470 hardcode_libdir_separator=':'
9471 link_all_deplibs=yes
9473 if test "$GCC" = yes; then
9474 case $host_os in aix4.[012]|aix4.[012].*)
9475 # We only want to do this on AIX 4.2 and lower, the check
9476 # below for broken collect2 doesn't work under 4.3+
9477 collect2name=`${CC} -print-prog-name=collect2`
9478 if test -f "$collect2name" && \
9479 strings "$collect2name" | grep resolve_lib_name >/dev/null
9481 # We have reworked collect2
9484 # We have old collect2
9485 hardcode_direct=unsupported
9486 # It fails to find uninstalled libraries when the uninstalled
9487 # path is not listed in the libpath. Setting hardcode_minus_L
9488 # to unsupported forces relinking
9489 hardcode_minus_L=yes
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_libdir_separator=
9495 shared_flag='-shared'
9496 if test "$aix_use_runtimelinking" = yes; then
9497 shared_flag="$shared_flag "'${wl}-G'
9501 if test "$host_cpu" = ia64; then
9502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9503 # chokes on -Wl,-G. The following line is correct:
9506 if test "$aix_use_runtimelinking" = yes; then
9507 shared_flag='${wl}-G'
9509 shared_flag='${wl}-bM:SRE'
9514 # It seems that -bexpall does not export symbols beginning with
9515 # underscore (_), so it is better to generate a list of symbols to export.
9516 always_export_symbols=yes
9517 if test "$aix_use_runtimelinking" = yes; then
9518 # Warning - without using the other runtime loading flags (-brtl),
9519 # -berok will link without error, but may produce a broken library.
9520 allow_undefined_flag='-berok'
9521 # Determine the default libpath from the value encoded in an empty executable.
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (ac_try="$ac_link"
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9552 { (case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_try") 2>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest$ac_exeext'
9562 { (case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_try") 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589 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"
9591 if test "$host_cpu" = ia64; then
9592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9593 allow_undefined_flag="-z nodefs"
9594 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"
9596 # Determine the default libpath from the value encoded in an empty executable.
9597 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (ac_try="$ac_link"
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_link") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9627 { (case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_try") 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; } &&
9636 { ac_try='test -s conftest$ac_exeext'
9637 { (case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_try") 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9649 # Check for a 64-bit object if we didn't find anything.
9650 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9664 # Warning - without using the other run time loading flags,
9665 # -berok will link without error, but may produce a broken library.
9666 no_undefined_flag=' ${wl}-bernotok'
9667 allow_undefined_flag=' ${wl}-berok'
9668 # Exported symbols can be pulled into shared objects from archives
9669 whole_archive_flag_spec='$convenience'
9670 archive_cmds_need_lc=yes
9671 # This is similar to how AIX traditionally builds its shared libraries.
9672 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'
9678 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)'
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_minus_L=yes
9681 # see comment about different semantics on the GNU ld section
9686 export_dynamic_flag_spec=-rdynamic
9689 cygwin* | mingw* | pw32*)
9690 # When not using gcc, we currently assume that we are using
9691 # Microsoft Visual C++.
9692 # hardcode_libdir_flag_spec is actually meaningless, as there is
9693 # no search path for DLLs.
9694 hardcode_libdir_flag_spec=' '
9695 allow_undefined_flag=unsupported
9696 # Tell ltmain to make .lib files, not .a files.
9698 # Tell ltmain to make .dll files, not .so files.
9700 # FIXME: Setting linknames here is a bad hack.
9701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9702 # The linker will automatically build a .lib file if we build a DLL.
9703 old_archive_From_new_cmds='true'
9704 # FIXME: Should let the user specify the lib program.
9705 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9706 fix_srcfile_path='`cygpath -w "$srcfile"`'
9707 enable_shared_with_static_runtimes=yes
9710 darwin* | rhapsody*)
9712 rhapsody* | darwin1.[012])
9713 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9717 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9719 case ${MACOSX_DEPLOYMENT_TARGET} in
9721 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9724 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9730 archive_cmds_need_lc=no
9732 hardcode_automatic=yes
9733 hardcode_shlibpath_var=unsupported
9734 whole_archive_flag_spec=''
9735 link_all_deplibs=yes
9736 if test "$GCC" = yes ; then
9737 output_verbose_link_cmd='echo'
9738 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9739 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9741 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}'
9742 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}'
9744 case $cc_basename in
9746 output_verbose_link_cmd='echo'
9747 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9748 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9750 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9751 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}'
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771 # support. Future versions do this automatically, but an explicit c++rt0.o
9772 # does not break anything, and helps significantly (at the cost of a little
9775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776 hardcode_libdir_flag_spec='-R$libdir'
9778 hardcode_shlibpath_var=no
9781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_minus_L=yes
9786 hardcode_shlibpath_var=no
9789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790 freebsd* | dragonfly*)
9791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9792 hardcode_libdir_flag_spec='-R$libdir'
9794 hardcode_shlibpath_var=no
9798 if test "$GCC" = yes; then
9799 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'
9801 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'
9803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804 hardcode_libdir_separator=:
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9810 export_dynamic_flag_spec='${wl}-E'
9814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9819 if test "$with_gnu_ld" = no; then
9820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821 hardcode_libdir_separator=:
9824 export_dynamic_flag_spec='${wl}-E'
9826 # hardcode_minus_L: Not really in the search PATH,
9827 # but as the default location of the library.
9828 hardcode_minus_L=yes
9833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9858 if test "$with_gnu_ld" = no; then
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_separator=:
9864 hardcode_libdir_flag_spec_ld='+b $libdir'
9866 hardcode_shlibpath_var=no
9870 export_dynamic_flag_spec='${wl}-E'
9872 # hardcode_minus_L: Not really in the search PATH,
9873 # but as the default location of the library.
9874 hardcode_minus_L=yes
9880 irix5* | irix6* | nonstopux*)
9881 if test "$GCC" = yes; then
9882 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'
9884 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'
9885 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888 hardcode_libdir_separator=:
9889 link_all_deplibs=yes
9892 netbsd* | netbsdelf*-gnu)
9893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9896 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9898 hardcode_libdir_flag_spec='-R$libdir'
9900 hardcode_shlibpath_var=no
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907 hardcode_libdir_separator=:
9908 hardcode_shlibpath_var=no
9913 hardcode_shlibpath_var=no
9914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9918 export_dynamic_flag_spec='${wl}-E'
9921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_libdir_flag_spec='-R$libdir'
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_minus_L=yes
9936 allow_undefined_flag=unsupported
9937 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'
9938 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9942 if test "$GCC" = yes; then
9943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9944 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'
9946 allow_undefined_flag=' -expect_unresolved \*'
9947 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'
9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950 hardcode_libdir_separator=:
9953 osf4* | osf5*) # as osf3* with the addition of -msym flag
9954 if test "$GCC" = yes; then
9955 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9956 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'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959 allow_undefined_flag=' -expect_unresolved \*'
9960 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'
9961 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9962 $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'
9964 # Both c and cxx compiler support -rpath directly
9965 hardcode_libdir_flag_spec='-rpath $libdir'
9967 hardcode_libdir_separator=:
9971 no_undefined_flag=' -z text'
9972 if test "$GCC" = yes; then
9974 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9976 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9979 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9983 hardcode_libdir_flag_spec='-R$libdir'
9984 hardcode_shlibpath_var=no
9986 solaris2.[0-5] | solaris2.[0-5].*) ;;
9988 # The compiler driver will combine linker options so we
9989 # cannot just pass the convience library names through
9990 # without $wl, iff we do not link with $LD.
9991 # Luckily, gcc supports the same syntax we need for Sun Studio.
9992 # Supported since Solaris 2.6 (maybe 2.5.1?)
9995 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9997 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10000 link_all_deplibs=yes
10004 if test "x$host_vendor" = xsequent; then
10005 # Use $CC to link under sequent, because it throws in some extra .o
10006 # files that make .init and .fini sections work.
10007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_direct=yes
10013 hardcode_minus_L=yes
10014 hardcode_shlibpath_var=no
10018 case $host_vendor in
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_direct=yes # is this really true???
10024 ## LD is ld it makes a PLAMLIB
10025 ## CC just makes a GrossModule.
10026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10027 reload_cmds='$CC -r -o $output$reload_objs'
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10035 runpath_var='LD_RUN_PATH'
10036 hardcode_shlibpath_var=no
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_shlibpath_var=no
10042 export_dynamic_flag_spec='-Bexport'
10046 if test -d /usr/nec; then
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_shlibpath_var=no
10049 runpath_var=LD_RUN_PATH
10050 hardcode_runpath_var=yes
10055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10056 no_undefined_flag='${wl}-z,text'
10057 archive_cmds_need_lc=no
10058 hardcode_shlibpath_var=no
10059 runpath_var='LD_RUN_PATH'
10061 if test "$GCC" = yes; then
10062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 sysv5* | sco3.2v5* | sco5v6*)
10071 # Note: We can NOT use -z defs as we might desire, because we do not
10072 # link with -lc, and that would cause any symbols used from libc to
10073 # always be unresolved, which means just about no library would
10074 # ever link correctly. If we're not using GNU ld we use -z text
10075 # though, which does catch some bad symbols but isn't as heavy-handed
10077 no_undefined_flag='${wl}-z,text'
10078 allow_undefined_flag='${wl}-z,nodefs'
10079 archive_cmds_need_lc=no
10080 hardcode_shlibpath_var=no
10081 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10082 hardcode_libdir_separator=':'
10083 link_all_deplibs=yes
10084 export_dynamic_flag_spec='${wl}-Bexport'
10085 runpath_var='LD_RUN_PATH'
10087 if test "$GCC" = yes; then
10088 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_shlibpath_var=no
10108 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10109 echo "${ECHO_T}$ld_shlibs" >&6; }
10110 test "$ld_shlibs" = no && can_build_shared=no
10113 # Do we need to explicitly link libc?
10115 case "x$archive_cmds_need_lc" in
10117 # Assume -lc should be added
10118 archive_cmds_need_lc=yes
10120 if test "$enable_shared" = yes && test "$GCC" = yes; then
10121 case $archive_cmds in
10123 # FIXME: we may have to deal with multi-command sequences.
10126 # Test whether the compiler implicitly links with -lc since on some
10127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10128 # to ld, don't add -lc before -lgcc.
10129 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135 (eval $ac_compile) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } 2>conftest.err; then
10141 libobjs=conftest.$ac_objext
10143 wl=$lt_prog_compiler_wl
10144 pic_flag=$lt_prog_compiler_pic
10150 lt_save_allow_undefined_flag=$allow_undefined_flag
10151 allow_undefined_flag=
10152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10153 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }
10158 archive_cmds_need_lc=no
10160 archive_cmds_need_lc=yes
10162 allow_undefined_flag=$lt_save_allow_undefined_flag
10164 cat conftest.err 1>&5
10167 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10168 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10175 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10177 library_names_spec=
10178 libname_spec='lib$name'
10182 postuninstall_cmds=
10186 shlibpath_overrides_runpath=unknown
10188 dynamic_linker="$host_os ld.so"
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10190 if test "$GCC" = yes; then
10191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10192 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10193 # if the path contains ";" then we assume it to be the separator
10194 # otherwise default to the standard path separator (i.e. ":") - it is
10195 # assumed that no part of a normal pathname contains ";" but that should
10196 # okay in the real world where ";" in dirpaths is itself problematic.
10197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10204 need_lib_prefix=unknown
10205 hardcode_into_libs=no
10207 # when you set need_version to no, make sure it does not cause -set_version
10208 # flags to be left without arguments
10209 need_version=unknown
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10215 shlibpath_var=LIBPATH
10217 # AIX 3 has no versioning support, so we append a major version to the name.
10218 soname_spec='${libname}${release}${shared_ext}$major'
10225 hardcode_into_libs=yes
10226 if test "$host_cpu" = ia64; then
10227 # AIX 5 supports IA64
10228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10231 # With GCC up to 2.95.x, collect2 would create an import file
10232 # for dependence libraries. The import file would start with
10233 # the line `#! .'. This would cause the generated library to
10234 # depend on `.', always an invalid library. This was fixed in
10235 # development snapshots of GCC prior to 3.0.
10237 aix4 | aix4.[01] | aix4.[01].*)
10238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10243 can_build_shared=no
10247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10248 # soname into executable. Probably we can add versioning support to
10249 # collect2, so additional links can be useful in future.
10250 if test "$aix_use_runtimelinking" = yes; then
10251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10252 # instead of lib<name>.a to let people know that these are not
10253 # typical AIX shared libraries.
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 # We preserve .a as extension for shared libraries through AIX4.2
10257 # and later when we are not doing run time linking.
10258 library_names_spec='${libname}${release}.a $libname.a'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10261 shlibpath_var=LIBPATH
10266 library_names_spec='$libname.ixlibrary $libname.a'
10267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10268 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'
10272 library_names_spec='${libname}${shared_ext}'
10273 dynamic_linker="$host_os ld.so"
10274 shlibpath_var=LIBRARY_PATH
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10286 # the default ld.so.conf also contains /usr/contrib/lib and
10287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10288 # libtool to hard-code these into programs
10291 cygwin* | mingw* | pw32*)
10292 version_type=windows
10297 case $GCC,$host_os in
10298 yes,cygwin* | yes,mingw* | yes,pw32*)
10299 library_names_spec='$libname.dll.a'
10300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10301 postinstall_cmds='base_file=`basename \${file}`~
10302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10303 dldir=$destdir/`dirname \$dlpath`~
10304 test -d \$dldir || mkdir -p \$dldir~
10305 $install_prog $dir/$dlname \$dldir/$dlname~
10306 chmod a+x \$dldir/$dlname'
10307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10308 dlpath=$dir/\$dldll~
10310 shlibpath_overrides_runpath=yes
10314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10319 # MinGW DLLs use traditional 'lib' prefix
10320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10322 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10323 # It is most probably a Windows format PATH printed by
10324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10325 # path with ; separators, and with drive letters. We can handle the
10326 # drive letters (cygwin fileutils understands them), so leave them,
10327 # especially as we might pass files found there to a mingw objdump,
10328 # which wouldn't understand a cygwinified path. Ahh.
10329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10335 # pw32 DLLs use 'pw' prefix rather than 'lib'
10336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10345 dynamic_linker='Win32 ld.exe'
10346 # FIXME: first we should search . and the directory the executable is in
10350 darwin* | rhapsody*)
10351 dynamic_linker="$host_os dyld"
10352 version_type=darwin
10355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10356 soname_spec='${libname}${release}${major}$shared_ext'
10357 shlibpath_overrides_runpath=yes
10358 shlibpath_var=DYLD_LIBRARY_PATH
10359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10361 if test "$GCC" = yes; then
10362 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10382 freebsd* | dragonfly*)
10383 # DragonFly does not have aout. When/if they implement a new
10384 # versioning mechanism, adjust this.
10385 if test -x /usr/bin/objformat; then
10386 objformat=`/usr/bin/objformat`
10389 freebsd[123]*) objformat=aout ;;
10390 *) objformat=elf ;;
10393 version_type=freebsd-$objformat
10394 case $version_type in
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10405 shlibpath_var=LD_LIBRARY_PATH
10408 shlibpath_overrides_runpath=yes
10410 freebsd3.[01]* | freebsdelf3.[01]*)
10411 shlibpath_overrides_runpath=yes
10412 hardcode_into_libs=yes
10414 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10415 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10416 shlibpath_overrides_runpath=no
10417 hardcode_into_libs=yes
10419 freebsd*) # from 4.6 on
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 hardcode_into_libs=yes
10436 hpux9* | hpux10* | hpux11*)
10437 # Give a soname corresponding to the major version so that dld.sl refuses to
10438 # link against other versions.
10445 hardcode_into_libs=yes
10446 dynamic_linker="$host_os dld.so"
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 if test "X$HPUX_IA64_MODE" = X32; then
10452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 hardcode_into_libs=yes
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 dynamic_linker="$host_os dld.sl"
10472 shlibpath_var=SHLIB_PATH
10473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10479 postinstall_cmds='chmod 555 $lib'
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=no
10491 hardcode_into_libs=yes
10494 irix5* | irix6* | nonstopux*)
10496 nonstopux*) version_type=nonstopux ;;
10498 if test "$lt_cv_prog_gnu_ld" = yes; then
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10509 irix5* | nonstopux*)
10510 libsuff= shlibsuff=
10513 case $LD in # libtool.m4 will add one of these switches to LD
10514 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10515 libsuff= shlibsuff= libmagic=32-bit;;
10516 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10517 libsuff=32 shlibsuff=N32 libmagic=N32;;
10518 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10519 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10520 *) libsuff= shlibsuff= libmagic=never-match;;
10524 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10525 shlibpath_overrides_runpath=no
10526 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10527 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10528 hardcode_into_libs=yes
10531 # No shared lib support for Linux oldld, aout, or coff.
10532 linux*oldld* | linux*aout* | linux*coff*)
10536 # This must be Linux ELF.
10537 linux* | k*bsd*-gnu)
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=no
10546 # This implies no fast_install, which is unacceptable.
10547 # Some rework will be needed to allow for fast_install
10548 # before this can be enabled.
10549 hardcode_into_libs=yes
10551 # Append ld.so.conf contents to the search path
10552 if test -f /etc/ld.so.conf; then
10553 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10554 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10557 # We used to test for /lib/ld.so.1 and disable shared libraries on
10558 # powerpc, because MkLinux only supported shared libraries with the
10559 # GNU dynamic linker. Since this was broken with cross compilers,
10560 # most powerpc-linux boxes support dynamic linking these days and
10561 # people can always --disable-shared, the test was removed, and we
10562 # assume the GNU/Linux dynamic linker is in use.
10563 dynamic_linker='GNU/Linux ld.so'
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=no
10574 hardcode_into_libs=yes
10575 dynamic_linker='NetBSD ld.elf_so'
10582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 dynamic_linker='NetBSD (a.out) ld.so'
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 dynamic_linker='NetBSD ld.elf_so'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=yes
10615 sys_lib_dlsearch_path_spec="/usr/lib"
10617 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10619 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10620 *) need_version=no ;;
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10627 openbsd2.[89] | openbsd2.[89].*)
10628 shlibpath_overrides_runpath=no
10631 shlibpath_overrides_runpath=yes
10635 shlibpath_overrides_runpath=yes
10640 libname_spec='$name'
10643 library_names_spec='$libname${shared_ext} $libname.a'
10644 dynamic_linker='OS/2 ld.exe'
10645 shlibpath_var=LIBPATH
10648 osf3* | osf4* | osf5*)
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10656 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 # ldd complains unless libraries are executable
10669 postinstall_cmds='chmod +x $lib'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=yes
10678 if test "$with_gnu_ld" = yes; then
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 case $host_vendor in
10691 shlibpath_overrides_runpath=no
10693 export_dynamic_flag_spec='${wl}-Blargedynsym'
10694 runpath_var=LD_RUN_PATH
10702 shlibpath_overrides_runpath=no
10703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10709 if test -d /usr/nec ;then
10711 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10712 soname_spec='$libname${shared_ext}.$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10718 version_type=freebsd-elf
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 hardcode_into_libs=yes
10725 if test "$with_gnu_ld" = yes; then
10726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10727 shlibpath_overrides_runpath=no
10729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10730 shlibpath_overrides_runpath=yes
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10737 sys_lib_dlsearch_path_spec='/usr/lib'
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10752 echo "${ECHO_T}$dynamic_linker" >&6; }
10753 test "$dynamic_linker" = no && can_build_shared=no
10755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10756 if test "$GCC" = yes; then
10757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10760 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10761 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10763 if test -n "$hardcode_libdir_flag_spec" || \
10764 test -n "$runpath_var" || \
10765 test "X$hardcode_automatic" = "Xyes" ; then
10767 # We can hardcode non-existant directories.
10768 if test "$hardcode_direct" != no &&
10769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10770 # have to relink, otherwise we might link with an installed library
10771 # when we should be linking with a yet-to-be-installed one
10772 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10773 test "$hardcode_minus_L" != no; then
10774 # Linking always hardcodes the temporary library directory.
10775 hardcode_action=relink
10777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10778 hardcode_action=immediate
10781 # We cannot hardcode anything, or else we can only hardcode existing
10783 hardcode_action=unsupported
10785 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10786 echo "${ECHO_T}$hardcode_action" >&6; }
10788 if test "$hardcode_action" = relink; then
10789 # Fast installation is not supported
10790 enable_fast_install=no
10791 elif test "$shlibpath_overrides_runpath" = yes ||
10792 test "$enable_shared" = no; then
10793 # Fast installation is not necessary
10794 enable_fast_install=needless
10799 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10800 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10801 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10804 { echo "$as_me:$LINENO: result: yes" >&5
10805 echo "${ECHO_T}yes" >&6; }
10807 # FIXME - insert some real tests, host_os isn't really good enough
10810 if test -n "$STRIP" ; then
10811 striplib="$STRIP -x"
10812 { echo "$as_me:$LINENO: result: yes" >&5
10813 echo "${ECHO_T}yes" >&6; }
10815 { echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6; }
10820 { echo "$as_me:$LINENO: result: no" >&5
10821 echo "${ECHO_T}no" >&6; }
10826 if test "x$enable_dlopen" != xyes; then
10827 enable_dlopen=unknown
10828 enable_dlopen_self=unknown
10829 enable_dlopen_self_static=unknown
10836 lt_cv_dlopen="load_add_on"
10838 lt_cv_dlopen_self=yes
10842 lt_cv_dlopen="LoadLibrary"
10847 lt_cv_dlopen="dlopen"
10852 # if libdl is installed we need to link against it
10853 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 ac_check_lib_save_LIBS=$LIBS
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_dl_dlopen=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_cv_lib_dl_dlopen=no
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10930 if test $ac_cv_lib_dl_dlopen = yes; then
10931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10934 lt_cv_dlopen="dyld"
10936 lt_cv_dlopen_self=yes
10943 { echo "$as_me:$LINENO: checking for shl_load" >&5
10944 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10945 if test "${ac_cv_func_shl_load+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10956 #define shl_load innocuous_shl_load
10958 /* System header to define __stub macros and hopefully few prototypes,
10959 which can conflict with char shl_load (); below.
10960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961 <limits.h> exists even on freestanding compilers. */
10964 # include <limits.h>
10966 # include <assert.h>
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined __stub_shl_load || defined __stub___shl_load
10988 return shl_load ();
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest$ac_exeext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_func_shl_load=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_func_shl_load=no
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11038 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11039 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11040 if test $ac_cv_func_shl_load = yes; then
11041 lt_cv_dlopen="shl_load"
11043 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11044 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11045 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 ac_check_lib_save_LIBS=$LIBS
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11067 return shl_load ();
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_link") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest$ac_exeext'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_cv_lib_dld_shl_load=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_cv_lib_dld_shl_load=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11119 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11120 if test $ac_cv_lib_dld_shl_load = yes; then
11121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11123 { echo "$as_me:$LINENO: checking for dlopen" >&5
11124 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11125 if test "${ac_cv_func_dlopen+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11136 #define dlopen innocuous_dlopen
11138 /* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char dlopen (); below.
11140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141 <limits.h> exists even on freestanding compilers. */
11144 # include <limits.h>
11146 # include <assert.h>
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined __stub_dlopen || defined __stub___dlopen
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_func_dlopen=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_func_dlopen=no
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11219 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11220 if test $ac_cv_func_dlopen = yes; then
11221 lt_cv_dlopen="dlopen"
11223 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11224 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 ac_check_lib_save_LIBS=$LIBS
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_lib_dl_dlopen=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_lib_dl_dlopen=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11300 if test $ac_cv_lib_dl_dlopen = yes; then
11301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11303 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11304 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11305 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-lsvld $LIBS"
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11347 { (case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_try") 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try='test -s conftest$ac_exeext'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 ac_cv_lib_svld_dlopen=yes
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_cv_lib_svld_dlopen=no
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11378 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11379 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11380 if test $ac_cv_lib_svld_dlopen = yes; then
11381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11383 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11384 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11385 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 ac_check_lib_save_LIBS=$LIBS
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11407 return dld_link ();
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_cv_lib_dld_dld_link=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_cv_lib_dld_dld_link=no
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11460 if test $ac_cv_lib_dld_dld_link = yes; then
11461 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11482 if test "x$lt_cv_dlopen" != xno; then
11488 case $lt_cv_dlopen in
11490 save_CPPFLAGS="$CPPFLAGS"
11491 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11493 save_LDFLAGS="$LDFLAGS"
11494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11497 LIBS="$lt_cv_dlopen_libs $LIBS"
11499 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11501 if test "${lt_cv_dlopen_self+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 if test "$cross_compiling" = yes; then :
11505 lt_cv_dlopen_self=cross
11507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11508 lt_status=$lt_dlunknown
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11520 # define LT_DLGLOBAL RTLD_GLOBAL
11523 # define LT_DLGLOBAL DL_GLOBAL
11525 # define LT_DLGLOBAL 0
11529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11530 find out it does not work in some platform. */
11531 #ifndef LT_DLLAZY_OR_NOW
11533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11536 # define LT_DLLAZY_OR_NOW DL_LAZY
11539 # define LT_DLLAZY_OR_NOW RTLD_NOW
11542 # define LT_DLLAZY_OR_NOW DL_NOW
11544 # define LT_DLLAZY_OR_NOW 0
11552 extern "C" void exit (int);
11555 void fnord() { int i=42;}
11558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559 int status = $lt_dlunknown;
11563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565 /* dlclose (self); */
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578 (./conftest; exit; ) >&5 2>/dev/null
11580 case x$lt_status in
11581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586 # compilation failed
11587 lt_cv_dlopen_self=no
11594 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11597 if test "x$lt_cv_dlopen_self" = xyes; then
11598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11599 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11601 if test "${lt_cv_dlopen_self_static+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 if test "$cross_compiling" = yes; then :
11605 lt_cv_dlopen_self_static=cross
11607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608 lt_status=$lt_dlunknown
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11610 "configure"
11611 #include "confdefs.h"
11620 # define LT_DLGLOBAL RTLD_GLOBAL
11623 # define LT_DLGLOBAL DL_GLOBAL
11625 # define LT_DLGLOBAL 0
11629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630 find out it does not work in some platform. */
11631 #ifndef LT_DLLAZY_OR_NOW
11633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11636 # define LT_DLLAZY_OR_NOW DL_LAZY
11639 # define LT_DLLAZY_OR_NOW RTLD_NOW
11642 # define LT_DLLAZY_OR_NOW DL_NOW
11644 # define LT_DLLAZY_OR_NOW 0
11652 extern "C" void exit (int);
11655 void fnord() { int i=42;}
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665 /* dlclose (self); */
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11678 (./conftest; exit; ) >&5 2>/dev/null
11680 case x$lt_status in
11681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 # compilation failed
11687 lt_cv_dlopen_self_static=no
11694 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11695 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11698 CPPFLAGS="$save_CPPFLAGS"
11699 LDFLAGS="$save_LDFLAGS"
11704 case $lt_cv_dlopen_self in
11705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11706 *) enable_dlopen_self=unknown ;;
11709 case $lt_cv_dlopen_self_static in
11710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11711 *) enable_dlopen_self_static=unknown ;;
11716 # Report which library types will actually be built
11717 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11718 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11719 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11720 echo "${ECHO_T}$can_build_shared" >&6; }
11722 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11723 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11724 test "$can_build_shared" = "no" && enable_shared=no
11726 # On AIX, shared libraries and static libraries use the same namespace, and
11727 # are all built from PIC.
11730 test "$enable_shared" = yes && enable_static=no
11731 if test -n "$RANLIB"; then
11732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11733 postinstall_cmds='$RANLIB $lib'
11738 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11739 test "$enable_shared" = yes && enable_static=no
11743 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11744 echo "${ECHO_T}$enable_shared" >&6; }
11746 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11747 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11748 # Make sure either enable_shared or enable_static is yes.
11749 test "$enable_shared" = yes || enable_static=yes
11750 { echo "$as_me:$LINENO: result: $enable_static" >&5
11751 echo "${ECHO_T}$enable_static" >&6; }
11753 # The else clause should only fire when bootstrapping the
11754 # libtool distribution, otherwise you forgot to ship ltmain.sh
11755 # with your package, and you will get complaints that there are
11756 # no rules to generate ltmain.sh.
11757 if test -f "$ltmain"; then
11758 # See if we are running on zsh, and set the options which allow our commands through
11759 # without removal of \ escapes.
11760 if test -n "${ZSH_VERSION+set}" ; then
11761 setopt NO_GLOB_SUBST
11763 # Now quote all the things that may contain metacharacters while being
11764 # careful not to overquote the AC_SUBSTed values. We take copies of the
11765 # variables and quote the copies for generation of the libtool script.
11766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11770 deplibs_check_method reload_flag reload_cmds need_locks \
11771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11772 lt_cv_sys_global_symbol_to_c_name_address \
11773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11774 old_postinstall_cmds old_postuninstall_cmds \
11778 lt_prog_compiler_wl \
11779 lt_prog_compiler_pic \
11780 lt_prog_compiler_static \
11781 lt_prog_compiler_no_builtin_flag \
11782 export_dynamic_flag_spec \
11783 thread_safe_flag_spec \
11784 whole_archive_flag_spec \
11785 enable_shared_with_static_runtimes \
11787 old_archive_from_new_cmds \
11792 compiler_lib_search_path \
11794 archive_expsym_cmds \
11796 postuninstall_cmds \
11797 old_archive_from_expsyms_cmds \
11798 allow_undefined_flag \
11799 no_undefined_flag \
11800 export_symbols_cmds \
11801 hardcode_libdir_flag_spec \
11802 hardcode_libdir_flag_spec_ld \
11803 hardcode_libdir_separator \
11804 hardcode_automatic \
11806 module_expsym_cmds \
11807 lt_cv_prog_compiler_c_o \
11809 include_expsyms; do
11812 old_archive_cmds | \
11813 old_archive_from_new_cmds | \
11815 archive_expsym_cmds | \
11817 module_expsym_cmds | \
11818 old_archive_from_expsyms_cmds | \
11819 export_symbols_cmds | \
11820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11821 postinstall_cmds | postuninstall_cmds | \
11822 old_postinstall_cmds | old_postuninstall_cmds | \
11823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11824 # Double-quote double-evaled strings.
11825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11834 *'\$0 --fallback-echo"')
11835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11839 cfgfile="${ofile}T"
11840 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11842 { echo "$as_me:$LINENO: creating $ofile" >&5
11843 echo "$as_me: creating $ofile" >&6;}
11845 cat <<__EOF__ >> "$cfgfile"
11848 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11849 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11853 # Free Software Foundation, Inc.
11855 # This file is part of GNU Libtool:
11856 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11858 # This program is free software; you can redistribute it and/or modify
11859 # it under the terms of the GNU General Public License as published by
11860 # the Free Software Foundation; either version 2 of the License, or
11861 # (at your option) any later version.
11863 # This program is distributed in the hope that it will be useful, but
11864 # WITHOUT ANY WARRANTY; without even the implied warranty of
11865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11866 # General Public License for more details.
11868 # You should have received a copy of the GNU General Public License
11869 # along with this program; if not, write to the Free Software
11870 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11872 # As a special exception to the GNU General Public License, if you
11873 # distribute this file as part of a program that contains a
11874 # configuration script generated by Autoconf, you may include it under
11875 # the same distribution terms that you use for the rest of that program.
11877 # A sed program that does not truncate output.
11880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11881 Xsed="$SED -e 1s/^X//"
11883 # The HP-UX ksh and POSIX shell print the target directory to stdout
11884 # if CDPATH is set.
11885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11887 # The names of the tagged configurations supported by this script.
11890 # ### BEGIN LIBTOOL CONFIG
11892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11894 # Shell to use when invoking shell scripts.
11897 # Whether or not to build shared libraries.
11898 build_libtool_libs=$enable_shared
11900 # Whether or not to build static libraries.
11901 build_old_libs=$enable_static
11903 # Whether or not to add -lc for building shared libraries.
11904 build_libtool_need_lc=$archive_cmds_need_lc
11906 # Whether or not to disallow shared libs when runtime libs are static
11907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11909 # Whether or not to optimize for fast installation.
11910 fast_install=$enable_fast_install
11913 host_alias=$host_alias
11917 # The build system.
11918 build_alias=$build_alias
11922 # An echo program that does not interpret backslashes.
11927 AR_FLAGS=$lt_AR_FLAGS
11932 # LTCC compiler flags.
11933 LTCFLAGS=$lt_LTCFLAGS
11935 # A language-specific compiler.
11938 # Is the compiler the GNU C compiler?
11944 # The linker used to build libraries.
11947 # Whether we need hard or soft links.
11950 # A BSD-compatible nm program.
11953 # A symbol stripping program
11956 # Used to examine libraries when file_magic_cmd begins "file"
11957 MAGIC_CMD=$MAGIC_CMD
11959 # Used on cygwin: DLL creation program.
11962 # Used on cygwin: object dumper.
11965 # Used on cygwin: assembler.
11968 # The name of the directory that contains temporary libtool files.
11971 # How to create reloadable object files.
11972 reload_flag=$lt_reload_flag
11973 reload_cmds=$lt_reload_cmds
11975 # How to pass a linker flag through the compiler.
11976 wl=$lt_lt_prog_compiler_wl
11978 # Object file suffix (normally "o").
11979 objext="$ac_objext"
11981 # Old archive suffix (normally "a").
11984 # Shared library suffix (normally ".so").
11985 shrext_cmds='$shrext_cmds'
11987 # Executable file suffix (normally "").
11990 # Additional compiler flags for building library objects.
11991 pic_flag=$lt_lt_prog_compiler_pic
11994 # What is the maximum length of a command?
11995 max_cmd_len=$lt_cv_sys_max_cmd_len
11997 # Does compiler simultaneously support -c and -o options?
11998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12000 # Must we lock files when doing compilation?
12001 need_locks=$lt_need_locks
12003 # Do we need the lib prefix for modules?
12004 need_lib_prefix=$need_lib_prefix
12006 # Do we need a version for libraries?
12007 need_version=$need_version
12009 # Whether dlopen is supported.
12010 dlopen_support=$enable_dlopen
12012 # Whether dlopen of programs is supported.
12013 dlopen_self=$enable_dlopen_self
12015 # Whether dlopen of statically linked programs is supported.
12016 dlopen_self_static=$enable_dlopen_self_static
12018 # Compiler flag to prevent dynamic linking.
12019 link_static_flag=$lt_lt_prog_compiler_static
12021 # Compiler flag to turn off builtin functions.
12022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12024 # Compiler flag to allow reflexive dlopens.
12025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12027 # Compiler flag to generate shared objects directly from archives.
12028 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12030 # Compiler flag to generate thread-safe objects.
12031 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12033 # Library versioning type.
12034 version_type=$version_type
12036 # Format of library name prefix.
12037 libname_spec=$lt_libname_spec
12039 # List of archive names. First name is the real one, the rest are links.
12040 # The last name is the one that the linker finds with -lNAME.
12041 library_names_spec=$lt_library_names_spec
12043 # The coded name of the library, if different from the real name.
12044 soname_spec=$lt_soname_spec
12046 # Commands used to build and install an old-style archive.
12048 old_archive_cmds=$lt_old_archive_cmds
12049 old_postinstall_cmds=$lt_old_postinstall_cmds
12050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12052 # Create an old-style archive from a shared archive.
12053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12055 # Create a temporary old-style archive to link instead of a shared archive.
12056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12058 # Commands used to build and install a shared archive.
12059 archive_cmds=$lt_archive_cmds
12060 archive_expsym_cmds=$lt_archive_expsym_cmds
12061 postinstall_cmds=$lt_postinstall_cmds
12062 postuninstall_cmds=$lt_postuninstall_cmds
12064 # Commands used to build a loadable module (assumed same as above if empty)
12065 module_cmds=$lt_module_cmds
12066 module_expsym_cmds=$lt_module_expsym_cmds
12068 # Commands to strip libraries.
12069 old_striplib=$lt_old_striplib
12070 striplib=$lt_striplib
12072 # Dependencies to place before the objects being linked to create a
12074 predep_objects=$lt_predep_objects
12076 # Dependencies to place after the objects being linked to create a
12078 postdep_objects=$lt_postdep_objects
12080 # Dependencies to place before the objects being linked to create a
12082 predeps=$lt_predeps
12084 # Dependencies to place after the objects being linked to create a
12086 postdeps=$lt_postdeps
12088 # The library search path used internally by the compiler when linking
12089 # a shared library.
12090 compiler_lib_search_path=$lt_compiler_lib_search_path
12092 # Method to check whether dependent libraries are shared objects.
12093 deplibs_check_method=$lt_deplibs_check_method
12095 # Command to use when deplibs_check_method == file_magic.
12096 file_magic_cmd=$lt_file_magic_cmd
12098 # Flag that allows shared libraries with undefined symbols to be built.
12099 allow_undefined_flag=$lt_allow_undefined_flag
12101 # Flag that forces no undefined symbols.
12102 no_undefined_flag=$lt_no_undefined_flag
12104 # Commands used to finish a libtool library installation in a directory.
12105 finish_cmds=$lt_finish_cmds
12107 # Same as above, but a single script fragment to be evaled but not shown.
12108 finish_eval=$lt_finish_eval
12110 # Take the output of nm and produce a listing of raw symbols and C names.
12111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12113 # Transform the output of nm in a proper C declaration
12114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12116 # Transform the output of nm in a C name address pair
12117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12119 # This is the shared library runtime path variable.
12120 runpath_var=$runpath_var
12122 # This is the shared library path variable.
12123 shlibpath_var=$shlibpath_var
12125 # Is shlibpath searched before the hard-coded library search path?
12126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12128 # How to hardcode a shared library path into an executable.
12129 hardcode_action=$hardcode_action
12131 # Whether we should hardcode library paths into libraries.
12132 hardcode_into_libs=$hardcode_into_libs
12134 # Flag to hardcode \$libdir into a binary during linking.
12135 # This must work even if \$libdir does not exist.
12136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12138 # If ld is used when linking, flag to hardcode \$libdir into
12139 # a binary during linking. This must work even if \$libdir does
12141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12143 # Whether we need a single -rpath flag with a separated argument.
12144 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12146 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12147 # resulting binary.
12148 hardcode_direct=$hardcode_direct
12150 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12151 # resulting binary.
12152 hardcode_minus_L=$hardcode_minus_L
12154 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12155 # the resulting binary.
12156 hardcode_shlibpath_var=$hardcode_shlibpath_var
12158 # Set to yes if building a shared library automatically hardcodes DIR into the library
12159 # and all subsequent libraries and executables linked against it.
12160 hardcode_automatic=$hardcode_automatic
12162 # Variables whose values should be saved in libtool wrapper scripts and
12163 # restored at relink time.
12164 variables_saved_for_relink="$variables_saved_for_relink"
12166 # Whether libtool must link a program against all its dependency libraries.
12167 link_all_deplibs=$link_all_deplibs
12169 # Compile-time system search path for libraries
12170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12172 # Run-time system search path for libraries
12173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12175 # Fix the shell variable \$srcfile for the compiler.
12176 fix_srcfile_path="$fix_srcfile_path"
12178 # Set to yes if exported symbols are required.
12179 always_export_symbols=$always_export_symbols
12181 # The commands to list exported symbols.
12182 export_symbols_cmds=$lt_export_symbols_cmds
12184 # The commands to extract the exported symbol list from a shared archive.
12185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12187 # Symbols that should not be listed in the preloaded symbols.
12188 exclude_expsyms=$lt_exclude_expsyms
12190 # Symbols that must always be exported.
12191 include_expsyms=$lt_include_expsyms
12193 # ### END LIBTOOL CONFIG
12200 cat <<\EOF >> "$cfgfile"
12202 # AIX sometimes has problems with the GCC collect2 program. For some
12203 # reason, if we set the COLLECT_NAMES environment variable, the problems
12204 # vanish in a puff of smoke.
12205 if test "X${COLLECT_NAMES+set}" != Xset; then
12207 export COLLECT_NAMES
12213 # We use sed instead of cat because bash on DJGPP gets confused if
12214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12215 # text mode, it properly converts lines to CR/LF. This bash problem
12216 # is reportedly fixed, but why not run on old versions too?
12217 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12219 mv -f "$cfgfile" "$ofile" || \
12220 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12224 # If there is no Makefile yet, we rely on a make rule to execute
12225 # `config.status --recheck' to rerun these tests and create the
12226 # libtool script then.
12227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12228 if test -f "$ltmain_in"; then
12229 test -f Makefile && make "$ltmain"
12235 ac_cpp='$CPP $CPPFLAGS'
12236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12243 # Check whether --with-tags was given.
12244 if test "${with_tags+set}" = set; then
12245 withval=$with_tags; tagnames="$withval"
12249 if test -f "$ltmain" && test -n "$tagnames"; then
12250 if test ! -f "${ofile}"; then
12251 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12252 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12255 if test -z "$LTCC"; then
12256 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12257 if test -z "$LTCC"; then
12258 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12259 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12262 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12265 if test -z "$LTCFLAGS"; then
12266 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12269 # Extract list of available tagged configurations in $ofile.
12270 # Note that this assumes the entire list is on one line.
12271 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12274 for tagname in $tagnames; do
12276 # Check whether tagname contains only valid characters
12277 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12279 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12280 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12281 { (exit 1); exit 1; }; }
12285 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12287 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12288 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12289 { (exit 1); exit 1; }; }
12292 # Update the list of available tags.
12293 if test -n "$tagname"; then
12294 echo appending configuration tag \"$tagname\" to $ofile
12298 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12299 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12300 (test "X$CXX" != "Xg++"))) ; then
12302 ac_cpp='$CXXCPP $CPPFLAGS'
12303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12310 archive_cmds_need_lc_CXX=no
12311 allow_undefined_flag_CXX=
12312 always_export_symbols_CXX=no
12313 archive_expsym_cmds_CXX=
12314 export_dynamic_flag_spec_CXX=
12315 hardcode_direct_CXX=no
12316 hardcode_libdir_flag_spec_CXX=
12317 hardcode_libdir_flag_spec_ld_CXX=
12318 hardcode_libdir_separator_CXX=
12319 hardcode_minus_L_CXX=no
12320 hardcode_shlibpath_var_CXX=unsupported
12321 hardcode_automatic_CXX=no
12323 module_expsym_cmds_CXX=
12324 link_all_deplibs_CXX=unknown
12325 old_archive_cmds_CXX=$old_archive_cmds
12326 no_undefined_flag_CXX=
12327 whole_archive_flag_spec_CXX=
12328 enable_shared_with_static_runtimes_CXX=no
12330 # Dependencies to place before and after the object being linked:
12331 predep_objects_CXX=
12332 postdep_objects_CXX=
12335 compiler_lib_search_path_CXX=
12337 # Source file extension for C++ test sources.
12340 # Object file extension for compiled C++ test sources.
12344 # Code to be used in simple compile tests
12345 lt_simple_compile_test_code="int some_variable = 0;\n"
12347 # Code to be used in simple link tests
12348 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12352 # If no C compiler was specified, use CC.
12355 # If no C compiler flags were specified, use CFLAGS.
12356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12358 # Allow CC to be a program name with arguments.
12362 # save warnings/boilerplate of simple test code
12363 ac_outfile=conftest.$ac_objext
12364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12366 _lt_compiler_boilerplate=`cat conftest.err`
12369 ac_outfile=conftest.$ac_objext
12370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12372 _lt_linker_boilerplate=`cat conftest.err`
12376 # Allow CC to be a program name with arguments.
12381 lt_save_with_gnu_ld=$with_gnu_ld
12382 lt_save_path_LD=$lt_cv_path_LD
12383 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12384 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12386 $as_unset lt_cv_prog_gnu_ld
12388 if test -n "${lt_cv_path_LDCXX+set}"; then
12389 lt_cv_path_LD=$lt_cv_path_LDCXX
12391 $as_unset lt_cv_path_LD
12393 test -z "${LDCXX+set}" || LD=$LDCXX
12397 for cc_temp in $compiler""; do
12399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12408 # We don't want -fno-exception wen compiling C++ code, so set the
12409 # no_builtin_flag separately
12410 if test "$GXX" = yes; then
12411 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12413 lt_prog_compiler_no_builtin_flag_CXX=
12416 if test "$GXX" = yes; then
12417 # Set up default GNU C++ configuration
12420 # Check whether --with-gnu-ld was given.
12421 if test "${with_gnu_ld+set}" = set; then
12422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12428 if test "$GCC" = yes; then
12429 # Check if gcc -print-prog-name=ld gives a path.
12430 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12434 # gcc leaves a trailing carriage return which upsets mingw
12435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12440 # Accept absolute paths.
12442 re_direlt='/[^/][^/]*/\.\./'
12443 # Canonicalize the pathname of ld
12444 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12446 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12448 test -z "$LD" && LD="$ac_prog"
12451 # If it fails, then pretend we aren't using GCC.
12455 # If it is relative, then search for the first ld in PATH.
12456 with_gnu_ld=unknown
12459 elif test "$with_gnu_ld" = yes; then
12460 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12463 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12466 if test "${lt_cv_path_LD+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 if test -z "$LD"; then
12470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12471 for ac_dir in $PATH; do
12473 test -z "$ac_dir" && ac_dir=.
12474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475 lt_cv_path_LD="$ac_dir/$ac_prog"
12476 # Check to see if the program is GNU ld. I'd rather use --version,
12477 # but apparently some variants of GNU ld only accept -v.
12478 # Break only if it was the GNU/non-GNU ld that we prefer.
12479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480 *GNU* | *'with BFD'*)
12481 test "$with_gnu_ld" != no && break
12484 test "$with_gnu_ld" != yes && break
12491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12495 LD="$lt_cv_path_LD"
12496 if test -n "$LD"; then
12497 { echo "$as_me:$LINENO: result: $LD" >&5
12498 echo "${ECHO_T}$LD" >&6; }
12500 { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12505 { (exit 1); exit 1; }; }
12506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12512 case `$LD -v 2>&1 </dev/null` in
12513 *GNU* | *'with BFD'*)
12514 lt_cv_prog_gnu_ld=yes
12517 lt_cv_prog_gnu_ld=no
12521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12523 with_gnu_ld=$lt_cv_prog_gnu_ld
12527 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12528 # archiving commands below assume that GNU ld is being used.
12529 if test "$with_gnu_ld" = yes; then
12530 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12531 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'
12533 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12536 # If archive_cmds runs LD, not CC, wlarc should be empty
12537 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12538 # investigate it a little bit more. (MM)
12541 # ancient GNU ld didn't support --whole-archive et. al.
12542 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12543 grep 'no-whole-archive' > /dev/null; then
12544 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12546 whole_archive_flag_spec_CXX=
12552 # A generic and very simple default shared library creation
12553 # command for GNU C++ for the case where it uses the native
12554 # linker, instead of GNU ld. If possible, this setting should
12555 # overridden to take advantage of the native linker features on
12556 # the platform it is being used on.
12557 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12560 # Commands to make compiler produce verbose output that lists
12561 # what "hidden" libraries, object files and flags are used when
12562 # linking a shared library.
12563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12571 # PORTME: fill in a description of your system's C++ link characteristics
12572 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12577 # FIXME: insert proper C++ library support
12581 if test "$host_cpu" = ia64; then
12582 # On IA64, the linker does run time linking by default, so we don't
12583 # have to do anything special.
12584 aix_use_runtimelinking=no
12585 exp_sym_flag='-Bexport'
12588 aix_use_runtimelinking=no
12590 # Test if we are trying to use run time linking or normal
12591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12592 # need to do runtime linking.
12593 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12594 for ld_flag in $LDFLAGS; do
12597 aix_use_runtimelinking=yes
12605 exp_sym_flag='-bexport'
12606 no_entry_flag='-bnoentry'
12609 # When large executables or shared objects are built, AIX ld can
12610 # have problems creating the table of contents. If linking a library
12611 # or program results in "error TOC overflow" add -mminimal-toc to
12612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12615 archive_cmds_CXX=''
12616 hardcode_direct_CXX=yes
12617 hardcode_libdir_separator_CXX=':'
12618 link_all_deplibs_CXX=yes
12620 if test "$GXX" = yes; then
12621 case $host_os in aix4.[012]|aix4.[012].*)
12622 # We only want to do this on AIX 4.2 and lower, the check
12623 # below for broken collect2 doesn't work under 4.3+
12624 collect2name=`${CC} -print-prog-name=collect2`
12625 if test -f "$collect2name" && \
12626 strings "$collect2name" | grep resolve_lib_name >/dev/null
12628 # We have reworked collect2
12629 hardcode_direct_CXX=yes
12631 # We have old collect2
12632 hardcode_direct_CXX=unsupported
12633 # It fails to find uninstalled libraries when the uninstalled
12634 # path is not listed in the libpath. Setting hardcode_minus_L
12635 # to unsupported forces relinking
12636 hardcode_minus_L_CXX=yes
12637 hardcode_libdir_flag_spec_CXX='-L$libdir'
12638 hardcode_libdir_separator_CXX=
12642 shared_flag='-shared'
12643 if test "$aix_use_runtimelinking" = yes; then
12644 shared_flag="$shared_flag "'${wl}-G'
12648 if test "$host_cpu" = ia64; then
12649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12650 # chokes on -Wl,-G. The following line is correct:
12653 if test "$aix_use_runtimelinking" = yes; then
12654 shared_flag='${wl}-G'
12656 shared_flag='${wl}-bM:SRE'
12661 # It seems that -bexpall does not export symbols beginning with
12662 # underscore (_), so it is better to generate a list of symbols to export.
12663 always_export_symbols_CXX=yes
12664 if test "$aix_use_runtimelinking" = yes; then
12665 # Warning - without using the other runtime loading flags (-brtl),
12666 # -berok will link without error, but may produce a broken library.
12667 allow_undefined_flag_CXX='-berok'
12668 # Determine the default libpath from the value encoded in an empty executable.
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (ac_try="$ac_link"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_link") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12721 # Check for a 64-bit object if we didn't find anything.
12722 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12735 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12737 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"
12739 if test "$host_cpu" = ia64; then
12740 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12741 allow_undefined_flag_CXX="-z nodefs"
12742 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"
12744 # Determine the default libpath from the value encoded in an empty executable.
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (ac_try="$ac_link"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12769 grep -v '^ *+' conftest.er1 >conftest.err
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12797 # Check for a 64-bit object if we didn't find anything.
12798 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12812 # Warning - without using the other run time loading flags,
12813 # -berok will link without error, but may produce a broken library.
12814 no_undefined_flag_CXX=' ${wl}-bernotok'
12815 allow_undefined_flag_CXX=' ${wl}-berok'
12816 # Exported symbols can be pulled into shared objects from archives
12817 whole_archive_flag_spec_CXX='$convenience'
12818 archive_cmds_need_lc_CXX=yes
12819 # This is similar to how AIX traditionally builds its shared libraries.
12820 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'
12826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12827 allow_undefined_flag_CXX=unsupported
12828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12829 # support --undefined. This deserves some investigation. FIXME
12830 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12837 case $cc_basename in
12839 # FIXME: insert proper C++ library support
12845 cygwin* | mingw* | pw32*)
12846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12847 # as there is no search path for DLLs.
12848 hardcode_libdir_flag_spec_CXX='-L$libdir'
12849 allow_undefined_flag_CXX=unsupported
12850 always_export_symbols_CXX=no
12851 enable_shared_with_static_runtimes_CXX=yes
12853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12854 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'
12855 # If the export-symbols file already is a .def file (1st line
12856 # is EXPORTS), use it as is; otherwise, prepend...
12857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12858 cp $export_symbols $output_objdir/$soname.def;
12860 echo EXPORTS > $output_objdir/$soname.def;
12861 cat $export_symbols >> $output_objdir/$soname.def;
12863 $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'
12868 darwin* | rhapsody*)
12870 rhapsody* | darwin1.[012])
12871 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12874 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12875 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12877 case ${MACOSX_DEPLOYMENT_TARGET} in
12879 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12882 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12888 archive_cmds_need_lc_CXX=no
12889 hardcode_direct_CXX=no
12890 hardcode_automatic_CXX=yes
12891 hardcode_shlibpath_var_CXX=unsupported
12892 whole_archive_flag_spec_CXX=''
12893 link_all_deplibs_CXX=yes
12895 if test "$GXX" = yes ; then
12896 lt_int_apple_cc_single_mod=no
12897 output_verbose_link_cmd='echo'
12898 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12899 lt_int_apple_cc_single_mod=yes
12901 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12902 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12904 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'
12906 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12909 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}'
12911 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}'
12913 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12915 case $cc_basename in
12917 output_verbose_link_cmd='echo'
12918 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12919 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12921 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12922 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}'
12932 case $cc_basename in
12934 # FIXME: insert proper C++ library support
12938 # Green Hills C++ Compiler
12939 # FIXME: insert proper C++ library support
12943 # FIXME: insert proper C++ library support
12949 # C++ shared libraries reported to be fairly broken before switch to ELF
12953 archive_cmds_need_lc_CXX=no
12955 freebsd* | dragonfly*)
12956 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12964 hardcode_libdir_separator_CXX=:
12965 export_dynamic_flag_spec_CXX='${wl}-E'
12966 hardcode_direct_CXX=yes
12967 hardcode_minus_L_CXX=yes # Not in the search PATH,
12968 # but as the default
12969 # location of the library.
12971 case $cc_basename in
12973 # FIXME: insert proper C++ library support
12977 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'
12978 # Commands to make compiler produce verbose output that lists
12979 # what "hidden" libraries, object files and flags are used when
12980 # linking a shared library.
12982 # There doesn't appear to be a way to prevent this compiler from
12983 # explicitly linking system object files so we need to strip them
12984 # from the output so that they don't get included in the library
12986 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'
12989 if test "$GXX" = yes; then
12990 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'
12992 # FIXME: insert proper C++ library support
12999 if test $with_gnu_ld = no; then
13000 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13001 hardcode_libdir_separator_CXX=:
13005 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13008 export_dynamic_flag_spec_CXX='${wl}-E'
13014 hardcode_direct_CXX=no
13015 hardcode_shlibpath_var_CXX=no
13018 hardcode_direct_CXX=yes
13019 hardcode_minus_L_CXX=yes # Not in the search PATH,
13020 # but as the default
13021 # location of the library.
13025 case $cc_basename in
13027 # FIXME: insert proper C++ library support
13033 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13036 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13039 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13042 # Commands to make compiler produce verbose output that lists
13043 # what "hidden" libraries, object files and flags are used when
13044 # linking a shared library.
13046 # There doesn't appear to be a way to prevent this compiler from
13047 # explicitly linking system object files so we need to strip them
13048 # from the output so that they don't get included in the library
13050 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'
13053 if test "$GXX" = yes; then
13054 if test $with_gnu_ld = no; then
13057 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13060 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13063 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'
13068 # FIXME: insert proper C++ library support
13075 hardcode_direct_CXX=no
13076 hardcode_shlibpath_var_CXX=no
13077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13078 export_dynamic_flag_spec_CXX='${wl}-E'
13079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13080 # Instead, shared libraries are loaded at an image base (0x10000000 by
13081 # default) and relocated if they conflict, which is a slow very memory
13082 # consuming and fragmenting process. To avoid this, we pick a random,
13083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13085 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'
13086 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'
13089 case $cc_basename in
13092 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'
13094 # Archives containing C++ object files must be created using
13095 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13096 # necessary to make sure instantiated templates are included
13098 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13101 if test "$GXX" = yes; then
13102 if test "$with_gnu_ld" = no; then
13103 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'
13105 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'
13108 link_all_deplibs_CXX=yes
13111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13112 hardcode_libdir_separator_CXX=:
13114 linux* | k*bsd*-gnu)
13115 case $cc_basename in
13117 # Kuck and Associates, Inc. (KAI) C++ Compiler
13119 # KCC will only create a shared library if the output file
13120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13121 # to its proper name (with version) after linking.
13122 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'
13123 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'
13124 # Commands to make compiler produce verbose output that lists
13125 # what "hidden" libraries, object files and flags are used when
13126 # linking a shared library.
13128 # There doesn't appear to be a way to prevent this compiler from
13129 # explicitly linking system object files so we need to strip them
13130 # from the output so that they don't get included in the library
13132 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'
13134 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13135 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13137 # Archives containing C++ object files must be created using
13138 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13139 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13144 # version 8.0 and above of icpc choke on multiply defined symbols
13145 # if we add $predep_objects and $postdep_objects, however 7.1 and
13146 # earlier do not add the objects themselves.
13147 case `$CC -V 2>&1` in
13149 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 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'
13152 *) # Version 8.0 or newer
13155 ia64*) tmp_idyn=' -i_dynamic';;
13157 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13158 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'
13161 archive_cmds_need_lc_CXX=no
13162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13164 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13167 # Portland Group C++ compiler
13168 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13169 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'
13171 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13172 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13173 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'
13177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 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'
13180 runpath_var=LD_RUN_PATH
13181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13182 hardcode_libdir_separator_CXX=:
13184 # Commands to make compiler produce verbose output that lists
13185 # what "hidden" libraries, object files and flags are used when
13186 # linking a shared library.
13188 # There doesn't appear to be a way to prevent this compiler from
13189 # explicitly linking system object files so we need to strip them
13190 # from the output so that they don't get included in the library
13192 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'
13197 # FIXME: insert proper C++ library support
13201 # FIXME: insert proper C++ library support
13205 case $cc_basename in
13207 # FIXME: insert proper C++ library support
13211 # FIXME: insert proper C++ library support
13216 netbsd* | netbsdelf*-gnu)
13217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13218 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13220 hardcode_libdir_flag_spec_CXX='-R$libdir'
13221 hardcode_direct_CXX=yes
13222 hardcode_shlibpath_var_CXX=no
13224 # Workaround some broken pre-1.5 toolchains
13225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13228 # C++ shared libraries are fairly broken
13232 hardcode_direct_CXX=yes
13233 hardcode_shlibpath_var_CXX=no
13234 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13235 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13237 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13238 export_dynamic_flag_spec_CXX='${wl}-E'
13239 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13241 output_verbose_link_cmd='echo'
13244 case $cc_basename in
13246 # Kuck and Associates, Inc. (KAI) C++ Compiler
13248 # KCC will only create a shared library if the output file
13249 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13250 # to its proper name (with version) after linking.
13251 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'
13253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13254 hardcode_libdir_separator_CXX=:
13256 # Archives containing C++ object files must be created using
13257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13262 # Rational C++ 2.4.1
13263 # FIXME: insert proper C++ library support
13267 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268 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'
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13271 hardcode_libdir_separator_CXX=:
13273 # Commands to make compiler produce verbose output that lists
13274 # what "hidden" libraries, object files and flags are used when
13275 # linking a shared library.
13277 # There doesn't appear to be a way to prevent this compiler from
13278 # explicitly linking system object files so we need to strip them
13279 # from the output so that they don't get included in the library
13281 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'
13284 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13285 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13286 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'
13288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13289 hardcode_libdir_separator_CXX=:
13291 # Commands to make compiler produce verbose output that lists
13292 # what "hidden" libraries, object files and flags are used when
13293 # linking a shared library.
13294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13297 # FIXME: insert proper C++ library support
13304 case $cc_basename in
13306 # Kuck and Associates, Inc. (KAI) C++ Compiler
13308 # KCC will only create a shared library if the output file
13309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13310 # to its proper name (with version) after linking.
13311 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'
13313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13314 hardcode_libdir_separator_CXX=:
13316 # Archives containing C++ object files must be created using
13317 # the KAI C++ compiler.
13318 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13321 # Rational C++ 2.4.1
13322 # FIXME: insert proper C++ library support
13326 allow_undefined_flag_CXX=' -expect_unresolved \*'
13327 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'
13328 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13329 echo "-hidden">> $lib.exp~
13330 $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~
13333 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334 hardcode_libdir_separator_CXX=:
13336 # Commands to make compiler produce verbose output that lists
13337 # what "hidden" libraries, object files and flags are used when
13338 # linking a shared library.
13340 # There doesn't appear to be a way to prevent this compiler from
13341 # explicitly linking system object files so we need to strip them
13342 # from the output so that they don't get included in the library
13344 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'
13347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13349 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'
13351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_CXX=:
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13357 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13360 # FIXME: insert proper C++ library support
13367 # FIXME: insert proper C++ library support
13371 case $cc_basename in
13374 # FIXME: insert proper C++ library support
13379 # FIXME: insert proper C++ library support
13383 # FIXME: insert proper C++ library support
13389 case $cc_basename in
13391 # Sun C++ 4.2, 5.x and Centerline C++
13392 archive_cmds_need_lc_CXX=yes
13393 no_undefined_flag_CXX=' -zdefs'
13394 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13395 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13396 $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'
13398 hardcode_libdir_flag_spec_CXX='-R$libdir'
13399 hardcode_shlibpath_var_CXX=no
13401 solaris2.[0-5] | solaris2.[0-5].*) ;;
13403 # The C++ compiler is used as linker so we must use $wl
13404 # flag to pass the commands to the underlying system
13405 # linker. We must also pass each convience library through
13406 # to the system linker between allextract/defaultextract.
13407 # The C++ compiler will combine linker options so we
13408 # cannot just pass the convience library names through
13410 # Supported since Solaris 2.6 (maybe 2.5.1?)
13411 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13414 link_all_deplibs_CXX=yes
13416 output_verbose_link_cmd='echo'
13418 # Archives containing C++ object files must be created using
13419 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13420 # necessary to make sure instantiated templates are included
13422 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13425 # Green Hills C++ Compiler
13426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13428 # The C++ compiler must be used to create the archive.
13429 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13432 # GNU C++ compiler with Solaris linker
13433 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13434 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13435 if $CC --version | grep -v '^2\.7' > /dev/null; then
13436 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13437 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13440 # Commands to make compiler produce verbose output that lists
13441 # what "hidden" libraries, object files and flags are used when
13442 # linking a shared library.
13443 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13445 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13447 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13451 # Commands to make compiler produce verbose output that lists
13452 # what "hidden" libraries, object files and flags are used when
13453 # linking a shared library.
13454 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13457 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13463 no_undefined_flag_CXX='${wl}-z,text'
13464 archive_cmds_need_lc_CXX=no
13465 hardcode_shlibpath_var_CXX=no
13466 runpath_var='LD_RUN_PATH'
13468 case $cc_basename in
13470 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13475 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 sysv5* | sco3.2v5* | sco5v6*)
13480 # Note: We can NOT use -z defs as we might desire, because we do not
13481 # link with -lc, and that would cause any symbols used from libc to
13482 # always be unresolved, which means just about no library would
13483 # ever link correctly. If we're not using GNU ld we use -z text
13484 # though, which does catch some bad symbols but isn't as heavy-handed
13486 # For security reasons, it is highly recommended that you always
13487 # use absolute paths for naming shared libraries, and exclude the
13488 # DT_RUNPATH tag from executables and libraries. But doing so
13489 # requires that you compile everything twice, which is a pain.
13490 # So that behaviour is only enabled if SCOABSPATH is set to a
13491 # non-empty value in the environment. Most likely only useful for
13492 # creating official distributions of packages.
13493 # This is a hack until libtool officially supports absolute path
13494 # names for shared libraries.
13495 no_undefined_flag_CXX='${wl}-z,text'
13496 allow_undefined_flag_CXX='${wl}-z,nodefs'
13497 archive_cmds_need_lc_CXX=no
13498 hardcode_shlibpath_var_CXX=no
13499 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13500 hardcode_libdir_separator_CXX=':'
13501 link_all_deplibs_CXX=yes
13502 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13503 runpath_var='LD_RUN_PATH'
13505 case $cc_basename in
13507 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13508 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13512 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 case $cc_basename in
13519 # NonStop-UX NCC 3.20
13520 # FIXME: insert proper C++ library support
13524 # FIXME: insert proper C++ library support
13530 # FIXME: insert proper C++ library support
13534 # FIXME: insert proper C++ library support
13538 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13539 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13540 test "$ld_shlibs_CXX" = no && can_build_shared=no
13546 cat > conftest.$ac_ext <<EOF
13550 Foo (void) { a = 0; }
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; then
13561 # Parse the compiler output and extract the necessary
13562 # objects, libraries and library flags.
13564 # Sentinel used to keep track of whether or not we are before
13565 # the conftest object file.
13566 pre_test_object_deps_done=no
13568 # The `*' in the case matches for architectures that use `case' in
13569 # $output_verbose_cmd can trigger glob expansion during the loop
13570 # eval without this substitution.
13571 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13573 for p in `eval $output_verbose_link_cmd`; do
13577 # Some compilers place space between "-{L,R}" and the path.
13578 # Remove the space.
13579 if test $p = "-L" \
13580 || test $p = "-R"; then
13587 if test "$pre_test_object_deps_done" = no; then
13590 # Internal compiler library paths should come after those
13591 # provided the user. The postdeps already come after the
13592 # user supplied libs so there is no need to process them.
13593 if test -z "$compiler_lib_search_path_CXX"; then
13594 compiler_lib_search_path_CXX="${prev}${p}"
13596 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13599 # The "-l" case would never come before the object being
13600 # linked, so don't bother handling this case.
13603 if test -z "$postdeps_CXX"; then
13604 postdeps_CXX="${prev}${p}"
13606 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13612 # This assumes that the test object file only shows up
13613 # once in the compiler output.
13614 if test "$p" = "conftest.$objext"; then
13615 pre_test_object_deps_done=yes
13619 if test "$pre_test_object_deps_done" = no; then
13620 if test -z "$predep_objects_CXX"; then
13621 predep_objects_CXX="$p"
13623 predep_objects_CXX="$predep_objects_CXX $p"
13626 if test -z "$postdep_objects_CXX"; then
13627 postdep_objects_CXX="$p"
13629 postdep_objects_CXX="$postdep_objects_CXX $p"
13634 *) ;; # Ignore the rest.
13642 echo "libtool.m4: error: problem compiling CXX test program"
13645 $rm -f confest.$objext
13647 # PORTME: override above test on systems where it is broken
13650 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13651 # hack all around it, let's just trust "g++" to DTRT.
13652 predep_objects_CXX=
13653 postdep_objects_CXX=
13658 case $cc_basename in
13660 # Adding this requires a known-good setup of shared libraries for
13661 # Sun compiler versions before 5.6, else PIC objects from an old
13662 # archive will be linked into the output, leading to subtle bugs.
13663 postdeps_CXX='-lCstd -lCrun'
13670 case " $postdeps_CXX " in
13671 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13674 lt_prog_compiler_wl_CXX=
13675 lt_prog_compiler_pic_CXX=
13676 lt_prog_compiler_static_CXX=
13678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13681 # C++ specific cases for pic, static, wl, etc.
13682 if test "$GXX" = yes; then
13683 lt_prog_compiler_wl_CXX='-Wl,'
13684 lt_prog_compiler_static_CXX='-static'
13688 # All AIX code is PIC.
13689 if test "$host_cpu" = ia64; then
13690 # AIX 5 now supports IA64 processor
13691 lt_prog_compiler_static_CXX='-Bstatic'
13695 # FIXME: we need at least 68020 code to build shared libraries, but
13696 # adding the `-m68020' flag to GCC prevents building anything better,
13698 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13700 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13701 # PIC is the default for these OSes.
13703 mingw* | os2* | pw32*)
13704 # This hack is so that the source file can tell whether it is being
13705 # built for inclusion in a dll (and should export symbols for example).
13706 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13708 darwin* | rhapsody*)
13709 # PIC is the default on this platform
13710 # Common symbols not allowed in MH_DYLIB files
13711 lt_prog_compiler_pic_CXX='-fno-common'
13714 # DJGPP does not support shared libraries at all
13715 lt_prog_compiler_pic_CXX=
13718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13719 # Instead, we relocate shared libraries at runtime.
13722 if test -d /usr/nec; then
13723 lt_prog_compiler_pic_CXX=-Kconform_pic
13727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13728 # not for PA HP-UX.
13733 lt_prog_compiler_pic_CXX='-fPIC'
13738 lt_prog_compiler_pic_CXX='-fPIC'
13744 # All AIX code is PIC.
13745 if test "$host_cpu" = ia64; then
13746 # AIX 5 now supports IA64 processor
13747 lt_prog_compiler_static_CXX='-Bstatic'
13749 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13753 case $cc_basename in
13755 # Green Hills C++ Compiler
13756 # _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"
13761 # PIC is the default on this platform
13762 # Common symbols not allowed in MH_DYLIB files
13763 case $cc_basename in
13765 lt_prog_compiler_pic_CXX='-qnocommon'
13766 lt_prog_compiler_wl_CXX='-Wl,'
13771 case $cc_basename in
13773 lt_prog_compiler_pic_CXX='-KPIC'
13776 # Green Hills C++ Compiler
13777 lt_prog_compiler_pic_CXX='-pic'
13783 freebsd* | dragonfly*)
13784 # FreeBSD uses GNU C++
13786 hpux9* | hpux10* | hpux11*)
13787 case $cc_basename in
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13791 if test "$host_cpu" != ia64; then
13792 lt_prog_compiler_pic_CXX='+Z'
13796 lt_prog_compiler_wl_CXX='-Wl,'
13797 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13803 lt_prog_compiler_pic_CXX='+Z'
13812 # This is c89, which is MS Visual C++ (no shared libs)
13813 # Anyone wants to do a port?
13815 irix5* | irix6* | nonstopux*)
13816 case $cc_basename in
13818 lt_prog_compiler_wl_CXX='-Wl,'
13819 lt_prog_compiler_static_CXX='-non_shared'
13820 # CC pic flag -KPIC is the default.
13826 linux* | k*bsd*-gnu)
13827 case $cc_basename in
13830 lt_prog_compiler_wl_CXX='--backend -Wl,'
13831 lt_prog_compiler_pic_CXX='-fPIC'
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 lt_prog_compiler_pic_CXX='-KPIC'
13837 lt_prog_compiler_static_CXX='-static'
13840 # Portland Group C++ compiler.
13841 lt_prog_compiler_wl_CXX='-Wl,'
13842 lt_prog_compiler_pic_CXX='-fpic'
13843 lt_prog_compiler_static_CXX='-Bstatic'
13847 # Make sure the PIC flag is empty. It appears that all Alpha
13848 # Linux and Compaq Tru64 Unix objects are PIC.
13849 lt_prog_compiler_pic_CXX=
13850 lt_prog_compiler_static_CXX='-non_shared'
13861 case $cc_basename in
13863 lt_prog_compiler_pic_CXX='-W c,exportall'
13869 netbsd* | netbsdelf*-gnu)
13871 osf3* | osf4* | osf5*)
13872 case $cc_basename in
13874 lt_prog_compiler_wl_CXX='--backend -Wl,'
13877 # Rational C++ 2.4.1
13878 lt_prog_compiler_pic_CXX='-pic'
13881 # Digital/Compaq C++
13882 lt_prog_compiler_wl_CXX='-Wl,'
13883 # Make sure the PIC flag is empty. It appears that all Alpha
13884 # Linux and Compaq Tru64 Unix objects are PIC.
13885 lt_prog_compiler_pic_CXX=
13886 lt_prog_compiler_static_CXX='-non_shared'
13895 case $cc_basename in
13897 # Sun C++ 4.2, 5.x and Centerline C++
13898 lt_prog_compiler_pic_CXX='-KPIC'
13899 lt_prog_compiler_static_CXX='-Bstatic'
13900 lt_prog_compiler_wl_CXX='-Qoption ld '
13903 # Green Hills C++ Compiler
13904 lt_prog_compiler_pic_CXX='-PIC'
13911 case $cc_basename in
13914 lt_prog_compiler_pic_CXX='-pic'
13915 lt_prog_compiler_static_CXX='-Bstatic'
13919 lt_prog_compiler_pic_CXX='-pic'
13926 case $cc_basename in
13928 # NonStop-UX NCC 3.20
13929 lt_prog_compiler_pic_CXX='-KPIC'
13935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13936 case $cc_basename in
13938 lt_prog_compiler_wl_CXX='-Wl,'
13939 lt_prog_compiler_pic_CXX='-KPIC'
13940 lt_prog_compiler_static_CXX='-Bstatic'
13947 lt_prog_compiler_can_build_shared_CXX=no
13952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13953 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13956 # Check to make sure the PIC flag actually works.
13958 if test -n "$lt_prog_compiler_pic_CXX"; then
13960 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13962 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 lt_prog_compiler_pic_works_CXX=no
13966 ac_outfile=conftest.$ac_objext
13967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13968 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13969 # Insert the option either (1) after the last *FLAGS variable, or
13970 # (2) before a word containing "conftest.", or (3) at the end.
13971 # Note that $ac_compile itself does not contain backslashes and begins
13972 # with a dollar sign (not a hyphen), so the echo should work correctly.
13973 # The option is referenced via a variable to avoid confusing sed.
13974 lt_compile=`echo "$ac_compile" | $SED \
13975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13977 -e 's:$: $lt_compiler_flag:'`
13978 (eval echo "\"\$as_me:13978: $lt_compile\"" >&5)
13979 (eval "$lt_compile" 2>conftest.err)
13981 cat conftest.err >&5
13982 echo "$as_me:13982: \$? = $ac_status" >&5
13983 if (exit $ac_status) && test -s "$ac_outfile"; then
13984 # The compiler can only warn and ignore the option if not recognized
13985 # So say no if there are warnings other than the usual output.
13986 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13989 lt_prog_compiler_pic_works_CXX=yes
13995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13996 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13998 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13999 case $lt_prog_compiler_pic_CXX in
14001 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14004 lt_prog_compiler_pic_CXX=
14005 lt_prog_compiler_can_build_shared_CXX=no
14010 # For platforms which do not support PIC, -DPIC is meaningless:
14012 lt_prog_compiler_pic_CXX=
14015 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14020 # Check to make sure the static flag actually works.
14022 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14023 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14024 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14025 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 lt_prog_compiler_static_works_CXX=no
14029 save_LDFLAGS="$LDFLAGS"
14030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14031 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14033 # The linker can only warn and ignore the option if not recognized
14034 # So say no if there are warnings
14035 if test -s conftest.err; then
14036 # Append any errors to the config.log.
14037 cat conftest.err 1>&5
14038 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14040 if diff conftest.exp conftest.er2 >/dev/null; then
14041 lt_prog_compiler_static_works_CXX=yes
14044 lt_prog_compiler_static_works_CXX=yes
14048 LDFLAGS="$save_LDFLAGS"
14051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14052 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14054 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14057 lt_prog_compiler_static_CXX=
14061 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14063 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 lt_cv_prog_compiler_c_o_CXX=no
14067 $rm -r conftest 2>/dev/null
14071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14073 lt_compiler_flag="-o out/conftest2.$ac_objext"
14074 # Insert the option either (1) after the last *FLAGS variable, or
14075 # (2) before a word containing "conftest.", or (3) at the end.
14076 # Note that $ac_compile itself does not contain backslashes and begins
14077 # with a dollar sign (not a hyphen), so the echo should work correctly.
14078 lt_compile=`echo "$ac_compile" | $SED \
14079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14081 -e 's:$: $lt_compiler_flag:'`
14082 (eval echo "\"\$as_me:14082: $lt_compile\"" >&5)
14083 (eval "$lt_compile" 2>out/conftest.err)
14085 cat out/conftest.err >&5
14086 echo "$as_me:14086: \$? = $ac_status" >&5
14087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14089 # The compiler can only warn and ignore the option if not recognized
14090 # So say no if there are warnings
14091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14094 lt_cv_prog_compiler_c_o_CXX=yes
14099 # SGI C++ compiler will create directory out/ii_files/ for
14100 # template instantiation
14101 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14102 $rm out/* && rmdir out
14108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14109 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14112 hard_links="nottested"
14113 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14114 # do not overwrite the value of need_locks provided by the user
14115 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14116 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14121 ln conftest.a conftest.b 2>&5 || hard_links=no
14122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14123 { echo "$as_me:$LINENO: result: $hard_links" >&5
14124 echo "${ECHO_T}$hard_links" >&6; }
14125 if test "$hard_links" = no; then
14126 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14127 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14134 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14137 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14140 # If we're using GNU nm, then we don't want the "-C" option.
14141 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14142 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14143 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'
14145 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'
14149 export_symbols_cmds_CXX="$ltdll_cmds"
14152 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'
14154 linux* | k*bsd*-gnu)
14155 link_all_deplibs_CXX=no
14158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14162 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14163 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14164 test "$ld_shlibs_CXX" = no && can_build_shared=no
14167 # Do we need to explicitly link libc?
14169 case "x$archive_cmds_need_lc_CXX" in
14171 # Assume -lc should be added
14172 archive_cmds_need_lc_CXX=yes
14174 if test "$enable_shared" = yes && test "$GCC" = yes; then
14175 case $archive_cmds_CXX in
14177 # FIXME: we may have to deal with multi-command sequences.
14180 # Test whether the compiler implicitly links with -lc since on some
14181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14182 # to ld, don't add -lc before -lgcc.
14183 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } 2>conftest.err; then
14195 libobjs=conftest.$ac_objext
14197 wl=$lt_prog_compiler_wl_CXX
14198 pic_flag=$lt_prog_compiler_pic_CXX
14204 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14205 allow_undefined_flag_CXX=
14206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14207 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }
14212 archive_cmds_need_lc_CXX=no
14214 archive_cmds_need_lc_CXX=yes
14216 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14218 cat conftest.err 1>&5
14221 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14222 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14231 library_names_spec=
14232 libname_spec='lib$name'
14236 postuninstall_cmds=
14240 shlibpath_overrides_runpath=unknown
14242 dynamic_linker="$host_os ld.so"
14243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14244 if test "$GCC" = yes; then
14245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14246 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14247 # if the path contains ";" then we assume it to be the separator
14248 # otherwise default to the standard path separator (i.e. ":") - it is
14249 # assumed that no part of a normal pathname contains ";" but that should
14250 # okay in the real world where ";" in dirpaths is itself problematic.
14251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14258 need_lib_prefix=unknown
14259 hardcode_into_libs=no
14261 # when you set need_version to no, make sure it does not cause -set_version
14262 # flags to be left without arguments
14263 need_version=unknown
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14269 shlibpath_var=LIBPATH
14271 # AIX 3 has no versioning support, so we append a major version to the name.
14272 soname_spec='${libname}${release}${shared_ext}$major'
14279 hardcode_into_libs=yes
14280 if test "$host_cpu" = ia64; then
14281 # AIX 5 supports IA64
14282 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14283 shlibpath_var=LD_LIBRARY_PATH
14285 # With GCC up to 2.95.x, collect2 would create an import file
14286 # for dependence libraries. The import file would start with
14287 # the line `#! .'. This would cause the generated library to
14288 # depend on `.', always an invalid library. This was fixed in
14289 # development snapshots of GCC prior to 3.0.
14291 aix4 | aix4.[01] | aix4.[01].*)
14292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14297 can_build_shared=no
14301 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14302 # soname into executable. Probably we can add versioning support to
14303 # collect2, so additional links can be useful in future.
14304 if test "$aix_use_runtimelinking" = yes; then
14305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14306 # instead of lib<name>.a to let people know that these are not
14307 # typical AIX shared libraries.
14308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 # We preserve .a as extension for shared libraries through AIX4.2
14311 # and later when we are not doing run time linking.
14312 library_names_spec='${libname}${release}.a $libname.a'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14315 shlibpath_var=LIBPATH
14320 library_names_spec='$libname.ixlibrary $libname.a'
14321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14322 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'
14326 library_names_spec='${libname}${shared_ext}'
14327 dynamic_linker="$host_os ld.so"
14328 shlibpath_var=LIBRARY_PATH
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14337 shlibpath_var=LD_LIBRARY_PATH
14338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14340 # the default ld.so.conf also contains /usr/contrib/lib and
14341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14342 # libtool to hard-code these into programs
14345 cygwin* | mingw* | pw32*)
14346 version_type=windows
14351 case $GCC,$host_os in
14352 yes,cygwin* | yes,mingw* | yes,pw32*)
14353 library_names_spec='$libname.dll.a'
14354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14355 postinstall_cmds='base_file=`basename \${file}`~
14356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14357 dldir=$destdir/`dirname \$dlpath`~
14358 test -d \$dldir || mkdir -p \$dldir~
14359 $install_prog $dir/$dlname \$dldir/$dlname~
14360 chmod a+x \$dldir/$dlname'
14361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14362 dlpath=$dir/\$dldll~
14364 shlibpath_overrides_runpath=yes
14368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14369 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14370 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14373 # MinGW DLLs use traditional 'lib' prefix
14374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14376 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14377 # It is most probably a Windows format PATH printed by
14378 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14379 # path with ; separators, and with drive letters. We can handle the
14380 # drive letters (cygwin fileutils understands them), so leave them,
14381 # especially as we might pass files found there to a mingw objdump,
14382 # which wouldn't understand a cygwinified path. Ahh.
14383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14389 # pw32 DLLs use 'pw' prefix rather than 'lib'
14390 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14396 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14399 dynamic_linker='Win32 ld.exe'
14400 # FIXME: first we should search . and the directory the executable is in
14404 darwin* | rhapsody*)
14405 dynamic_linker="$host_os dyld"
14406 version_type=darwin
14409 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14410 soname_spec='${libname}${release}${major}$shared_ext'
14411 shlibpath_overrides_runpath=yes
14412 shlibpath_var=DYLD_LIBRARY_PATH
14413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14414 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14415 if test "$GCC" = yes; then
14416 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14418 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 shlibpath_var=LD_LIBRARY_PATH
14436 freebsd* | dragonfly*)
14437 # DragonFly does not have aout. When/if they implement a new
14438 # versioning mechanism, adjust this.
14439 if test -x /usr/bin/objformat; then
14440 objformat=`/usr/bin/objformat`
14443 freebsd[123]*) objformat=aout ;;
14444 *) objformat=elf ;;
14447 version_type=freebsd-$objformat
14448 case $version_type in
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14459 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=yes
14464 freebsd3.[01]* | freebsdelf3.[01]*)
14465 shlibpath_overrides_runpath=yes
14466 hardcode_into_libs=yes
14468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14470 shlibpath_overrides_runpath=no
14471 hardcode_into_libs=yes
14473 freebsd*) # from 4.6 on
14474 shlibpath_overrides_runpath=yes
14475 hardcode_into_libs=yes
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 hardcode_into_libs=yes
14490 hpux9* | hpux10* | hpux11*)
14491 # Give a soname corresponding to the major version so that dld.sl refuses to
14492 # link against other versions.
14499 hardcode_into_libs=yes
14500 dynamic_linker="$host_os dld.so"
14501 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 if test "X$HPUX_IA64_MODE" = X32; then
14506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514 hardcode_into_libs=yes
14515 dynamic_linker="$host_os dld.sl"
14516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525 dynamic_linker="$host_os dld.sl"
14526 shlibpath_var=SHLIB_PATH
14527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14533 postinstall_cmds='chmod 555 $lib'
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=no
14545 hardcode_into_libs=yes
14548 irix5* | irix6* | nonstopux*)
14550 nonstopux*) version_type=nonstopux ;;
14552 if test "$lt_cv_prog_gnu_ld" = yes; then
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14563 irix5* | nonstopux*)
14564 libsuff= shlibsuff=
14567 case $LD in # libtool.m4 will add one of these switches to LD
14568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14569 libsuff= shlibsuff= libmagic=32-bit;;
14570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14571 libsuff=32 shlibsuff=N32 libmagic=N32;;
14572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14574 *) libsuff= shlibsuff= libmagic=never-match;;
14578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14579 shlibpath_overrides_runpath=no
14580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14582 hardcode_into_libs=yes
14585 # No shared lib support for Linux oldld, aout, or coff.
14586 linux*oldld* | linux*aout* | linux*coff*)
14590 # This must be Linux ELF.
14591 linux* | k*bsd*-gnu)
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=no
14600 # This implies no fast_install, which is unacceptable.
14601 # Some rework will be needed to allow for fast_install
14602 # before this can be enabled.
14603 hardcode_into_libs=yes
14605 # Append ld.so.conf contents to the search path
14606 if test -f /etc/ld.so.conf; then
14607 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14611 # We used to test for /lib/ld.so.1 and disable shared libraries on
14612 # powerpc, because MkLinux only supported shared libraries with the
14613 # GNU dynamic linker. Since this was broken with cross compilers,
14614 # most powerpc-linux boxes support dynamic linking these days and
14615 # people can always --disable-shared, the test was removed, and we
14616 # assume the GNU/Linux dynamic linker is in use.
14617 dynamic_linker='GNU/Linux ld.so'
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 dynamic_linker='NetBSD ld.elf_so'
14636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14639 dynamic_linker='NetBSD (a.out) ld.so'
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 dynamic_linker='NetBSD ld.elf_so'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=yes
14647 hardcode_into_libs=yes
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=yes
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14669 sys_lib_dlsearch_path_spec="/usr/lib"
14671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14674 *) need_version=no ;;
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14681 openbsd2.[89] | openbsd2.[89].*)
14682 shlibpath_overrides_runpath=no
14685 shlibpath_overrides_runpath=yes
14689 shlibpath_overrides_runpath=yes
14694 libname_spec='$name'
14697 library_names_spec='$libname${shared_ext} $libname.a'
14698 dynamic_linker='OS/2 ld.exe'
14699 shlibpath_var=LIBPATH
14702 osf3* | osf4* | osf5*)
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes
14721 hardcode_into_libs=yes
14722 # ldd complains unless libraries are executable
14723 postinstall_cmds='chmod +x $lib'
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 shlibpath_overrides_runpath=yes
14732 if test "$with_gnu_ld" = yes; then
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 case $host_vendor in
14745 shlibpath_overrides_runpath=no
14747 export_dynamic_flag_spec='${wl}-Blargedynsym'
14748 runpath_var=LD_RUN_PATH
14756 shlibpath_overrides_runpath=no
14757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14763 if test -d /usr/nec ;then
14765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14766 soname_spec='$libname${shared_ext}.$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14772 version_type=freebsd-elf
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 hardcode_into_libs=yes
14779 if test "$with_gnu_ld" = yes; then
14780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14781 shlibpath_overrides_runpath=no
14783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14784 shlibpath_overrides_runpath=yes
14787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14791 sys_lib_dlsearch_path_spec='/usr/lib'
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 shlibpath_var=LD_LIBRARY_PATH
14805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14806 echo "${ECHO_T}$dynamic_linker" >&6; }
14807 test "$dynamic_linker" = no && can_build_shared=no
14809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14810 if test "$GCC" = yes; then
14811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14814 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14816 hardcode_action_CXX=
14817 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14818 test -n "$runpath_var_CXX" || \
14819 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14821 # We can hardcode non-existant directories.
14822 if test "$hardcode_direct_CXX" != no &&
14823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14824 # have to relink, otherwise we might link with an installed library
14825 # when we should be linking with a yet-to-be-installed one
14826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14827 test "$hardcode_minus_L_CXX" != no; then
14828 # Linking always hardcodes the temporary library directory.
14829 hardcode_action_CXX=relink
14831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14832 hardcode_action_CXX=immediate
14835 # We cannot hardcode anything, or else we can only hardcode existing
14837 hardcode_action_CXX=unsupported
14839 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14840 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14842 if test "$hardcode_action_CXX" = relink; then
14843 # Fast installation is not supported
14844 enable_fast_install=no
14845 elif test "$shlibpath_overrides_runpath" = yes ||
14846 test "$enable_shared" = no; then
14847 # Fast installation is not necessary
14848 enable_fast_install=needless
14852 # The else clause should only fire when bootstrapping the
14853 # libtool distribution, otherwise you forgot to ship ltmain.sh
14854 # with your package, and you will get complaints that there are
14855 # no rules to generate ltmain.sh.
14856 if test -f "$ltmain"; then
14857 # See if we are running on zsh, and set the options which allow our commands through
14858 # without removal of \ escapes.
14859 if test -n "${ZSH_VERSION+set}" ; then
14860 setopt NO_GLOB_SUBST
14862 # Now quote all the things that may contain metacharacters while being
14863 # careful not to overquote the AC_SUBSTed values. We take copies of the
14864 # variables and quote the copies for generation of the libtool script.
14865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14869 deplibs_check_method reload_flag reload_cmds need_locks \
14870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14871 lt_cv_sys_global_symbol_to_c_name_address \
14872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14873 old_postinstall_cmds old_postuninstall_cmds \
14877 lt_prog_compiler_wl_CXX \
14878 lt_prog_compiler_pic_CXX \
14879 lt_prog_compiler_static_CXX \
14880 lt_prog_compiler_no_builtin_flag_CXX \
14881 export_dynamic_flag_spec_CXX \
14882 thread_safe_flag_spec_CXX \
14883 whole_archive_flag_spec_CXX \
14884 enable_shared_with_static_runtimes_CXX \
14885 old_archive_cmds_CXX \
14886 old_archive_from_new_cmds_CXX \
14887 predep_objects_CXX \
14888 postdep_objects_CXX \
14891 compiler_lib_search_path_CXX \
14893 archive_expsym_cmds_CXX \
14894 postinstall_cmds_CXX \
14895 postuninstall_cmds_CXX \
14896 old_archive_from_expsyms_cmds_CXX \
14897 allow_undefined_flag_CXX \
14898 no_undefined_flag_CXX \
14899 export_symbols_cmds_CXX \
14900 hardcode_libdir_flag_spec_CXX \
14901 hardcode_libdir_flag_spec_ld_CXX \
14902 hardcode_libdir_separator_CXX \
14903 hardcode_automatic_CXX \
14905 module_expsym_cmds_CXX \
14906 lt_cv_prog_compiler_c_o_CXX \
14907 exclude_expsyms_CXX \
14908 include_expsyms_CXX; do
14911 old_archive_cmds_CXX | \
14912 old_archive_from_new_cmds_CXX | \
14913 archive_cmds_CXX | \
14914 archive_expsym_cmds_CXX | \
14915 module_cmds_CXX | \
14916 module_expsym_cmds_CXX | \
14917 old_archive_from_expsyms_cmds_CXX | \
14918 export_symbols_cmds_CXX | \
14919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14920 postinstall_cmds | postuninstall_cmds | \
14921 old_postinstall_cmds | old_postuninstall_cmds | \
14922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14923 # Double-quote double-evaled strings.
14924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14933 *'\$0 --fallback-echo"')
14934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14940 cat <<__EOF__ >> "$cfgfile"
14941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14945 # Shell to use when invoking shell scripts.
14948 # Whether or not to build shared libraries.
14949 build_libtool_libs=$enable_shared
14951 # Whether or not to build static libraries.
14952 build_old_libs=$enable_static
14954 # Whether or not to add -lc for building shared libraries.
14955 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14957 # Whether or not to disallow shared libs when runtime libs are static
14958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14960 # Whether or not to optimize for fast installation.
14961 fast_install=$enable_fast_install
14964 host_alias=$host_alias
14968 # The build system.
14969 build_alias=$build_alias
14973 # An echo program that does not interpret backslashes.
14978 AR_FLAGS=$lt_AR_FLAGS
14983 # LTCC compiler flags.
14984 LTCFLAGS=$lt_LTCFLAGS
14986 # A language-specific compiler.
14987 CC=$lt_compiler_CXX
14989 # Is the compiler the GNU C compiler?
14995 # The linker used to build libraries.
14998 # Whether we need hard or soft links.
15001 # A BSD-compatible nm program.
15004 # A symbol stripping program
15007 # Used to examine libraries when file_magic_cmd begins "file"
15008 MAGIC_CMD=$MAGIC_CMD
15010 # Used on cygwin: DLL creation program.
15013 # Used on cygwin: object dumper.
15016 # Used on cygwin: assembler.
15019 # The name of the directory that contains temporary libtool files.
15022 # How to create reloadable object files.
15023 reload_flag=$lt_reload_flag
15024 reload_cmds=$lt_reload_cmds
15026 # How to pass a linker flag through the compiler.
15027 wl=$lt_lt_prog_compiler_wl_CXX
15029 # Object file suffix (normally "o").
15030 objext="$ac_objext"
15032 # Old archive suffix (normally "a").
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds='$shrext_cmds'
15038 # Executable file suffix (normally "").
15041 # Additional compiler flags for building library objects.
15042 pic_flag=$lt_lt_prog_compiler_pic_CXX
15045 # What is the maximum length of a command?
15046 max_cmd_len=$lt_cv_sys_max_cmd_len
15048 # Does compiler simultaneously support -c and -o options?
15049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15051 # Must we lock files when doing compilation?
15052 need_locks=$lt_need_locks
15054 # Do we need the lib prefix for modules?
15055 need_lib_prefix=$need_lib_prefix
15057 # Do we need a version for libraries?
15058 need_version=$need_version
15060 # Whether dlopen is supported.
15061 dlopen_support=$enable_dlopen
15063 # Whether dlopen of programs is supported.
15064 dlopen_self=$enable_dlopen_self
15066 # Whether dlopen of statically linked programs is supported.
15067 dlopen_self_static=$enable_dlopen_self_static
15069 # Compiler flag to prevent dynamic linking.
15070 link_static_flag=$lt_lt_prog_compiler_static_CXX
15072 # Compiler flag to turn off builtin functions.
15073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15075 # Compiler flag to allow reflexive dlopens.
15076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15078 # Compiler flag to generate shared objects directly from archives.
15079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15081 # Compiler flag to generate thread-safe objects.
15082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15084 # Library versioning type.
15085 version_type=$version_type
15087 # Format of library name prefix.
15088 libname_spec=$lt_libname_spec
15090 # List of archive names. First name is the real one, the rest are links.
15091 # The last name is the one that the linker finds with -lNAME.
15092 library_names_spec=$lt_library_names_spec
15094 # The coded name of the library, if different from the real name.
15095 soname_spec=$lt_soname_spec
15097 # Commands used to build and install an old-style archive.
15099 old_archive_cmds=$lt_old_archive_cmds_CXX
15100 old_postinstall_cmds=$lt_old_postinstall_cmds
15101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15103 # Create an old-style archive from a shared archive.
15104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15106 # Create a temporary old-style archive to link instead of a shared archive.
15107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15109 # Commands used to build and install a shared archive.
15110 archive_cmds=$lt_archive_cmds_CXX
15111 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15112 postinstall_cmds=$lt_postinstall_cmds
15113 postuninstall_cmds=$lt_postuninstall_cmds
15115 # Commands used to build a loadable module (assumed same as above if empty)
15116 module_cmds=$lt_module_cmds_CXX
15117 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15119 # Commands to strip libraries.
15120 old_striplib=$lt_old_striplib
15121 striplib=$lt_striplib
15123 # Dependencies to place before the objects being linked to create a
15125 predep_objects=$lt_predep_objects_CXX
15127 # Dependencies to place after the objects being linked to create a
15129 postdep_objects=$lt_postdep_objects_CXX
15131 # Dependencies to place before the objects being linked to create a
15133 predeps=$lt_predeps_CXX
15135 # Dependencies to place after the objects being linked to create a
15137 postdeps=$lt_postdeps_CXX
15139 # The library search path used internally by the compiler when linking
15140 # a shared library.
15141 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15143 # Method to check whether dependent libraries are shared objects.
15144 deplibs_check_method=$lt_deplibs_check_method
15146 # Command to use when deplibs_check_method == file_magic.
15147 file_magic_cmd=$lt_file_magic_cmd
15149 # Flag that allows shared libraries with undefined symbols to be built.
15150 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15152 # Flag that forces no undefined symbols.
15153 no_undefined_flag=$lt_no_undefined_flag_CXX
15155 # Commands used to finish a libtool library installation in a directory.
15156 finish_cmds=$lt_finish_cmds
15158 # Same as above, but a single script fragment to be evaled but not shown.
15159 finish_eval=$lt_finish_eval
15161 # Take the output of nm and produce a listing of raw symbols and C names.
15162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15164 # Transform the output of nm in a proper C declaration
15165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15167 # Transform the output of nm in a C name address pair
15168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15170 # This is the shared library runtime path variable.
15171 runpath_var=$runpath_var
15173 # This is the shared library path variable.
15174 shlibpath_var=$shlibpath_var
15176 # Is shlibpath searched before the hard-coded library search path?
15177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15179 # How to hardcode a shared library path into an executable.
15180 hardcode_action=$hardcode_action_CXX
15182 # Whether we should hardcode library paths into libraries.
15183 hardcode_into_libs=$hardcode_into_libs
15185 # Flag to hardcode \$libdir into a binary during linking.
15186 # This must work even if \$libdir does not exist.
15187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15189 # If ld is used when linking, flag to hardcode \$libdir into
15190 # a binary during linking. This must work even if \$libdir does
15192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15194 # Whether we need a single -rpath flag with a separated argument.
15195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15198 # resulting binary.
15199 hardcode_direct=$hardcode_direct_CXX
15201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15202 # resulting binary.
15203 hardcode_minus_L=$hardcode_minus_L_CXX
15205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15206 # the resulting binary.
15207 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15209 # Set to yes if building a shared library automatically hardcodes DIR into the library
15210 # and all subsequent libraries and executables linked against it.
15211 hardcode_automatic=$hardcode_automatic_CXX
15213 # Variables whose values should be saved in libtool wrapper scripts and
15214 # restored at relink time.
15215 variables_saved_for_relink="$variables_saved_for_relink"
15217 # Whether libtool must link a program against all its dependency libraries.
15218 link_all_deplibs=$link_all_deplibs_CXX
15220 # Compile-time system search path for libraries
15221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15223 # Run-time system search path for libraries
15224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15226 # Fix the shell variable \$srcfile for the compiler.
15227 fix_srcfile_path="$fix_srcfile_path_CXX"
15229 # Set to yes if exported symbols are required.
15230 always_export_symbols=$always_export_symbols_CXX
15232 # The commands to list exported symbols.
15233 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15235 # The commands to extract the exported symbol list from a shared archive.
15236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15238 # Symbols that should not be listed in the preloaded symbols.
15239 exclude_expsyms=$lt_exclude_expsyms_CXX
15241 # Symbols that must always be exported.
15242 include_expsyms=$lt_include_expsyms_CXX
15244 # ### END LIBTOOL TAG CONFIG: $tagname
15250 # If there is no Makefile yet, we rely on a make rule to execute
15251 # `config.status --recheck' to rerun these tests and create the
15252 # libtool script then.
15253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15254 if test -f "$ltmain_in"; then
15255 test -f Makefile && make "$ltmain"
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15270 with_gnu_ldcxx=$with_gnu_ld
15271 with_gnu_ld=$lt_save_with_gnu_ld
15272 lt_cv_path_LDCXX=$lt_cv_path_LD
15273 lt_cv_path_LD=$lt_save_path_LD
15274 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15275 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15283 if test -n "$F77" && test "X$F77" != "Xno"; then
15286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15291 archive_cmds_need_lc_F77=no
15292 allow_undefined_flag_F77=
15293 always_export_symbols_F77=no
15294 archive_expsym_cmds_F77=
15295 export_dynamic_flag_spec_F77=
15296 hardcode_direct_F77=no
15297 hardcode_libdir_flag_spec_F77=
15298 hardcode_libdir_flag_spec_ld_F77=
15299 hardcode_libdir_separator_F77=
15300 hardcode_minus_L_F77=no
15301 hardcode_automatic_F77=no
15303 module_expsym_cmds_F77=
15304 link_all_deplibs_F77=unknown
15305 old_archive_cmds_F77=$old_archive_cmds
15306 no_undefined_flag_F77=
15307 whole_archive_flag_spec_F77=
15308 enable_shared_with_static_runtimes_F77=no
15310 # Source file extension for f77 test sources.
15313 # Object file extension for compiled f77 test sources.
15317 # Code to be used in simple compile tests
15318 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15320 # Code to be used in simple link tests
15321 lt_simple_link_test_code=" program t\n end\n"
15323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15325 # If no C compiler was specified, use CC.
15328 # If no C compiler flags were specified, use CFLAGS.
15329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15331 # Allow CC to be a program name with arguments.
15335 # save warnings/boilerplate of simple test code
15336 ac_outfile=conftest.$ac_objext
15337 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15339 _lt_compiler_boilerplate=`cat conftest.err`
15342 ac_outfile=conftest.$ac_objext
15343 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15345 _lt_linker_boilerplate=`cat conftest.err`
15349 # Allow CC to be a program name with arguments.
15354 for cc_temp in $compiler""; do
15356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15365 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15366 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15367 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15368 echo "${ECHO_T}$can_build_shared" >&6; }
15370 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15371 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15372 test "$can_build_shared" = "no" && enable_shared=no
15374 # On AIX, shared libraries and static libraries use the same namespace, and
15375 # are all built from PIC.
15378 test "$enable_shared" = yes && enable_static=no
15379 if test -n "$RANLIB"; then
15380 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15381 postinstall_cmds='$RANLIB $lib'
15385 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15386 test "$enable_shared" = yes && enable_static=no
15390 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15391 echo "${ECHO_T}$enable_shared" >&6; }
15393 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15394 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15395 # Make sure either enable_shared or enable_static is yes.
15396 test "$enable_shared" = yes || enable_static=yes
15397 { echo "$as_me:$LINENO: result: $enable_static" >&5
15398 echo "${ECHO_T}$enable_static" >&6; }
15403 lt_prog_compiler_wl_F77=
15404 lt_prog_compiler_pic_F77=
15405 lt_prog_compiler_static_F77=
15407 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15410 if test "$GCC" = yes; then
15411 lt_prog_compiler_wl_F77='-Wl,'
15412 lt_prog_compiler_static_F77='-static'
15416 # All AIX code is PIC.
15417 if test "$host_cpu" = ia64; then
15418 # AIX 5 now supports IA64 processor
15419 lt_prog_compiler_static_F77='-Bstatic'
15424 # FIXME: we need at least 68020 code to build shared libraries, but
15425 # adding the `-m68020' flag to GCC prevents building anything better,
15427 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15430 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15431 # PIC is the default for these OSes.
15434 mingw* | pw32* | os2*)
15435 # This hack is so that the source file can tell whether it is being
15436 # built for inclusion in a dll (and should export symbols for example).
15437 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15440 darwin* | rhapsody*)
15441 # PIC is the default on this platform
15442 # Common symbols not allowed in MH_DYLIB files
15443 lt_prog_compiler_pic_F77='-fno-common'
15447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15448 # Instead, we relocate shared libraries at runtime.
15452 # Just because we use GCC doesn't mean we suddenly get shared libraries
15453 # on systems that don't support them.
15454 lt_prog_compiler_can_build_shared_F77=no
15459 if test -d /usr/nec; then
15460 lt_prog_compiler_pic_F77=-Kconform_pic
15465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15466 # not for PA HP-UX.
15472 lt_prog_compiler_pic_F77='-fPIC'
15478 lt_prog_compiler_pic_F77='-fPIC'
15482 # PORTME Check for flag to pass linker flags through the system compiler.
15485 lt_prog_compiler_wl_F77='-Wl,'
15486 if test "$host_cpu" = ia64; then
15487 # AIX 5 now supports IA64 processor
15488 lt_prog_compiler_static_F77='-Bstatic'
15490 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15494 # PIC is the default on this platform
15495 # Common symbols not allowed in MH_DYLIB files
15496 case $cc_basename in
15498 lt_prog_compiler_pic_F77='-qnocommon'
15499 lt_prog_compiler_wl_F77='-Wl,'
15504 mingw* | pw32* | os2*)
15505 # This hack is so that the source file can tell whether it is being
15506 # built for inclusion in a dll (and should export symbols for example).
15507 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15510 hpux9* | hpux10* | hpux11*)
15511 lt_prog_compiler_wl_F77='-Wl,'
15512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513 # not for PA HP-UX.
15519 lt_prog_compiler_pic_F77='+Z'
15522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15523 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15526 irix5* | irix6* | nonstopux*)
15527 lt_prog_compiler_wl_F77='-Wl,'
15528 # PIC (with -KPIC) is the default.
15529 lt_prog_compiler_static_F77='-non_shared'
15533 lt_prog_compiler_pic_F77='-KPIC'
15534 lt_prog_compiler_static_F77='-Bstatic'
15537 linux* | k*bsd*-gnu)
15538 case $cc_basename in
15540 lt_prog_compiler_wl_F77='-Wl,'
15541 lt_prog_compiler_pic_F77='-KPIC'
15542 lt_prog_compiler_static_F77='-static'
15544 pgcc* | pgf77* | pgf90* | pgf95*)
15545 # Portland Group compilers (*not* the Pentium gcc compiler,
15546 # which looks to be a dead project)
15547 lt_prog_compiler_wl_F77='-Wl,'
15548 lt_prog_compiler_pic_F77='-fpic'
15549 lt_prog_compiler_static_F77='-Bstatic'
15552 lt_prog_compiler_wl_F77='-Wl,'
15553 # All Alpha code is PIC.
15554 lt_prog_compiler_static_F77='-non_shared'
15559 osf3* | osf4* | osf5*)
15560 lt_prog_compiler_wl_F77='-Wl,'
15561 # All OSF/1 code is PIC.
15562 lt_prog_compiler_static_F77='-non_shared'
15566 lt_prog_compiler_pic_F77='-KPIC'
15567 lt_prog_compiler_static_F77='-Bstatic'
15568 case $cc_basename in
15569 f77* | f90* | f95*)
15570 lt_prog_compiler_wl_F77='-Qoption ld ';;
15572 lt_prog_compiler_wl_F77='-Wl,';;
15577 lt_prog_compiler_wl_F77='-Qoption ld '
15578 lt_prog_compiler_pic_F77='-PIC'
15579 lt_prog_compiler_static_F77='-Bstatic'
15582 sysv4 | sysv4.2uw2* | sysv4.3*)
15583 lt_prog_compiler_wl_F77='-Wl,'
15584 lt_prog_compiler_pic_F77='-KPIC'
15585 lt_prog_compiler_static_F77='-Bstatic'
15589 if test -d /usr/nec ;then
15590 lt_prog_compiler_pic_F77='-Kconform_pic'
15591 lt_prog_compiler_static_F77='-Bstatic'
15595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15596 lt_prog_compiler_wl_F77='-Wl,'
15597 lt_prog_compiler_pic_F77='-KPIC'
15598 lt_prog_compiler_static_F77='-Bstatic'
15602 lt_prog_compiler_wl_F77='-Wl,'
15603 lt_prog_compiler_can_build_shared_F77=no
15607 lt_prog_compiler_pic_F77='-pic'
15608 lt_prog_compiler_static_F77='-Bstatic'
15612 lt_prog_compiler_can_build_shared_F77=no
15617 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15618 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15621 # Check to make sure the PIC flag actually works.
15623 if test -n "$lt_prog_compiler_pic_F77"; then
15625 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15627 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 lt_prog_compiler_pic_works_F77=no
15631 ac_outfile=conftest.$ac_objext
15632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15633 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15634 # Insert the option either (1) after the last *FLAGS variable, or
15635 # (2) before a word containing "conftest.", or (3) at the end.
15636 # Note that $ac_compile itself does not contain backslashes and begins
15637 # with a dollar sign (not a hyphen), so the echo should work correctly.
15638 # The option is referenced via a variable to avoid confusing sed.
15639 lt_compile=`echo "$ac_compile" | $SED \
15640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15642 -e 's:$: $lt_compiler_flag:'`
15643 (eval echo "\"\$as_me:15643: $lt_compile\"" >&5)
15644 (eval "$lt_compile" 2>conftest.err)
15646 cat conftest.err >&5
15647 echo "$as_me:15647: \$? = $ac_status" >&5
15648 if (exit $ac_status) && test -s "$ac_outfile"; then
15649 # The compiler can only warn and ignore the option if not recognized
15650 # So say no if there are warnings other than the usual output.
15651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15654 lt_prog_compiler_pic_works_F77=yes
15660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15661 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15663 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15664 case $lt_prog_compiler_pic_F77 in
15666 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15669 lt_prog_compiler_pic_F77=
15670 lt_prog_compiler_can_build_shared_F77=no
15675 # For platforms which do not support PIC, -DPIC is meaningless:
15677 lt_prog_compiler_pic_F77=
15680 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15685 # Check to make sure the static flag actually works.
15687 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15688 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15689 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15690 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 lt_prog_compiler_static_works_F77=no
15694 save_LDFLAGS="$LDFLAGS"
15695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15696 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15698 # The linker can only warn and ignore the option if not recognized
15699 # So say no if there are warnings
15700 if test -s conftest.err; then
15701 # Append any errors to the config.log.
15702 cat conftest.err 1>&5
15703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705 if diff conftest.exp conftest.er2 >/dev/null; then
15706 lt_prog_compiler_static_works_F77=yes
15709 lt_prog_compiler_static_works_F77=yes
15713 LDFLAGS="$save_LDFLAGS"
15716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15717 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15719 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15722 lt_prog_compiler_static_F77=
15726 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15728 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 lt_cv_prog_compiler_c_o_F77=no
15732 $rm -r conftest 2>/dev/null
15736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15738 lt_compiler_flag="-o out/conftest2.$ac_objext"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 lt_compile=`echo "$ac_compile" | $SED \
15744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746 -e 's:$: $lt_compiler_flag:'`
15747 (eval echo "\"\$as_me:15747: $lt_compile\"" >&5)
15748 (eval "$lt_compile" 2>out/conftest.err)
15750 cat out/conftest.err >&5
15751 echo "$as_me:15751: \$? = $ac_status" >&5
15752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings
15756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15759 lt_cv_prog_compiler_c_o_F77=yes
15764 # SGI C++ compiler will create directory out/ii_files/ for
15765 # template instantiation
15766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15767 $rm out/* && rmdir out
15773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15777 hard_links="nottested"
15778 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15779 # do not overwrite the value of need_locks provided by the user
15780 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786 ln conftest.a conftest.b 2>&5 || hard_links=no
15787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788 { echo "$as_me:$LINENO: result: $hard_links" >&5
15789 echo "${ECHO_T}$hard_links" >&6; }
15790 if test "$hard_links" = no; then
15791 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15799 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15803 allow_undefined_flag_F77=
15804 enable_shared_with_static_runtimes_F77=no
15806 archive_expsym_cmds_F77=
15807 old_archive_From_new_cmds_F77=
15808 old_archive_from_expsyms_cmds_F77=
15809 export_dynamic_flag_spec_F77=
15810 whole_archive_flag_spec_F77=
15811 thread_safe_flag_spec_F77=
15812 hardcode_libdir_flag_spec_F77=
15813 hardcode_libdir_flag_spec_ld_F77=
15814 hardcode_libdir_separator_F77=
15815 hardcode_direct_F77=no
15816 hardcode_minus_L_F77=no
15817 hardcode_shlibpath_var_F77=unsupported
15818 link_all_deplibs_F77=unknown
15819 hardcode_automatic_F77=no
15821 module_expsym_cmds_F77=
15822 always_export_symbols_F77=no
15823 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15824 # include_expsyms should be a list of space-separated symbols to be *always*
15825 # included in the symbol list
15826 include_expsyms_F77=
15827 # exclude_expsyms can be an extended regexp of symbols to exclude
15828 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15829 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15830 # as well as any symbol that contains `d'.
15831 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15833 # platforms (ab)use it in PIC code, but their linkers get confused if
15834 # the symbol is explicitly referenced. Since portable code cannot
15835 # rely on this symbol name, it's probably fine to never include it in
15836 # preloaded symbol tables.
15837 extract_expsyms_cmds=
15838 # Just being paranoid about ensuring that cc_basename is set.
15839 for cc_temp in $compiler""; do
15841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15850 cygwin* | mingw* | pw32*)
15851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15852 # When not using gcc, we currently assume that we are using
15853 # Microsoft Visual C++.
15854 if test "$GCC" != yes; then
15859 # we just hope/assume this is gcc and not c89 (= MSVC++)
15868 if test "$with_gnu_ld" = yes; then
15869 # If archive_cmds runs LD, not CC, wlarc should be empty
15872 # Set some defaults for GNU ld with shared library support. These
15873 # are reset later if shared libraries are not supported. Putting them
15874 # here allows them to be overridden if necessary.
15875 runpath_var=LD_RUN_PATH
15876 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15877 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15878 # ancient GNU ld didn't support --whole-archive et. al.
15879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15880 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15882 whole_archive_flag_spec_F77=
15884 supports_anon_versioning=no
15885 case `$LD -v 2>/dev/null` in
15886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15889 *\ 2.11.*) ;; # other 2.11 versions
15890 *) supports_anon_versioning=yes ;;
15893 # See if GNU ld supports shared libraries.
15895 aix3* | aix4* | aix5*)
15896 # On AIX/PPC, the GNU linker is very broken
15897 if test "$host_cpu" != ia64; then
15901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15902 *** to be unable to reliably create shared libraries on AIX.
15903 *** Therefore, libtool is disabling shared libraries support. If you
15904 *** really care for shared libraries, you may want to modify your PATH
15905 *** so that a non-GNU linker is found, and then restart.
15912 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)'
15913 hardcode_libdir_flag_spec_F77='-L$libdir'
15914 hardcode_minus_L_F77=yes
15916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15917 # that the semantics of dynamic libraries on AmigaOS, at least up
15918 # to version 4, is to share data among multiple programs linked
15919 # with the same dynamic library. Since this doesn't match the
15920 # behavior of shared libraries on other platforms, we can't use
15926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15927 allow_undefined_flag_F77=unsupported
15928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15929 # support --undefined. This deserves some investigation. FIXME
15930 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 cygwin* | mingw* | pw32*)
15937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15938 # as there is no search path for DLLs.
15939 hardcode_libdir_flag_spec_F77='-L$libdir'
15940 allow_undefined_flag_F77=unsupported
15941 always_export_symbols_F77=no
15942 enable_shared_with_static_runtimes_F77=yes
15943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15947 # If the export-symbols file already is a .def file (1st line
15948 # is EXPORTS), use it as is; otherwise, prepend...
15949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15950 cp $export_symbols $output_objdir/$soname.def;
15952 echo EXPORTS > $output_objdir/$soname.def;
15953 cat $export_symbols >> $output_objdir/$soname.def;
15955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15962 hardcode_direct_F77=no
15963 hardcode_shlibpath_var_F77=no
15964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15965 export_dynamic_flag_spec_F77='${wl}-E'
15966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15967 # Instead, shared libraries are loaded at an image base (0x10000000 by
15968 # default) and relocated if they conflict, which is a slow very memory
15969 # consuming and fragmenting process. To avoid this, we pick a random,
15970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15972 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'
15973 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'
15976 linux* | k*bsd*-gnu)
15977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15979 case $cc_basename,$host_cpu in
15980 pgcc*) # Portland Group C compiler
15981 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'
15982 tmp_addflag=' $pic_flag'
15984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15985 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'
15986 tmp_addflag=' $pic_flag -Mnomain' ;;
15987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15988 tmp_addflag=' -i_dynamic' ;;
15989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15990 tmp_addflag=' -i_dynamic -nofor_main' ;;
15991 ifc* | ifort*) # Intel Fortran compiler
15992 tmp_addflag=' -nofor_main' ;;
15994 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15996 if test $supports_anon_versioning = yes; then
15997 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15999 $echo "local: *; };" >> $output_objdir/$libname.ver~
16000 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16002 link_all_deplibs_F77=no
16008 netbsd* | netbsdelf*-gnu)
16009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16010 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16019 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16023 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16024 *** create shared libraries on Solaris systems. Therefore, libtool
16025 *** is disabling shared libraries support. We urge you to upgrade GNU
16026 *** binutils to release 2.9.1 or newer. Another option is to modify
16027 *** your PATH or compiler configuration so that the native linker is
16028 *** used, and then restart.
16031 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16040 case `$LD -v 2>&1` in
16041 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16045 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16046 *** reliably create shared libraries on SCO systems. Therefore, libtool
16047 *** is disabling shared libraries support. We urge you to upgrade GNU
16048 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16049 *** your PATH or compiler configuration so that the native linker is
16050 *** used, and then restart.
16055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16056 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16057 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16058 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16067 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_direct_F77=yes
16070 hardcode_shlibpath_var_F77=no
16074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16083 if test "$ld_shlibs_F77" = no; then
16085 hardcode_libdir_flag_spec_F77=
16086 export_dynamic_flag_spec_F77=
16087 whole_archive_flag_spec_F77=
16090 # PORTME fill in a description of your system's linker (not GNU ld)
16093 allow_undefined_flag_F77=unsupported
16094 always_export_symbols_F77=yes
16095 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'
16096 # Note: this linker hardcodes the directories in LIBPATH if there
16097 # are no directories specified by -L.
16098 hardcode_minus_L_F77=yes
16099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16100 # Neither direct hardcoding nor static linking is supported with a
16102 hardcode_direct_F77=unsupported
16107 if test "$host_cpu" = ia64; then
16108 # On IA64, the linker does run time linking by default, so we don't
16109 # have to do anything special.
16110 aix_use_runtimelinking=no
16111 exp_sym_flag='-Bexport'
16114 # If we're using GNU nm, then we don't want the "-C" option.
16115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16116 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16117 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'
16119 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'
16121 aix_use_runtimelinking=no
16123 # Test if we are trying to use run time linking or normal
16124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16125 # need to do runtime linking.
16126 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16127 for ld_flag in $LDFLAGS; do
16128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16129 aix_use_runtimelinking=yes
16136 exp_sym_flag='-bexport'
16137 no_entry_flag='-bnoentry'
16140 # When large executables or shared objects are built, AIX ld can
16141 # have problems creating the table of contents. If linking a library
16142 # or program results in "error TOC overflow" add -mminimal-toc to
16143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16146 archive_cmds_F77=''
16147 hardcode_direct_F77=yes
16148 hardcode_libdir_separator_F77=':'
16149 link_all_deplibs_F77=yes
16151 if test "$GCC" = yes; then
16152 case $host_os in aix4.[012]|aix4.[012].*)
16153 # We only want to do this on AIX 4.2 and lower, the check
16154 # below for broken collect2 doesn't work under 4.3+
16155 collect2name=`${CC} -print-prog-name=collect2`
16156 if test -f "$collect2name" && \
16157 strings "$collect2name" | grep resolve_lib_name >/dev/null
16159 # We have reworked collect2
16160 hardcode_direct_F77=yes
16162 # We have old collect2
16163 hardcode_direct_F77=unsupported
16164 # It fails to find uninstalled libraries when the uninstalled
16165 # path is not listed in the libpath. Setting hardcode_minus_L
16166 # to unsupported forces relinking
16167 hardcode_minus_L_F77=yes
16168 hardcode_libdir_flag_spec_F77='-L$libdir'
16169 hardcode_libdir_separator_F77=
16173 shared_flag='-shared'
16174 if test "$aix_use_runtimelinking" = yes; then
16175 shared_flag="$shared_flag "'${wl}-G'
16179 if test "$host_cpu" = ia64; then
16180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16181 # chokes on -Wl,-G. The following line is correct:
16184 if test "$aix_use_runtimelinking" = yes; then
16185 shared_flag='${wl}-G'
16187 shared_flag='${wl}-bM:SRE'
16192 # It seems that -bexpall does not export symbols beginning with
16193 # underscore (_), so it is better to generate a list of symbols to export.
16194 always_export_symbols_F77=yes
16195 if test "$aix_use_runtimelinking" = yes; then
16196 # Warning - without using the other runtime loading flags (-brtl),
16197 # -berok will link without error, but may produce a broken library.
16198 allow_undefined_flag_F77='-berok'
16199 # Determine the default libpath from the value encoded in an empty executable.
16200 cat >conftest.$ac_ext <<_ACEOF
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_link") 2>conftest.er1
16214 grep -v '^ *+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16220 { (case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_try") 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16242 # Check for a 64-bit object if we didn't find anything.
16243 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16257 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"
16259 if test "$host_cpu" = ia64; then
16260 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16261 allow_undefined_flag_F77="-z nodefs"
16262 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"
16264 # Determine the default libpath from the value encoded in an empty executable.
16265 cat >conftest.$ac_ext <<_ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_link") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest$ac_exeext'
16295 { (case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_try") 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16307 # Check for a 64-bit object if we didn't find anything.
16308 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16322 # Warning - without using the other run time loading flags,
16323 # -berok will link without error, but may produce a broken library.
16324 no_undefined_flag_F77=' ${wl}-bernotok'
16325 allow_undefined_flag_F77=' ${wl}-berok'
16326 # Exported symbols can be pulled into shared objects from archives
16327 whole_archive_flag_spec_F77='$convenience'
16328 archive_cmds_need_lc_F77=yes
16329 # This is similar to how AIX traditionally builds its shared libraries.
16330 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'
16336 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)'
16337 hardcode_libdir_flag_spec_F77='-L$libdir'
16338 hardcode_minus_L_F77=yes
16339 # see comment about different semantics on the GNU ld section
16344 export_dynamic_flag_spec_F77=-rdynamic
16347 cygwin* | mingw* | pw32*)
16348 # When not using gcc, we currently assume that we are using
16349 # Microsoft Visual C++.
16350 # hardcode_libdir_flag_spec is actually meaningless, as there is
16351 # no search path for DLLs.
16352 hardcode_libdir_flag_spec_F77=' '
16353 allow_undefined_flag_F77=unsupported
16354 # Tell ltmain to make .lib files, not .a files.
16356 # Tell ltmain to make .dll files, not .so files.
16358 # FIXME: Setting linknames here is a bad hack.
16359 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16360 # The linker will automatically build a .lib file if we build a DLL.
16361 old_archive_From_new_cmds_F77='true'
16362 # FIXME: Should let the user specify the lib program.
16363 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16364 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16365 enable_shared_with_static_runtimes_F77=yes
16368 darwin* | rhapsody*)
16370 rhapsody* | darwin1.[012])
16371 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16375 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16377 case ${MACOSX_DEPLOYMENT_TARGET} in
16379 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16382 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16388 archive_cmds_need_lc_F77=no
16389 hardcode_direct_F77=no
16390 hardcode_automatic_F77=yes
16391 hardcode_shlibpath_var_F77=unsupported
16392 whole_archive_flag_spec_F77=''
16393 link_all_deplibs_F77=yes
16394 if test "$GCC" = yes ; then
16395 output_verbose_link_cmd='echo'
16396 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16397 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16399 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}'
16400 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}'
16402 case $cc_basename in
16404 output_verbose_link_cmd='echo'
16405 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16406 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16408 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16409 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}'
16419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 hardcode_libdir_flag_spec_F77='-L$libdir'
16421 hardcode_shlibpath_var_F77=no
16428 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16429 # support. Future versions do this automatically, but an explicit c++rt0.o
16430 # does not break anything, and helps significantly (at the cost of a little
16433 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16434 hardcode_libdir_flag_spec_F77='-R$libdir'
16435 hardcode_direct_F77=yes
16436 hardcode_shlibpath_var_F77=no
16439 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16441 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16442 hardcode_direct_F77=yes
16443 hardcode_minus_L_F77=yes
16444 hardcode_shlibpath_var_F77=no
16447 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16448 freebsd* | dragonfly*)
16449 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16450 hardcode_libdir_flag_spec_F77='-R$libdir'
16451 hardcode_direct_F77=yes
16452 hardcode_shlibpath_var_F77=no
16456 if test "$GCC" = yes; then
16457 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'
16459 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'
16461 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16462 hardcode_libdir_separator_F77=:
16463 hardcode_direct_F77=yes
16465 # hardcode_minus_L: Not really in the search PATH,
16466 # but as the default location of the library.
16467 hardcode_minus_L_F77=yes
16468 export_dynamic_flag_spec_F77='${wl}-E'
16472 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16473 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16475 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16477 if test "$with_gnu_ld" = no; then
16478 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16479 hardcode_libdir_separator_F77=:
16481 hardcode_direct_F77=yes
16482 export_dynamic_flag_spec_F77='${wl}-E'
16484 # hardcode_minus_L: Not really in the search PATH,
16485 # but as the default location of the library.
16486 hardcode_minus_L_F77=yes
16491 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16494 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16497 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16512 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16516 if test "$with_gnu_ld" = no; then
16517 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16518 hardcode_libdir_separator_F77=:
16522 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16523 hardcode_direct_F77=no
16524 hardcode_shlibpath_var_F77=no
16527 hardcode_direct_F77=yes
16528 export_dynamic_flag_spec_F77='${wl}-E'
16530 # hardcode_minus_L: Not really in the search PATH,
16531 # but as the default location of the library.
16532 hardcode_minus_L_F77=yes
16538 irix5* | irix6* | nonstopux*)
16539 if test "$GCC" = yes; then
16540 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'
16542 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'
16543 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16545 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16546 hardcode_libdir_separator_F77=:
16547 link_all_deplibs_F77=yes
16550 netbsd* | netbsdelf*-gnu)
16551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16554 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16556 hardcode_libdir_flag_spec_F77='-R$libdir'
16557 hardcode_direct_F77=yes
16558 hardcode_shlibpath_var_F77=no
16562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_direct_F77=yes
16564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16565 hardcode_libdir_separator_F77=:
16566 hardcode_shlibpath_var_F77=no
16570 hardcode_direct_F77=yes
16571 hardcode_shlibpath_var_F77=no
16572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16573 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16576 export_dynamic_flag_spec_F77='${wl}-E'
16579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16580 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16581 hardcode_libdir_flag_spec_F77='-R$libdir'
16584 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16585 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16592 hardcode_libdir_flag_spec_F77='-L$libdir'
16593 hardcode_minus_L_F77=yes
16594 allow_undefined_flag_F77=unsupported
16595 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'
16596 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16600 if test "$GCC" = yes; then
16601 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16602 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'
16604 allow_undefined_flag_F77=' -expect_unresolved \*'
16605 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'
16607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608 hardcode_libdir_separator_F77=:
16611 osf4* | osf5*) # as osf3* with the addition of -msym flag
16612 if test "$GCC" = yes; then
16613 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16614 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'
16615 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16617 allow_undefined_flag_F77=' -expect_unresolved \*'
16618 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'
16619 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~
16620 $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'
16622 # Both c and cxx compiler support -rpath directly
16623 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16625 hardcode_libdir_separator_F77=:
16629 no_undefined_flag_F77=' -z text'
16630 if test "$GCC" = yes; then
16632 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16633 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16634 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16637 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16641 hardcode_libdir_flag_spec_F77='-R$libdir'
16642 hardcode_shlibpath_var_F77=no
16644 solaris2.[0-5] | solaris2.[0-5].*) ;;
16646 # The compiler driver will combine linker options so we
16647 # cannot just pass the convience library names through
16648 # without $wl, iff we do not link with $LD.
16649 # Luckily, gcc supports the same syntax we need for Sun Studio.
16650 # Supported since Solaris 2.6 (maybe 2.5.1?)
16653 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16655 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16658 link_all_deplibs_F77=yes
16662 if test "x$host_vendor" = xsequent; then
16663 # Use $CC to link under sequent, because it throws in some extra .o
16664 # files that make .init and .fini sections work.
16665 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_libdir_flag_spec_F77='-L$libdir'
16670 hardcode_direct_F77=yes
16671 hardcode_minus_L_F77=yes
16672 hardcode_shlibpath_var_F77=no
16676 case $host_vendor in
16678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_direct_F77=yes # is this really true???
16682 ## LD is ld it makes a PLAMLIB
16683 ## CC just makes a GrossModule.
16684 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16685 reload_cmds_F77='$CC -r -o $output$reload_objs'
16686 hardcode_direct_F77=no
16689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16693 runpath_var='LD_RUN_PATH'
16694 hardcode_shlibpath_var_F77=no
16698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_shlibpath_var_F77=no
16700 export_dynamic_flag_spec_F77='-Bexport'
16704 if test -d /usr/nec; then
16705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_shlibpath_var_F77=no
16707 runpath_var=LD_RUN_PATH
16708 hardcode_runpath_var=yes
16713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16714 no_undefined_flag_F77='${wl}-z,text'
16715 archive_cmds_need_lc_F77=no
16716 hardcode_shlibpath_var_F77=no
16717 runpath_var='LD_RUN_PATH'
16719 if test "$GCC" = yes; then
16720 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 sysv5* | sco3.2v5* | sco5v6*)
16729 # Note: We can NOT use -z defs as we might desire, because we do not
16730 # link with -lc, and that would cause any symbols used from libc to
16731 # always be unresolved, which means just about no library would
16732 # ever link correctly. If we're not using GNU ld we use -z text
16733 # though, which does catch some bad symbols but isn't as heavy-handed
16735 no_undefined_flag_F77='${wl}-z,text'
16736 allow_undefined_flag_F77='${wl}-z,nodefs'
16737 archive_cmds_need_lc_F77=no
16738 hardcode_shlibpath_var_F77=no
16739 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16740 hardcode_libdir_separator_F77=':'
16741 link_all_deplibs_F77=yes
16742 export_dynamic_flag_spec_F77='${wl}-Bexport'
16743 runpath_var='LD_RUN_PATH'
16745 if test "$GCC" = yes; then
16746 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_libdir_flag_spec_F77='-L$libdir'
16757 hardcode_shlibpath_var_F77=no
16766 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16767 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16768 test "$ld_shlibs_F77" = no && can_build_shared=no
16771 # Do we need to explicitly link libc?
16773 case "x$archive_cmds_need_lc_F77" in
16775 # Assume -lc should be added
16776 archive_cmds_need_lc_F77=yes
16778 if test "$enable_shared" = yes && test "$GCC" = yes; then
16779 case $archive_cmds_F77 in
16781 # FIXME: we may have to deal with multi-command sequences.
16784 # Test whether the compiler implicitly links with -lc since on some
16785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16786 # to ld, don't add -lc before -lgcc.
16787 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16788 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } 2>conftest.err; then
16799 libobjs=conftest.$ac_objext
16801 wl=$lt_prog_compiler_wl_F77
16802 pic_flag=$lt_prog_compiler_pic_F77
16808 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16809 allow_undefined_flag_F77=
16810 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16811 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }
16816 archive_cmds_need_lc_F77=no
16818 archive_cmds_need_lc_F77=yes
16820 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16822 cat conftest.err 1>&5
16825 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16826 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16833 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16835 library_names_spec=
16836 libname_spec='lib$name'
16840 postuninstall_cmds=
16844 shlibpath_overrides_runpath=unknown
16846 dynamic_linker="$host_os ld.so"
16847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16848 if test "$GCC" = yes; then
16849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16850 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16851 # if the path contains ";" then we assume it to be the separator
16852 # otherwise default to the standard path separator (i.e. ":") - it is
16853 # assumed that no part of a normal pathname contains ";" but that should
16854 # okay in the real world where ";" in dirpaths is itself problematic.
16855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16862 need_lib_prefix=unknown
16863 hardcode_into_libs=no
16865 # when you set need_version to no, make sure it does not cause -set_version
16866 # flags to be left without arguments
16867 need_version=unknown
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16873 shlibpath_var=LIBPATH
16875 # AIX 3 has no versioning support, so we append a major version to the name.
16876 soname_spec='${libname}${release}${shared_ext}$major'
16883 hardcode_into_libs=yes
16884 if test "$host_cpu" = ia64; then
16885 # AIX 5 supports IA64
16886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16887 shlibpath_var=LD_LIBRARY_PATH
16889 # With GCC up to 2.95.x, collect2 would create an import file
16890 # for dependence libraries. The import file would start with
16891 # the line `#! .'. This would cause the generated library to
16892 # depend on `.', always an invalid library. This was fixed in
16893 # development snapshots of GCC prior to 3.0.
16895 aix4 | aix4.[01] | aix4.[01].*)
16896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16901 can_build_shared=no
16905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16906 # soname into executable. Probably we can add versioning support to
16907 # collect2, so additional links can be useful in future.
16908 if test "$aix_use_runtimelinking" = yes; then
16909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16910 # instead of lib<name>.a to let people know that these are not
16911 # typical AIX shared libraries.
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 # We preserve .a as extension for shared libraries through AIX4.2
16915 # and later when we are not doing run time linking.
16916 library_names_spec='${libname}${release}.a $libname.a'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LIBPATH
16924 library_names_spec='$libname.ixlibrary $libname.a'
16925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16926 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'
16930 library_names_spec='${libname}${shared_ext}'
16931 dynamic_linker="$host_os ld.so"
16932 shlibpath_var=LIBRARY_PATH
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16944 # the default ld.so.conf also contains /usr/contrib/lib and
16945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16946 # libtool to hard-code these into programs
16949 cygwin* | mingw* | pw32*)
16950 version_type=windows
16955 case $GCC,$host_os in
16956 yes,cygwin* | yes,mingw* | yes,pw32*)
16957 library_names_spec='$libname.dll.a'
16958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16959 postinstall_cmds='base_file=`basename \${file}`~
16960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16961 dldir=$destdir/`dirname \$dlpath`~
16962 test -d \$dldir || mkdir -p \$dldir~
16963 $install_prog $dir/$dlname \$dldir/$dlname~
16964 chmod a+x \$dldir/$dlname'
16965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16966 dlpath=$dir/\$dldll~
16968 shlibpath_overrides_runpath=yes
16972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16977 # MinGW DLLs use traditional 'lib' prefix
16978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16981 # It is most probably a Windows format PATH printed by
16982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16983 # path with ; separators, and with drive letters. We can handle the
16984 # drive letters (cygwin fileutils understands them), so leave them,
16985 # especially as we might pass files found there to a mingw objdump,
16986 # which wouldn't understand a cygwinified path. Ahh.
16987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16993 # pw32 DLLs use 'pw' prefix rather than 'lib'
16994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17003 dynamic_linker='Win32 ld.exe'
17004 # FIXME: first we should search . and the directory the executable is in
17008 darwin* | rhapsody*)
17009 dynamic_linker="$host_os dyld"
17010 version_type=darwin
17013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17014 soname_spec='${libname}${release}${major}$shared_ext'
17015 shlibpath_overrides_runpath=yes
17016 shlibpath_var=DYLD_LIBRARY_PATH
17017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17019 if test "$GCC" = yes; then
17020 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 shlibpath_var=LD_LIBRARY_PATH
17040 freebsd* | dragonfly*)
17041 # DragonFly does not have aout. When/if they implement a new
17042 # versioning mechanism, adjust this.
17043 if test -x /usr/bin/objformat; then
17044 objformat=`/usr/bin/objformat`
17047 freebsd[123]*) objformat=aout ;;
17048 *) objformat=elf ;;
17051 version_type=freebsd-$objformat
17052 case $version_type in
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17063 shlibpath_var=LD_LIBRARY_PATH
17066 shlibpath_overrides_runpath=yes
17068 freebsd3.[01]* | freebsdelf3.[01]*)
17069 shlibpath_overrides_runpath=yes
17070 hardcode_into_libs=yes
17072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17074 shlibpath_overrides_runpath=no
17075 hardcode_into_libs=yes
17077 freebsd*) # from 4.6 on
17078 shlibpath_overrides_runpath=yes
17079 hardcode_into_libs=yes
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 hardcode_into_libs=yes
17094 hpux9* | hpux10* | hpux11*)
17095 # Give a soname corresponding to the major version so that dld.sl refuses to
17096 # link against other versions.
17103 hardcode_into_libs=yes
17104 dynamic_linker="$host_os dld.so"
17105 shlibpath_var=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
17110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17118 hardcode_into_libs=yes
17119 dynamic_linker="$host_os dld.sl"
17120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17129 dynamic_linker="$host_os dld.sl"
17130 shlibpath_var=SHLIB_PATH
17131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17137 postinstall_cmds='chmod 555 $lib'
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=no
17149 hardcode_into_libs=yes
17152 irix5* | irix6* | nonstopux*)
17154 nonstopux*) version_type=nonstopux ;;
17156 if test "$lt_cv_prog_gnu_ld" = yes; then
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17167 irix5* | nonstopux*)
17168 libsuff= shlibsuff=
17171 case $LD in # libtool.m4 will add one of these switches to LD
17172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17173 libsuff= shlibsuff= libmagic=32-bit;;
17174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17175 libsuff=32 shlibsuff=N32 libmagic=N32;;
17176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17178 *) libsuff= shlibsuff= libmagic=never-match;;
17182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17183 shlibpath_overrides_runpath=no
17184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17186 hardcode_into_libs=yes
17189 # No shared lib support for Linux oldld, aout, or coff.
17190 linux*oldld* | linux*aout* | linux*coff*)
17194 # This must be Linux ELF.
17195 linux* | k*bsd*-gnu)
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 shlibpath_overrides_runpath=no
17204 # This implies no fast_install, which is unacceptable.
17205 # Some rework will be needed to allow for fast_install
17206 # before this can be enabled.
17207 hardcode_into_libs=yes
17209 # Append ld.so.conf contents to the search path
17210 if test -f /etc/ld.so.conf; then
17211 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17215 # We used to test for /lib/ld.so.1 and disable shared libraries on
17216 # powerpc, because MkLinux only supported shared libraries with the
17217 # GNU dynamic linker. Since this was broken with cross compilers,
17218 # most powerpc-linux boxes support dynamic linking these days and
17219 # people can always --disable-shared, the test was removed, and we
17220 # assume the GNU/Linux dynamic linker is in use.
17221 dynamic_linker='GNU/Linux ld.so'
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=no
17232 hardcode_into_libs=yes
17233 dynamic_linker='NetBSD ld.elf_so'
17240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17243 dynamic_linker='NetBSD (a.out) ld.so'
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 dynamic_linker='NetBSD ld.elf_so'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=yes
17251 hardcode_into_libs=yes
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 shlibpath_var=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath=yes
17273 sys_lib_dlsearch_path_spec="/usr/lib"
17275 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17277 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17278 *) need_version=no ;;
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17285 openbsd2.[89] | openbsd2.[89].*)
17286 shlibpath_overrides_runpath=no
17289 shlibpath_overrides_runpath=yes
17293 shlibpath_overrides_runpath=yes
17298 libname_spec='$name'
17301 library_names_spec='$libname${shared_ext} $libname.a'
17302 dynamic_linker='OS/2 ld.exe'
17303 shlibpath_var=LIBPATH
17306 osf3* | osf4* | osf5*)
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17314 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath=yes
17325 hardcode_into_libs=yes
17326 # ldd complains unless libraries are executable
17327 postinstall_cmds='chmod +x $lib'
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=yes
17336 if test "$with_gnu_ld" = yes; then
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 case $host_vendor in
17349 shlibpath_overrides_runpath=no
17351 export_dynamic_flag_spec='${wl}-Blargedynsym'
17352 runpath_var=LD_RUN_PATH
17360 shlibpath_overrides_runpath=no
17361 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17367 if test -d /usr/nec ;then
17369 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17370 soname_spec='$libname${shared_ext}.$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17376 version_type=freebsd-elf
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 hardcode_into_libs=yes
17383 if test "$with_gnu_ld" = yes; then
17384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17385 shlibpath_overrides_runpath=no
17387 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17388 shlibpath_overrides_runpath=yes
17391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17395 sys_lib_dlsearch_path_spec='/usr/lib'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17409 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17410 echo "${ECHO_T}$dynamic_linker" >&6; }
17411 test "$dynamic_linker" = no && can_build_shared=no
17413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17414 if test "$GCC" = yes; then
17415 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17418 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17419 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17420 hardcode_action_F77=
17421 if test -n "$hardcode_libdir_flag_spec_F77" || \
17422 test -n "$runpath_var_F77" || \
17423 test "X$hardcode_automatic_F77" = "Xyes" ; then
17425 # We can hardcode non-existant directories.
17426 if test "$hardcode_direct_F77" != no &&
17427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17428 # have to relink, otherwise we might link with an installed library
17429 # when we should be linking with a yet-to-be-installed one
17430 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17431 test "$hardcode_minus_L_F77" != no; then
17432 # Linking always hardcodes the temporary library directory.
17433 hardcode_action_F77=relink
17435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17436 hardcode_action_F77=immediate
17439 # We cannot hardcode anything, or else we can only hardcode existing
17441 hardcode_action_F77=unsupported
17443 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17444 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17446 if test "$hardcode_action_F77" = relink; then
17447 # Fast installation is not supported
17448 enable_fast_install=no
17449 elif test "$shlibpath_overrides_runpath" = yes ||
17450 test "$enable_shared" = no; then
17451 # Fast installation is not necessary
17452 enable_fast_install=needless
17456 # The else clause should only fire when bootstrapping the
17457 # libtool distribution, otherwise you forgot to ship ltmain.sh
17458 # with your package, and you will get complaints that there are
17459 # no rules to generate ltmain.sh.
17460 if test -f "$ltmain"; then
17461 # See if we are running on zsh, and set the options which allow our commands through
17462 # without removal of \ escapes.
17463 if test -n "${ZSH_VERSION+set}" ; then
17464 setopt NO_GLOB_SUBST
17466 # Now quote all the things that may contain metacharacters while being
17467 # careful not to overquote the AC_SUBSTed values. We take copies of the
17468 # variables and quote the copies for generation of the libtool script.
17469 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17471 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17472 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17473 deplibs_check_method reload_flag reload_cmds need_locks \
17474 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17475 lt_cv_sys_global_symbol_to_c_name_address \
17476 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17477 old_postinstall_cmds old_postuninstall_cmds \
17481 lt_prog_compiler_wl_F77 \
17482 lt_prog_compiler_pic_F77 \
17483 lt_prog_compiler_static_F77 \
17484 lt_prog_compiler_no_builtin_flag_F77 \
17485 export_dynamic_flag_spec_F77 \
17486 thread_safe_flag_spec_F77 \
17487 whole_archive_flag_spec_F77 \
17488 enable_shared_with_static_runtimes_F77 \
17489 old_archive_cmds_F77 \
17490 old_archive_from_new_cmds_F77 \
17491 predep_objects_F77 \
17492 postdep_objects_F77 \
17495 compiler_lib_search_path_F77 \
17497 archive_expsym_cmds_F77 \
17498 postinstall_cmds_F77 \
17499 postuninstall_cmds_F77 \
17500 old_archive_from_expsyms_cmds_F77 \
17501 allow_undefined_flag_F77 \
17502 no_undefined_flag_F77 \
17503 export_symbols_cmds_F77 \
17504 hardcode_libdir_flag_spec_F77 \
17505 hardcode_libdir_flag_spec_ld_F77 \
17506 hardcode_libdir_separator_F77 \
17507 hardcode_automatic_F77 \
17509 module_expsym_cmds_F77 \
17510 lt_cv_prog_compiler_c_o_F77 \
17511 exclude_expsyms_F77 \
17512 include_expsyms_F77; do
17515 old_archive_cmds_F77 | \
17516 old_archive_from_new_cmds_F77 | \
17517 archive_cmds_F77 | \
17518 archive_expsym_cmds_F77 | \
17519 module_cmds_F77 | \
17520 module_expsym_cmds_F77 | \
17521 old_archive_from_expsyms_cmds_F77 | \
17522 export_symbols_cmds_F77 | \
17523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17524 postinstall_cmds | postuninstall_cmds | \
17525 old_postinstall_cmds | old_postuninstall_cmds | \
17526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17527 # Double-quote double-evaled strings.
17528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17537 *'\$0 --fallback-echo"')
17538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17544 cat <<__EOF__ >> "$cfgfile"
17545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17549 # Shell to use when invoking shell scripts.
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17558 # Whether or not to add -lc for building shared libraries.
17559 build_libtool_need_lc=$archive_cmds_need_lc_F77
17561 # Whether or not to disallow shared libs when runtime libs are static
17562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17564 # Whether or not to optimize for fast installation.
17565 fast_install=$enable_fast_install
17568 host_alias=$host_alias
17572 # The build system.
17573 build_alias=$build_alias
17577 # An echo program that does not interpret backslashes.
17582 AR_FLAGS=$lt_AR_FLAGS
17587 # LTCC compiler flags.
17588 LTCFLAGS=$lt_LTCFLAGS
17590 # A language-specific compiler.
17591 CC=$lt_compiler_F77
17593 # Is the compiler the GNU C compiler?
17599 # The linker used to build libraries.
17602 # Whether we need hard or soft links.
17605 # A BSD-compatible nm program.
17608 # A symbol stripping program
17611 # Used to examine libraries when file_magic_cmd begins "file"
17612 MAGIC_CMD=$MAGIC_CMD
17614 # Used on cygwin: DLL creation program.
17617 # Used on cygwin: object dumper.
17620 # Used on cygwin: assembler.
17623 # The name of the directory that contains temporary libtool files.
17626 # How to create reloadable object files.
17627 reload_flag=$lt_reload_flag
17628 reload_cmds=$lt_reload_cmds
17630 # How to pass a linker flag through the compiler.
17631 wl=$lt_lt_prog_compiler_wl_F77
17633 # Object file suffix (normally "o").
17634 objext="$ac_objext"
17636 # Old archive suffix (normally "a").
17639 # Shared library suffix (normally ".so").
17640 shrext_cmds='$shrext_cmds'
17642 # Executable file suffix (normally "").
17645 # Additional compiler flags for building library objects.
17646 pic_flag=$lt_lt_prog_compiler_pic_F77
17649 # What is the maximum length of a command?
17650 max_cmd_len=$lt_cv_sys_max_cmd_len
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17658 # Do we need the lib prefix for modules?
17659 need_lib_prefix=$need_lib_prefix
17661 # Do we need a version for libraries?
17662 need_version=$need_version
17664 # Whether dlopen is supported.
17665 dlopen_support=$enable_dlopen
17667 # Whether dlopen of programs is supported.
17668 dlopen_self=$enable_dlopen_self
17670 # Whether dlopen of statically linked programs is supported.
17671 dlopen_self_static=$enable_dlopen_self_static
17673 # Compiler flag to prevent dynamic linking.
17674 link_static_flag=$lt_lt_prog_compiler_static_F77
17676 # Compiler flag to turn off builtin functions.
17677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17679 # Compiler flag to allow reflexive dlopens.
17680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17682 # Compiler flag to generate shared objects directly from archives.
17683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17685 # Compiler flag to generate thread-safe objects.
17686 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17688 # Library versioning type.
17689 version_type=$version_type
17691 # Format of library name prefix.
17692 libname_spec=$lt_libname_spec
17694 # List of archive names. First name is the real one, the rest are links.
17695 # The last name is the one that the linker finds with -lNAME.
17696 library_names_spec=$lt_library_names_spec
17698 # The coded name of the library, if different from the real name.
17699 soname_spec=$lt_soname_spec
17701 # Commands used to build and install an old-style archive.
17703 old_archive_cmds=$lt_old_archive_cmds_F77
17704 old_postinstall_cmds=$lt_old_postinstall_cmds
17705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17707 # Create an old-style archive from a shared archive.
17708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17710 # Create a temporary old-style archive to link instead of a shared archive.
17711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17713 # Commands used to build and install a shared archive.
17714 archive_cmds=$lt_archive_cmds_F77
17715 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17716 postinstall_cmds=$lt_postinstall_cmds
17717 postuninstall_cmds=$lt_postuninstall_cmds
17719 # Commands used to build a loadable module (assumed same as above if empty)
17720 module_cmds=$lt_module_cmds_F77
17721 module_expsym_cmds=$lt_module_expsym_cmds_F77
17723 # Commands to strip libraries.
17724 old_striplib=$lt_old_striplib
17725 striplib=$lt_striplib
17727 # Dependencies to place before the objects being linked to create a
17729 predep_objects=$lt_predep_objects_F77
17731 # Dependencies to place after the objects being linked to create a
17733 postdep_objects=$lt_postdep_objects_F77
17735 # Dependencies to place before the objects being linked to create a
17737 predeps=$lt_predeps_F77
17739 # Dependencies to place after the objects being linked to create a
17741 postdeps=$lt_postdeps_F77
17743 # The library search path used internally by the compiler when linking
17744 # a shared library.
17745 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17747 # Method to check whether dependent libraries are shared objects.
17748 deplibs_check_method=$lt_deplibs_check_method
17750 # Command to use when deplibs_check_method == file_magic.
17751 file_magic_cmd=$lt_file_magic_cmd
17753 # Flag that allows shared libraries with undefined symbols to be built.
17754 allow_undefined_flag=$lt_allow_undefined_flag_F77
17756 # Flag that forces no undefined symbols.
17757 no_undefined_flag=$lt_no_undefined_flag_F77
17759 # Commands used to finish a libtool library installation in a directory.
17760 finish_cmds=$lt_finish_cmds
17762 # Same as above, but a single script fragment to be evaled but not shown.
17763 finish_eval=$lt_finish_eval
17765 # Take the output of nm and produce a listing of raw symbols and C names.
17766 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17768 # Transform the output of nm in a proper C declaration
17769 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17771 # Transform the output of nm in a C name address pair
17772 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17774 # This is the shared library runtime path variable.
17775 runpath_var=$runpath_var
17777 # This is the shared library path variable.
17778 shlibpath_var=$shlibpath_var
17780 # Is shlibpath searched before the hard-coded library search path?
17781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17783 # How to hardcode a shared library path into an executable.
17784 hardcode_action=$hardcode_action_F77
17786 # Whether we should hardcode library paths into libraries.
17787 hardcode_into_libs=$hardcode_into_libs
17789 # Flag to hardcode \$libdir into a binary during linking.
17790 # This must work even if \$libdir does not exist.
17791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17793 # If ld is used when linking, flag to hardcode \$libdir into
17794 # a binary during linking. This must work even if \$libdir does
17796 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17798 # Whether we need a single -rpath flag with a separated argument.
17799 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17801 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17802 # resulting binary.
17803 hardcode_direct=$hardcode_direct_F77
17805 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17806 # resulting binary.
17807 hardcode_minus_L=$hardcode_minus_L_F77
17809 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17810 # the resulting binary.
17811 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17813 # Set to yes if building a shared library automatically hardcodes DIR into the library
17814 # and all subsequent libraries and executables linked against it.
17815 hardcode_automatic=$hardcode_automatic_F77
17817 # Variables whose values should be saved in libtool wrapper scripts and
17818 # restored at relink time.
17819 variables_saved_for_relink="$variables_saved_for_relink"
17821 # Whether libtool must link a program against all its dependency libraries.
17822 link_all_deplibs=$link_all_deplibs_F77
17824 # Compile-time system search path for libraries
17825 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17827 # Run-time system search path for libraries
17828 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17830 # Fix the shell variable \$srcfile for the compiler.
17831 fix_srcfile_path="$fix_srcfile_path_F77"
17833 # Set to yes if exported symbols are required.
17834 always_export_symbols=$always_export_symbols_F77
17836 # The commands to list exported symbols.
17837 export_symbols_cmds=$lt_export_symbols_cmds_F77
17839 # The commands to extract the exported symbol list from a shared archive.
17840 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17842 # Symbols that should not be listed in the preloaded symbols.
17843 exclude_expsyms=$lt_exclude_expsyms_F77
17845 # Symbols that must always be exported.
17846 include_expsyms=$lt_include_expsyms_F77
17848 # ### END LIBTOOL TAG CONFIG: $tagname
17854 # If there is no Makefile yet, we rely on a make rule to execute
17855 # `config.status --recheck' to rerun these tests and create the
17856 # libtool script then.
17857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17858 if test -f "$ltmain_in"; then
17859 test -f Makefile && make "$ltmain"
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17878 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17881 # Source file extension for Java test sources.
17884 # Object file extension for compiled Java test sources.
17888 # Code to be used in simple compile tests
17889 lt_simple_compile_test_code="class foo {}\n"
17891 # Code to be used in simple link tests
17892 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17896 # If no C compiler was specified, use CC.
17899 # If no C compiler flags were specified, use CFLAGS.
17900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17902 # Allow CC to be a program name with arguments.
17906 # save warnings/boilerplate of simple test code
17907 ac_outfile=conftest.$ac_objext
17908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17910 _lt_compiler_boilerplate=`cat conftest.err`
17913 ac_outfile=conftest.$ac_objext
17914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17916 _lt_linker_boilerplate=`cat conftest.err`
17920 # Allow CC to be a program name with arguments.
17925 for cc_temp in $compiler""; do
17927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17936 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17937 archive_cmds_need_lc_GCJ=no
17939 old_archive_cmds_GCJ=$old_archive_cmds
17942 lt_prog_compiler_no_builtin_flag_GCJ=
17944 if test "$GCC" = yes; then
17945 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17948 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17949 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17950 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 lt_cv_prog_compiler_rtti_exceptions=no
17954 ac_outfile=conftest.$ac_objext
17955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17956 lt_compiler_flag="-fno-rtti -fno-exceptions"
17957 # Insert the option either (1) after the last *FLAGS variable, or
17958 # (2) before a word containing "conftest.", or (3) at the end.
17959 # Note that $ac_compile itself does not contain backslashes and begins
17960 # with a dollar sign (not a hyphen), so the echo should work correctly.
17961 # The option is referenced via a variable to avoid confusing sed.
17962 lt_compile=`echo "$ac_compile" | $SED \
17963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17965 -e 's:$: $lt_compiler_flag:'`
17966 (eval echo "\"\$as_me:17966: $lt_compile\"" >&5)
17967 (eval "$lt_compile" 2>conftest.err)
17969 cat conftest.err >&5
17970 echo "$as_me:17970: \$? = $ac_status" >&5
17971 if (exit $ac_status) && test -s "$ac_outfile"; then
17972 # The compiler can only warn and ignore the option if not recognized
17973 # So say no if there are warnings other than the usual output.
17974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17977 lt_cv_prog_compiler_rtti_exceptions=yes
17983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17984 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17987 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17994 lt_prog_compiler_wl_GCJ=
17995 lt_prog_compiler_pic_GCJ=
17996 lt_prog_compiler_static_GCJ=
17998 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17999 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18001 if test "$GCC" = yes; then
18002 lt_prog_compiler_wl_GCJ='-Wl,'
18003 lt_prog_compiler_static_GCJ='-static'
18007 # All AIX code is PIC.
18008 if test "$host_cpu" = ia64; then
18009 # AIX 5 now supports IA64 processor
18010 lt_prog_compiler_static_GCJ='-Bstatic'
18015 # FIXME: we need at least 68020 code to build shared libraries, but
18016 # adding the `-m68020' flag to GCC prevents building anything better,
18018 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18021 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18022 # PIC is the default for these OSes.
18025 mingw* | pw32* | os2*)
18026 # This hack is so that the source file can tell whether it is being
18027 # built for inclusion in a dll (and should export symbols for example).
18028 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18031 darwin* | rhapsody*)
18032 # PIC is the default on this platform
18033 # Common symbols not allowed in MH_DYLIB files
18034 lt_prog_compiler_pic_GCJ='-fno-common'
18038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18039 # Instead, we relocate shared libraries at runtime.
18043 # Just because we use GCC doesn't mean we suddenly get shared libraries
18044 # on systems that don't support them.
18045 lt_prog_compiler_can_build_shared_GCJ=no
18050 if test -d /usr/nec; then
18051 lt_prog_compiler_pic_GCJ=-Kconform_pic
18056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18057 # not for PA HP-UX.
18063 lt_prog_compiler_pic_GCJ='-fPIC'
18069 lt_prog_compiler_pic_GCJ='-fPIC'
18073 # PORTME Check for flag to pass linker flags through the system compiler.
18076 lt_prog_compiler_wl_GCJ='-Wl,'
18077 if test "$host_cpu" = ia64; then
18078 # AIX 5 now supports IA64 processor
18079 lt_prog_compiler_static_GCJ='-Bstatic'
18081 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18085 # PIC is the default on this platform
18086 # Common symbols not allowed in MH_DYLIB files
18087 case $cc_basename in
18089 lt_prog_compiler_pic_GCJ='-qnocommon'
18090 lt_prog_compiler_wl_GCJ='-Wl,'
18095 mingw* | pw32* | os2*)
18096 # This hack is so that the source file can tell whether it is being
18097 # built for inclusion in a dll (and should export symbols for example).
18098 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18101 hpux9* | hpux10* | hpux11*)
18102 lt_prog_compiler_wl_GCJ='-Wl,'
18103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18104 # not for PA HP-UX.
18110 lt_prog_compiler_pic_GCJ='+Z'
18113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18114 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18117 irix5* | irix6* | nonstopux*)
18118 lt_prog_compiler_wl_GCJ='-Wl,'
18119 # PIC (with -KPIC) is the default.
18120 lt_prog_compiler_static_GCJ='-non_shared'
18124 lt_prog_compiler_pic_GCJ='-KPIC'
18125 lt_prog_compiler_static_GCJ='-Bstatic'
18128 linux* | k*bsd*-gnu)
18129 case $cc_basename in
18131 lt_prog_compiler_wl_GCJ='-Wl,'
18132 lt_prog_compiler_pic_GCJ='-KPIC'
18133 lt_prog_compiler_static_GCJ='-static'
18135 pgcc* | pgf77* | pgf90* | pgf95*)
18136 # Portland Group compilers (*not* the Pentium gcc compiler,
18137 # which looks to be a dead project)
18138 lt_prog_compiler_wl_GCJ='-Wl,'
18139 lt_prog_compiler_pic_GCJ='-fpic'
18140 lt_prog_compiler_static_GCJ='-Bstatic'
18143 lt_prog_compiler_wl_GCJ='-Wl,'
18144 # All Alpha code is PIC.
18145 lt_prog_compiler_static_GCJ='-non_shared'
18150 osf3* | osf4* | osf5*)
18151 lt_prog_compiler_wl_GCJ='-Wl,'
18152 # All OSF/1 code is PIC.
18153 lt_prog_compiler_static_GCJ='-non_shared'
18157 lt_prog_compiler_pic_GCJ='-KPIC'
18158 lt_prog_compiler_static_GCJ='-Bstatic'
18159 case $cc_basename in
18160 f77* | f90* | f95*)
18161 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18163 lt_prog_compiler_wl_GCJ='-Wl,';;
18168 lt_prog_compiler_wl_GCJ='-Qoption ld '
18169 lt_prog_compiler_pic_GCJ='-PIC'
18170 lt_prog_compiler_static_GCJ='-Bstatic'
18173 sysv4 | sysv4.2uw2* | sysv4.3*)
18174 lt_prog_compiler_wl_GCJ='-Wl,'
18175 lt_prog_compiler_pic_GCJ='-KPIC'
18176 lt_prog_compiler_static_GCJ='-Bstatic'
18180 if test -d /usr/nec ;then
18181 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18182 lt_prog_compiler_static_GCJ='-Bstatic'
18186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18187 lt_prog_compiler_wl_GCJ='-Wl,'
18188 lt_prog_compiler_pic_GCJ='-KPIC'
18189 lt_prog_compiler_static_GCJ='-Bstatic'
18193 lt_prog_compiler_wl_GCJ='-Wl,'
18194 lt_prog_compiler_can_build_shared_GCJ=no
18198 lt_prog_compiler_pic_GCJ='-pic'
18199 lt_prog_compiler_static_GCJ='-Bstatic'
18203 lt_prog_compiler_can_build_shared_GCJ=no
18208 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18209 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18212 # Check to make sure the PIC flag actually works.
18214 if test -n "$lt_prog_compiler_pic_GCJ"; then
18216 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18217 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18218 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 lt_prog_compiler_pic_works_GCJ=no
18222 ac_outfile=conftest.$ac_objext
18223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18224 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18225 # Insert the option either (1) after the last *FLAGS variable, or
18226 # (2) before a word containing "conftest.", or (3) at the end.
18227 # Note that $ac_compile itself does not contain backslashes and begins
18228 # with a dollar sign (not a hyphen), so the echo should work correctly.
18229 # The option is referenced via a variable to avoid confusing sed.
18230 lt_compile=`echo "$ac_compile" | $SED \
18231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18233 -e 's:$: $lt_compiler_flag:'`
18234 (eval echo "\"\$as_me:18234: $lt_compile\"" >&5)
18235 (eval "$lt_compile" 2>conftest.err)
18237 cat conftest.err >&5
18238 echo "$as_me:18238: \$? = $ac_status" >&5
18239 if (exit $ac_status) && test -s "$ac_outfile"; then
18240 # The compiler can only warn and ignore the option if not recognized
18241 # So say no if there are warnings other than the usual output.
18242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18245 lt_prog_compiler_pic_works_GCJ=yes
18251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18252 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18254 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18255 case $lt_prog_compiler_pic_GCJ in
18257 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18260 lt_prog_compiler_pic_GCJ=
18261 lt_prog_compiler_can_build_shared_GCJ=no
18266 # For platforms which do not support PIC, -DPIC is meaningless:
18268 lt_prog_compiler_pic_GCJ=
18271 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18276 # Check to make sure the static flag actually works.
18278 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18279 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18280 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18281 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 lt_prog_compiler_static_works_GCJ=no
18285 save_LDFLAGS="$LDFLAGS"
18286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18287 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18289 # The linker can only warn and ignore the option if not recognized
18290 # So say no if there are warnings
18291 if test -s conftest.err; then
18292 # Append any errors to the config.log.
18293 cat conftest.err 1>&5
18294 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18296 if diff conftest.exp conftest.er2 >/dev/null; then
18297 lt_prog_compiler_static_works_GCJ=yes
18300 lt_prog_compiler_static_works_GCJ=yes
18304 LDFLAGS="$save_LDFLAGS"
18307 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18308 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18310 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18313 lt_prog_compiler_static_GCJ=
18317 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18318 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18319 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 lt_cv_prog_compiler_c_o_GCJ=no
18323 $rm -r conftest 2>/dev/null
18327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18329 lt_compiler_flag="-o out/conftest2.$ac_objext"
18330 # Insert the option either (1) after the last *FLAGS variable, or
18331 # (2) before a word containing "conftest.", or (3) at the end.
18332 # Note that $ac_compile itself does not contain backslashes and begins
18333 # with a dollar sign (not a hyphen), so the echo should work correctly.
18334 lt_compile=`echo "$ac_compile" | $SED \
18335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18337 -e 's:$: $lt_compiler_flag:'`
18338 (eval echo "\"\$as_me:18338: $lt_compile\"" >&5)
18339 (eval "$lt_compile" 2>out/conftest.err)
18341 cat out/conftest.err >&5
18342 echo "$as_me:18342: \$? = $ac_status" >&5
18343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18345 # The compiler can only warn and ignore the option if not recognized
18346 # So say no if there are warnings
18347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18350 lt_cv_prog_compiler_c_o_GCJ=yes
18355 # SGI C++ compiler will create directory out/ii_files/ for
18356 # template instantiation
18357 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18358 $rm out/* && rmdir out
18364 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18365 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18368 hard_links="nottested"
18369 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18370 # do not overwrite the value of need_locks provided by the user
18371 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18372 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18377 ln conftest.a conftest.b 2>&5 || hard_links=no
18378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18379 { echo "$as_me:$LINENO: result: $hard_links" >&5
18380 echo "${ECHO_T}$hard_links" >&6; }
18381 if test "$hard_links" = no; then
18382 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18383 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18390 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18391 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18394 allow_undefined_flag_GCJ=
18395 enable_shared_with_static_runtimes_GCJ=no
18397 archive_expsym_cmds_GCJ=
18398 old_archive_From_new_cmds_GCJ=
18399 old_archive_from_expsyms_cmds_GCJ=
18400 export_dynamic_flag_spec_GCJ=
18401 whole_archive_flag_spec_GCJ=
18402 thread_safe_flag_spec_GCJ=
18403 hardcode_libdir_flag_spec_GCJ=
18404 hardcode_libdir_flag_spec_ld_GCJ=
18405 hardcode_libdir_separator_GCJ=
18406 hardcode_direct_GCJ=no
18407 hardcode_minus_L_GCJ=no
18408 hardcode_shlibpath_var_GCJ=unsupported
18409 link_all_deplibs_GCJ=unknown
18410 hardcode_automatic_GCJ=no
18412 module_expsym_cmds_GCJ=
18413 always_export_symbols_GCJ=no
18414 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18415 # include_expsyms should be a list of space-separated symbols to be *always*
18416 # included in the symbol list
18417 include_expsyms_GCJ=
18418 # exclude_expsyms can be an extended regexp of symbols to exclude
18419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18421 # as well as any symbol that contains `d'.
18422 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18424 # platforms (ab)use it in PIC code, but their linkers get confused if
18425 # the symbol is explicitly referenced. Since portable code cannot
18426 # rely on this symbol name, it's probably fine to never include it in
18427 # preloaded symbol tables.
18428 extract_expsyms_cmds=
18429 # Just being paranoid about ensuring that cc_basename is set.
18430 for cc_temp in $compiler""; do
18432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18441 cygwin* | mingw* | pw32*)
18442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18443 # When not using gcc, we currently assume that we are using
18444 # Microsoft Visual C++.
18445 if test "$GCC" != yes; then
18450 # we just hope/assume this is gcc and not c89 (= MSVC++)
18459 if test "$with_gnu_ld" = yes; then
18460 # If archive_cmds runs LD, not CC, wlarc should be empty
18463 # Set some defaults for GNU ld with shared library support. These
18464 # are reset later if shared libraries are not supported. Putting them
18465 # here allows them to be overridden if necessary.
18466 runpath_var=LD_RUN_PATH
18467 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18468 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18469 # ancient GNU ld didn't support --whole-archive et. al.
18470 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18471 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18473 whole_archive_flag_spec_GCJ=
18475 supports_anon_versioning=no
18476 case `$LD -v 2>/dev/null` in
18477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18480 *\ 2.11.*) ;; # other 2.11 versions
18481 *) supports_anon_versioning=yes ;;
18484 # See if GNU ld supports shared libraries.
18486 aix3* | aix4* | aix5*)
18487 # On AIX/PPC, the GNU linker is very broken
18488 if test "$host_cpu" != ia64; then
18492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18493 *** to be unable to reliably create shared libraries on AIX.
18494 *** Therefore, libtool is disabling shared libraries support. If you
18495 *** really care for shared libraries, you may want to modify your PATH
18496 *** so that a non-GNU linker is found, and then restart.
18503 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)'
18504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18505 hardcode_minus_L_GCJ=yes
18507 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18508 # that the semantics of dynamic libraries on AmigaOS, at least up
18509 # to version 4, is to share data among multiple programs linked
18510 # with the same dynamic library. Since this doesn't match the
18511 # behavior of shared libraries on other platforms, we can't use
18517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18518 allow_undefined_flag_GCJ=unsupported
18519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18520 # support --undefined. This deserves some investigation. FIXME
18521 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18527 cygwin* | mingw* | pw32*)
18528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18529 # as there is no search path for DLLs.
18530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18531 allow_undefined_flag_GCJ=unsupported
18532 always_export_symbols_GCJ=no
18533 enable_shared_with_static_runtimes_GCJ=yes
18534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18536 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18538 # If the export-symbols file already is a .def file (1st line
18539 # is EXPORTS), use it as is; otherwise, prepend...
18540 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18541 cp $export_symbols $output_objdir/$soname.def;
18543 echo EXPORTS > $output_objdir/$soname.def;
18544 cat $export_symbols >> $output_objdir/$soname.def;
18546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18553 hardcode_direct_GCJ=no
18554 hardcode_shlibpath_var_GCJ=no
18555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18556 export_dynamic_flag_spec_GCJ='${wl}-E'
18557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18558 # Instead, shared libraries are loaded at an image base (0x10000000 by
18559 # default) and relocated if they conflict, which is a slow very memory
18560 # consuming and fragmenting process. To avoid this, we pick a random,
18561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18563 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'
18564 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'
18567 linux* | k*bsd*-gnu)
18568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18570 case $cc_basename,$host_cpu in
18571 pgcc*) # Portland Group C compiler
18572 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'
18573 tmp_addflag=' $pic_flag'
18575 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18576 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'
18577 tmp_addflag=' $pic_flag -Mnomain' ;;
18578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18579 tmp_addflag=' -i_dynamic' ;;
18580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18581 tmp_addflag=' -i_dynamic -nofor_main' ;;
18582 ifc* | ifort*) # Intel Fortran compiler
18583 tmp_addflag=' -nofor_main' ;;
18585 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18587 if test $supports_anon_versioning = yes; then
18588 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18590 $echo "local: *; };" >> $output_objdir/$libname.ver~
18591 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18593 link_all_deplibs_GCJ=no
18599 netbsd* | netbsdelf*-gnu)
18600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18601 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18610 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18615 *** create shared libraries on Solaris systems. Therefore, libtool
18616 *** is disabling shared libraries support. We urge you to upgrade GNU
18617 *** binutils to release 2.9.1 or newer. Another option is to modify
18618 *** your PATH or compiler configuration so that the native linker is
18619 *** used, and then restart.
18622 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18623 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18624 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18631 case `$LD -v 2>&1` in
18632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18637 *** reliably create shared libraries on SCO systems. Therefore, libtool
18638 *** is disabling shared libraries support. We urge you to upgrade GNU
18639 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18640 *** your PATH or compiler configuration so that the native linker is
18641 *** used, and then restart.
18646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18649 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18658 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18660 hardcode_direct_GCJ=yes
18661 hardcode_shlibpath_var_GCJ=no
18665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18674 if test "$ld_shlibs_GCJ" = no; then
18676 hardcode_libdir_flag_spec_GCJ=
18677 export_dynamic_flag_spec_GCJ=
18678 whole_archive_flag_spec_GCJ=
18681 # PORTME fill in a description of your system's linker (not GNU ld)
18684 allow_undefined_flag_GCJ=unsupported
18685 always_export_symbols_GCJ=yes
18686 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'
18687 # Note: this linker hardcodes the directories in LIBPATH if there
18688 # are no directories specified by -L.
18689 hardcode_minus_L_GCJ=yes
18690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18691 # Neither direct hardcoding nor static linking is supported with a
18693 hardcode_direct_GCJ=unsupported
18698 if test "$host_cpu" = ia64; then
18699 # On IA64, the linker does run time linking by default, so we don't
18700 # have to do anything special.
18701 aix_use_runtimelinking=no
18702 exp_sym_flag='-Bexport'
18705 # If we're using GNU nm, then we don't want the "-C" option.
18706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18707 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18708 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'
18710 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'
18712 aix_use_runtimelinking=no
18714 # Test if we are trying to use run time linking or normal
18715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18716 # need to do runtime linking.
18717 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18718 for ld_flag in $LDFLAGS; do
18719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18720 aix_use_runtimelinking=yes
18727 exp_sym_flag='-bexport'
18728 no_entry_flag='-bnoentry'
18731 # When large executables or shared objects are built, AIX ld can
18732 # have problems creating the table of contents. If linking a library
18733 # or program results in "error TOC overflow" add -mminimal-toc to
18734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18737 archive_cmds_GCJ=''
18738 hardcode_direct_GCJ=yes
18739 hardcode_libdir_separator_GCJ=':'
18740 link_all_deplibs_GCJ=yes
18742 if test "$GCC" = yes; then
18743 case $host_os in aix4.[012]|aix4.[012].*)
18744 # We only want to do this on AIX 4.2 and lower, the check
18745 # below for broken collect2 doesn't work under 4.3+
18746 collect2name=`${CC} -print-prog-name=collect2`
18747 if test -f "$collect2name" && \
18748 strings "$collect2name" | grep resolve_lib_name >/dev/null
18750 # We have reworked collect2
18751 hardcode_direct_GCJ=yes
18753 # We have old collect2
18754 hardcode_direct_GCJ=unsupported
18755 # It fails to find uninstalled libraries when the uninstalled
18756 # path is not listed in the libpath. Setting hardcode_minus_L
18757 # to unsupported forces relinking
18758 hardcode_minus_L_GCJ=yes
18759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18760 hardcode_libdir_separator_GCJ=
18764 shared_flag='-shared'
18765 if test "$aix_use_runtimelinking" = yes; then
18766 shared_flag="$shared_flag "'${wl}-G'
18770 if test "$host_cpu" = ia64; then
18771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18772 # chokes on -Wl,-G. The following line is correct:
18775 if test "$aix_use_runtimelinking" = yes; then
18776 shared_flag='${wl}-G'
18778 shared_flag='${wl}-bM:SRE'
18783 # It seems that -bexpall does not export symbols beginning with
18784 # underscore (_), so it is better to generate a list of symbols to export.
18785 always_export_symbols_GCJ=yes
18786 if test "$aix_use_runtimelinking" = yes; then
18787 # Warning - without using the other runtime loading flags (-brtl),
18788 # -berok will link without error, but may produce a broken library.
18789 allow_undefined_flag_GCJ='-berok'
18790 # Determine the default libpath from the value encoded in an empty executable.
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18806 rm -f conftest.$ac_objext conftest$ac_exeext
18807 if { (ac_try="$ac_link"
18808 case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_link") 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821 { (case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_try") 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest$ac_exeext'
18831 { (case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_try") 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18843 # Check for a 64-bit object if we didn't find anything.
18844 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18853 rm -f core conftest.err conftest.$ac_objext \
18854 conftest$ac_exeext conftest.$ac_ext
18855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18857 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18858 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"
18860 if test "$host_cpu" = ia64; then
18861 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18862 allow_undefined_flag_GCJ="-z nodefs"
18863 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"
18865 # Determine the default libpath from the value encoded in an empty executable.
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (ac_try="$ac_link"
18883 case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_link") 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; } &&
18905 { ac_try='test -s conftest$ac_exeext'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18918 # Check for a 64-bit object if we didn't find anything.
18919 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -f core conftest.err conftest.$ac_objext \
18929 conftest$ac_exeext conftest.$ac_ext
18930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18933 # Warning - without using the other run time loading flags,
18934 # -berok will link without error, but may produce a broken library.
18935 no_undefined_flag_GCJ=' ${wl}-bernotok'
18936 allow_undefined_flag_GCJ=' ${wl}-berok'
18937 # Exported symbols can be pulled into shared objects from archives
18938 whole_archive_flag_spec_GCJ='$convenience'
18939 archive_cmds_need_lc_GCJ=yes
18940 # This is similar to how AIX traditionally builds its shared libraries.
18941 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'
18947 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)'
18948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18949 hardcode_minus_L_GCJ=yes
18950 # see comment about different semantics on the GNU ld section
18955 export_dynamic_flag_spec_GCJ=-rdynamic
18958 cygwin* | mingw* | pw32*)
18959 # When not using gcc, we currently assume that we are using
18960 # Microsoft Visual C++.
18961 # hardcode_libdir_flag_spec is actually meaningless, as there is
18962 # no search path for DLLs.
18963 hardcode_libdir_flag_spec_GCJ=' '
18964 allow_undefined_flag_GCJ=unsupported
18965 # Tell ltmain to make .lib files, not .a files.
18967 # Tell ltmain to make .dll files, not .so files.
18969 # FIXME: Setting linknames here is a bad hack.
18970 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18971 # The linker will automatically build a .lib file if we build a DLL.
18972 old_archive_From_new_cmds_GCJ='true'
18973 # FIXME: Should let the user specify the lib program.
18974 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18975 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18976 enable_shared_with_static_runtimes_GCJ=yes
18979 darwin* | rhapsody*)
18981 rhapsody* | darwin1.[012])
18982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18988 case ${MACOSX_DEPLOYMENT_TARGET} in
18990 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18999 archive_cmds_need_lc_GCJ=no
19000 hardcode_direct_GCJ=no
19001 hardcode_automatic_GCJ=yes
19002 hardcode_shlibpath_var_GCJ=unsupported
19003 whole_archive_flag_spec_GCJ=''
19004 link_all_deplibs_GCJ=yes
19005 if test "$GCC" = yes ; then
19006 output_verbose_link_cmd='echo'
19007 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19008 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19010 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}'
19011 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}'
19013 case $cc_basename in
19015 output_verbose_link_cmd='echo'
19016 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19017 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19018 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19019 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19020 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}'
19030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19032 hardcode_shlibpath_var_GCJ=no
19039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19040 # support. Future versions do this automatically, but an explicit c++rt0.o
19041 # does not break anything, and helps significantly (at the cost of a little
19044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19046 hardcode_direct_GCJ=yes
19047 hardcode_shlibpath_var_GCJ=no
19050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19053 hardcode_direct_GCJ=yes
19054 hardcode_minus_L_GCJ=yes
19055 hardcode_shlibpath_var_GCJ=no
19058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19059 freebsd* | dragonfly*)
19060 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19061 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19062 hardcode_direct_GCJ=yes
19063 hardcode_shlibpath_var_GCJ=no
19067 if test "$GCC" = yes; then
19068 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'
19070 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'
19072 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19073 hardcode_libdir_separator_GCJ=:
19074 hardcode_direct_GCJ=yes
19076 # hardcode_minus_L: Not really in the search PATH,
19077 # but as the default location of the library.
19078 hardcode_minus_L_GCJ=yes
19079 export_dynamic_flag_spec_GCJ='${wl}-E'
19083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19084 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19086 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19088 if test "$with_gnu_ld" = no; then
19089 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19090 hardcode_libdir_separator_GCJ=:
19092 hardcode_direct_GCJ=yes
19093 export_dynamic_flag_spec_GCJ='${wl}-E'
19095 # hardcode_minus_L: Not really in the search PATH,
19096 # but as the default location of the library.
19097 hardcode_minus_L_GCJ=yes
19102 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19105 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19108 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19111 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19117 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19120 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19123 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19127 if test "$with_gnu_ld" = no; then
19128 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19129 hardcode_libdir_separator_GCJ=:
19133 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19134 hardcode_direct_GCJ=no
19135 hardcode_shlibpath_var_GCJ=no
19138 hardcode_direct_GCJ=yes
19139 export_dynamic_flag_spec_GCJ='${wl}-E'
19141 # hardcode_minus_L: Not really in the search PATH,
19142 # but as the default location of the library.
19143 hardcode_minus_L_GCJ=yes
19149 irix5* | irix6* | nonstopux*)
19150 if test "$GCC" = yes; then
19151 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'
19153 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'
19154 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19157 hardcode_libdir_separator_GCJ=:
19158 link_all_deplibs_GCJ=yes
19161 netbsd* | netbsdelf*-gnu)
19162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19163 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19165 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19167 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19168 hardcode_direct_GCJ=yes
19169 hardcode_shlibpath_var_GCJ=no
19173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19174 hardcode_direct_GCJ=yes
19175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19176 hardcode_libdir_separator_GCJ=:
19177 hardcode_shlibpath_var_GCJ=no
19181 hardcode_direct_GCJ=yes
19182 hardcode_shlibpath_var_GCJ=no
19183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19185 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19187 export_dynamic_flag_spec_GCJ='${wl}-E'
19190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19191 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19204 hardcode_minus_L_GCJ=yes
19205 allow_undefined_flag_GCJ=unsupported
19206 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'
19207 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19211 if test "$GCC" = yes; then
19212 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19213 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'
19215 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19216 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'
19218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19219 hardcode_libdir_separator_GCJ=:
19222 osf4* | osf5*) # as osf3* with the addition of -msym flag
19223 if test "$GCC" = yes; then
19224 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19225 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'
19226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19228 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19229 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'
19230 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~
19231 $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'
19233 # Both c and cxx compiler support -rpath directly
19234 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19236 hardcode_libdir_separator_GCJ=:
19240 no_undefined_flag_GCJ=' -z text'
19241 if test "$GCC" = yes; then
19243 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19244 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19245 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19248 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19249 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19252 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19253 hardcode_shlibpath_var_GCJ=no
19255 solaris2.[0-5] | solaris2.[0-5].*) ;;
19257 # The compiler driver will combine linker options so we
19258 # cannot just pass the convience library names through
19259 # without $wl, iff we do not link with $LD.
19260 # Luckily, gcc supports the same syntax we need for Sun Studio.
19261 # Supported since Solaris 2.6 (maybe 2.5.1?)
19264 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19266 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19269 link_all_deplibs_GCJ=yes
19273 if test "x$host_vendor" = xsequent; then
19274 # Use $CC to link under sequent, because it throws in some extra .o
19275 # files that make .init and .fini sections work.
19276 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19278 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19281 hardcode_direct_GCJ=yes
19282 hardcode_minus_L_GCJ=yes
19283 hardcode_shlibpath_var_GCJ=no
19287 case $host_vendor in
19289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290 hardcode_direct_GCJ=yes # is this really true???
19293 ## LD is ld it makes a PLAMLIB
19294 ## CC just makes a GrossModule.
19295 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19296 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19297 hardcode_direct_GCJ=no
19300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19304 runpath_var='LD_RUN_PATH'
19305 hardcode_shlibpath_var_GCJ=no
19309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19310 hardcode_shlibpath_var_GCJ=no
19311 export_dynamic_flag_spec_GCJ='-Bexport'
19315 if test -d /usr/nec; then
19316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19317 hardcode_shlibpath_var_GCJ=no
19318 runpath_var=LD_RUN_PATH
19319 hardcode_runpath_var=yes
19324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19325 no_undefined_flag_GCJ='${wl}-z,text'
19326 archive_cmds_need_lc_GCJ=no
19327 hardcode_shlibpath_var_GCJ=no
19328 runpath_var='LD_RUN_PATH'
19330 if test "$GCC" = yes; then
19331 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19332 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19335 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19339 sysv5* | sco3.2v5* | sco5v6*)
19340 # Note: We can NOT use -z defs as we might desire, because we do not
19341 # link with -lc, and that would cause any symbols used from libc to
19342 # always be unresolved, which means just about no library would
19343 # ever link correctly. If we're not using GNU ld we use -z text
19344 # though, which does catch some bad symbols but isn't as heavy-handed
19346 no_undefined_flag_GCJ='${wl}-z,text'
19347 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19348 archive_cmds_need_lc_GCJ=no
19349 hardcode_shlibpath_var_GCJ=no
19350 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19351 hardcode_libdir_separator_GCJ=':'
19352 link_all_deplibs_GCJ=yes
19353 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19354 runpath_var='LD_RUN_PATH'
19356 if test "$GCC" = yes; then
19357 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19358 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19360 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19361 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19368 hardcode_shlibpath_var_GCJ=no
19377 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19378 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19379 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19382 # Do we need to explicitly link libc?
19384 case "x$archive_cmds_need_lc_GCJ" in
19386 # Assume -lc should be added
19387 archive_cmds_need_lc_GCJ=yes
19389 if test "$enable_shared" = yes && test "$GCC" = yes; then
19390 case $archive_cmds_GCJ in
19392 # FIXME: we may have to deal with multi-command sequences.
19395 # Test whether the compiler implicitly links with -lc since on some
19396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19397 # to ld, don't add -lc before -lgcc.
19398 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404 (eval $ac_compile) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } 2>conftest.err; then
19410 libobjs=conftest.$ac_objext
19412 wl=$lt_prog_compiler_wl_GCJ
19413 pic_flag=$lt_prog_compiler_pic_GCJ
19419 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19420 allow_undefined_flag_GCJ=
19421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19422 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }
19427 archive_cmds_need_lc_GCJ=no
19429 archive_cmds_need_lc_GCJ=yes
19431 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19433 cat conftest.err 1>&5
19436 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19437 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19444 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19446 library_names_spec=
19447 libname_spec='lib$name'
19451 postuninstall_cmds=
19455 shlibpath_overrides_runpath=unknown
19457 dynamic_linker="$host_os ld.so"
19458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19459 if test "$GCC" = yes; then
19460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19461 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19462 # if the path contains ";" then we assume it to be the separator
19463 # otherwise default to the standard path separator (i.e. ":") - it is
19464 # assumed that no part of a normal pathname contains ";" but that should
19465 # okay in the real world where ";" in dirpaths is itself problematic.
19466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19473 need_lib_prefix=unknown
19474 hardcode_into_libs=no
19476 # when you set need_version to no, make sure it does not cause -set_version
19477 # flags to be left without arguments
19478 need_version=unknown
19483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19484 shlibpath_var=LIBPATH
19486 # AIX 3 has no versioning support, so we append a major version to the name.
19487 soname_spec='${libname}${release}${shared_ext}$major'
19494 hardcode_into_libs=yes
19495 if test "$host_cpu" = ia64; then
19496 # AIX 5 supports IA64
19497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19498 shlibpath_var=LD_LIBRARY_PATH
19500 # With GCC up to 2.95.x, collect2 would create an import file
19501 # for dependence libraries. The import file would start with
19502 # the line `#! .'. This would cause the generated library to
19503 # depend on `.', always an invalid library. This was fixed in
19504 # development snapshots of GCC prior to 3.0.
19506 aix4 | aix4.[01] | aix4.[01].*)
19507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19512 can_build_shared=no
19516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19517 # soname into executable. Probably we can add versioning support to
19518 # collect2, so additional links can be useful in future.
19519 if test "$aix_use_runtimelinking" = yes; then
19520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19521 # instead of lib<name>.a to let people know that these are not
19522 # typical AIX shared libraries.
19523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525 # We preserve .a as extension for shared libraries through AIX4.2
19526 # and later when we are not doing run time linking.
19527 library_names_spec='${libname}${release}.a $libname.a'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19530 shlibpath_var=LIBPATH
19535 library_names_spec='$libname.ixlibrary $libname.a'
19536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19537 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'
19541 library_names_spec='${libname}${shared_ext}'
19542 dynamic_linker="$host_os ld.so"
19543 shlibpath_var=LIBRARY_PATH
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550 soname_spec='${libname}${release}${shared_ext}$major'
19551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19555 # the default ld.so.conf also contains /usr/contrib/lib and
19556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19557 # libtool to hard-code these into programs
19560 cygwin* | mingw* | pw32*)
19561 version_type=windows
19566 case $GCC,$host_os in
19567 yes,cygwin* | yes,mingw* | yes,pw32*)
19568 library_names_spec='$libname.dll.a'
19569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19570 postinstall_cmds='base_file=`basename \${file}`~
19571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19572 dldir=$destdir/`dirname \$dlpath`~
19573 test -d \$dldir || mkdir -p \$dldir~
19574 $install_prog $dir/$dlname \$dldir/$dlname~
19575 chmod a+x \$dldir/$dlname'
19576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19577 dlpath=$dir/\$dldll~
19579 shlibpath_overrides_runpath=yes
19583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19588 # MinGW DLLs use traditional 'lib' prefix
19589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19592 # It is most probably a Windows format PATH printed by
19593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19594 # path with ; separators, and with drive letters. We can handle the
19595 # drive letters (cygwin fileutils understands them), so leave them,
19596 # especially as we might pass files found there to a mingw objdump,
19597 # which wouldn't understand a cygwinified path. Ahh.
19598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19604 # pw32 DLLs use 'pw' prefix rather than 'lib'
19605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19614 dynamic_linker='Win32 ld.exe'
19615 # FIXME: first we should search . and the directory the executable is in
19619 darwin* | rhapsody*)
19620 dynamic_linker="$host_os dyld"
19621 version_type=darwin
19624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19625 soname_spec='${libname}${release}${major}$shared_ext'
19626 shlibpath_overrides_runpath=yes
19627 shlibpath_var=DYLD_LIBRARY_PATH
19628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19629 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19630 if test "$GCC" = yes; then
19631 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19633 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 shlibpath_var=LD_LIBRARY_PATH
19651 freebsd* | dragonfly*)
19652 # DragonFly does not have aout. When/if they implement a new
19653 # versioning mechanism, adjust this.
19654 if test -x /usr/bin/objformat; then
19655 objformat=`/usr/bin/objformat`
19658 freebsd[123]*) objformat=aout ;;
19659 *) objformat=elf ;;
19662 version_type=freebsd-$objformat
19663 case $version_type in
19665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19674 shlibpath_var=LD_LIBRARY_PATH
19677 shlibpath_overrides_runpath=yes
19679 freebsd3.[01]* | freebsdelf3.[01]*)
19680 shlibpath_overrides_runpath=yes
19681 hardcode_into_libs=yes
19683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19685 shlibpath_overrides_runpath=no
19686 hardcode_into_libs=yes
19688 freebsd*) # from 4.6 on
19689 shlibpath_overrides_runpath=yes
19690 hardcode_into_libs=yes
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19700 soname_spec='${libname}${release}${shared_ext}$major'
19701 shlibpath_var=LD_LIBRARY_PATH
19702 hardcode_into_libs=yes
19705 hpux9* | hpux10* | hpux11*)
19706 # Give a soname corresponding to the major version so that dld.sl refuses to
19707 # link against other versions.
19714 hardcode_into_libs=yes
19715 dynamic_linker="$host_os dld.so"
19716 shlibpath_var=LD_LIBRARY_PATH
19717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19720 if test "X$HPUX_IA64_MODE" = X32; then
19721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19729 hardcode_into_libs=yes
19730 dynamic_linker="$host_os dld.sl"
19731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19740 dynamic_linker="$host_os dld.sl"
19741 shlibpath_var=SHLIB_PATH
19742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19744 soname_spec='${libname}${release}${shared_ext}$major'
19747 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19748 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 shlibpath_overrides_runpath=no
19760 hardcode_into_libs=yes
19763 irix5* | irix6* | nonstopux*)
19765 nonstopux*) version_type=nonstopux ;;
19767 if test "$lt_cv_prog_gnu_ld" = yes; then
19775 soname_spec='${libname}${release}${shared_ext}$major'
19776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19778 irix5* | nonstopux*)
19779 libsuff= shlibsuff=
19782 case $LD in # libtool.m4 will add one of these switches to LD
19783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19784 libsuff= shlibsuff= libmagic=32-bit;;
19785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19786 libsuff=32 shlibsuff=N32 libmagic=N32;;
19787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19789 *) libsuff= shlibsuff= libmagic=never-match;;
19793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19794 shlibpath_overrides_runpath=no
19795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19797 hardcode_into_libs=yes
19800 # No shared lib support for Linux oldld, aout, or coff.
19801 linux*oldld* | linux*aout* | linux*coff*)
19805 # This must be Linux ELF.
19806 linux* | k*bsd*-gnu)
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 soname_spec='${libname}${release}${shared_ext}$major'
19812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19813 shlibpath_var=LD_LIBRARY_PATH
19814 shlibpath_overrides_runpath=no
19815 # This implies no fast_install, which is unacceptable.
19816 # Some rework will be needed to allow for fast_install
19817 # before this can be enabled.
19818 hardcode_into_libs=yes
19820 # Append ld.so.conf contents to the search path
19821 if test -f /etc/ld.so.conf; then
19822 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19823 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19826 # We used to test for /lib/ld.so.1 and disable shared libraries on
19827 # powerpc, because MkLinux only supported shared libraries with the
19828 # GNU dynamic linker. Since this was broken with cross compilers,
19829 # most powerpc-linux boxes support dynamic linking these days and
19830 # people can always --disable-shared, the test was removed, and we
19831 # assume the GNU/Linux dynamic linker is in use.
19832 dynamic_linker='GNU/Linux ld.so'
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 shlibpath_var=LD_LIBRARY_PATH
19842 shlibpath_overrides_runpath=no
19843 hardcode_into_libs=yes
19844 dynamic_linker='NetBSD ld.elf_so'
19851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19854 dynamic_linker='NetBSD (a.out) ld.so'
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19857 soname_spec='${libname}${release}${shared_ext}$major'
19858 dynamic_linker='NetBSD ld.elf_so'
19860 shlibpath_var=LD_LIBRARY_PATH
19861 shlibpath_overrides_runpath=yes
19862 hardcode_into_libs=yes
19867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19868 shlibpath_var=LD_LIBRARY_PATH
19869 shlibpath_overrides_runpath=yes
19876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877 soname_spec='${libname}${release}${shared_ext}$major'
19878 shlibpath_var=LD_LIBRARY_PATH
19879 shlibpath_overrides_runpath=yes
19884 sys_lib_dlsearch_path_spec="/usr/lib"
19886 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19888 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19889 *) need_version=no ;;
19891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19893 shlibpath_var=LD_LIBRARY_PATH
19894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19896 openbsd2.[89] | openbsd2.[89].*)
19897 shlibpath_overrides_runpath=no
19900 shlibpath_overrides_runpath=yes
19904 shlibpath_overrides_runpath=yes
19909 libname_spec='$name'
19912 library_names_spec='$libname${shared_ext} $libname.a'
19913 dynamic_linker='OS/2 ld.exe'
19914 shlibpath_var=LIBPATH
19917 osf3* | osf4* | osf5*)
19921 soname_spec='${libname}${release}${shared_ext}$major'
19922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19923 shlibpath_var=LD_LIBRARY_PATH
19924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19925 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 shlibpath_overrides_runpath=yes
19936 hardcode_into_libs=yes
19937 # ldd complains unless libraries are executable
19938 postinstall_cmds='chmod +x $lib'
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 shlibpath_overrides_runpath=yes
19947 if test "$with_gnu_ld" = yes; then
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 shlibpath_var=LD_LIBRARY_PATH
19958 case $host_vendor in
19960 shlibpath_overrides_runpath=no
19962 export_dynamic_flag_spec='${wl}-Blargedynsym'
19963 runpath_var=LD_RUN_PATH
19971 shlibpath_overrides_runpath=no
19972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19978 if test -d /usr/nec ;then
19980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19981 soname_spec='$libname${shared_ext}.$major'
19982 shlibpath_var=LD_LIBRARY_PATH
19986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19987 version_type=freebsd-elf
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LD_LIBRARY_PATH
19993 hardcode_into_libs=yes
19994 if test "$with_gnu_ld" = yes; then
19995 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19996 shlibpath_overrides_runpath=no
19998 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19999 shlibpath_overrides_runpath=yes
20002 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20006 sys_lib_dlsearch_path_spec='/usr/lib'
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 shlibpath_var=LD_LIBRARY_PATH
20020 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20021 echo "${ECHO_T}$dynamic_linker" >&6; }
20022 test "$dynamic_linker" = no && can_build_shared=no
20024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20025 if test "$GCC" = yes; then
20026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20029 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20030 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20031 hardcode_action_GCJ=
20032 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20033 test -n "$runpath_var_GCJ" || \
20034 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20036 # We can hardcode non-existant directories.
20037 if test "$hardcode_direct_GCJ" != no &&
20038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20039 # have to relink, otherwise we might link with an installed library
20040 # when we should be linking with a yet-to-be-installed one
20041 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20042 test "$hardcode_minus_L_GCJ" != no; then
20043 # Linking always hardcodes the temporary library directory.
20044 hardcode_action_GCJ=relink
20046 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20047 hardcode_action_GCJ=immediate
20050 # We cannot hardcode anything, or else we can only hardcode existing
20052 hardcode_action_GCJ=unsupported
20054 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20055 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20057 if test "$hardcode_action_GCJ" = relink; then
20058 # Fast installation is not supported
20059 enable_fast_install=no
20060 elif test "$shlibpath_overrides_runpath" = yes ||
20061 test "$enable_shared" = no; then
20062 # Fast installation is not necessary
20063 enable_fast_install=needless
20067 # The else clause should only fire when bootstrapping the
20068 # libtool distribution, otherwise you forgot to ship ltmain.sh
20069 # with your package, and you will get complaints that there are
20070 # no rules to generate ltmain.sh.
20071 if test -f "$ltmain"; then
20072 # See if we are running on zsh, and set the options which allow our commands through
20073 # without removal of \ escapes.
20074 if test -n "${ZSH_VERSION+set}" ; then
20075 setopt NO_GLOB_SUBST
20077 # Now quote all the things that may contain metacharacters while being
20078 # careful not to overquote the AC_SUBSTed values. We take copies of the
20079 # variables and quote the copies for generation of the libtool script.
20080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20084 deplibs_check_method reload_flag reload_cmds need_locks \
20085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20086 lt_cv_sys_global_symbol_to_c_name_address \
20087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20088 old_postinstall_cmds old_postuninstall_cmds \
20092 lt_prog_compiler_wl_GCJ \
20093 lt_prog_compiler_pic_GCJ \
20094 lt_prog_compiler_static_GCJ \
20095 lt_prog_compiler_no_builtin_flag_GCJ \
20096 export_dynamic_flag_spec_GCJ \
20097 thread_safe_flag_spec_GCJ \
20098 whole_archive_flag_spec_GCJ \
20099 enable_shared_with_static_runtimes_GCJ \
20100 old_archive_cmds_GCJ \
20101 old_archive_from_new_cmds_GCJ \
20102 predep_objects_GCJ \
20103 postdep_objects_GCJ \
20106 compiler_lib_search_path_GCJ \
20108 archive_expsym_cmds_GCJ \
20109 postinstall_cmds_GCJ \
20110 postuninstall_cmds_GCJ \
20111 old_archive_from_expsyms_cmds_GCJ \
20112 allow_undefined_flag_GCJ \
20113 no_undefined_flag_GCJ \
20114 export_symbols_cmds_GCJ \
20115 hardcode_libdir_flag_spec_GCJ \
20116 hardcode_libdir_flag_spec_ld_GCJ \
20117 hardcode_libdir_separator_GCJ \
20118 hardcode_automatic_GCJ \
20120 module_expsym_cmds_GCJ \
20121 lt_cv_prog_compiler_c_o_GCJ \
20122 exclude_expsyms_GCJ \
20123 include_expsyms_GCJ; do
20126 old_archive_cmds_GCJ | \
20127 old_archive_from_new_cmds_GCJ | \
20128 archive_cmds_GCJ | \
20129 archive_expsym_cmds_GCJ | \
20130 module_cmds_GCJ | \
20131 module_expsym_cmds_GCJ | \
20132 old_archive_from_expsyms_cmds_GCJ | \
20133 export_symbols_cmds_GCJ | \
20134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20135 postinstall_cmds | postuninstall_cmds | \
20136 old_postinstall_cmds | old_postuninstall_cmds | \
20137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20138 # Double-quote double-evaled strings.
20139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20148 *'\$0 --fallback-echo"')
20149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20155 cat <<__EOF__ >> "$cfgfile"
20156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20160 # Shell to use when invoking shell scripts.
20163 # Whether or not to build shared libraries.
20164 build_libtool_libs=$enable_shared
20166 # Whether or not to build static libraries.
20167 build_old_libs=$enable_static
20169 # Whether or not to add -lc for building shared libraries.
20170 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20172 # Whether or not to disallow shared libs when runtime libs are static
20173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20175 # Whether or not to optimize for fast installation.
20176 fast_install=$enable_fast_install
20179 host_alias=$host_alias
20183 # The build system.
20184 build_alias=$build_alias
20188 # An echo program that does not interpret backslashes.
20193 AR_FLAGS=$lt_AR_FLAGS
20198 # LTCC compiler flags.
20199 LTCFLAGS=$lt_LTCFLAGS
20201 # A language-specific compiler.
20202 CC=$lt_compiler_GCJ
20204 # Is the compiler the GNU C compiler?
20210 # The linker used to build libraries.
20213 # Whether we need hard or soft links.
20216 # A BSD-compatible nm program.
20219 # A symbol stripping program
20222 # Used to examine libraries when file_magic_cmd begins "file"
20223 MAGIC_CMD=$MAGIC_CMD
20225 # Used on cygwin: DLL creation program.
20228 # Used on cygwin: object dumper.
20231 # Used on cygwin: assembler.
20234 # The name of the directory that contains temporary libtool files.
20237 # How to create reloadable object files.
20238 reload_flag=$lt_reload_flag
20239 reload_cmds=$lt_reload_cmds
20241 # How to pass a linker flag through the compiler.
20242 wl=$lt_lt_prog_compiler_wl_GCJ
20244 # Object file suffix (normally "o").
20245 objext="$ac_objext"
20247 # Old archive suffix (normally "a").
20250 # Shared library suffix (normally ".so").
20251 shrext_cmds='$shrext_cmds'
20253 # Executable file suffix (normally "").
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20260 # What is the maximum length of a command?
20261 max_cmd_len=$lt_cv_sys_max_cmd_len
20263 # Does compiler simultaneously support -c and -o options?
20264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20266 # Must we lock files when doing compilation?
20267 need_locks=$lt_need_locks
20269 # Do we need the lib prefix for modules?
20270 need_lib_prefix=$need_lib_prefix
20272 # Do we need a version for libraries?
20273 need_version=$need_version
20275 # Whether dlopen is supported.
20276 dlopen_support=$enable_dlopen
20278 # Whether dlopen of programs is supported.
20279 dlopen_self=$enable_dlopen_self
20281 # Whether dlopen of statically linked programs is supported.
20282 dlopen_self_static=$enable_dlopen_self_static
20284 # Compiler flag to prevent dynamic linking.
20285 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20287 # Compiler flag to turn off builtin functions.
20288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20290 # Compiler flag to allow reflexive dlopens.
20291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20293 # Compiler flag to generate shared objects directly from archives.
20294 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20296 # Compiler flag to generate thread-safe objects.
20297 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20299 # Library versioning type.
20300 version_type=$version_type
20302 # Format of library name prefix.
20303 libname_spec=$lt_libname_spec
20305 # List of archive names. First name is the real one, the rest are links.
20306 # The last name is the one that the linker finds with -lNAME.
20307 library_names_spec=$lt_library_names_spec
20309 # The coded name of the library, if different from the real name.
20310 soname_spec=$lt_soname_spec
20312 # Commands used to build and install an old-style archive.
20314 old_archive_cmds=$lt_old_archive_cmds_GCJ
20315 old_postinstall_cmds=$lt_old_postinstall_cmds
20316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20318 # Create an old-style archive from a shared archive.
20319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20321 # Create a temporary old-style archive to link instead of a shared archive.
20322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20324 # Commands used to build and install a shared archive.
20325 archive_cmds=$lt_archive_cmds_GCJ
20326 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20327 postinstall_cmds=$lt_postinstall_cmds
20328 postuninstall_cmds=$lt_postuninstall_cmds
20330 # Commands used to build a loadable module (assumed same as above if empty)
20331 module_cmds=$lt_module_cmds_GCJ
20332 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20334 # Commands to strip libraries.
20335 old_striplib=$lt_old_striplib
20336 striplib=$lt_striplib
20338 # Dependencies to place before the objects being linked to create a
20340 predep_objects=$lt_predep_objects_GCJ
20342 # Dependencies to place after the objects being linked to create a
20344 postdep_objects=$lt_postdep_objects_GCJ
20346 # Dependencies to place before the objects being linked to create a
20348 predeps=$lt_predeps_GCJ
20350 # Dependencies to place after the objects being linked to create a
20352 postdeps=$lt_postdeps_GCJ
20354 # The library search path used internally by the compiler when linking
20355 # a shared library.
20356 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20358 # Method to check whether dependent libraries are shared objects.
20359 deplibs_check_method=$lt_deplibs_check_method
20361 # Command to use when deplibs_check_method == file_magic.
20362 file_magic_cmd=$lt_file_magic_cmd
20364 # Flag that allows shared libraries with undefined symbols to be built.
20365 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20367 # Flag that forces no undefined symbols.
20368 no_undefined_flag=$lt_no_undefined_flag_GCJ
20370 # Commands used to finish a libtool library installation in a directory.
20371 finish_cmds=$lt_finish_cmds
20373 # Same as above, but a single script fragment to be evaled but not shown.
20374 finish_eval=$lt_finish_eval
20376 # Take the output of nm and produce a listing of raw symbols and C names.
20377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20379 # Transform the output of nm in a proper C declaration
20380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20382 # Transform the output of nm in a C name address pair
20383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20385 # This is the shared library runtime path variable.
20386 runpath_var=$runpath_var
20388 # This is the shared library path variable.
20389 shlibpath_var=$shlibpath_var
20391 # Is shlibpath searched before the hard-coded library search path?
20392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20394 # How to hardcode a shared library path into an executable.
20395 hardcode_action=$hardcode_action_GCJ
20397 # Whether we should hardcode library paths into libraries.
20398 hardcode_into_libs=$hardcode_into_libs
20400 # Flag to hardcode \$libdir into a binary during linking.
20401 # This must work even if \$libdir does not exist.
20402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20404 # If ld is used when linking, flag to hardcode \$libdir into
20405 # a binary during linking. This must work even if \$libdir does
20407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20409 # Whether we need a single -rpath flag with a separated argument.
20410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20412 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20413 # resulting binary.
20414 hardcode_direct=$hardcode_direct_GCJ
20416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20417 # resulting binary.
20418 hardcode_minus_L=$hardcode_minus_L_GCJ
20420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20421 # the resulting binary.
20422 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20424 # Set to yes if building a shared library automatically hardcodes DIR into the library
20425 # and all subsequent libraries and executables linked against it.
20426 hardcode_automatic=$hardcode_automatic_GCJ
20428 # Variables whose values should be saved in libtool wrapper scripts and
20429 # restored at relink time.
20430 variables_saved_for_relink="$variables_saved_for_relink"
20432 # Whether libtool must link a program against all its dependency libraries.
20433 link_all_deplibs=$link_all_deplibs_GCJ
20435 # Compile-time system search path for libraries
20436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20438 # Run-time system search path for libraries
20439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20441 # Fix the shell variable \$srcfile for the compiler.
20442 fix_srcfile_path="$fix_srcfile_path_GCJ"
20444 # Set to yes if exported symbols are required.
20445 always_export_symbols=$always_export_symbols_GCJ
20447 # The commands to list exported symbols.
20448 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20450 # The commands to extract the exported symbol list from a shared archive.
20451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20453 # Symbols that should not be listed in the preloaded symbols.
20454 exclude_expsyms=$lt_exclude_expsyms_GCJ
20456 # Symbols that must always be exported.
20457 include_expsyms=$lt_include_expsyms_GCJ
20459 # ### END LIBTOOL TAG CONFIG: $tagname
20465 # If there is no Makefile yet, we rely on a make rule to execute
20466 # `config.status --recheck' to rerun these tests and create the
20467 # libtool script then.
20468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20469 if test -f "$ltmain_in"; then
20470 test -f Makefile && make "$ltmain"
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491 # Source file extension for RC test sources.
20494 # Object file extension for compiled RC test sources.
20498 # Code to be used in simple compile tests
20499 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20501 # Code to be used in simple link tests
20502 lt_simple_link_test_code="$lt_simple_compile_test_code"
20504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20506 # If no C compiler was specified, use CC.
20509 # If no C compiler flags were specified, use CFLAGS.
20510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20512 # Allow CC to be a program name with arguments.
20516 # save warnings/boilerplate of simple test code
20517 ac_outfile=conftest.$ac_objext
20518 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20520 _lt_compiler_boilerplate=`cat conftest.err`
20523 ac_outfile=conftest.$ac_objext
20524 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20526 _lt_linker_boilerplate=`cat conftest.err`
20530 # Allow CC to be a program name with arguments.
20535 for cc_temp in $compiler""; do
20537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20543 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20545 lt_cv_prog_compiler_c_o_RC=yes
20547 # The else clause should only fire when bootstrapping the
20548 # libtool distribution, otherwise you forgot to ship ltmain.sh
20549 # with your package, and you will get complaints that there are
20550 # no rules to generate ltmain.sh.
20551 if test -f "$ltmain"; then
20552 # See if we are running on zsh, and set the options which allow our commands through
20553 # without removal of \ escapes.
20554 if test -n "${ZSH_VERSION+set}" ; then
20555 setopt NO_GLOB_SUBST
20557 # Now quote all the things that may contain metacharacters while being
20558 # careful not to overquote the AC_SUBSTed values. We take copies of the
20559 # variables and quote the copies for generation of the libtool script.
20560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20564 deplibs_check_method reload_flag reload_cmds need_locks \
20565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20566 lt_cv_sys_global_symbol_to_c_name_address \
20567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20568 old_postinstall_cmds old_postuninstall_cmds \
20572 lt_prog_compiler_wl_RC \
20573 lt_prog_compiler_pic_RC \
20574 lt_prog_compiler_static_RC \
20575 lt_prog_compiler_no_builtin_flag_RC \
20576 export_dynamic_flag_spec_RC \
20577 thread_safe_flag_spec_RC \
20578 whole_archive_flag_spec_RC \
20579 enable_shared_with_static_runtimes_RC \
20580 old_archive_cmds_RC \
20581 old_archive_from_new_cmds_RC \
20582 predep_objects_RC \
20583 postdep_objects_RC \
20586 compiler_lib_search_path_RC \
20588 archive_expsym_cmds_RC \
20589 postinstall_cmds_RC \
20590 postuninstall_cmds_RC \
20591 old_archive_from_expsyms_cmds_RC \
20592 allow_undefined_flag_RC \
20593 no_undefined_flag_RC \
20594 export_symbols_cmds_RC \
20595 hardcode_libdir_flag_spec_RC \
20596 hardcode_libdir_flag_spec_ld_RC \
20597 hardcode_libdir_separator_RC \
20598 hardcode_automatic_RC \
20600 module_expsym_cmds_RC \
20601 lt_cv_prog_compiler_c_o_RC \
20602 exclude_expsyms_RC \
20603 include_expsyms_RC; do
20606 old_archive_cmds_RC | \
20607 old_archive_from_new_cmds_RC | \
20608 archive_cmds_RC | \
20609 archive_expsym_cmds_RC | \
20611 module_expsym_cmds_RC | \
20612 old_archive_from_expsyms_cmds_RC | \
20613 export_symbols_cmds_RC | \
20614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20615 postinstall_cmds | postuninstall_cmds | \
20616 old_postinstall_cmds | old_postuninstall_cmds | \
20617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20618 # Double-quote double-evaled strings.
20619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20628 *'\$0 --fallback-echo"')
20629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20635 cat <<__EOF__ >> "$cfgfile"
20636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20640 # Shell to use when invoking shell scripts.
20643 # Whether or not to build shared libraries.
20644 build_libtool_libs=$enable_shared
20646 # Whether or not to build static libraries.
20647 build_old_libs=$enable_static
20649 # Whether or not to add -lc for building shared libraries.
20650 build_libtool_need_lc=$archive_cmds_need_lc_RC
20652 # Whether or not to disallow shared libs when runtime libs are static
20653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20655 # Whether or not to optimize for fast installation.
20656 fast_install=$enable_fast_install
20659 host_alias=$host_alias
20663 # The build system.
20664 build_alias=$build_alias
20668 # An echo program that does not interpret backslashes.
20673 AR_FLAGS=$lt_AR_FLAGS
20678 # LTCC compiler flags.
20679 LTCFLAGS=$lt_LTCFLAGS
20681 # A language-specific compiler.
20684 # Is the compiler the GNU C compiler?
20690 # The linker used to build libraries.
20693 # Whether we need hard or soft links.
20696 # A BSD-compatible nm program.
20699 # A symbol stripping program
20702 # Used to examine libraries when file_magic_cmd begins "file"
20703 MAGIC_CMD=$MAGIC_CMD
20705 # Used on cygwin: DLL creation program.
20708 # Used on cygwin: object dumper.
20711 # Used on cygwin: assembler.
20714 # The name of the directory that contains temporary libtool files.
20717 # How to create reloadable object files.
20718 reload_flag=$lt_reload_flag
20719 reload_cmds=$lt_reload_cmds
20721 # How to pass a linker flag through the compiler.
20722 wl=$lt_lt_prog_compiler_wl_RC
20724 # Object file suffix (normally "o").
20725 objext="$ac_objext"
20727 # Old archive suffix (normally "a").
20730 # Shared library suffix (normally ".so").
20731 shrext_cmds='$shrext_cmds'
20733 # Executable file suffix (normally "").
20736 # Additional compiler flags for building library objects.
20737 pic_flag=$lt_lt_prog_compiler_pic_RC
20740 # What is the maximum length of a command?
20741 max_cmd_len=$lt_cv_sys_max_cmd_len
20743 # Does compiler simultaneously support -c and -o options?
20744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20749 # Do we need the lib prefix for modules?
20750 need_lib_prefix=$need_lib_prefix
20752 # Do we need a version for libraries?
20753 need_version=$need_version
20755 # Whether dlopen is supported.
20756 dlopen_support=$enable_dlopen
20758 # Whether dlopen of programs is supported.
20759 dlopen_self=$enable_dlopen_self
20761 # Whether dlopen of statically linked programs is supported.
20762 dlopen_self_static=$enable_dlopen_self_static
20764 # Compiler flag to prevent dynamic linking.
20765 link_static_flag=$lt_lt_prog_compiler_static_RC
20767 # Compiler flag to turn off builtin functions.
20768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20770 # Compiler flag to allow reflexive dlopens.
20771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20773 # Compiler flag to generate shared objects directly from archives.
20774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20776 # Compiler flag to generate thread-safe objects.
20777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20779 # Library versioning type.
20780 version_type=$version_type
20782 # Format of library name prefix.
20783 libname_spec=$lt_libname_spec
20785 # List of archive names. First name is the real one, the rest are links.
20786 # The last name is the one that the linker finds with -lNAME.
20787 library_names_spec=$lt_library_names_spec
20789 # The coded name of the library, if different from the real name.
20790 soname_spec=$lt_soname_spec
20792 # Commands used to build and install an old-style archive.
20794 old_archive_cmds=$lt_old_archive_cmds_RC
20795 old_postinstall_cmds=$lt_old_postinstall_cmds
20796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20798 # Create an old-style archive from a shared archive.
20799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20801 # Create a temporary old-style archive to link instead of a shared archive.
20802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20804 # Commands used to build and install a shared archive.
20805 archive_cmds=$lt_archive_cmds_RC
20806 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20807 postinstall_cmds=$lt_postinstall_cmds
20808 postuninstall_cmds=$lt_postuninstall_cmds
20810 # Commands used to build a loadable module (assumed same as above if empty)
20811 module_cmds=$lt_module_cmds_RC
20812 module_expsym_cmds=$lt_module_expsym_cmds_RC
20814 # Commands to strip libraries.
20815 old_striplib=$lt_old_striplib
20816 striplib=$lt_striplib
20818 # Dependencies to place before the objects being linked to create a
20820 predep_objects=$lt_predep_objects_RC
20822 # Dependencies to place after the objects being linked to create a
20824 postdep_objects=$lt_postdep_objects_RC
20826 # Dependencies to place before the objects being linked to create a
20828 predeps=$lt_predeps_RC
20830 # Dependencies to place after the objects being linked to create a
20832 postdeps=$lt_postdeps_RC
20834 # The library search path used internally by the compiler when linking
20835 # a shared library.
20836 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20838 # Method to check whether dependent libraries are shared objects.
20839 deplibs_check_method=$lt_deplibs_check_method
20841 # Command to use when deplibs_check_method == file_magic.
20842 file_magic_cmd=$lt_file_magic_cmd
20844 # Flag that allows shared libraries with undefined symbols to be built.
20845 allow_undefined_flag=$lt_allow_undefined_flag_RC
20847 # Flag that forces no undefined symbols.
20848 no_undefined_flag=$lt_no_undefined_flag_RC
20850 # Commands used to finish a libtool library installation in a directory.
20851 finish_cmds=$lt_finish_cmds
20853 # Same as above, but a single script fragment to be evaled but not shown.
20854 finish_eval=$lt_finish_eval
20856 # Take the output of nm and produce a listing of raw symbols and C names.
20857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20859 # Transform the output of nm in a proper C declaration
20860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20862 # Transform the output of nm in a C name address pair
20863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20865 # This is the shared library runtime path variable.
20866 runpath_var=$runpath_var
20868 # This is the shared library path variable.
20869 shlibpath_var=$shlibpath_var
20871 # Is shlibpath searched before the hard-coded library search path?
20872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20874 # How to hardcode a shared library path into an executable.
20875 hardcode_action=$hardcode_action_RC
20877 # Whether we should hardcode library paths into libraries.
20878 hardcode_into_libs=$hardcode_into_libs
20880 # Flag to hardcode \$libdir into a binary during linking.
20881 # This must work even if \$libdir does not exist.
20882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20884 # If ld is used when linking, flag to hardcode \$libdir into
20885 # a binary during linking. This must work even if \$libdir does
20887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20889 # Whether we need a single -rpath flag with a separated argument.
20890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20893 # resulting binary.
20894 hardcode_direct=$hardcode_direct_RC
20896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20897 # resulting binary.
20898 hardcode_minus_L=$hardcode_minus_L_RC
20900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20901 # the resulting binary.
20902 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20904 # Set to yes if building a shared library automatically hardcodes DIR into the library
20905 # and all subsequent libraries and executables linked against it.
20906 hardcode_automatic=$hardcode_automatic_RC
20908 # Variables whose values should be saved in libtool wrapper scripts and
20909 # restored at relink time.
20910 variables_saved_for_relink="$variables_saved_for_relink"
20912 # Whether libtool must link a program against all its dependency libraries.
20913 link_all_deplibs=$link_all_deplibs_RC
20915 # Compile-time system search path for libraries
20916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20918 # Run-time system search path for libraries
20919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20921 # Fix the shell variable \$srcfile for the compiler.
20922 fix_srcfile_path="$fix_srcfile_path_RC"
20924 # Set to yes if exported symbols are required.
20925 always_export_symbols=$always_export_symbols_RC
20927 # The commands to list exported symbols.
20928 export_symbols_cmds=$lt_export_symbols_cmds_RC
20930 # The commands to extract the exported symbol list from a shared archive.
20931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20933 # Symbols that should not be listed in the preloaded symbols.
20934 exclude_expsyms=$lt_exclude_expsyms_RC
20936 # Symbols that must always be exported.
20937 include_expsyms=$lt_include_expsyms_RC
20939 # ### END LIBTOOL TAG CONFIG: $tagname
20945 # If there is no Makefile yet, we rely on a make rule to execute
20946 # `config.status --recheck' to rerun these tests and create the
20947 # libtool script then.
20948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20949 if test -f "$ltmain_in"; then
20950 test -f Makefile && make "$ltmain"
20956 ac_cpp='$CPP $CPPFLAGS'
20957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20966 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20967 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20968 { (exit 1); exit 1; }; }
20972 # Append the new tag name to the list of available tags.
20973 if test -n "$tagname" ; then
20974 available_tags="$available_tags $tagname"
20980 # Now substitute the updated list of available tags.
20981 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20982 mv "${ofile}T" "$ofile"
20986 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20987 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20988 { (exit 1); exit 1; }; }
20994 # This can be used to rebuild libtool when needed
20995 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20997 # Always use our own libtool.
20998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21000 # Prevent multiple expansion
21022 if test "x$cross_compiling" = "xno"; then
21023 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21025 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21030 if test -n "$ac_tool_prefix"; then
21031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21032 set dummy ${ac_tool_prefix}ar; ac_word=$2
21033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21035 if test "${ac_cv_prog_AR+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 if test -n "$AR"; then
21039 ac_cv_prog_AR="$AR" # Let the user override the test.
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042 for as_dir in $PATH
21045 test -z "$as_dir" && as_dir=.
21046 for ac_exec_ext in '' $ac_executable_extensions; do
21047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21048 ac_cv_prog_AR="${ac_tool_prefix}ar"
21049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21059 if test -n "$AR"; then
21060 { echo "$as_me:$LINENO: result: $AR" >&5
21061 echo "${ECHO_T}$AR" >&6; }
21063 { echo "$as_me:$LINENO: result: no" >&5
21064 echo "${ECHO_T}no" >&6; }
21069 if test -z "$ac_cv_prog_AR"; then
21071 # Extract the first word of "ar", so it can be a program name with args.
21072 set dummy ar; ac_word=$2
21073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 if test -n "$ac_ct_AR"; then
21079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21082 for as_dir in $PATH
21085 test -z "$as_dir" && as_dir=.
21086 for ac_exec_ext in '' $ac_executable_extensions; do
21087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21088 ac_cv_prog_ac_ct_AR="ar"
21089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21099 if test -n "$ac_ct_AR"; then
21100 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21101 echo "${ECHO_T}$ac_ct_AR" >&6; }
21103 { echo "$as_me:$LINENO: result: no" >&5
21104 echo "${ECHO_T}no" >&6; }
21107 if test "x$ac_ct_AR" = x; then
21110 case $cross_compiling:$ac_tool_warned in
21112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21113 whose name does not start with the host triplet. If you think this
21114 configuration is useful to you, please write to autoconf@gnu.org." >&5
21115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21116 whose name does not start with the host triplet. If you think this
21117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21118 ac_tool_warned=yes ;;
21123 AR="$ac_cv_prog_AR"
21126 if test -n "$ac_tool_prefix"; then
21127 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21128 set dummy ${ac_tool_prefix}ld; ac_word=$2
21129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21131 if test "${ac_cv_prog_LD+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 if test -n "$LD"; then
21135 ac_cv_prog_LD="$LD" # Let the user override the test.
21137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21138 for as_dir in $PATH
21141 test -z "$as_dir" && as_dir=.
21142 for ac_exec_ext in '' $ac_executable_extensions; do
21143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21144 ac_cv_prog_LD="${ac_tool_prefix}ld"
21145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21155 if test -n "$LD"; then
21156 { echo "$as_me:$LINENO: result: $LD" >&5
21157 echo "${ECHO_T}$LD" >&6; }
21159 { echo "$as_me:$LINENO: result: no" >&5
21160 echo "${ECHO_T}no" >&6; }
21165 if test -z "$ac_cv_prog_LD"; then
21167 # Extract the first word of "ld", so it can be a program name with args.
21168 set dummy ld; ac_word=$2
21169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21171 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 if test -n "$ac_ct_LD"; then
21175 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21178 for as_dir in $PATH
21181 test -z "$as_dir" && as_dir=.
21182 for ac_exec_ext in '' $ac_executable_extensions; do
21183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21184 ac_cv_prog_ac_ct_LD="ld"
21185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21194 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21195 if test -n "$ac_ct_LD"; then
21196 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21197 echo "${ECHO_T}$ac_ct_LD" >&6; }
21199 { echo "$as_me:$LINENO: result: no" >&5
21200 echo "${ECHO_T}no" >&6; }
21203 if test "x$ac_ct_LD" = x; then
21206 case $cross_compiling:$ac_tool_warned in
21208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21209 whose name does not start with the host triplet. If you think this
21210 configuration is useful to you, please write to autoconf@gnu.org." >&5
21211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21212 whose name does not start with the host triplet. If you think this
21213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21214 ac_tool_warned=yes ;;
21219 LD="$ac_cv_prog_LD"
21223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21225 if test "${ac_cv_header_stdc+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <stdlib.h>
21235 #include <stdarg.h>
21236 #include <string.h>
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_try") 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_header_stdc=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_header_stdc=no
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 if test $ac_cv_header_stdc = yes; then
21292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <string.h>
21302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21303 $EGREP "memchr" >/dev/null 2>&1; then
21306 ac_cv_header_stdc=no
21312 if test $ac_cv_header_stdc = yes; then
21313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21314 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <stdlib.h>
21323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21324 $EGREP "free" >/dev/null 2>&1; then
21327 ac_cv_header_stdc=no
21333 if test $ac_cv_header_stdc = yes; then
21334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21335 if test "$cross_compiling" = yes; then
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21345 #include <stdlib.h>
21346 #if ((' ' & 0x0FF) == 0x020)
21347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21350 # define ISLOWER(c) \
21351 (('a' <= (c) && (c) <= 'i') \
21352 || ('j' <= (c) && (c) <= 'r') \
21353 || ('s' <= (c) && (c) <= 'z'))
21354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21362 for (i = 0; i < 256; i++)
21363 if (XOR (islower (i), ISLOWER (i))
21364 || toupper (i) != TOUPPER (i))
21369 rm -f conftest$ac_exeext
21370 if { (ac_try="$ac_link"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_link") 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21380 { (case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_try") 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21391 echo "$as_me: program exited with status $ac_status" >&5
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ( exit $ac_status )
21396 ac_cv_header_stdc=no
21398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21406 if test $ac_cv_header_stdc = yes; then
21408 cat >>confdefs.h <<\_ACEOF
21409 #define STDC_HEADERS 1
21415 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21416 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21417 if test "${knfsd_cv_glibc2+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21427 #include <features.h>
21428 #if !defined(__GLIBC__)
21433 if { (ac_try="$ac_cpp conftest.$ac_ext"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } >/dev/null; then
21446 if test -s conftest.err; then
21447 ac_cpp_err=$ac_c_preproc_warn_flag
21448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21455 if test -z "$ac_cpp_err"; then
21456 knfsd_cv_glibc2=yes
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21464 rm -f conftest.err conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21468 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21469 if test $knfsd_cv_glibc2 = yes; then
21470 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21471 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21475 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21476 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21477 if test "${knfsd_cv_bsd_signals+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 if test "$cross_compiling" = yes; then
21481 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21482 See \`config.log' for more details." >&5
21483 echo "$as_me: error: cannot run test program while cross compiling
21484 See \`config.log' for more details." >&2;}
21485 { (exit 1); exit 1; }; }
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21494 #include <signal.h>
21495 #include <unistd.h>
21496 #include <sys/wait.h>
21498 static int counter = 0;
21499 static RETSIGTYPE handler(int num) { counter++; }
21504 if ((s = fork()) < 0) return 1;
21506 if (wait(&s) < 0) return 1;
21507 return WIFSIGNALED(s)? 1 : 0;
21510 signal(SIGHUP, handler);
21511 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21512 return (counter == 2)? 0 : 1;
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_link") 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 knfsd_cv_bsd_signals=yes
21538 echo "$as_me: program exited with status $ac_status" >&5
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ( exit $ac_status )
21543 knfsd_cv_bsd_signals=no
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21551 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21552 test $knfsd_cv_bsd_signals = yes &&
21553 cat >>confdefs.h <<\_ACEOF
21554 #define HAVE_BSD_SIGNALS 1
21559 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21560 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21561 if test "${ac_cv_lib_socket_main+set}" = set; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 ac_check_lib_save_LIBS=$LIBS
21565 LIBS="-lsocket $LIBS"
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (ac_try="$ac_link"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_link") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest$ac_exeext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_cv_lib_socket_main=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_cv_lib_socket_main=no
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21628 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21630 if test $ac_cv_lib_socket_main = yes; then
21634 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21635 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21636 if test "${ac_cv_lib_nsl_main+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 ac_check_lib_save_LIBS=$LIBS
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_link") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21672 { (case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_try") 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest$ac_exeext'
21682 { (case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_try") 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_lib_nsl_main=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_cv_lib_nsl_main=no
21699 rm -f core conftest.err conftest.$ac_objext \
21700 conftest$ac_exeext conftest.$ac_ext
21701 LIBS=$ac_check_lib_save_LIBS
21703 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21704 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21705 if test $ac_cv_lib_nsl_main = yes; then
21709 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21710 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21711 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 ac_check_lib_save_LIBS=$LIBS
21715 LIBS="-lcrypt $LIBS"
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21723 /* Override any GCC internal prototype to avoid an error.
21724 Use char because int might match the return type of a GCC
21725 builtin and then its argument prototype would still apply. */
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_link") 2>conftest.er1
21747 grep -v '^ *+' conftest.er1 >conftest.err
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
21752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21753 { (case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_try") 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest$ac_exeext'
21763 { (case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_try") 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_lib_crypt_crypt=yes
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ac_cv_lib_crypt_crypt=no
21780 rm -f core conftest.err conftest.$ac_objext \
21781 conftest$ac_exeext conftest.$ac_ext
21782 LIBS=$ac_check_lib_save_LIBS
21784 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21785 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21786 if test $ac_cv_lib_crypt_crypt = yes; then
21790 if test "$enable_nfsv4" = yes; then
21791 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21792 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-levent $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21811 char event_dispatch ();
21815 return event_dispatch ();
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_link") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } &&
21834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21835 { (case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_try") 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest$ac_exeext'
21845 { (case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_try") 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21854 ac_cv_lib_event_event_dispatch=yes
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ac_cv_lib_event_event_dispatch=no
21862 rm -f core conftest.err conftest.$ac_objext \
21863 conftest$ac_exeext conftest.$ac_ext
21864 LIBS=$ac_check_lib_save_LIBS
21866 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21867 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21868 if test $ac_cv_lib_event_event_dispatch = yes; then
21871 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21872 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21873 { (exit 1); exit 1; }; }
21876 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21877 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21878 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 ac_check_lib_save_LIBS=$LIBS
21882 LIBS="-lnfsidmap $LIBS"
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21890 /* Override any GCC internal prototype to avoid an error.
21891 Use char because int might match the return type of a GCC
21892 builtin and then its argument prototype would still apply. */
21896 char nfs4_init_name_mapping ();
21900 return nfs4_init_name_mapping ();
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_link") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21920 { (case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_try") 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; } &&
21929 { ac_try='test -s conftest$ac_exeext'
21930 { (case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935 (eval "$ac_try") 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21947 rm -f core conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21951 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21952 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21953 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21956 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21957 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21958 { (exit 1); exit 1; }; }
21962 for ac_header in event.h
21964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 ac_res=`eval echo '${'$as_ac_Header'}'`
21972 { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21975 # Is the header compilable?
21976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 #include <$ac_header>
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22002 { (case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_try") 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest.$ac_objext'
22012 { (case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017 (eval "$ac_try") 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_header_compiler=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_compiler=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 #include <$ac_header>
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } >/dev/null; then
22057 if test -s conftest.err; then
22058 ac_cpp_err=$ac_c_preproc_warn_flag
22059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22066 if test -z "$ac_cpp_err"; then
22067 ac_header_preproc=yes
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 ac_header_preproc=no
22075 rm -f conftest.err conftest.$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22077 echo "${ECHO_T}$ac_header_preproc" >&6; }
22079 # So? What about this header?
22080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22086 ac_header_preproc=yes
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22102 ## ------------------------------- ##
22103 ## Report this to nfs@lists.sf.net ##
22104 ## ------------------------------- ##
22106 ) | sed "s/^/$as_me: WARNING: /" >&2
22109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
22114 eval "$as_ac_Header=\$ac_header_preproc"
22116 ac_res=`eval echo '${'$as_ac_Header'}'`
22117 { echo "$as_me:$LINENO: result: $ac_res" >&5
22118 echo "${ECHO_T}$ac_res" >&6; }
22121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22122 cat >>confdefs.h <<_ACEOF
22123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22127 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22128 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22129 { (exit 1); exit 1; }; }
22135 for ac_header in nfsidmap.h
22137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 ac_res=`eval echo '${'$as_ac_Header'}'`
22145 { echo "$as_me:$LINENO: result: $ac_res" >&5
22146 echo "${ECHO_T}$ac_res" >&6; }
22148 # Is the header compilable?
22149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 $ac_includes_default
22158 #include <$ac_header>
22160 rm -f conftest.$ac_objext
22161 if { (ac_try="$ac_compile"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_compile") 2>conftest.er1
22169 grep -v '^ *+' conftest.er1 >conftest.err
22171 cat conftest.err >&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } &&
22174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22175 { (case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_try") 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest.$ac_objext'
22185 { (case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_try") 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
22194 ac_header_compiler=yes
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 ac_header_compiler=no
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22204 echo "${ECHO_T}$ac_header_compiler" >&6; }
22206 # Is the header present?
22207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22209 cat >conftest.$ac_ext <<_ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22215 #include <$ac_header>
22217 if { (ac_try="$ac_cpp conftest.$ac_ext"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } >/dev/null; then
22230 if test -s conftest.err; then
22231 ac_cpp_err=$ac_c_preproc_warn_flag
22232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22239 if test -z "$ac_cpp_err"; then
22240 ac_header_preproc=yes
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_header_preproc=no
22248 rm -f conftest.err conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22250 echo "${ECHO_T}$ac_header_preproc" >&6; }
22252 # So? What about this header?
22253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22259 ac_header_preproc=yes
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22275 ## ------------------------------- ##
22276 ## Report this to nfs@lists.sf.net ##
22277 ## ------------------------------- ##
22279 ) | sed "s/^/$as_me: WARNING: /" >&2
22282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 eval "$as_ac_Header=\$ac_header_preproc"
22289 ac_res=`eval echo '${'$as_ac_Header'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22300 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22301 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22302 { (exit 1); exit 1; }; }
22307 if test "$enable_gss" = yes; then
22310 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22311 if test -n "$ac_tool_prefix"; then
22312 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22313 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 case $PKG_CONFIG in
22321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22328 test -z "$as_dir" && as_dir=.
22329 for ac_exec_ext in '' $ac_executable_extensions; do
22330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22343 if test -n "$PKG_CONFIG"; then
22344 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22345 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22347 { echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6; }
22353 if test -z "$ac_cv_path_PKG_CONFIG"; then
22354 ac_pt_PKG_CONFIG=$PKG_CONFIG
22355 # Extract the first word of "pkg-config", so it can be a program name with args.
22356 set dummy pkg-config; ac_word=$2
22357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22359 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 case $ac_pt_PKG_CONFIG in
22364 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368 for as_dir in $PATH
22371 test -z "$as_dir" && as_dir=.
22372 for ac_exec_ext in '' $ac_executable_extensions; do
22373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22374 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22385 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22386 if test -n "$ac_pt_PKG_CONFIG"; then
22387 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22388 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22390 { echo "$as_me:$LINENO: result: no" >&5
22391 echo "${ECHO_T}no" >&6; }
22394 if test "x$ac_pt_PKG_CONFIG" = x; then
22397 case $cross_compiling:$ac_tool_warned in
22399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22400 whose name does not start with the host triplet. If you think this
22401 configuration is useful to you, please write to autoconf@gnu.org." >&5
22402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22403 whose name does not start with the host triplet. If you think this
22404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22405 ac_tool_warned=yes ;;
22407 PKG_CONFIG=$ac_pt_PKG_CONFIG
22410 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22414 if test -n "$PKG_CONFIG"; then
22415 _pkg_min_version=0.9.0
22416 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22417 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22418 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22419 { echo "$as_me:$LINENO: result: yes" >&5
22420 echo "${ECHO_T}yes" >&6; }
22422 { echo "$as_me:$LINENO: result: no" >&5
22423 echo "${ECHO_T}no" >&6; }
22430 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22431 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22433 if test -n "$PKG_CONFIG"; then
22434 if test -n "$RPCSECGSS_CFLAGS"; then
22435 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22437 if test -n "$PKG_CONFIG" && \
22438 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22439 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; then
22443 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22451 if test -n "$PKG_CONFIG"; then
22452 if test -n "$RPCSECGSS_LIBS"; then
22453 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22455 if test -n "$PKG_CONFIG" && \
22456 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22457 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; then
22461 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22472 if test $pkg_failed = yes; then
22474 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22475 _pkg_short_errors_supported=yes
22477 _pkg_short_errors_supported=no
22479 if test $_pkg_short_errors_supported = yes; then
22480 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22482 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22484 # Put the nasty error message in config.log where it belongs
22485 echo "$RPCSECGSS_PKG_ERRORS" >&5
22487 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22488 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22489 { (exit 1); exit 1; }; }
22490 { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22491 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22492 { (exit 1); exit 1; }; }
22493 { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22494 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22495 { (exit 1); exit 1; }; }
22498 elif test $pkg_failed = untried; then
22499 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22500 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22501 { (exit 1); exit 1; }; }
22502 { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22503 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22504 { (exit 1); exit 1; }; }
22505 { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22506 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22507 { (exit 1); exit 1; }; }
22511 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22512 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22513 { echo "$as_me:$LINENO: result: yes" >&5
22514 echo "${ECHO_T}yes" >&6; }
22519 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22520 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22522 if test -n "$PKG_CONFIG"; then
22523 if test -n "$GSSAPI_CFLAGS"; then
22524 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22526 if test -n "$PKG_CONFIG" && \
22527 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22528 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; then
22532 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22540 if test -n "$PKG_CONFIG"; then
22541 if test -n "$GSSAPI_LIBS"; then
22542 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22544 if test -n "$PKG_CONFIG" && \
22545 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22546 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; then
22550 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22561 if test $pkg_failed = yes; then
22563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22564 _pkg_short_errors_supported=yes
22566 _pkg_short_errors_supported=no
22568 if test $_pkg_short_errors_supported = yes; then
22569 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22571 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22573 # Put the nasty error message in config.log where it belongs
22574 echo "$GSSAPI_PKG_ERRORS" >&5
22576 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22580 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22581 installed software in a non-standard prefix.
22583 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22584 and GSSAPI_LIBS to avoid the need to call pkg-config.
22585 See the pkg-config man page for more details.
22587 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22591 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22592 installed software in a non-standard prefix.
22594 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22595 and GSSAPI_LIBS to avoid the need to call pkg-config.
22596 See the pkg-config man page for more details.
22598 { (exit 1); exit 1; }; }
22599 elif test $pkg_failed = untried; then
22600 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22601 is in your PATH or set the PKG_CONFIG environment variable to the full
22602 path to pkg-config.
22604 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22605 and GSSAPI_LIBS to avoid the need to call pkg-config.
22606 See the pkg-config man page for more details.
22608 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22609 See \`config.log' for more details." >&5
22610 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22611 is in your PATH or set the PKG_CONFIG environment variable to the full
22612 path to pkg-config.
22614 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22615 and GSSAPI_LIBS to avoid the need to call pkg-config.
22616 See the pkg-config man page for more details.
22618 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22619 See \`config.log' for more details." >&2;}
22620 { (exit 1); exit 1; }; }
22622 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22623 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22624 { echo "$as_me:$LINENO: result: yes" >&5
22625 echo "${ECHO_T}yes" >&6; }
22631 if test "$knfsd_cv_glibc2" = no; then
22632 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22633 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 ac_check_lib_save_LIBS=$LIBS
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } &&
22675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22676 { (case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_try") 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; } &&
22685 { ac_try='test -s conftest$ac_exeext'
22686 { (case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_try") 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ac_cv_lib_bsd_daemon=yes
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_cv_lib_bsd_daemon=no
22703 rm -f core conftest.err conftest.$ac_objext \
22704 conftest$ac_exeext conftest.$ac_ext
22705 LIBS=$ac_check_lib_save_LIBS
22707 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22708 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22709 if test $ac_cv_lib_bsd_daemon = yes; then
22719 if test "$enable_gss" = yes; then
22721 for ac_header in nfsidmap.h
22723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22730 ac_res=`eval echo '${'$as_ac_Header'}'`
22731 { echo "$as_me:$LINENO: result: $ac_res" >&5
22732 echo "${ECHO_T}$ac_res" >&6; }
22734 # Is the header compilable?
22735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 $ac_includes_default
22744 #include <$ac_header>
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
22760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22761 { (case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_try") 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; } &&
22770 { ac_try='test -s conftest.$ac_objext'
22771 { (case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_try") 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; }; then
22780 ac_header_compiler=yes
22782 echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22785 ac_header_compiler=no
22788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22790 echo "${ECHO_T}$ac_header_compiler" >&6; }
22792 # Is the header present?
22793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 #include <$ac_header>
22803 if { (ac_try="$ac_cpp conftest.$ac_ext"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } >/dev/null; then
22816 if test -s conftest.err; then
22817 ac_cpp_err=$ac_c_preproc_warn_flag
22818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22825 if test -z "$ac_cpp_err"; then
22826 ac_header_preproc=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_header_preproc=no
22834 rm -f conftest.err conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22836 echo "${ECHO_T}$ac_header_preproc" >&6; }
22838 # So? What about this header?
22839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22845 ac_header_preproc=yes
22848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22861 ## ------------------------------- ##
22862 ## Report this to nfs@lists.sf.net ##
22863 ## ------------------------------- ##
22865 ) | sed "s/^/$as_me: WARNING: /" >&2
22868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 eval "$as_ac_Header=\$ac_header_preproc"
22875 ac_res=`eval echo '${'$as_ac_Header'}'`
22876 { echo "$as_me:$LINENO: result: $ac_res" >&5
22877 echo "${ECHO_T}$ac_res" >&6; }
22880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22881 cat >>confdefs.h <<_ACEOF
22882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22886 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22887 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22888 { (exit 1); exit 1; }; }
22894 for ac_header in spkm3.h
22896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 ac_res=`eval echo '${'$as_ac_Header'}'`
22904 { echo "$as_me:$LINENO: result: $ac_res" >&5
22905 echo "${ECHO_T}$ac_res" >&6; }
22907 # Is the header compilable?
22908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22916 $ac_includes_default
22917 #include <$ac_header>
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_compile") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } &&
22933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22934 { (case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_try") 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest.$ac_objext'
22944 { (case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_try") 2>&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 ac_header_compiler=yes
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ac_header_compiler=no
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22963 echo "${ECHO_T}$ac_header_compiler" >&6; }
22965 # Is the header present?
22966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22974 #include <$ac_header>
22976 if { (ac_try="$ac_cpp conftest.$ac_ext"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22984 grep -v '^ *+' conftest.er1 >conftest.err
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } >/dev/null; then
22989 if test -s conftest.err; then
22990 ac_cpp_err=$ac_c_preproc_warn_flag
22991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22998 if test -z "$ac_cpp_err"; then
22999 ac_header_preproc=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_header_preproc=no
23007 rm -f conftest.err conftest.$ac_ext
23008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23009 echo "${ECHO_T}$ac_header_preproc" >&6; }
23011 # So? What about this header?
23012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23018 ac_header_preproc=yes
23021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23034 ## ------------------------------- ##
23035 ## Report this to nfs@lists.sf.net ##
23036 ## ------------------------------- ##
23038 ) | sed "s/^/$as_me: WARNING: /" >&2
23041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 eval "$as_ac_Header=\$ac_header_preproc"
23048 ac_res=`eval echo '${'$as_ac_Header'}'`
23049 { echo "$as_me:$LINENO: result: $ac_res" >&5
23050 echo "${ECHO_T}$ac_res" >&6; }
23053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23054 cat >>confdefs.h <<_ACEOF
23055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23059 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23060 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23065 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23066 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23067 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 ac_check_lib_save_LIBS=$LIBS
23071 LIBS="-lnfsidmap $LIBS"
23072 cat >conftest.$ac_ext <<_ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h. */
23079 /* Override any GCC internal prototype to avoid an error.
23080 Use char because int might match the return type of a GCC
23081 builtin and then its argument prototype would still apply. */
23085 char nfs4_set_debug ();
23089 return nfs4_set_debug ();
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (ac_try="$ac_link"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_link") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
23108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23109 { (case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_try") 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest$ac_exeext'
23119 { (case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_try") 2>&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; }; then
23128 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23130 echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23133 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23136 rm -f core conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23140 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23141 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23142 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23144 cat >>confdefs.h <<\_ACEOF
23145 #define HAVE_NFS4_SET_DEBUG 1
23152 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23153 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23155 # Check whether --with-krb5 was given.
23156 if test "${with_krb5+set}" = set; then
23157 withval=$with_krb5; case "$withval" in
23162 krb5_with="$withval"
23169 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23170 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23172 if test -f $dir/bin/krb5-config; then
23173 K5CONFIG=$dir/bin/krb5-config
23174 elif test -f "/usr/kerberos/bin/krb5-config"; then
23175 K5CONFIG="/usr/kerberos/bin/krb5-config"
23176 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23177 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23179 if test "$K5CONFIG" != ""; then
23180 KRBCFLAGS=`$K5CONFIG --cflags`
23181 KRBLIBS=`$K5CONFIG --libs gssapi`
23182 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23184 cat >>confdefs.h <<_ACEOF
23185 #define KRB5_VERSION $K5VERS
23188 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23189 \( -f $dir/lib/libgssapi_krb5.a -o \
23190 -f $dir/lib/libgssapi_krb5.so \) ; then
23192 cat >>confdefs.h <<\_ACEOF
23193 #define HAVE_KRB5 1
23197 if test $K5VERS -le 131; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define USE_GSS_KRB5_CCACHE_NAME 1
23204 gssapi_lib=gssapi_krb5
23206 elif test \( -f $dir/include/heim_err.h -o\
23207 -f $dir/include/heimdal/heim_err.h \) -a \
23208 -f $dir/lib/libroken.a; then
23210 cat >>confdefs.h <<\_ACEOF
23211 #define HAVE_HEIMDAL 1
23220 if test "x$KRBDIR" = "x"; then
23221 if test "x$krb5_with" = "x"; then
23222 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23223 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23224 { (exit 1); exit 1; }; }
23226 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23227 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23228 { (exit 1); exit 1; }; }
23231 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23232 echo "${ECHO_T}$KRBDIR" >&6; }
23234 echo "The current KRBDIR is $KRBDIR"
23235 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23236 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23238 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23241 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23244 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23245 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23246 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 /* Override any GCC internal prototype to avoid an error.
23260 Use char because int might match the return type of a GCC
23261 builtin and then its argument prototype would still apply. */
23265 char gss_krb5_export_lucid_sec_context ();
23269 return gss_krb5_export_lucid_sec_context ();
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (ac_try="$ac_link"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_link") 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } &&
23288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23289 { (case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_try") 2>&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest$ac_exeext'
23299 { (case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304 (eval "$ac_try") 2>&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; }; then
23308 eval "$as_ac_Lib=yes"
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 eval "$as_ac_Lib=no"
23316 rm -f core conftest.err conftest.$ac_objext \
23317 conftest$ac_exeext conftest.$ac_ext
23318 LIBS=$ac_check_lib_save_LIBS
23320 ac_res=`eval echo '${'$as_ac_Lib'}'`
23321 { echo "$as_me:$LINENO: result: $ac_res" >&5
23322 echo "${ECHO_T}$ac_res" >&6; }
23323 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23331 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23332 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23333 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23334 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23337 ac_check_lib_save_LIBS=$LIBS
23338 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 /* Override any GCC internal prototype to avoid an error.
23347 Use char because int might match the return type of a GCC
23348 builtin and then its argument prototype would still apply. */
23352 char gss_krb5_set_allowable_enctypes ();
23356 return gss_krb5_set_allowable_enctypes ();
23361 rm -f conftest.$ac_objext conftest$ac_exeext
23362 if { (ac_try="$ac_link"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_link") 2>conftest.er1
23370 grep -v '^ *+' conftest.er1 >conftest.err
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; } &&
23385 { ac_try='test -s conftest$ac_exeext'
23386 { (case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391 (eval "$ac_try") 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 eval "$as_ac_Lib=yes"
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 eval "$as_ac_Lib=no"
23403 rm -f core conftest.err conftest.$ac_objext \
23404 conftest$ac_exeext conftest.$ac_ext
23405 LIBS=$ac_check_lib_save_LIBS
23407 ac_res=`eval echo '${'$as_ac_Lib'}'`
23408 { echo "$as_me:$LINENO: result: $ac_res" >&5
23409 echo "${ECHO_T}$ac_res" >&6; }
23410 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23418 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23419 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23420 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23421 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23426 cat >conftest.$ac_ext <<_ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23433 /* Override any GCC internal prototype to avoid an error.
23434 Use char because int might match the return type of a GCC
23435 builtin and then its argument prototype would still apply. */
23439 char gss_krb5_ccache_name ();
23443 return gss_krb5_ccache_name ();
23448 rm -f conftest.$ac_objext conftest$ac_exeext
23449 if { (ac_try="$ac_link"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455 (eval "$ac_link") 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463 { (case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_try") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest$ac_exeext'
23473 { (case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 eval "$as_ac_Lib=yes"
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 eval "$as_ac_Lib=no"
23490 rm -f core conftest.err conftest.$ac_objext \
23491 conftest$ac_exeext conftest.$ac_ext
23492 LIBS=$ac_check_lib_save_LIBS
23494 ac_res=`eval echo '${'$as_ac_Lib'}'`
23495 { echo "$as_me:$LINENO: result: $ac_res" >&5
23496 echo "${ECHO_T}$ac_res" >&6; }
23497 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23499 cat >>confdefs.h <<\_ACEOF
23500 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23506 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23507 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23508 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23519 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23520 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23521 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23522 echo $ECHO_N "(cached) $ECHO_C" >&6
23524 ac_check_lib_save_LIBS=$LIBS
23525 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23526 cat >conftest.$ac_ext <<_ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h. */
23533 /* Override any GCC internal prototype to avoid an error.
23534 Use char because int might match the return type of a GCC
23535 builtin and then its argument prototype would still apply. */
23539 char authgss_create_default ();
23543 return authgss_create_default ();
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (ac_try="$ac_link"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_link") 2>conftest.er1
23557 grep -v '^ *+' conftest.er1 >conftest.err
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
23562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_try") 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; } &&
23572 { ac_try='test -s conftest$ac_exeext'
23573 { (case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578 (eval "$ac_try") 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_lib_rpcsecgss_authgss_create_default=no
23590 rm -f core conftest.err conftest.$ac_objext \
23591 conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23594 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23595 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23596 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23599 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23600 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23601 { (exit 1); exit 1; }; }
23604 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23605 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23606 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 ac_check_lib_save_LIBS=$LIBS
23610 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23618 /* Override any GCC internal prototype to avoid an error.
23619 Use char because int might match the return type of a GCC
23620 builtin and then its argument prototype would still apply. */
23624 char authgss_set_debug_level ();
23628 return authgss_set_debug_level ();
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_link") 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23648 { (case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_try") 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_try") 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23675 rm -f core conftest.err conftest.$ac_objext \
23676 conftest$ac_exeext conftest.$ac_ext
23677 LIBS=$ac_check_lib_save_LIBS
23679 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23680 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23681 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23715 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23716 malloc.h memory.h netdb.h netinet/in.h paths.h \
23717 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23718 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23719 syslog.h unistd.h com_err.h et/com_err.h \
23722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23727 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 ac_res=`eval echo '${'$as_ac_Header'}'`
23730 { echo "$as_me:$LINENO: result: $ac_res" >&5
23731 echo "${ECHO_T}$ac_res" >&6; }
23733 # Is the header compilable?
23734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23736 cat >conftest.$ac_ext <<_ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 $ac_includes_default
23743 #include <$ac_header>
23745 rm -f conftest.$ac_objext
23746 if { (ac_try="$ac_compile"
23747 case "(($ac_try" in
23748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23749 *) ac_try_echo=$ac_try;;
23751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752 (eval "$ac_compile") 2>conftest.er1
23754 grep -v '^ *+' conftest.er1 >conftest.err
23756 cat conftest.err >&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); } &&
23759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23760 { (case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_try") 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
23770 { (case "(($ac_try" in
23771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772 *) ac_try_echo=$ac_try;;
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775 (eval "$ac_try") 2>&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 ac_header_compiler=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_header_compiler=no
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23789 echo "${ECHO_T}$ac_header_compiler" >&6; }
23791 # Is the header present?
23792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 #include <$ac_header>
23802 if { (ac_try="$ac_cpp conftest.$ac_ext"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23810 grep -v '^ *+' conftest.er1 >conftest.err
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } >/dev/null; then
23815 if test -s conftest.err; then
23816 ac_cpp_err=$ac_c_preproc_warn_flag
23817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23824 if test -z "$ac_cpp_err"; then
23825 ac_header_preproc=yes
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23830 ac_header_preproc=no
23833 rm -f conftest.err conftest.$ac_ext
23834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23835 echo "${ECHO_T}$ac_header_preproc" >&6; }
23837 # So? What about this header?
23838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23844 ac_header_preproc=yes
23847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23860 ## ------------------------------- ##
23861 ## Report this to nfs@lists.sf.net ##
23862 ## ------------------------------- ##
23864 ) | sed "s/^/$as_me: WARNING: /" >&2
23867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23872 eval "$as_ac_Header=\$ac_header_preproc"
23874 ac_res=`eval echo '${'$as_ac_Header'}'`
23875 { echo "$as_me:$LINENO: result: $ac_res" >&5
23876 echo "${ECHO_T}$ac_res" >&6; }
23879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23880 cat >>confdefs.h <<_ACEOF
23881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23889 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23891 if test "${ac_cv_c_const+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23904 /* FIXME: Include the comments suggested by Paul. */
23905 #ifndef __cplusplus
23906 /* Ultrix mips cc rejects this. */
23907 typedef int charset[2];
23909 /* SunOS 4.1.1 cc rejects this. */
23910 char const *const *ccp;
23912 /* NEC SVR4.0.2 mips cc rejects this. */
23913 struct point {int x, y;};
23914 static struct point const zero = {0,0};
23915 /* AIX XL C 1.02.0.0 rejects this.
23916 It does not let you subtract one const X* pointer from another in
23917 an arm of an if-expression whose if-part is not a constant
23919 const char *g = "string";
23920 ccp = &g + (g ? g-g : 0);
23921 /* HPUX 7.0 cc rejects these. */
23924 ccp = (char const *const *) p;
23925 { /* SCO 3.2v4 cc rejects this. */
23927 char const *s = 0 ? (char *) 0 : (char const *) 0;
23932 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23933 int x[] = {25, 17};
23934 const int *foo = &x[0];
23937 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23938 typedef const int *iptr;
23942 { /* AIX XL C 1.02.0.0 rejects this saying
23943 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23944 struct s { int j; const int *ap[3]; };
23945 struct s *b; b->j = 5;
23947 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23948 const int foo = 10;
23949 if (!foo) return 0;
23951 return !x[0] && !zero.x;
23958 rm -f conftest.$ac_objext
23959 if { (ac_try="$ac_compile"
23960 case "(($ac_try" in
23961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962 *) ac_try_echo=$ac_try;;
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965 (eval "$ac_compile") 2>conftest.er1
23967 grep -v '^ *+' conftest.er1 >conftest.err
23969 cat conftest.err >&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } &&
23972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23973 { (case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_try") 2>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; } &&
23982 { ac_try='test -s conftest.$ac_objext'
23983 { (case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988 (eval "$ac_try") 2>&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; }; then
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24003 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24004 if test $ac_cv_c_const = no; then
24006 cat >>confdefs.h <<\_ACEOF
24012 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24013 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24014 if test "${ac_cv_type_uid_t+set}" = set; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 #include <sys/types.h>
24026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24027 $EGREP "uid_t" >/dev/null 2>&1; then
24028 ac_cv_type_uid_t=yes
24030 ac_cv_type_uid_t=no
24035 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24036 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24037 if test $ac_cv_type_uid_t = no; then
24039 cat >>confdefs.h <<\_ACEOF
24044 cat >>confdefs.h <<\_ACEOF
24050 { echo "$as_me:$LINENO: checking for inline" >&5
24051 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24052 if test "${ac_cv_c_inline+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24056 for ac_kw in inline __inline__ __inline; do
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 #ifndef __cplusplus
24065 static $ac_kw foo_t static_foo () {return 0; }
24066 $ac_kw foo_t foo () {return 0; }
24070 rm -f conftest.$ac_objext
24071 if { (ac_try="$ac_compile"
24072 case "(($ac_try" in
24073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074 *) ac_try_echo=$ac_try;;
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077 (eval "$ac_compile") 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24085 { (case "(($ac_try" in
24086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087 *) ac_try_echo=$ac_try;;
24089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090 (eval "$ac_try") 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest.$ac_objext'
24095 { (case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_try") 2>&5
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }; }; then
24104 ac_cv_c_inline=$ac_kw
24106 echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 test "$ac_cv_c_inline" != no && break
24117 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24118 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24121 case $ac_cv_c_inline in
24124 case $ac_cv_c_inline in
24126 *) ac_val=$ac_cv_c_inline;;
24128 cat >>confdefs.h <<_ACEOF
24129 #ifndef __cplusplus
24130 #define inline $ac_val
24136 { echo "$as_me:$LINENO: checking for off_t" >&5
24137 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24138 if test "${ac_cv_type_off_t+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 typedef off_t ac__type_new_;
24152 if ((ac__type_new_ *) 0)
24154 if (sizeof (ac__type_new_))
24160 rm -f conftest.$ac_objext
24161 if { (ac_try="$ac_compile"
24162 case "(($ac_try" in
24163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24164 *) ac_try_echo=$ac_try;;
24166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167 (eval "$ac_compile") 2>conftest.er1
24169 grep -v '^ *+' conftest.er1 >conftest.err
24171 cat conftest.err >&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } &&
24174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24175 { (case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_try") 2>&5
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; } &&
24184 { ac_try='test -s conftest.$ac_objext'
24185 { (case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190 (eval "$ac_try") 2>&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; }; then
24194 ac_cv_type_off_t=yes
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24199 ac_cv_type_off_t=no
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24205 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24206 if test $ac_cv_type_off_t = yes; then
24210 cat >>confdefs.h <<_ACEOF
24211 #define off_t long int
24216 { echo "$as_me:$LINENO: checking for pid_t" >&5
24217 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24218 if test "${ac_cv_type_pid_t+set}" = set; then
24219 echo $ECHO_N "(cached) $ECHO_C" >&6
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 typedef pid_t ac__type_new_;
24232 if ((ac__type_new_ *) 0)
24234 if (sizeof (ac__type_new_))
24240 rm -f conftest.$ac_objext
24241 if { (ac_try="$ac_compile"
24242 case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_compile") 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
24254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24255 { (case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_try") 2>&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; } &&
24264 { ac_try='test -s conftest.$ac_objext'
24265 { (case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_try") 2>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; }; then
24274 ac_cv_type_pid_t=yes
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_cv_type_pid_t=no
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24286 if test $ac_cv_type_pid_t = yes; then
24290 cat >>confdefs.h <<_ACEOF
24296 { echo "$as_me:$LINENO: checking for size_t" >&5
24297 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24298 if test "${ac_cv_type_size_t+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 cat >conftest.$ac_ext <<_ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 $ac_includes_default
24308 typedef size_t ac__type_new_;
24312 if ((ac__type_new_ *) 0)
24314 if (sizeof (ac__type_new_))
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_compile") 2>conftest.er1
24329 grep -v '^ *+' conftest.er1 >conftest.err
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } &&
24334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24335 { (case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340 (eval "$ac_try") 2>&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; } &&
24344 { ac_try='test -s conftest.$ac_objext'
24345 { (case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_try") 2>&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); }; }; then
24354 ac_cv_type_size_t=yes
24356 echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24359 ac_cv_type_size_t=no
24362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24365 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24366 if test $ac_cv_type_size_t = yes; then
24370 cat >>confdefs.h <<_ACEOF
24371 #define size_t unsigned int
24376 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24377 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24378 if test "${ac_cv_header_time+set}" = set; then
24379 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 cat >conftest.$ac_ext <<_ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h. */
24387 #include <sys/types.h>
24388 #include <sys/time.h>
24394 if ((struct tm *) 0)
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24415 { (case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_try") 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; } &&
24424 { ac_try='test -s conftest.$ac_objext'
24425 { (case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_try") 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; }; then
24434 ac_cv_header_time=yes
24436 echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24439 ac_cv_header_time=no
24442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24445 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24446 if test $ac_cv_header_time = yes; then
24448 cat >>confdefs.h <<\_ACEOF
24449 #define TIME_WITH_SYS_TIME 1
24454 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24455 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24456 if test "${ac_cv_struct_tm+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 cat >conftest.$ac_ext <<_ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24465 #include <sys/types.h>
24471 struct tm *tp; tp->tm_sec;
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_compile") 2>conftest.er1
24485 grep -v '^ *+' conftest.er1 >conftest.err
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } &&
24490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest.$ac_objext'
24501 { (case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_try") 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 ac_cv_struct_tm=time.h
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ac_cv_struct_tm=sys/time.h
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24520 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24521 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24522 if test $ac_cv_struct_tm = sys/time.h; then
24524 cat >>confdefs.h <<\_ACEOF
24525 #define TM_IN_SYS_TIME 1
24531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24532 # for constant arguments. Useless!
24533 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24534 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24535 if test "${ac_cv_working_alloca_h+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 cat >conftest.$ac_ext <<_ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24544 #include <alloca.h>
24548 char *p = (char *) alloca (2 * sizeof (int));
24554 rm -f conftest.$ac_objext conftest$ac_exeext
24555 if { (ac_try="$ac_link"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_link") 2>conftest.er1
24563 grep -v '^ *+' conftest.er1 >conftest.err
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
24568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569 { (case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_try") 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
24579 { (case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_try") 2>&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; }; then
24588 ac_cv_working_alloca_h=yes
24590 echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24593 ac_cv_working_alloca_h=no
24596 rm -f core conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
24599 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24600 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24601 if test $ac_cv_working_alloca_h = yes; then
24603 cat >>confdefs.h <<\_ACEOF
24604 #define HAVE_ALLOCA_H 1
24609 { echo "$as_me:$LINENO: checking for alloca" >&5
24610 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24611 if test "${ac_cv_func_alloca_works+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24621 # define alloca __builtin_alloca
24624 # include <malloc.h>
24625 # define alloca _alloca
24628 # include <alloca.h>
24633 # ifndef alloca /* predefined by HP cc +Olibcalls */
24644 char *p = (char *) alloca (1);
24650 rm -f conftest.$ac_objext conftest$ac_exeext
24651 if { (ac_try="$ac_link"
24652 case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_link") 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
24664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24665 { (case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_try") 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; } &&
24674 { ac_try='test -s conftest$ac_exeext'
24675 { (case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 ac_cv_func_alloca_works=yes
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24689 ac_cv_func_alloca_works=no
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24696 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24698 if test $ac_cv_func_alloca_works = yes; then
24700 cat >>confdefs.h <<\_ACEOF
24701 #define HAVE_ALLOCA 1
24705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24706 # that cause trouble. Some versions do not even contain alloca or
24707 # contain a buggy version. If you still want to use their alloca,
24708 # use ar to extract alloca.o from them instead of compiling alloca.c.
24710 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24712 cat >>confdefs.h <<\_ACEOF
24717 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24718 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24719 if test "${ac_cv_os_cray+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24728 #if defined CRAY && ! defined CRAY2
24735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24736 $EGREP "webecray" >/dev/null 2>&1; then
24744 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24745 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24746 if test $ac_cv_os_cray = yes; then
24747 for ac_func in _getb67 GETB67 getb67; do
24748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24762 #define $ac_func innocuous_$ac_func
24764 /* System header to define __stub macros and hopefully few prototypes,
24765 which can conflict with char $ac_func (); below.
24766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24767 <limits.h> exists even on freestanding compilers. */
24770 # include <limits.h>
24772 # include <assert.h>
24777 /* Override any GCC internal prototype to avoid an error.
24778 Use char because int might match the return type of a GCC
24779 builtin and then its argument prototype would still apply. */
24784 /* The GNU C library defines this for functions which it implements
24785 to always fail with ENOSYS. Some functions are actually named
24786 something starting with __ and the normal name is an alias. */
24787 #if defined __stub_$ac_func || defined __stub___$ac_func
24794 return $ac_func ();
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_link") 2>conftest.er1
24808 grep -v '^ *+' conftest.er1 >conftest.err
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } &&
24813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24814 { (case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_try") 2>&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; } &&
24823 { ac_try='test -s conftest$ac_exeext'
24824 { (case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_try") 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; }; then
24833 eval "$as_ac_var=yes"
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24838 eval "$as_ac_var=no"
24841 rm -f core conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
24844 ac_res=`eval echo '${'$as_ac_var'}'`
24845 { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24847 if test `eval echo '${'$as_ac_var'}'` = yes; then
24849 cat >>confdefs.h <<_ACEOF
24850 #define CRAY_STACKSEG_END $ac_func
24859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24861 if test "${ac_cv_c_stack_direction+set}" = set; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 if test "$cross_compiling" = yes; then
24865 ac_cv_c_stack_direction=0
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 $ac_includes_default
24875 find_stack_direction ()
24877 static char *addr = 0;
24882 return find_stack_direction ();
24885 return (&dummy > addr) ? 1 : -1;
24891 return find_stack_direction () < 0;
24894 rm -f conftest$ac_exeext
24895 if { (ac_try="$ac_link"
24896 case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_link") 2>&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24905 { (case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_try") 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ac_cv_c_stack_direction=1
24916 echo "$as_me: program exited with status $ac_status" >&5
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ( exit $ac_status )
24921 ac_cv_c_stack_direction=-1
24923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24931 cat >>confdefs.h <<_ACEOF
24932 #define STACK_DIRECTION $ac_cv_c_stack_direction
24943 ac_header_dirent=no
24944 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24945 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24946 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24947 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 cat >conftest.$ac_ext <<_ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h. */
24957 #include <sys/types.h>
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
24983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24984 { (case "(($ac_try" in
24985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986 *) ac_try_echo=$ac_try;;
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989 (eval "$ac_try") 2>&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; } &&
24993 { ac_try='test -s conftest.$ac_objext'
24994 { (case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_try") 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 eval "$as_ac_Header=yes"
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 eval "$as_ac_Header=no"
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 ac_res=`eval echo '${'$as_ac_Header'}'`
25014 { echo "$as_me:$LINENO: result: $ac_res" >&5
25015 echo "${ECHO_T}$ac_res" >&6; }
25016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25017 cat >>confdefs.h <<_ACEOF
25018 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25021 ac_header_dirent=$ac_hdr; break
25025 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25026 if test $ac_header_dirent = dirent.h; then
25027 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25029 if test "${ac_cv_search_opendir+set}" = set; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25032 ac_func_search_save_LIBS=$LIBS
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25040 /* Override any GCC internal prototype to avoid an error.
25041 Use char because int might match the return type of a GCC
25042 builtin and then its argument prototype would still apply. */
25055 for ac_lib in '' dir; do
25056 if test -z "$ac_lib"; then
25057 ac_res="none required"
25060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25062 rm -f conftest.$ac_objext conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069 (eval "$ac_link") 2>conftest.er1
25071 grep -v '^ *+' conftest.er1 >conftest.err
25073 cat conftest.err >&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } &&
25076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25077 { (case "(($ac_try" in
25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079 *) ac_try_echo=$ac_try;;
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082 (eval "$ac_try") 2>&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; } &&
25086 { ac_try='test -s conftest$ac_exeext'
25087 { (case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_try") 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; }; then
25096 ac_cv_search_opendir=$ac_res
25098 echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25104 rm -f core conftest.err conftest.$ac_objext \
25106 if test "${ac_cv_search_opendir+set}" = set; then
25110 if test "${ac_cv_search_opendir+set}" = set; then
25113 ac_cv_search_opendir=no
25115 rm conftest.$ac_ext
25116 LIBS=$ac_func_search_save_LIBS
25118 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25119 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25120 ac_res=$ac_cv_search_opendir
25121 if test "$ac_res" != no; then
25122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25127 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25129 if test "${ac_cv_search_opendir+set}" = set; then
25130 echo $ECHO_N "(cached) $ECHO_C" >&6
25132 ac_func_search_save_LIBS=$LIBS
25133 cat >conftest.$ac_ext <<_ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25140 /* Override any GCC internal prototype to avoid an error.
25141 Use char because int might match the return type of a GCC
25142 builtin and then its argument prototype would still apply. */
25155 for ac_lib in '' x; do
25156 if test -z "$ac_lib"; then
25157 ac_res="none required"
25160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25162 rm -f conftest.$ac_objext conftest$ac_exeext
25163 if { (ac_try="$ac_link"
25164 case "(($ac_try" in
25165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166 *) ac_try_echo=$ac_try;;
25168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25169 (eval "$ac_link") 2>conftest.er1
25171 grep -v '^ *+' conftest.er1 >conftest.err
25173 cat conftest.err >&5
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } &&
25176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25177 { (case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182 (eval "$ac_try") 2>&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; } &&
25186 { ac_try='test -s conftest$ac_exeext'
25187 { (case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192 (eval "$ac_try") 2>&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; }; then
25196 ac_cv_search_opendir=$ac_res
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25204 rm -f core conftest.err conftest.$ac_objext \
25206 if test "${ac_cv_search_opendir+set}" = set; then
25210 if test "${ac_cv_search_opendir+set}" = set; then
25213 ac_cv_search_opendir=no
25215 rm conftest.$ac_ext
25216 LIBS=$ac_func_search_save_LIBS
25218 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25219 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25220 ac_res=$ac_cv_search_opendir
25221 if test "$ac_res" != no; then
25222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25228 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25229 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25230 if test "${ac_cv_func_closedir_void+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 if test "$cross_compiling" = yes; then
25234 ac_cv_func_closedir_void=yes
25236 cat >conftest.$ac_ext <<_ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h. */
25242 $ac_includes_default
25243 #include <$ac_header_dirent>
25244 #ifndef __cplusplus
25251 return closedir (opendir (".")) != 0;
25256 rm -f conftest$ac_exeext
25257 if { (ac_try="$ac_link"
25258 case "(($ac_try" in
25259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260 *) ac_try_echo=$ac_try;;
25262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263 (eval "$ac_link") 2>&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25267 { (case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272 (eval "$ac_try") 2>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 ac_cv_func_closedir_void=no
25278 echo "$as_me: program exited with status $ac_status" >&5
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ( exit $ac_status )
25283 ac_cv_func_closedir_void=yes
25285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25290 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25291 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25292 if test $ac_cv_func_closedir_void = yes; then
25294 cat >>confdefs.h <<\_ACEOF
25295 #define CLOSEDIR_VOID 1
25300 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25301 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25302 if test "${ac_cv_lib_error_at_line+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25315 error_at_line (0, 0, "", 0, "");
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327 (eval "$ac_link") 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25335 { (case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340 (eval "$ac_try") 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350 (eval "$ac_try") 2>&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 ac_cv_lib_error_at_line=yes
25356 echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25359 ac_cv_lib_error_at_line=no
25362 rm -f core conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25366 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25367 if test $ac_cv_lib_error_at_line = no; then
25368 case " $LIBOBJS " in
25369 *" error.$ac_objext "* ) ;;
25370 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25377 for ac_header in vfork.h
25379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 ac_res=`eval echo '${'$as_ac_Header'}'`
25387 { echo "$as_me:$LINENO: result: $ac_res" >&5
25388 echo "${ECHO_T}$ac_res" >&6; }
25390 # Is the header compilable?
25391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25393 cat >conftest.$ac_ext <<_ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 $ac_includes_default
25400 #include <$ac_header>
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409 (eval "$ac_compile") 2>conftest.er1
25411 grep -v '^ *+' conftest.er1 >conftest.err
25413 cat conftest.err >&5
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } &&
25416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25417 { (case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422 (eval "$ac_try") 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; } &&
25426 { ac_try='test -s conftest.$ac_objext'
25427 { (case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25432 (eval "$ac_try") 2>&5
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; }; then
25436 ac_header_compiler=yes
25438 echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25441 ac_header_compiler=no
25444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25446 echo "${ECHO_T}$ac_header_compiler" >&6; }
25448 # Is the header present?
25449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 #include <$ac_header>
25459 if { (ac_try="$ac_cpp conftest.$ac_ext"
25460 case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } >/dev/null; then
25472 if test -s conftest.err; then
25473 ac_cpp_err=$ac_c_preproc_warn_flag
25474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25481 if test -z "$ac_cpp_err"; then
25482 ac_header_preproc=yes
25484 echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25487 ac_header_preproc=no
25490 rm -f conftest.err conftest.$ac_ext
25491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25492 echo "${ECHO_T}$ac_header_preproc" >&6; }
25494 # So? What about this header?
25495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25501 ac_header_preproc=yes
25504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25517 ## ------------------------------- ##
25518 ## Report this to nfs@lists.sf.net ##
25519 ## ------------------------------- ##
25521 ) | sed "s/^/$as_me: WARNING: /" >&2
25524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 eval "$as_ac_Header=\$ac_header_preproc"
25531 ac_res=`eval echo '${'$as_ac_Header'}'`
25532 { echo "$as_me:$LINENO: result: $ac_res" >&5
25533 echo "${ECHO_T}$ac_res" >&6; }
25536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25547 for ac_func in fork vfork
25549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25563 #define $ac_func innocuous_$ac_func
25565 /* System header to define __stub macros and hopefully few prototypes,
25566 which can conflict with char $ac_func (); below.
25567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25568 <limits.h> exists even on freestanding compilers. */
25571 # include <limits.h>
25573 # include <assert.h>
25578 /* Override any GCC internal prototype to avoid an error.
25579 Use char because int might match the return type of a GCC
25580 builtin and then its argument prototype would still apply. */
25585 /* The GNU C library defines this for functions which it implements
25586 to always fail with ENOSYS. Some functions are actually named
25587 something starting with __ and the normal name is an alias. */
25588 #if defined __stub_$ac_func || defined __stub___$ac_func
25595 return $ac_func ();
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_link") 2>conftest.er1
25609 grep -v '^ *+' conftest.er1 >conftest.err
25611 cat conftest.err >&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } &&
25614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25615 { (case "(($ac_try" in
25616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617 *) ac_try_echo=$ac_try;;
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620 (eval "$ac_try") 2>&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; } &&
25624 { ac_try='test -s conftest$ac_exeext'
25625 { (case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630 (eval "$ac_try") 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; }; then
25634 eval "$as_ac_var=yes"
25636 echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25639 eval "$as_ac_var=no"
25642 rm -f core conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext conftest.$ac_ext
25645 ac_res=`eval echo '${'$as_ac_var'}'`
25646 { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25648 if test `eval echo '${'$as_ac_var'}'` = yes; then
25649 cat >>confdefs.h <<_ACEOF
25650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25656 if test "x$ac_cv_func_fork" = xyes; then
25657 { echo "$as_me:$LINENO: checking for working fork" >&5
25658 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25659 if test "${ac_cv_func_fork_works+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25662 if test "$cross_compiling" = yes; then
25663 ac_cv_func_fork_works=cross
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25676 /* By Ruediger Kuhlmann. */
25677 return fork () < 0;
25683 rm -f conftest$ac_exeext
25684 if { (ac_try="$ac_link"
25685 case "(($ac_try" in
25686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687 *) ac_try_echo=$ac_try;;
25689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25690 (eval "$ac_link") 2>&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25694 { (case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_try") 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; }; then
25703 ac_cv_func_fork_works=yes
25705 echo "$as_me: program exited with status $ac_status" >&5
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 ( exit $ac_status )
25710 ac_cv_func_fork_works=no
25712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25717 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25718 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25721 ac_cv_func_fork_works=$ac_cv_func_fork
25723 if test "x$ac_cv_func_fork_works" = xcross; then
25725 *-*-amigaos* | *-*-msdosdjgpp*)
25726 # Override, as these systems have only a dummy fork() stub
25727 ac_cv_func_fork_works=no
25730 ac_cv_func_fork_works=yes
25733 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25734 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25736 ac_cv_func_vfork_works=$ac_cv_func_vfork
25737 if test "x$ac_cv_func_vfork" = xyes; then
25738 { echo "$as_me:$LINENO: checking for working vfork" >&5
25739 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25740 if test "${ac_cv_func_vfork_works+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 if test "$cross_compiling" = yes; then
25744 ac_cv_func_vfork_works=cross
25746 cat >conftest.$ac_ext <<_ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 /* Thanks to Paul Eggert for this test. */
25753 $ac_includes_default
25754 #include <sys/wait.h>
25756 # include <vfork.h>
25758 /* On some sparc systems, changes by the child to local and incoming
25759 argument registers are propagated back to the parent. The compiler
25760 is told about this with #include <vfork.h>, but some compilers
25761 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25762 static variable whose address is put into a register that is
25763 clobbered by the vfork. */
25766 sparc_address_test (int arg)
25768 sparc_address_test (arg) int arg;
25771 static pid_t child;
25789 pid_t parent = getpid ();
25792 sparc_address_test (0);
25797 /* Here is another test for sparc vfork register problems. This
25798 test uses lots of local variables, at least as many local
25799 variables as main has allocated so far including compiler
25800 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25801 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25802 reuse the register of parent for one of the local variables,
25803 since it will think that parent can't possibly be used any more
25804 in this routine. Assigning to the local variable will thus
25805 munge parent in the parent process. */
25807 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25808 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25809 /* Convince the compiler that p..p7 are live; otherwise, it might
25810 use the same hardware register for all 8 local variables. */
25811 if (p != p1 || p != p2 || p != p3 || p != p4
25812 || p != p5 || p != p6 || p != p7)
25815 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25816 from child file descriptors. If the child closes a descriptor
25817 before it execs or exits, this munges the parent's descriptor
25818 as well. Test for this by closing stdout in the child. */
25819 _exit(close(fileno(stdout)) != 0);
25824 while (wait(&status) != child)
25827 /* Was there some problem with vforking? */
25830 /* Did the child fail? (This shouldn't happen.) */
25833 /* Did the vfork/compiler bug occur? */
25834 || parent != getpid()
25836 /* Did the file descriptor bug occur? */
25837 || fstat(fileno(stdout), &st) != 0
25842 rm -f conftest$ac_exeext
25843 if { (ac_try="$ac_link"
25844 case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_link") 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25853 { (case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_try") 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 ac_cv_func_vfork_works=yes
25864 echo "$as_me: program exited with status $ac_status" >&5
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 ( exit $ac_status )
25869 ac_cv_func_vfork_works=no
25871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25876 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25877 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25880 if test "x$ac_cv_func_fork_works" = xcross; then
25881 ac_cv_func_vfork_works=$ac_cv_func_vfork
25882 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25883 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25886 if test "x$ac_cv_func_vfork_works" = xyes; then
25888 cat >>confdefs.h <<\_ACEOF
25889 #define HAVE_WORKING_VFORK 1
25894 cat >>confdefs.h <<\_ACEOF
25899 if test "x$ac_cv_func_fork_works" = xyes; then
25901 cat >>confdefs.h <<\_ACEOF
25902 #define HAVE_WORKING_FORK 1
25907 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25908 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25909 if test "${ac_cv_type_getgroups+set}" = set; then
25910 echo $ECHO_N "(cached) $ECHO_C" >&6
25912 if test "$cross_compiling" = yes; then
25913 ac_cv_type_getgroups=cross
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 /* Thanks to Mike Rendell for this test. */
25922 $ac_includes_default
25925 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25930 gid_t gidset[NGID];
25932 union { gid_t gval; long int lval; } val;
25935 for (i = 0; i < NGID; i++)
25936 gidset[i] = val.gval;
25937 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25939 /* Exit non-zero if getgroups seems to require an array of ints. This
25940 happens when gid_t is short int but getgroups modifies an array
25942 return n > 0 && gidset[n] != val.gval;
25945 rm -f conftest$ac_exeext
25946 if { (ac_try="$ac_link"
25947 case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_link") 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25956 { (case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_try") 2>&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_type_getgroups=gid_t
25967 echo "$as_me: program exited with status $ac_status" >&5
25968 echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25971 ( exit $ac_status )
25972 ac_cv_type_getgroups=int
25974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25978 if test $ac_cv_type_getgroups = cross; then
25979 cat >conftest.$ac_ext <<_ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h. */
25985 #include <unistd.h>
25988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25989 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25990 ac_cv_type_getgroups=gid_t
25992 ac_cv_type_getgroups=int
25998 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25999 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26001 cat >>confdefs.h <<_ACEOF
26002 #define GETGROUPS_T $ac_cv_type_getgroups
26006 { echo "$as_me:$LINENO: checking for getgroups" >&5
26007 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26008 if test "${ac_cv_func_getgroups+set}" = set; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26011 cat >conftest.$ac_ext <<_ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26017 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26019 #define getgroups innocuous_getgroups
26021 /* System header to define __stub macros and hopefully few prototypes,
26022 which can conflict with char getgroups (); below.
26023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26024 <limits.h> exists even on freestanding compilers. */
26027 # include <limits.h>
26029 # include <assert.h>
26034 /* Override any GCC internal prototype to avoid an error.
26035 Use char because int might match the return type of a GCC
26036 builtin and then its argument prototype would still apply. */
26041 /* The GNU C library defines this for functions which it implements
26042 to always fail with ENOSYS. Some functions are actually named
26043 something starting with __ and the normal name is an alias. */
26044 #if defined __stub_getgroups || defined __stub___getgroups
26051 return getgroups ();
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (ac_try="$ac_link"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_link") 2>conftest.er1
26065 grep -v '^ *+' conftest.er1 >conftest.err
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
26070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26071 { (case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_try") 2>&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
26080 { ac_try='test -s conftest$ac_exeext'
26081 { (case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_try") 2>&5
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26090 ac_cv_func_getgroups=yes
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 ac_cv_func_getgroups=no
26098 rm -f core conftest.err conftest.$ac_objext \
26099 conftest$ac_exeext conftest.$ac_ext
26101 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26102 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26105 # If we don't yet have getgroups, see if it's in -lbsd.
26106 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26108 if test $ac_cv_func_getgroups = no; then
26109 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26110 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26111 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26112 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 ac_check_lib_save_LIBS=$LIBS
26116 cat >conftest.$ac_ext <<_ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26123 /* Override any GCC internal prototype to avoid an error.
26124 Use char because int might match the return type of a GCC
26125 builtin and then its argument prototype would still apply. */
26133 return getgroups ();
26138 rm -f conftest.$ac_objext conftest$ac_exeext
26139 if { (ac_try="$ac_link"
26140 case "(($ac_try" in
26141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142 *) ac_try_echo=$ac_try;;
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145 (eval "$ac_link") 2>conftest.er1
26147 grep -v '^ *+' conftest.er1 >conftest.err
26149 cat conftest.err >&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } &&
26152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26153 { (case "(($ac_try" in
26154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26155 *) ac_try_echo=$ac_try;;
26157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26158 (eval "$ac_try") 2>&5
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); }; } &&
26162 { ac_try='test -s conftest$ac_exeext'
26163 { (case "(($ac_try" in
26164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26165 *) ac_try_echo=$ac_try;;
26167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26168 (eval "$ac_try") 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26172 ac_cv_lib_bsd_getgroups=yes
26174 echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26177 ac_cv_lib_bsd_getgroups=no
26180 rm -f core conftest.err conftest.$ac_objext \
26181 conftest$ac_exeext conftest.$ac_ext
26182 LIBS=$ac_check_lib_save_LIBS
26184 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26185 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26186 if test $ac_cv_lib_bsd_getgroups = yes; then
26187 GETGROUPS_LIB=-lbsd
26192 # Run the program to test the functionality of the system-supplied
26193 # getgroups function only if there is such a function.
26194 if test $ac_cv_func_getgroups = yes; then
26195 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26196 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26197 if test "${ac_cv_func_getgroups_works+set}" = set; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 if test "$cross_compiling" = yes; then
26201 ac_cv_func_getgroups_works=no
26203 cat >conftest.$ac_ext <<_ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h. */
26209 $ac_includes_default
26213 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26214 return getgroups (0, 0) == -1;
26219 rm -f conftest$ac_exeext
26220 if { (ac_try="$ac_link"
26221 case "(($ac_try" in
26222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 *) ac_try_echo=$ac_try;;
26225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226 (eval "$ac_link") 2>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; }; then
26239 ac_cv_func_getgroups_works=yes
26241 echo "$as_me: program exited with status $ac_status" >&5
26242 echo "$as_me: failed program was:" >&5
26243 sed 's/^/| /' conftest.$ac_ext >&5
26245 ( exit $ac_status )
26246 ac_cv_func_getgroups_works=no
26248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26254 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26255 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26256 if test $ac_cv_func_getgroups_works = yes; then
26258 cat >>confdefs.h <<\_ACEOF
26259 #define HAVE_GETGROUPS 1
26266 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26267 # -lseq on Dynix/PTX, -lgen on Unixware.
26268 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26269 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26270 if test "${ac_cv_search_getmntent+set}" = set; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 ac_func_search_save_LIBS=$LIBS
26274 cat >conftest.$ac_ext <<_ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26281 /* Override any GCC internal prototype to avoid an error.
26282 Use char because int might match the return type of a GCC
26283 builtin and then its argument prototype would still apply. */
26291 return getmntent ();
26296 for ac_lib in '' sun seq gen; do
26297 if test -z "$ac_lib"; then
26298 ac_res="none required"
26301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26303 rm -f conftest.$ac_objext conftest$ac_exeext
26304 if { (ac_try="$ac_link"
26305 case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_link") 2>conftest.er1
26312 grep -v '^ *+' conftest.er1 >conftest.err
26314 cat conftest.err >&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } &&
26317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26318 { (case "(($ac_try" in
26319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320 *) ac_try_echo=$ac_try;;
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323 (eval "$ac_try") 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); }; } &&
26327 { ac_try='test -s conftest$ac_exeext'
26328 { (case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_try") 2>&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
26337 ac_cv_search_getmntent=$ac_res
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26345 rm -f core conftest.err conftest.$ac_objext \
26347 if test "${ac_cv_search_getmntent+set}" = set; then
26351 if test "${ac_cv_search_getmntent+set}" = set; then
26354 ac_cv_search_getmntent=no
26356 rm conftest.$ac_ext
26357 LIBS=$ac_func_search_save_LIBS
26359 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26360 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26361 ac_res=$ac_cv_search_getmntent
26362 if test "$ac_res" != no; then
26363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26368 for ac_func in getmntent
26370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26384 #define $ac_func innocuous_$ac_func
26386 /* System header to define __stub macros and hopefully few prototypes,
26387 which can conflict with char $ac_func (); below.
26388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26389 <limits.h> exists even on freestanding compilers. */
26392 # include <limits.h>
26394 # include <assert.h>
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26406 /* The GNU C library defines this for functions which it implements
26407 to always fail with ENOSYS. Some functions are actually named
26408 something starting with __ and the normal name is an alias. */
26409 #if defined __stub_$ac_func || defined __stub___$ac_func
26416 return $ac_func ();
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } &&
26435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26436 { (case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_try") 2>&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; } &&
26445 { ac_try='test -s conftest$ac_exeext'
26446 { (case "(($ac_try" in
26447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448 *) ac_try_echo=$ac_try;;
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451 (eval "$ac_try") 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 eval "$as_ac_var=yes"
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 eval "$as_ac_var=no"
26463 rm -f core conftest.err conftest.$ac_objext \
26464 conftest$ac_exeext conftest.$ac_ext
26466 ac_res=`eval echo '${'$as_ac_var'}'`
26467 { echo "$as_me:$LINENO: result: $ac_res" >&5
26468 echo "${ECHO_T}$ac_res" >&6; }
26469 if test `eval echo '${'$as_ac_var'}'` = yes; then
26470 cat >>confdefs.h <<_ACEOF
26471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26478 if test $ac_cv_c_compiler_gnu = yes; then
26479 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26480 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26481 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26484 ac_pattern="Autoconf.*'x'"
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26495 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26496 ac_cv_prog_gcc_traditional=yes
26498 ac_cv_prog_gcc_traditional=no
26503 if test $ac_cv_prog_gcc_traditional = no; then
26504 cat >conftest.$ac_ext <<_ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h. */
26510 #include <termio.h>
26513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26514 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26515 ac_cv_prog_gcc_traditional=yes
26521 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26522 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26523 if test $ac_cv_prog_gcc_traditional = yes; then
26524 CC="$CC -traditional"
26528 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26529 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26530 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 rm -f conftest.sym conftest.file
26534 echo >conftest.file
26535 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26536 if test "$cross_compiling" = yes; then
26537 ac_cv_func_lstat_dereferences_slashed_symlink=no
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26545 $ac_includes_default
26550 /* Linux will dereference the symlink and fail.
26551 That is better in the sense that it means we will not
26552 have to compile and use the lstat wrapper. */
26553 return lstat ("conftest.sym/", &sbuf) == 0;
26558 rm -f conftest$ac_exeext
26559 if { (ac_try="$ac_link"
26560 case "(($ac_try" in
26561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562 *) ac_try_echo=$ac_try;;
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565 (eval "$ac_link") 2>&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26569 { (case "(($ac_try" in
26570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571 *) ac_try_echo=$ac_try;;
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574 (eval "$ac_try") 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26580 echo "$as_me: program exited with status $ac_status" >&5
26581 echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26584 ( exit $ac_status )
26585 ac_cv_func_lstat_dereferences_slashed_symlink=no
26587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26592 # If the `ln -s' command failed, then we probably don't even
26593 # have an lstat function.
26594 ac_cv_func_lstat_dereferences_slashed_symlink=no
26596 rm -f conftest.sym conftest.file
26599 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26600 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26602 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26604 cat >>confdefs.h <<_ACEOF
26605 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26609 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26610 case " $LIBOBJS " in
26611 *" lstat.$ac_objext "* ) ;;
26612 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26618 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26619 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26620 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26623 if test "$cross_compiling" = yes; then
26624 ac_cv_func_lstat_empty_string_bug=yes
26626 cat >conftest.$ac_ext <<_ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h. */
26632 $ac_includes_default
26637 return lstat ("", &sbuf) == 0;
26642 rm -f conftest$ac_exeext
26643 if { (ac_try="$ac_link"
26644 case "(($ac_try" in
26645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646 *) ac_try_echo=$ac_try;;
26648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649 (eval "$ac_link") 2>&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26653 { (case "(($ac_try" in
26654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26655 *) ac_try_echo=$ac_try;;
26657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26658 (eval "$ac_try") 2>&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; }; then
26662 ac_cv_func_lstat_empty_string_bug=no
26664 echo "$as_me: program exited with status $ac_status" >&5
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 ( exit $ac_status )
26669 ac_cv_func_lstat_empty_string_bug=yes
26671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26676 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26677 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26678 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26679 case " $LIBOBJS " in
26680 *" lstat.$ac_objext "* ) ;;
26681 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26686 cat >>confdefs.h <<_ACEOF
26687 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26692 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26693 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26694 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26695 echo $ECHO_N "(cached) $ECHO_C" >&6
26697 rm -f conftest.sym conftest.file
26698 echo >conftest.file
26699 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26700 if test "$cross_compiling" = yes; then
26701 ac_cv_func_lstat_dereferences_slashed_symlink=no
26703 cat >conftest.$ac_ext <<_ACEOF
26706 cat confdefs.h >>conftest.$ac_ext
26707 cat >>conftest.$ac_ext <<_ACEOF
26708 /* end confdefs.h. */
26709 $ac_includes_default
26714 /* Linux will dereference the symlink and fail.
26715 That is better in the sense that it means we will not
26716 have to compile and use the lstat wrapper. */
26717 return lstat ("conftest.sym/", &sbuf) == 0;
26722 rm -f conftest$ac_exeext
26723 if { (ac_try="$ac_link"
26724 case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_link") 2>&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26733 { (case "(($ac_try" in
26734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735 *) ac_try_echo=$ac_try;;
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738 (eval "$ac_try") 2>&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); }; }; then
26742 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26744 echo "$as_me: program exited with status $ac_status" >&5
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ( exit $ac_status )
26749 ac_cv_func_lstat_dereferences_slashed_symlink=no
26751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26756 # If the `ln -s' command failed, then we probably don't even
26757 # have an lstat function.
26758 ac_cv_func_lstat_dereferences_slashed_symlink=no
26760 rm -f conftest.sym conftest.file
26763 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26764 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26766 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26768 cat >>confdefs.h <<_ACEOF
26769 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26773 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26774 case " $LIBOBJS " in
26775 *" lstat.$ac_objext "* ) ;;
26776 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26782 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26783 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26784 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 #include <sys/types.h>
26797 return makedev(0, 0);
26802 rm -f conftest.$ac_objext conftest$ac_exeext
26803 if { (ac_try="$ac_link"
26804 case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809 (eval "$ac_link") 2>conftest.er1
26811 grep -v '^ *+' conftest.er1 >conftest.err
26813 cat conftest.err >&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26817 { (case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_try") 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; } &&
26826 { ac_try='test -s conftest$ac_exeext'
26827 { (case "(($ac_try" in
26828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829 *) ac_try_echo=$ac_try;;
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832 (eval "$ac_try") 2>&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; }; then
26836 ac_cv_header_sys_types_h_makedev=yes
26838 echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26841 ac_cv_header_sys_types_h_makedev=no
26844 rm -f core conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
26848 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26849 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26851 if test $ac_cv_header_sys_types_h_makedev = no; then
26852 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26853 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26854 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26855 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26859 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26861 # Is the header compilable?
26862 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26863 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26864 cat >conftest.$ac_ext <<_ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 $ac_includes_default
26871 #include <sys/mkdev.h>
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_compile") 2>conftest.er1
26882 grep -v '^ *+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } &&
26887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26888 { (case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_try") 2>&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; } &&
26897 { ac_try='test -s conftest.$ac_objext'
26898 { (case "(($ac_try" in
26899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900 *) ac_try_echo=$ac_try;;
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903 (eval "$ac_try") 2>&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_header_compiler=yes
26909 echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26912 ac_header_compiler=no
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26917 echo "${ECHO_T}$ac_header_compiler" >&6; }
26919 # Is the header present?
26920 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26921 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26922 cat >conftest.$ac_ext <<_ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26928 #include <sys/mkdev.h>
26930 if { (ac_try="$ac_cpp conftest.$ac_ext"
26931 case "(($ac_try" in
26932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } >/dev/null; then
26943 if test -s conftest.err; then
26944 ac_cpp_err=$ac_c_preproc_warn_flag
26945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26952 if test -z "$ac_cpp_err"; then
26953 ac_header_preproc=yes
26955 echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ac_header_preproc=no
26961 rm -f conftest.err conftest.$ac_ext
26962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26963 echo "${ECHO_T}$ac_header_preproc" >&6; }
26965 # So? What about this header?
26966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26969 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26971 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26972 ac_header_preproc=yes
26975 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26976 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26978 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26980 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26982 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26984 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26986 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26988 ## ------------------------------- ##
26989 ## Report this to nfs@lists.sf.net ##
26990 ## ------------------------------- ##
26992 ) | sed "s/^/$as_me: WARNING: /" >&2
26995 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26996 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 ac_cv_header_sys_mkdev_h=$ac_header_preproc
27002 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27003 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27006 if test $ac_cv_header_sys_mkdev_h = yes; then
27008 cat >>confdefs.h <<\_ACEOF
27009 #define MAJOR_IN_MKDEV 1
27016 if test $ac_cv_header_sys_mkdev_h = no; then
27017 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27018 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27019 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27020 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27024 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27026 # Is the header compilable?
27027 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27028 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 $ac_includes_default
27036 #include <sys/sysmacros.h>
27038 rm -f conftest.$ac_objext
27039 if { (ac_try="$ac_compile"
27040 case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_compile") 2>conftest.er1
27047 grep -v '^ *+' conftest.er1 >conftest.err
27049 cat conftest.err >&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } &&
27052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27053 { (case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_try") 2>&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; } &&
27062 { ac_try='test -s conftest.$ac_objext'
27063 { (case "(($ac_try" in
27064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065 *) ac_try_echo=$ac_try;;
27067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27068 (eval "$ac_try") 2>&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; }; then
27072 ac_header_compiler=yes
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27077 ac_header_compiler=no
27080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27082 echo "${ECHO_T}$ac_header_compiler" >&6; }
27084 # Is the header present?
27085 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27086 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 #include <sys/sysmacros.h>
27095 if { (ac_try="$ac_cpp conftest.$ac_ext"
27096 case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27103 grep -v '^ *+' conftest.er1 >conftest.err
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } >/dev/null; then
27108 if test -s conftest.err; then
27109 ac_cpp_err=$ac_c_preproc_warn_flag
27110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27117 if test -z "$ac_cpp_err"; then
27118 ac_header_preproc=yes
27120 echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27123 ac_header_preproc=no
27126 rm -f conftest.err conftest.$ac_ext
27127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27128 echo "${ECHO_T}$ac_header_preproc" >&6; }
27130 # So? What about this header?
27131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27133 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27134 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27135 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27136 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27137 ac_header_preproc=yes
27140 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27141 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27143 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27145 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27147 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27149 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27151 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27153 ## ------------------------------- ##
27154 ## Report this to nfs@lists.sf.net ##
27155 ## ------------------------------- ##
27157 ) | sed "s/^/$as_me: WARNING: /" >&2
27160 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27161 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27162 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27168 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27171 if test $ac_cv_header_sys_sysmacros_h = yes; then
27173 cat >>confdefs.h <<\_ACEOF
27174 #define MAJOR_IN_SYSMACROS 1
27184 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27185 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27186 if test "${ac_cv_func_memcmp_working+set}" = set; then
27187 echo $ECHO_N "(cached) $ECHO_C" >&6
27189 if test "$cross_compiling" = yes; then
27190 ac_cv_func_memcmp_working=no
27192 cat >conftest.$ac_ext <<_ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27198 $ac_includes_default
27203 /* Some versions of memcmp are not 8-bit clean. */
27204 char c0 = '\100', c1 = '\200', c2 = '\201';
27205 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27208 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27209 or more and with at least one buffer not starting on a 4-byte boundary.
27210 William Lewis provided this test program. */
27215 for (i = 0; i < 4; i++)
27219 strcpy (a, "--------01111111");
27220 strcpy (b, "--------10000000");
27221 if (memcmp (a, b, 16) >= 0)
27231 rm -f conftest$ac_exeext
27232 if { (ac_try="$ac_link"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_link") 2>&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_func_memcmp_working=yes
27253 echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27257 ( exit $ac_status )
27258 ac_cv_func_memcmp_working=no
27260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27265 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27266 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27267 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27268 *" memcmp.$ac_objext "* ) ;;
27269 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27277 for ac_header in sys/select.h sys/socket.h
27279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 ac_res=`eval echo '${'$as_ac_Header'}'`
27287 { echo "$as_me:$LINENO: result: $ac_res" >&5
27288 echo "${ECHO_T}$ac_res" >&6; }
27290 # Is the header compilable?
27291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27293 cat >conftest.$ac_ext <<_ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27299 $ac_includes_default
27300 #include <$ac_header>
27302 rm -f conftest.$ac_objext
27303 if { (ac_try="$ac_compile"
27304 case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_compile") 2>conftest.er1
27311 grep -v '^ *+' conftest.er1 >conftest.err
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } &&
27316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27317 { (case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest.$ac_objext'
27327 { (case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_try") 2>&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336 ac_header_compiler=yes
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27341 ac_header_compiler=no
27344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346 echo "${ECHO_T}$ac_header_compiler" >&6; }
27348 # Is the header present?
27349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 #include <$ac_header>
27359 if { (ac_try="$ac_cpp conftest.$ac_ext"
27360 case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } >/dev/null; then
27372 if test -s conftest.err; then
27373 ac_cpp_err=$ac_c_preproc_warn_flag
27374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27381 if test -z "$ac_cpp_err"; then
27382 ac_header_preproc=yes
27384 echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27387 ac_header_preproc=no
27390 rm -f conftest.err conftest.$ac_ext
27391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27392 echo "${ECHO_T}$ac_header_preproc" >&6; }
27394 # So? What about this header?
27395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27401 ac_header_preproc=yes
27404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27417 ## ------------------------------- ##
27418 ## Report this to nfs@lists.sf.net ##
27419 ## ------------------------------- ##
27421 ) | sed "s/^/$as_me: WARNING: /" >&2
27424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 eval "$as_ac_Header=\$ac_header_preproc"
27431 ac_res=`eval echo '${'$as_ac_Header'}'`
27432 { echo "$as_me:$LINENO: result: $ac_res" >&5
27433 echo "${ECHO_T}$ac_res" >&6; }
27436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27437 cat >>confdefs.h <<_ACEOF
27438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27445 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27446 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27447 if test "${ac_cv_func_select_args+set}" = set; then
27448 echo $ECHO_N "(cached) $ECHO_C" >&6
27450 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27451 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27452 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27453 cat >conftest.$ac_ext <<_ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h. */
27459 $ac_includes_default
27460 #if HAVE_SYS_SELECT_H
27461 # include <sys/select.h>
27463 #if HAVE_SYS_SOCKET_H
27464 # include <sys/socket.h>
27470 extern int select ($ac_arg1,
27471 $ac_arg234, $ac_arg234, $ac_arg234,
27477 rm -f conftest.$ac_objext
27478 if { (ac_try="$ac_compile"
27479 case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_compile") 2>conftest.er1
27486 grep -v '^ *+' conftest.er1 >conftest.err
27488 cat conftest.err >&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); } &&
27491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27492 { (case "(($ac_try" in
27493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_try") 2>&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; } &&
27501 { ac_try='test -s conftest.$ac_objext'
27502 { (case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_try") 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27523 # Provide a safe default value.
27524 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27527 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27528 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27529 ac_save_IFS=$IFS; IFS=','
27530 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27534 cat >>confdefs.h <<_ACEOF
27535 #define SELECT_TYPE_ARG1 $1
27539 cat >>confdefs.h <<_ACEOF
27540 #define SELECT_TYPE_ARG234 ($2)
27544 cat >>confdefs.h <<_ACEOF
27545 #define SELECT_TYPE_ARG5 ($3)
27550 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27551 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27552 if test "${ac_cv_type_signal+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 cat >conftest.$ac_ext <<_ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27561 #include <sys/types.h>
27562 #include <signal.h>
27567 return *(signal (0, 0)) (0) == 1;
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_compile") 2>conftest.er1
27581 grep -v '^ *+' conftest.er1 >conftest.err
27583 cat conftest.err >&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
27586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27587 { (case "(($ac_try" in
27588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589 *) ac_try_echo=$ac_try;;
27591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592 (eval "$ac_try") 2>&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest.$ac_objext'
27597 { (case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_try") 2>&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 ac_cv_type_signal=int
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 ac_cv_type_signal=void
27614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27616 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27617 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27619 cat >>confdefs.h <<_ACEOF
27620 #define RETSIGTYPE $ac_cv_type_signal
27624 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27625 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27626 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 if test "$cross_compiling" = yes; then
27630 ac_cv_func_stat_empty_string_bug=yes
27632 cat >conftest.$ac_ext <<_ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h. */
27638 $ac_includes_default
27643 return stat ("", &sbuf) == 0;
27648 rm -f conftest$ac_exeext
27649 if { (ac_try="$ac_link"
27650 case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655 (eval "$ac_link") 2>&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659 { (case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_try") 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_func_stat_empty_string_bug=no
27670 echo "$as_me: program exited with status $ac_status" >&5
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27674 ( exit $ac_status )
27675 ac_cv_func_stat_empty_string_bug=yes
27677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27682 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27683 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27684 if test $ac_cv_func_stat_empty_string_bug = yes; then
27685 case " $LIBOBJS " in
27686 *" stat.$ac_objext "* ) ;;
27687 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27692 cat >>confdefs.h <<_ACEOF
27693 #define HAVE_STAT_EMPTY_STRING_BUG 1
27699 for ac_func in vprintf
27701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27707 cat >conftest.$ac_ext <<_ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27715 #define $ac_func innocuous_$ac_func
27717 /* System header to define __stub macros and hopefully few prototypes,
27718 which can conflict with char $ac_func (); below.
27719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720 <limits.h> exists even on freestanding compilers. */
27723 # include <limits.h>
27725 # include <assert.h>
27730 /* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27737 /* The GNU C library defines this for functions which it implements
27738 to always fail with ENOSYS. Some functions are actually named
27739 something starting with __ and the normal name is an alias. */
27740 #if defined __stub_$ac_func || defined __stub___$ac_func
27747 return $ac_func ();
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_link") 2>conftest.er1
27761 grep -v '^ *+' conftest.er1 >conftest.err
27763 cat conftest.err >&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } &&
27766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_try") 2>&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; }; then
27786 eval "$as_ac_var=yes"
27788 echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27791 eval "$as_ac_var=no"
27794 rm -f core conftest.err conftest.$ac_objext \
27795 conftest$ac_exeext conftest.$ac_ext
27797 ac_res=`eval echo '${'$as_ac_var'}'`
27798 { echo "$as_me:$LINENO: result: $ac_res" >&5
27799 echo "${ECHO_T}$ac_res" >&6; }
27800 if test `eval echo '${'$as_ac_var'}'` = yes; then
27801 cat >>confdefs.h <<_ACEOF
27802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27805 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27806 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27807 if test "${ac_cv_func__doprnt+set}" = set; then
27808 echo $ECHO_N "(cached) $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27818 #define _doprnt innocuous__doprnt
27820 /* System header to define __stub macros and hopefully few prototypes,
27821 which can conflict with char _doprnt (); below.
27822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27823 <limits.h> exists even on freestanding compilers. */
27826 # include <limits.h>
27828 # include <assert.h>
27833 /* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27840 /* The GNU C library defines this for functions which it implements
27841 to always fail with ENOSYS. Some functions are actually named
27842 something starting with __ and the normal name is an alias. */
27843 #if defined __stub__doprnt || defined __stub____doprnt
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (ac_try="$ac_link"
27857 case "(($ac_try" in
27858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859 *) ac_try_echo=$ac_try;;
27861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862 (eval "$ac_link") 2>conftest.er1
27864 grep -v '^ *+' conftest.er1 >conftest.err
27866 cat conftest.err >&5
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); } &&
27869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27870 { (case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_try") 2>&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; } &&
27879 { ac_try='test -s conftest$ac_exeext'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
27889 ac_cv_func__doprnt=yes
27891 echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27894 ac_cv_func__doprnt=no
27897 rm -f core conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
27900 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27901 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27902 if test $ac_cv_func__doprnt = yes; then
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_DOPRNT 1
27943 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27944 gethostbyaddr gethostbyname gethostname getmntent \
27945 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27946 realpath rmdir select socket strcasecmp strchr strdup \
27947 strerror strrchr strtol strtoul sigprocmask
27949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27953 echo $ECHO_N "(cached) $ECHO_C" >&6
27955 cat >conftest.$ac_ext <<_ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h. */
27961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27963 #define $ac_func innocuous_$ac_func
27965 /* System header to define __stub macros and hopefully few prototypes,
27966 which can conflict with char $ac_func (); below.
27967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968 <limits.h> exists even on freestanding compilers. */
27971 # include <limits.h>
27973 # include <assert.h>
27978 /* Override any GCC internal prototype to avoid an error.
27979 Use char because int might match the return type of a GCC
27980 builtin and then its argument prototype would still apply. */
27985 /* The GNU C library defines this for functions which it implements
27986 to always fail with ENOSYS. Some functions are actually named
27987 something starting with __ and the normal name is an alias. */
27988 #if defined __stub_$ac_func || defined __stub___$ac_func
27995 return $ac_func ();
28000 rm -f conftest.$ac_objext conftest$ac_exeext
28001 if { (ac_try="$ac_link"
28002 case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_link") 2>conftest.er1
28009 grep -v '^ *+' conftest.er1 >conftest.err
28011 cat conftest.err >&5
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); } &&
28014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28015 { (case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_try") 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; } &&
28024 { ac_try='test -s conftest$ac_exeext'
28025 { (case "(($ac_try" in
28026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027 *) ac_try_echo=$ac_try;;
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030 (eval "$ac_try") 2>&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; }; then
28034 eval "$as_ac_var=yes"
28036 echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28039 eval "$as_ac_var=no"
28042 rm -f core conftest.err conftest.$ac_objext \
28043 conftest$ac_exeext conftest.$ac_ext
28045 ac_res=`eval echo '${'$as_ac_var'}'`
28046 { echo "$as_me:$LINENO: result: $ac_res" >&5
28047 echo "${ECHO_T}$ac_res" >&6; }
28048 if test `eval echo '${'$as_ac_var'}'` = yes; then
28049 cat >>confdefs.h <<_ACEOF
28050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28058 { echo "$as_me:$LINENO: checking for short" >&5
28059 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28060 if test "${ac_cv_type_short+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28069 $ac_includes_default
28070 typedef short ac__type_new_;
28074 if ((ac__type_new_ *) 0)
28076 if (sizeof (ac__type_new_))
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_compile") 2>conftest.er1
28091 grep -v '^ *+' conftest.er1 >conftest.err
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; } &&
28106 { ac_try='test -s conftest.$ac_objext'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; }; then
28116 ac_cv_type_short=yes
28118 echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28121 ac_cv_type_short=no
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28126 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28127 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28129 { echo "$as_me:$LINENO: checking size of short" >&5
28130 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28131 if test "${ac_cv_sizeof_short+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 if test "$ac_cv_type_short" = yes; then
28135 # The cast to long int works around a bug in the HP C Compiler
28136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28138 # This bug is HP SR number 8606223364.
28139 if test "$cross_compiling" = yes; then
28140 # Depending upon the size, compute the lo and hi bounds.
28141 cat >conftest.$ac_ext <<_ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28147 $ac_includes_default
28148 typedef short ac__type_sizeof_;
28152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28159 rm -f conftest.$ac_objext
28160 if { (ac_try="$ac_compile"
28161 case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_compile") 2>conftest.er1
28168 grep -v '^ *+' conftest.er1 >conftest.err
28170 cat conftest.err >&5
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } &&
28173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28174 { (case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_try") 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; } &&
28183 { ac_try='test -s conftest.$ac_objext'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; }; then
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 $ac_includes_default
28202 typedef short ac__type_sizeof_;
28206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28213 rm -f conftest.$ac_objext
28214 if { (ac_try="$ac_compile"
28215 case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_compile") 2>conftest.er1
28222 grep -v '^ *+' conftest.er1 >conftest.err
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } &&
28227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; } &&
28237 { ac_try='test -s conftest.$ac_objext'
28238 { (case "(($ac_try" in
28239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240 *) ac_try_echo=$ac_try;;
28242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243 (eval "$ac_try") 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
28247 ac_hi=$ac_mid; break
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 ac_lo=`expr $ac_mid + 1`
28253 if test $ac_lo -le $ac_mid; then
28257 ac_mid=`expr 2 '*' $ac_mid + 1`
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28263 echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28266 cat >conftest.$ac_ext <<_ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28272 $ac_includes_default
28273 typedef short ac__type_sizeof_;
28277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28284 rm -f conftest.$ac_objext
28285 if { (ac_try="$ac_compile"
28286 case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_compile") 2>conftest.er1
28293 grep -v '^ *+' conftest.er1 >conftest.err
28295 cat conftest.err >&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
28298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28299 { (case "(($ac_try" in
28300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301 *) ac_try_echo=$ac_try;;
28303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28304 (eval "$ac_try") 2>&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; } &&
28308 { ac_try='test -s conftest.$ac_objext'
28309 { (case "(($ac_try" in
28310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311 *) ac_try_echo=$ac_try;;
28313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314 (eval "$ac_try") 2>&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; }; then
28320 cat >conftest.$ac_ext <<_ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h. */
28326 $ac_includes_default
28327 typedef short ac__type_sizeof_;
28331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28353 { (case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_try") 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; } &&
28362 { ac_try='test -s conftest.$ac_objext'
28363 { (case "(($ac_try" in
28364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28365 *) ac_try_echo=$ac_try;;
28367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28368 (eval "$ac_try") 2>&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); }; }; then
28372 ac_lo=$ac_mid; break
28374 echo "$as_me: failed program was:" >&5
28375 sed 's/^/| /' conftest.$ac_ext >&5
28377 ac_hi=`expr '(' $ac_mid ')' - 1`
28378 if test $ac_mid -le $ac_hi; then
28382 ac_mid=`expr 2 '*' $ac_mid`
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398 # Binary search between lo and hi bounds.
28399 while test "x$ac_lo" != "x$ac_hi"; do
28400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28401 cat >conftest.$ac_ext <<_ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28407 $ac_includes_default
28408 typedef short ac__type_sizeof_;
28412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_compile") 2>conftest.er1
28428 grep -v '^ *+' conftest.er1 >conftest.err
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
28433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28434 { (case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439 (eval "$ac_try") 2>&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; } &&
28443 { ac_try='test -s conftest.$ac_objext'
28444 { (case "(($ac_try" in
28445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446 *) ac_try_echo=$ac_try;;
28448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449 (eval "$ac_try") 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28455 echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28458 ac_lo=`expr '(' $ac_mid ')' + 1`
28461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28464 ?*) ac_cv_sizeof_short=$ac_lo;;
28465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28466 See \`config.log' for more details." >&5
28467 echo "$as_me: error: cannot compute sizeof (short)
28468 See \`config.log' for more details." >&2;}
28469 { (exit 77); exit 77; }; } ;;
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 $ac_includes_default
28479 typedef short ac__type_sizeof_;
28480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28483 #include <stdlib.h>
28488 FILE *f = fopen ("conftest.val", "w");
28491 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28493 long int i = longval ();
28494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28496 fprintf (f, "%ld\n", i);
28500 unsigned long int i = ulongval ();
28501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28503 fprintf (f, "%lu\n", i);
28505 return ferror (f) || fclose (f) != 0;
28511 rm -f conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522 { (case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_try") 2>&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28531 ac_cv_sizeof_short=`cat conftest.val`
28533 echo "$as_me: program exited with status $ac_status" >&5
28534 echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28537 ( exit $ac_status )
28538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28539 See \`config.log' for more details." >&5
28540 echo "$as_me: error: cannot compute sizeof (short)
28541 See \`config.log' for more details." >&2;}
28542 { (exit 77); exit 77; }; }
28544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28548 ac_cv_sizeof_short=0
28551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28553 cat >>confdefs.h <<_ACEOF
28554 #define SIZEOF_SHORT $ac_cv_sizeof_short
28558 { echo "$as_me:$LINENO: checking for int" >&5
28559 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28560 if test "${ac_cv_type_int+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28563 cat >conftest.$ac_ext <<_ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h. */
28569 $ac_includes_default
28570 typedef int ac__type_new_;
28574 if ((ac__type_new_ *) 0)
28576 if (sizeof (ac__type_new_))
28582 rm -f conftest.$ac_objext
28583 if { (ac_try="$ac_compile"
28584 case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_compile") 2>conftest.er1
28591 grep -v '^ *+' conftest.er1 >conftest.err
28593 cat conftest.err >&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
28596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28597 { (case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_try") 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; } &&
28606 { ac_try='test -s conftest.$ac_objext'
28607 { (case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_try") 2>&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
28618 echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28626 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28627 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28629 { echo "$as_me:$LINENO: checking size of int" >&5
28630 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28631 if test "${ac_cv_sizeof_int+set}" = set; then
28632 echo $ECHO_N "(cached) $ECHO_C" >&6
28634 if test "$ac_cv_type_int" = yes; then
28635 # The cast to long int works around a bug in the HP C Compiler
28636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28638 # This bug is HP SR number 8606223364.
28639 if test "$cross_compiling" = yes; then
28640 # Depending upon the size, compute the lo and hi bounds.
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 $ac_includes_default
28648 typedef int ac__type_sizeof_;
28652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28659 rm -f conftest.$ac_objext
28660 if { (ac_try="$ac_compile"
28661 case "(($ac_try" in
28662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663 *) ac_try_echo=$ac_try;;
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666 (eval "$ac_compile") 2>conftest.er1
28668 grep -v '^ *+' conftest.er1 >conftest.err
28670 cat conftest.err >&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } &&
28673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; } &&
28683 { ac_try='test -s conftest.$ac_objext'
28684 { (case "(($ac_try" in
28685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686 *) ac_try_echo=$ac_try;;
28688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689 (eval "$ac_try") 2>&5
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); }; }; then
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 $ac_includes_default
28702 typedef int ac__type_sizeof_;
28706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28713 rm -f conftest.$ac_objext
28714 if { (ac_try="$ac_compile"
28715 case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_compile") 2>conftest.er1
28722 grep -v '^ *+' conftest.er1 >conftest.err
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest.$ac_objext'
28738 { (case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_try") 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 ac_hi=$ac_mid; break
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28752 ac_lo=`expr $ac_mid + 1`
28753 if test $ac_lo -le $ac_mid; then
28757 ac_mid=`expr 2 '*' $ac_mid + 1`
28760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28763 echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28766 cat >conftest.$ac_ext <<_ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28772 $ac_includes_default
28773 typedef int ac__type_sizeof_;
28777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28784 rm -f conftest.$ac_objext
28785 if { (ac_try="$ac_compile"
28786 case "(($ac_try" in
28787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788 *) ac_try_echo=$ac_try;;
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_compile") 2>conftest.er1
28793 grep -v '^ *+' conftest.er1 >conftest.err
28795 cat conftest.err >&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
28798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28799 { (case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_try") 2>&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; } &&
28808 { ac_try='test -s conftest.$ac_objext'
28809 { (case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_try") 2>&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); }; }; then
28820 cat >conftest.$ac_ext <<_ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h. */
28826 $ac_includes_default
28827 typedef int ac__type_sizeof_;
28831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_compile") 2>conftest.er1
28847 grep -v '^ *+' conftest.er1 >conftest.err
28849 cat conftest.err >&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } &&
28852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853 { (case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858 (eval "$ac_try") 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
28872 ac_lo=$ac_mid; break
28874 echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28877 ac_hi=`expr '(' $ac_mid ')' - 1`
28878 if test $ac_mid -le $ac_hi; then
28882 ac_mid=`expr 2 '*' $ac_mid`
28885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 # Binary search between lo and hi bounds.
28899 while test "x$ac_lo" != "x$ac_hi"; do
28900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28901 cat >conftest.$ac_ext <<_ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h. */
28907 $ac_includes_default
28908 typedef int ac__type_sizeof_;
28912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28919 rm -f conftest.$ac_objext
28920 if { (ac_try="$ac_compile"
28921 case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_compile") 2>conftest.er1
28928 grep -v '^ *+' conftest.er1 >conftest.err
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
28933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; } &&
28943 { ac_try='test -s conftest.$ac_objext'
28944 { (case "(($ac_try" in
28945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946 *) ac_try_echo=$ac_try;;
28948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28949 (eval "$ac_try") 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_lo=`expr '(' $ac_mid ')' + 1`
28961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 ?*) ac_cv_sizeof_int=$ac_lo;;
28965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28966 See \`config.log' for more details." >&5
28967 echo "$as_me: error: cannot compute sizeof (int)
28968 See \`config.log' for more details." >&2;}
28969 { (exit 77); exit 77; }; } ;;
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 $ac_includes_default
28979 typedef int ac__type_sizeof_;
28980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28983 #include <stdlib.h>
28988 FILE *f = fopen ("conftest.val", "w");
28991 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28993 long int i = longval ();
28994 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28996 fprintf (f, "%ld\n", i);
29000 unsigned long int i = ulongval ();
29001 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29003 fprintf (f, "%lu\n", i);
29005 return ferror (f) || fclose (f) != 0;
29011 rm -f conftest$ac_exeext
29012 if { (ac_try="$ac_link"
29013 case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_link") 2>&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29022 { (case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_try") 2>&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_sizeof_int=`cat conftest.val`
29033 echo "$as_me: program exited with status $ac_status" >&5
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ( exit $ac_status )
29038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29039 See \`config.log' for more details." >&5
29040 echo "$as_me: error: cannot compute sizeof (int)
29041 See \`config.log' for more details." >&2;}
29042 { (exit 77); exit 77; }; }
29044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29052 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29053 cat >>confdefs.h <<_ACEOF
29054 #define SIZEOF_INT $ac_cv_sizeof_int
29058 { echo "$as_me:$LINENO: checking for long" >&5
29059 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29060 if test "${ac_cv_type_long+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 cat >conftest.$ac_ext <<_ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29069 $ac_includes_default
29070 typedef long ac__type_new_;
29074 if ((ac__type_new_ *) 0)
29076 if (sizeof (ac__type_new_))
29082 rm -f conftest.$ac_objext
29083 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29091 grep -v '^ *+' conftest.er1 >conftest.err
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29097 { (case "(($ac_try" in
29098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099 *) ac_try_echo=$ac_try;;
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102 (eval "$ac_try") 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest.$ac_objext'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_cv_type_long=yes
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29126 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29127 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29129 { echo "$as_me:$LINENO: checking size of long" >&5
29130 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29131 if test "${ac_cv_sizeof_long+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29134 if test "$ac_cv_type_long" = yes; then
29135 # The cast to long int works around a bug in the HP C Compiler
29136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29138 # This bug is HP SR number 8606223364.
29139 if test "$cross_compiling" = yes; then
29140 # Depending upon the size, compute the lo and hi bounds.
29141 cat >conftest.$ac_ext <<_ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h. */
29147 $ac_includes_default
29148 typedef long ac__type_sizeof_;
29152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_compile") 2>conftest.er1
29168 grep -v '^ *+' conftest.er1 >conftest.err
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29174 { (case "(($ac_try" in
29175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176 *) ac_try_echo=$ac_try;;
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179 (eval "$ac_try") 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest.$ac_objext'
29184 { (case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_try") 2>&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29195 cat >conftest.$ac_ext <<_ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h. */
29201 $ac_includes_default
29202 typedef long ac__type_sizeof_;
29206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29213 rm -f conftest.$ac_objext
29214 if { (ac_try="$ac_compile"
29215 case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_compile") 2>conftest.er1
29222 grep -v '^ *+' conftest.er1 >conftest.err
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
29227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228 { (case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_try") 2>&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; } &&
29237 { ac_try='test -s conftest.$ac_objext'
29238 { (case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_try") 2>&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_hi=$ac_mid; break
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_lo=`expr $ac_mid + 1`
29253 if test $ac_lo -le $ac_mid; then
29257 ac_mid=`expr 2 '*' $ac_mid + 1`
29260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 cat >conftest.$ac_ext <<_ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h. */
29272 $ac_includes_default
29273 typedef long ac__type_sizeof_;
29277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29284 rm -f conftest.$ac_objext
29285 if { (ac_try="$ac_compile"
29286 case "(($ac_try" in
29287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288 *) ac_try_echo=$ac_try;;
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291 (eval "$ac_compile") 2>conftest.er1
29293 grep -v '^ *+' conftest.er1 >conftest.err
29295 cat conftest.err >&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } &&
29298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; } &&
29308 { ac_try='test -s conftest.$ac_objext'
29309 { (case "(($ac_try" in
29310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29311 *) ac_try_echo=$ac_try;;
29313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29314 (eval "$ac_try") 2>&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; }; then
29320 cat >conftest.$ac_ext <<_ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h. */
29326 $ac_includes_default
29327 typedef long ac__type_sizeof_;
29331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29338 rm -f conftest.$ac_objext
29339 if { (ac_try="$ac_compile"
29340 case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_compile") 2>conftest.er1
29347 grep -v '^ *+' conftest.er1 >conftest.err
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } &&
29352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29353 { (case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_try") 2>&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; } &&
29362 { ac_try='test -s conftest.$ac_objext'
29363 { (case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_try") 2>&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); }; }; then
29372 ac_lo=$ac_mid; break
29374 echo "$as_me: failed program was:" >&5
29375 sed 's/^/| /' conftest.$ac_ext >&5
29377 ac_hi=`expr '(' $ac_mid ')' - 1`
29378 if test $ac_mid -le $ac_hi; then
29382 ac_mid=`expr 2 '*' $ac_mid`
29385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388 echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29398 # Binary search between lo and hi bounds.
29399 while test "x$ac_lo" != "x$ac_hi"; do
29400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 $ac_includes_default
29408 typedef long ac__type_sizeof_;
29412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29419 rm -f conftest.$ac_objext
29420 if { (ac_try="$ac_compile"
29421 case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_compile") 2>conftest.er1
29428 grep -v '^ *+' conftest.er1 >conftest.err
29430 cat conftest.err >&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29434 { (case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_try") 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; } &&
29443 { ac_try='test -s conftest.$ac_objext'
29444 { (case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_try") 2>&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; }; then
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29458 ac_lo=`expr '(' $ac_mid ')' + 1`
29461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29464 ?*) ac_cv_sizeof_long=$ac_lo;;
29465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29466 See \`config.log' for more details." >&5
29467 echo "$as_me: error: cannot compute sizeof (long)
29468 See \`config.log' for more details." >&2;}
29469 { (exit 77); exit 77; }; } ;;
29472 cat >conftest.$ac_ext <<_ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h. */
29478 $ac_includes_default
29479 typedef long ac__type_sizeof_;
29480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29483 #include <stdlib.h>
29488 FILE *f = fopen ("conftest.val", "w");
29491 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29493 long int i = longval ();
29494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29496 fprintf (f, "%ld\n", i);
29500 unsigned long int i = ulongval ();
29501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29503 fprintf (f, "%lu\n", i);
29505 return ferror (f) || fclose (f) != 0;
29511 rm -f conftest$ac_exeext
29512 if { (ac_try="$ac_link"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_link") 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29522 { (case "(($ac_try" in
29523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524 *) ac_try_echo=$ac_try;;
29526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29527 (eval "$ac_try") 2>&5
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); }; }; then
29531 ac_cv_sizeof_long=`cat conftest.val`
29533 echo "$as_me: program exited with status $ac_status" >&5
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ( exit $ac_status )
29538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29539 See \`config.log' for more details." >&5
29540 echo "$as_me: error: cannot compute sizeof (long)
29541 See \`config.log' for more details." >&2;}
29542 { (exit 77); exit 77; }; }
29544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29548 ac_cv_sizeof_long=0
29551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29553 cat >>confdefs.h <<_ACEOF
29554 #define SIZEOF_LONG $ac_cv_sizeof_long
29558 { echo "$as_me:$LINENO: checking for size_t" >&5
29559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29560 if test "${ac_cv_type_size_t+set}" = set; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29563 cat >conftest.$ac_ext <<_ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 $ac_includes_default
29570 typedef size_t ac__type_new_;
29574 if ((ac__type_new_ *) 0)
29576 if (sizeof (ac__type_new_))
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
29607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_cv_type_size_t=yes
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ac_cv_type_size_t=no
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29627 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29629 { echo "$as_me:$LINENO: checking size of size_t" >&5
29630 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29631 if test "${ac_cv_sizeof_size_t+set}" = set; then
29632 echo $ECHO_N "(cached) $ECHO_C" >&6
29634 if test "$ac_cv_type_size_t" = yes; then
29635 # The cast to long int works around a bug in the HP C Compiler
29636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29638 # This bug is HP SR number 8606223364.
29639 if test "$cross_compiling" = yes; then
29640 # Depending upon the size, compute the lo and hi bounds.
29641 cat >conftest.$ac_ext <<_ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h. */
29647 $ac_includes_default
29648 typedef size_t ac__type_sizeof_;
29652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29659 rm -f conftest.$ac_objext
29660 if { (ac_try="$ac_compile"
29661 case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_compile") 2>conftest.er1
29668 grep -v '^ *+' conftest.er1 >conftest.err
29670 cat conftest.err >&5
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); } &&
29673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29674 { (case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_try") 2>&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; } &&
29683 { ac_try='test -s conftest.$ac_objext'
29684 { (case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_try") 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29695 cat >conftest.$ac_ext <<_ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 $ac_includes_default
29702 typedef size_t ac__type_sizeof_;
29706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29713 rm -f conftest.$ac_objext
29714 if { (ac_try="$ac_compile"
29715 case "(($ac_try" in
29716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717 *) ac_try_echo=$ac_try;;
29719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29720 (eval "$ac_compile") 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
29727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29728 { (case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_try") 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; } &&
29737 { ac_try='test -s conftest.$ac_objext'
29738 { (case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_try") 2>&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29747 ac_hi=$ac_mid; break
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29752 ac_lo=`expr $ac_mid + 1`
29753 if test $ac_lo -le $ac_mid; then
29757 ac_mid=`expr 2 '*' $ac_mid + 1`
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29766 cat >conftest.$ac_ext <<_ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h. */
29772 $ac_includes_default
29773 typedef size_t ac__type_sizeof_;
29777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29784 rm -f conftest.$ac_objext
29785 if { (ac_try="$ac_compile"
29786 case "(($ac_try" in
29787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788 *) ac_try_echo=$ac_try;;
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791 (eval "$ac_compile") 2>conftest.er1
29793 grep -v '^ *+' conftest.er1 >conftest.err
29795 cat conftest.err >&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); } &&
29798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29799 { (case "(($ac_try" in
29800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801 *) ac_try_echo=$ac_try;;
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804 (eval "$ac_try") 2>&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; } &&
29808 { ac_try='test -s conftest.$ac_objext'
29809 { (case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_try") 2>&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; }; then
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 $ac_includes_default
29827 typedef size_t ac__type_sizeof_;
29831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29838 rm -f conftest.$ac_objext
29839 if { (ac_try="$ac_compile"
29840 case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845 (eval "$ac_compile") 2>conftest.er1
29847 grep -v '^ *+' conftest.er1 >conftest.err
29849 cat conftest.err >&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } &&
29852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29853 { (case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_try") 2>&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; } &&
29862 { ac_try='test -s conftest.$ac_objext'
29863 { (case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_try") 2>&5
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; }; then
29872 ac_lo=$ac_mid; break
29874 echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29877 ac_hi=`expr '(' $ac_mid ')' - 1`
29878 if test $ac_mid -le $ac_hi; then
29882 ac_mid=`expr 2 '*' $ac_mid`
29885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888 echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898 # Binary search between lo and hi bounds.
29899 while test "x$ac_lo" != "x$ac_hi"; do
29900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29901 cat >conftest.$ac_ext <<_ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29907 $ac_includes_default
29908 typedef size_t ac__type_sizeof_;
29912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29919 rm -f conftest.$ac_objext
29920 if { (ac_try="$ac_compile"
29921 case "(($ac_try" in
29922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29923 *) ac_try_echo=$ac_try;;
29925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29926 (eval "$ac_compile") 2>conftest.er1
29928 grep -v '^ *+' conftest.er1 >conftest.err
29930 cat conftest.err >&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); } &&
29933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29934 { (case "(($ac_try" in
29935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29936 *) ac_try_echo=$ac_try;;
29938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29939 (eval "$ac_try") 2>&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; } &&
29943 { ac_try='test -s conftest.$ac_objext'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; }; then
29955 echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29958 ac_lo=`expr '(' $ac_mid ')' + 1`
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29964 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29966 See \`config.log' for more details." >&5
29967 echo "$as_me: error: cannot compute sizeof (size_t)
29968 See \`config.log' for more details." >&2;}
29969 { (exit 77); exit 77; }; } ;;
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29978 $ac_includes_default
29979 typedef size_t ac__type_sizeof_;
29980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29983 #include <stdlib.h>
29988 FILE *f = fopen ("conftest.val", "w");
29991 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29993 long int i = longval ();
29994 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29996 fprintf (f, "%ld\n", i);
30000 unsigned long int i = ulongval ();
30001 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30003 fprintf (f, "%lu\n", i);
30005 return ferror (f) || fclose (f) != 0;
30011 rm -f conftest$ac_exeext
30012 if { (ac_try="$ac_link"
30013 case "(($ac_try" in
30014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30015 *) ac_try_echo=$ac_try;;
30017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30018 (eval "$ac_link") 2>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30022 { (case "(($ac_try" in
30023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024 *) ac_try_echo=$ac_try;;
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027 (eval "$ac_try") 2>&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); }; }; then
30031 ac_cv_sizeof_size_t=`cat conftest.val`
30033 echo "$as_me: program exited with status $ac_status" >&5
30034 echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30037 ( exit $ac_status )
30038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
30039 See \`config.log' for more details." >&5
30040 echo "$as_me: error: cannot compute sizeof (size_t)
30041 See \`config.log' for more details." >&2;}
30042 { (exit 77); exit 77; }; }
30044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30048 ac_cv_sizeof_size_t=0
30051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30052 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
30053 cat >>confdefs.h <<_ACEOF
30054 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30058 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30059 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30060 if test "${ac_cv_type_socklen_t+set}" = set; then
30061 echo $ECHO_N "(cached) $ECHO_C" >&6
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30069 $ac_includes_default
30070 typedef socklen_t ac__type_new_;
30074 if ((ac__type_new_ *) 0)
30076 if (sizeof (ac__type_new_))
30082 rm -f conftest.$ac_objext
30083 if { (ac_try="$ac_compile"
30084 case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_compile") 2>conftest.er1
30091 grep -v '^ *+' conftest.er1 >conftest.err
30093 cat conftest.err >&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } &&
30096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30097 { (case "(($ac_try" in
30098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099 *) ac_try_echo=$ac_try;;
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102 (eval "$ac_try") 2>&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; } &&
30106 { ac_try='test -s conftest.$ac_objext'
30107 { (case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_try") 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; }; then
30116 ac_cv_type_socklen_t=yes
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30121 ac_cv_type_socklen_t=no
30124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30126 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30127 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30129 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30130 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30131 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30134 if test "$ac_cv_type_socklen_t" = yes; then
30135 # The cast to long int works around a bug in the HP C Compiler
30136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30138 # This bug is HP SR number 8606223364.
30139 if test "$cross_compiling" = yes; then
30140 # Depending upon the size, compute the lo and hi bounds.
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 $ac_includes_default
30148 typedef socklen_t ac__type_sizeof_;
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_compile") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } &&
30173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30174 { (case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_try") 2>&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
30184 { (case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_try") 2>&5
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; }; then
30195 cat >conftest.$ac_ext <<_ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30201 $ac_includes_default
30202 typedef socklen_t ac__type_sizeof_;
30206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30213 rm -f conftest.$ac_objext
30214 if { (ac_try="$ac_compile"
30215 case "(($ac_try" in
30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217 *) ac_try_echo=$ac_try;;
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220 (eval "$ac_compile") 2>conftest.er1
30222 grep -v '^ *+' conftest.er1 >conftest.err
30224 cat conftest.err >&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } &&
30227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30228 { (case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_try") 2>&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; } &&
30237 { ac_try='test -s conftest.$ac_objext'
30238 { (case "(($ac_try" in
30239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30240 *) ac_try_echo=$ac_try;;
30242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30243 (eval "$ac_try") 2>&5
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; }; then
30247 ac_hi=$ac_mid; break
30249 echo "$as_me: failed program was:" >&5
30250 sed 's/^/| /' conftest.$ac_ext >&5
30252 ac_lo=`expr $ac_mid + 1`
30253 if test $ac_lo -le $ac_mid; then
30257 ac_mid=`expr 2 '*' $ac_mid + 1`
30260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 cat >conftest.$ac_ext <<_ACEOF
30269 cat confdefs.h >>conftest.$ac_ext
30270 cat >>conftest.$ac_ext <<_ACEOF
30271 /* end confdefs.h. */
30272 $ac_includes_default
30273 typedef socklen_t ac__type_sizeof_;
30277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30284 rm -f conftest.$ac_objext
30285 if { (ac_try="$ac_compile"
30286 case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_compile") 2>conftest.er1
30293 grep -v '^ *+' conftest.er1 >conftest.err
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } &&
30298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30299 { (case "(($ac_try" in
30300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301 *) ac_try_echo=$ac_try;;
30303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304 (eval "$ac_try") 2>&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; } &&
30308 { ac_try='test -s conftest.$ac_objext'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 $ac_includes_default
30327 typedef socklen_t ac__type_sizeof_;
30331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
30347 grep -v '^ *+' conftest.er1 >conftest.err
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_lo=$ac_mid; break
30374 echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30377 ac_hi=`expr '(' $ac_mid ')' - 1`
30378 if test $ac_mid -le $ac_hi; then
30382 ac_mid=`expr 2 '*' $ac_mid`
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30388 echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398 # Binary search between lo and hi bounds.
30399 while test "x$ac_lo" != "x$ac_hi"; do
30400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30401 cat >conftest.$ac_ext <<_ACEOF
30404 cat confdefs.h >>conftest.$ac_ext
30405 cat >>conftest.$ac_ext <<_ACEOF
30406 /* end confdefs.h. */
30407 $ac_includes_default
30408 typedef socklen_t ac__type_sizeof_;
30412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30419 rm -f conftest.$ac_objext
30420 if { (ac_try="$ac_compile"
30421 case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_compile") 2>conftest.er1
30428 grep -v '^ *+' conftest.er1 >conftest.err
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30434 { (case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_try") 2>&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest.$ac_objext'
30444 { (case "(($ac_try" in
30445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446 *) ac_try_echo=$ac_try;;
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449 (eval "$ac_try") 2>&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; }; then
30455 echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30458 ac_lo=`expr '(' $ac_mid ')' + 1`
30461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30464 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30466 See \`config.log' for more details." >&5
30467 echo "$as_me: error: cannot compute sizeof (socklen_t)
30468 See \`config.log' for more details." >&2;}
30469 { (exit 77); exit 77; }; } ;;
30472 cat >conftest.$ac_ext <<_ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30478 $ac_includes_default
30479 typedef socklen_t ac__type_sizeof_;
30480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30483 #include <stdlib.h>
30488 FILE *f = fopen ("conftest.val", "w");
30491 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30493 long int i = longval ();
30494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30496 fprintf (f, "%ld\n", i);
30500 unsigned long int i = ulongval ();
30501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30503 fprintf (f, "%lu\n", i);
30505 return ferror (f) || fclose (f) != 0;
30511 rm -f conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_link") 2>&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30522 { (case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_try") 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 ac_cv_sizeof_socklen_t=`cat conftest.val`
30533 echo "$as_me: program exited with status $ac_status" >&5
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 ( exit $ac_status )
30538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30539 See \`config.log' for more details." >&5
30540 echo "$as_me: error: cannot compute sizeof (socklen_t)
30541 See \`config.log' for more details." >&2;}
30542 { (exit 77); exit 77; }; }
30544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30548 ac_cv_sizeof_socklen_t=0
30551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30552 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30553 cat >>confdefs.h <<_ACEOF
30554 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30561 cat >>confdefs.h <<_ACEOF
30562 #define NFS_STATEDIR "$statedir"
30566 if test "x$cross_compiling" = "xno"; then
30567 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30568 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30569 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30570 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30572 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30573 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30574 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30575 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30590 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
30595 my_am_cflags="-Wall $ARCHFLAGS -pipe"
30597 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
30599 AM_CFLAGS="$my_am_cflags"
30602 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30603 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30606 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
30608 cat >confcache <<\_ACEOF
30609 # This file is a shell script that caches the results of configure
30610 # tests run on this system so they can be shared between configure
30611 # scripts and configure runs, see configure's option --config-cache.
30612 # It is not useful on other systems. If it contains results you don't
30613 # want to keep, you may remove or edit it.
30615 # config.status only pays attention to the cache file if you give it
30616 # the --recheck option to rerun configure.
30618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30620 # following values.
30624 # The following way of writing the cache mishandles newlines in values,
30625 # but we know of no workaround that is simple, portable, and efficient.
30626 # So, we kill variables containing newlines.
30627 # Ultrix sh set writes to stderr and can't be redirected directly,
30628 # and sets the high bit in the cache file unless we assign to the vars.
30630 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30631 eval ac_val=\$$ac_var
30635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30639 _ | IFS | as_nl) ;; #(
30640 *) $as_unset $ac_var ;;
30646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30647 *${as_nl}ac_space=\ *)
30648 # `set' does not quote correctly, so add quotes (double-quote
30649 # substitution turns \\\\ into \\, and sed turns \\ into \).
30652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30655 # `set' quotes correctly as required by POSIX, so do not add quotes.
30656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30670 if test -w "$cache_file"; then
30671 test "x$cache_file" != "x/dev/null" &&
30672 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30673 echo "$as_me: updating cache $cache_file" >&6;}
30674 cat confcache >$cache_file
30676 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30677 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30683 # Let make expand exec_prefix.
30684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30686 DEFS=-DHAVE_CONFIG_H
30690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30691 # 1. Remove the extension, and $U if already installed.
30692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30693 ac_i=`echo "$ac_i" | sed "$ac_script"`
30694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30695 # will be set to the directory where LIBOBJS objects are built.
30696 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30697 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30699 LIBOBJS=$ac_libobjs
30701 LTLIBOBJS=$ac_ltlibobjs
30704 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30705 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30706 Usually this means the macro was only invoked conditionally." >&5
30707 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30708 Usually this means the macro was only invoked conditionally." >&2;}
30709 { (exit 1); exit 1; }; }
30711 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30712 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30713 Usually this means the macro was only invoked conditionally." >&5
30714 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30715 Usually this means the macro was only invoked conditionally." >&2;}
30716 { (exit 1); exit 1; }; }
30718 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30719 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30720 Usually this means the macro was only invoked conditionally." >&5
30721 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30722 Usually this means the macro was only invoked conditionally." >&2;}
30723 { (exit 1); exit 1; }; }
30725 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30726 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30727 Usually this means the macro was only invoked conditionally." >&5
30728 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30729 Usually this means the macro was only invoked conditionally." >&2;}
30730 { (exit 1); exit 1; }; }
30732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30733 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30734 Usually this means the macro was only invoked conditionally." >&5
30735 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30736 Usually this means the macro was only invoked conditionally." >&2;}
30737 { (exit 1); exit 1; }; }
30739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30741 Usually this means the macro was only invoked conditionally." >&5
30742 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30743 Usually this means the macro was only invoked conditionally." >&2;}
30744 { (exit 1); exit 1; }; }
30746 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30748 Usually this means the macro was only invoked conditionally." >&5
30749 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30750 Usually this means the macro was only invoked conditionally." >&2;}
30751 { (exit 1); exit 1; }; }
30753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30754 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30755 Usually this means the macro was only invoked conditionally." >&5
30756 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30757 Usually this means the macro was only invoked conditionally." >&2;}
30758 { (exit 1); exit 1; }; }
30761 : ${CONFIG_STATUS=./config.status}
30762 ac_clean_files_save=$ac_clean_files
30763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30766 cat >$CONFIG_STATUS <<_ACEOF
30768 # Generated by $as_me.
30769 # Run this file to recreate the current configuration.
30770 # Compiler output produced by configure, useful for debugging
30771 # configure, is in config.log if it exists.
30774 ac_cs_recheck=false
30776 SHELL=\${CONFIG_SHELL-$SHELL}
30779 cat >>$CONFIG_STATUS <<\_ACEOF
30780 ## --------------------- ##
30781 ## M4sh Initialization. ##
30782 ## --------------------- ##
30784 # Be Bourne compatible
30785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30788 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30789 # is contrary to our usage. Disable this feature.
30790 alias -g '${1+"$@"}'='"$@"'
30791 setopt NO_GLOB_SUBST
30793 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30795 BIN_SH=xpg4; export BIN_SH # for Tru64
30796 DUALCASE=1; export DUALCASE # for MKS sh
30800 # Avoid depending upon Character Ranges.
30801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30804 as_cr_digits='0123456789'
30805 as_cr_alnum=$as_cr_Letters$as_cr_digits
30807 # The user is always right.
30808 if test "${PATH_SEPARATOR+set}" != set; then
30809 echo "#! /bin/sh" >conf$$.sh
30810 echo "exit 0" >>conf$$.sh
30812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30820 # Support unset when possible.
30821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30829 # We need space, tab and new line, in precisely that order. Quoting is
30830 # there to prevent editors from complaining about space-tab.
30831 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30832 # splitting by setting IFS to empty value.)
30837 # Find who we are. Look in the path if we contain no directory separator.
30839 *[\\/]* ) as_myself=$0 ;;
30840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841 for as_dir in $PATH
30844 test -z "$as_dir" && as_dir=.
30845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30851 # We did not find ourselves, most probably we were run as `sh COMMAND'
30852 # in which case we are not to be found in the path.
30853 if test "x$as_myself" = x; then
30856 if test ! -f "$as_myself"; then
30857 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30858 { (exit 1); exit 1; }
30861 # Work around bugs in pre-3.0 UWIN ksh.
30862 for as_var in ENV MAIL MAILPATH
30863 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30871 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30872 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30873 LC_TELEPHONE LC_TIME
30875 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30876 eval $as_var=C; export $as_var
30878 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30882 # Required to use basename.
30883 if expr a : '\(a\)' >/dev/null 2>&1 &&
30884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30891 as_basename=basename
30897 # Name of the executable.
30898 as_me=`$as_basename -- "$0" ||
30899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30900 X"$0" : 'X\(//\)$' \| \
30901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30903 sed '/^.*\/\([^/][^/]*\)\/*$/{
30922 as_lineno_1=$LINENO
30923 as_lineno_2=$LINENO
30924 test "x$as_lineno_1" != "x$as_lineno_2" &&
30925 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30927 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30928 # uniformly replaced by the line number. The first 'sed' inserts a
30929 # line-number line after each line using $LINENO; the second 'sed'
30930 # does the real work. The second script uses 'N' to pair each
30931 # line-number line with the line containing $LINENO, and appends
30932 # trailing '-' during substitution so that $LINENO is not a special
30933 # case at line end.
30934 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30935 # scripts with optimization help from Paolo Bonzini. Blame Lee
30936 # E. McMahon (1931-1989) for sed's syntax. :-)
30948 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30951 ' >$as_me.lineno &&
30952 chmod +x "$as_me.lineno" ||
30953 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30954 { (exit 1); exit 1; }; }
30956 # Don't try to exec as it changes $[0], causing all sort of problems
30957 # (the dirname of $[0] is not the place where we might find the
30958 # original and so on. Autoconf is especially sensitive to this).
30959 . "./$as_me.lineno"
30960 # Exit status is that of the last command.
30965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30971 ECHO_C= ECHO_N= ECHO_T=
30972 case `echo -n x` in
30974 case `echo 'x\c'` in
30975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30982 if expr a : '\(a\)' >/dev/null 2>&1 &&
30983 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30989 rm -f conf$$ conf$$.exe conf$$.file
30990 if test -d conf$$.dir; then
30991 rm -f conf$$.dir/conf$$.file
30997 if ln -s conf$$.file conf$$ 2>/dev/null; then
30999 # ... but there are two gotchas:
31000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31002 # In both cases, we have to default to `cp -p'.
31003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31005 elif ln conf$$.file conf$$ 2>/dev/null; then
31010 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31011 rmdir conf$$.dir 2>/dev/null
31013 if mkdir -p . 2>/dev/null; then
31016 test -d ./-p && rmdir ./-p
31020 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
31021 # systems may use methods other than mode bits to determine executability.
31022 cat >conf$$.file <<_ASEOF
31026 chmod +x conf$$.file
31027 if test -x conf$$.file >/dev/null 2>&1; then
31028 as_executable_p="test -x"
31034 # Sed expression to map a string onto a valid CPP name.
31035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31037 # Sed expression to map a string onto a valid variable name.
31038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31043 # Save the log message, to keep $[0] and so on meaningful, and to
31044 # report actual input values of CONFIG_FILES etc. instead of their
31045 # values after options handling.
31047 This file was extended by linux nfs-utils $as_me 1.0.10, which was
31048 generated by GNU Autoconf 2.60. Invocation command line was
31050 CONFIG_FILES = $CONFIG_FILES
31051 CONFIG_HEADERS = $CONFIG_HEADERS
31052 CONFIG_LINKS = $CONFIG_LINKS
31053 CONFIG_COMMANDS = $CONFIG_COMMANDS
31056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31061 cat >>$CONFIG_STATUS <<_ACEOF
31062 # Files that config.status was made for.
31063 config_files="$ac_config_files"
31064 config_headers="$ac_config_headers"
31065 config_commands="$ac_config_commands"
31069 cat >>$CONFIG_STATUS <<\_ACEOF
31071 \`$as_me' instantiates files from templates according to the
31072 current configuration.
31074 Usage: $0 [OPTIONS] [FILE]...
31076 -h, --help print this help, then exit
31077 -V, --version print version number, then exit
31078 -q, --quiet do not print progress messages
31079 -d, --debug don't remove temporary files
31080 --recheck update $as_me by reconfiguring in the same conditions
31081 --file=FILE[:TEMPLATE]
31082 instantiate the configuration file FILE
31083 --header=FILE[:TEMPLATE]
31084 instantiate the configuration header FILE
31086 Configuration files:
31089 Configuration headers:
31092 Configuration commands:
31095 Report bugs to <bug-autoconf@gnu.org>."
31098 cat >>$CONFIG_STATUS <<_ACEOF
31100 linux nfs-utils config.status 1.0.10
31101 configured by $0, generated by GNU Autoconf 2.60,
31102 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31104 Copyright (C) 2006 Free Software Foundation, Inc.
31105 This config.status script is free software; the Free Software Foundation
31106 gives unlimited permission to copy, distribute and modify it."
31113 cat >>$CONFIG_STATUS <<\_ACEOF
31114 # If no file are specified by the user, then we need to provide default
31115 # value. By we need to know if files were specified by the user.
31121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31133 # Handling of the options.
31134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31137 echo "$ac_cs_version"; exit ;;
31138 --debug | --debu | --deb | --de | --d | -d )
31140 --file | --fil | --fi | --f )
31142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31143 ac_need_defaults=false;;
31144 --header | --heade | --head | --hea )
31146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31147 ac_need_defaults=false;;
31149 # Conflict between --help and --header
31150 { echo "$as_me: error: ambiguous option: $1
31151 Try \`$0 --help' for more information." >&2
31152 { (exit 1); exit 1; }; };;
31153 --help | --hel | -h )
31154 echo "$ac_cs_usage"; exit ;;
31155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31159 # This is an error.
31160 -*) { echo "$as_me: error: unrecognized option: $1
31161 Try \`$0 --help' for more information." >&2
31162 { (exit 1); exit 1; }; } ;;
31164 *) ac_config_targets="$ac_config_targets $1"
31165 ac_need_defaults=false ;;
31171 ac_configure_extra_args=
31173 if $ac_cs_silent; then
31175 ac_configure_extra_args="$ac_configure_extra_args --silent"
31179 cat >>$CONFIG_STATUS <<_ACEOF
31180 if \$ac_cs_recheck; then
31181 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31182 CONFIG_SHELL=$SHELL
31183 export CONFIG_SHELL
31184 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31193 ## Running $as_me. ##
31199 cat >>$CONFIG_STATUS <<_ACEOF
31203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31207 cat >>$CONFIG_STATUS <<\_ACEOF
31209 # Handling of arguments.
31210 for ac_config_target in $ac_config_targets
31212 case $ac_config_target in
31213 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31214 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31216 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31217 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31218 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31219 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31220 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31221 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31222 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31223 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31224 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31225 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31226 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31227 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
31228 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
31229 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31230 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31231 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31232 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31233 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31234 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31235 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31236 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31237 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
31238 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31239 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31240 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31241 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31242 "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
31243 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
31244 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31245 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31247 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31248 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31249 { (exit 1); exit 1; }; };;
31254 # If the user did not use the arguments to specify the items to instantiate,
31255 # then the envvar interface is used. Set only those that are not.
31256 # We use the long form for the default assignment because of an extremely
31257 # bizarre bug on SunOS 4.1.3.
31258 if $ac_need_defaults; then
31259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31264 # Have a temporary directory for convenience. Make it in the build tree
31265 # simply because there is no reason against having it here, and in addition,
31266 # creating and moving files from /tmp can sometimes cause problems.
31267 # Hook for its removal unless debugging.
31268 # Note that there is a small window in which the directory will not be cleaned:
31269 # after its creation but before its name has been assigned to `$tmp'.
31273 trap 'exit_status=$?
31274 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31276 trap '{ (exit 1); exit 1; }' 1 2 13 15
31278 # Create a (secure) tmp directory for tmp files.
31281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31282 test -n "$tmp" && test -d "$tmp"
31285 tmp=./conf$$-$RANDOM
31286 (umask 077 && mkdir "$tmp")
31289 echo "$me: cannot create a temporary directory in ." >&2
31290 { (exit 1); exit 1; }
31294 # Set up the sed scripts for CONFIG_FILES section.
31297 # No need to generate the scripts if there are no CONFIG_FILES.
31298 # This happens for instance when ./config.status config.h
31299 if test -n "$CONFIG_FILES"; then
31306 for ac_last_try in false false false false false :; do
31307 cat >conf$$subs.sed <<_ACEOF
31308 SHELL!$SHELL$ac_delim
31309 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31310 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31311 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31312 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31313 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31314 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31315 exec_prefix!$exec_prefix$ac_delim
31316 prefix!$prefix$ac_delim
31317 program_transform_name!$program_transform_name$ac_delim
31318 bindir!$bindir$ac_delim
31319 sbindir!$sbindir$ac_delim
31320 libexecdir!$libexecdir$ac_delim
31321 datarootdir!$datarootdir$ac_delim
31322 datadir!$datadir$ac_delim
31323 sysconfdir!$sysconfdir$ac_delim
31324 sharedstatedir!$sharedstatedir$ac_delim
31325 localstatedir!$localstatedir$ac_delim
31326 includedir!$includedir$ac_delim
31327 oldincludedir!$oldincludedir$ac_delim
31328 docdir!$docdir$ac_delim
31329 infodir!$infodir$ac_delim
31330 htmldir!$htmldir$ac_delim
31331 dvidir!$dvidir$ac_delim
31332 pdfdir!$pdfdir$ac_delim
31333 psdir!$psdir$ac_delim
31334 libdir!$libdir$ac_delim
31335 localedir!$localedir$ac_delim
31336 mandir!$mandir$ac_delim
31337 DEFS!$DEFS$ac_delim
31338 ECHO_C!$ECHO_C$ac_delim
31339 ECHO_N!$ECHO_N$ac_delim
31340 ECHO_T!$ECHO_T$ac_delim
31341 LIBS!$LIBS$ac_delim
31342 build_alias!$build_alias$ac_delim
31343 host_alias!$host_alias$ac_delim
31344 target_alias!$target_alias$ac_delim
31345 build!$build$ac_delim
31346 build_cpu!$build_cpu$ac_delim
31347 build_vendor!$build_vendor$ac_delim
31348 build_os!$build_os$ac_delim
31349 host!$host$ac_delim
31350 host_cpu!$host_cpu$ac_delim
31351 host_vendor!$host_vendor$ac_delim
31352 host_os!$host_os$ac_delim
31353 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31354 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31355 INSTALL_DATA!$INSTALL_DATA$ac_delim
31356 CYGPATH_W!$CYGPATH_W$ac_delim
31357 PACKAGE!$PACKAGE$ac_delim
31358 VERSION!$VERSION$ac_delim
31359 ACLOCAL!$ACLOCAL$ac_delim
31360 AUTOCONF!$AUTOCONF$ac_delim
31361 AUTOMAKE!$AUTOMAKE$ac_delim
31362 AUTOHEADER!$AUTOHEADER$ac_delim
31363 MAKEINFO!$MAKEINFO$ac_delim
31364 install_sh!$install_sh$ac_delim
31365 STRIP!$STRIP$ac_delim
31366 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31367 mkdir_p!$mkdir_p$ac_delim
31369 SET_MAKE!$SET_MAKE$ac_delim
31370 am__leading_dot!$am__leading_dot$ac_delim
31371 AMTAR!$AMTAR$ac_delim
31372 am__tar!$am__tar$ac_delim
31373 am__untar!$am__untar$ac_delim
31374 RELEASE!$RELEASE$ac_delim
31375 statedir!$statedir$ac_delim
31376 statduser!$statduser$ac_delim
31377 enable_nfsv3!$enable_nfsv3$ac_delim
31378 IDMAPD!$IDMAPD$ac_delim
31379 enable_nfsv4!$enable_nfsv4$ac_delim
31380 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31381 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31382 GSSD!$GSSD$ac_delim
31383 SVCGSSD!$SVCGSSD$ac_delim
31384 enable_gss!$enable_gss$ac_delim
31385 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31386 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31387 kprefix!$kprefix$ac_delim
31388 secure_statd!$secure_statd$ac_delim
31389 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
31390 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
31391 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31392 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31394 CFLAGS!$CFLAGS$ac_delim
31395 LDFLAGS!$LDFLAGS$ac_delim
31396 CPPFLAGS!$CPPFLAGS$ac_delim
31397 ac_ct_CC!$ac_ct_CC$ac_delim
31398 EXEEXT!$EXEEXT$ac_delim
31399 OBJEXT!$OBJEXT$ac_delim
31400 DEPDIR!$DEPDIR$ac_delim
31401 am__include!$am__include$ac_delim
31402 am__quote!$am__quote$ac_delim
31403 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31404 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31409 elif $ac_last_try; then
31410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31412 { (exit 1); exit 1; }; }
31414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31419 if test -n "$ac_eof"; then
31420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31421 ac_eof=`expr $ac_eof + 1`
31424 cat >>$CONFIG_STATUS <<_ACEOF
31425 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31430 s/^/s,@/; s/!/@,|#_!!_#|/
31433 s/'"$ac_delim"'$/,g/; t
31435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31436 ' >>$CONFIG_STATUS <conf$$subs.sed
31437 rm -f conf$$subs.sed
31438 cat >>$CONFIG_STATUS <<_ACEOF
31444 for ac_last_try in false false false false false :; do
31445 cat >conf$$subs.sed <<_ACEOF
31446 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31447 CCDEPMODE!$CCDEPMODE$ac_delim
31448 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31449 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31450 LIBWRAP!$LIBWRAP$ac_delim
31451 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31452 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31454 CXXFLAGS!$CXXFLAGS$ac_delim
31455 ac_ct_CXX!$ac_ct_CXX$ac_delim
31456 CXXDEPMODE!$CXXDEPMODE$ac_delim
31457 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31458 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31460 LN_S!$LN_S$ac_delim
31461 GREP!$GREP$ac_delim
31462 EGREP!$EGREP$ac_delim
31463 ECHO!$ECHO$ac_delim
31465 RANLIB!$RANLIB$ac_delim
31466 CXXCPP!$CXXCPP$ac_delim
31468 FFLAGS!$FFLAGS$ac_delim
31469 ac_ct_F77!$ac_ct_F77$ac_delim
31470 LIBTOOL!$LIBTOOL$ac_delim
31471 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31473 PKG_CONFIG!$PKG_CONFIG$ac_delim
31474 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31475 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31476 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
31477 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
31478 LIBSOCKET!$LIBSOCKET$ac_delim
31479 LIBNSL!$LIBNSL$ac_delim
31480 LIBCRYPT!$LIBCRYPT$ac_delim
31481 LIBBSD!$LIBBSD$ac_delim
31482 KRBDIR!$KRBDIR$ac_delim
31483 KRBLIBS!$KRBLIBS$ac_delim
31484 KRBCFLAGS!$KRBCFLAGS$ac_delim
31485 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31486 K5VERS!$K5VERS$ac_delim
31487 ALLOCA!$ALLOCA$ac_delim
31488 LIBOBJS!$LIBOBJS$ac_delim
31489 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31490 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31491 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31492 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31493 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31494 AM_CFLAGS!$AM_CFLAGS$ac_delim
31495 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31496 LTLIBOBJS!$LTLIBOBJS$ac_delim
31499 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
31501 elif $ac_last_try; then
31502 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31503 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31504 { (exit 1); exit 1; }; }
31506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31510 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31511 if test -n "$ac_eof"; then
31512 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31513 ac_eof=`expr $ac_eof + 1`
31516 cat >>$CONFIG_STATUS <<_ACEOF
31517 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31521 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31522 s/^/s,@/; s/!/@,|#_!!_#|/
31525 s/'"$ac_delim"'$/,g/; t
31527 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31528 ' >>$CONFIG_STATUS <conf$$subs.sed
31529 rm -f conf$$subs.sed
31530 cat >>$CONFIG_STATUS <<_ACEOF
31537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31539 # trailing colons and then remove the whole line if VPATH becomes empty
31540 # (actually we leave an empty line to preserve line numbers).
31541 if test "x$srcdir" = x.; then
31542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31543 s/:*\$(srcdir):*/:/
31544 s/:*\${srcdir}:*/:/
31546 s/^\([^=]*=[ ]*\):*/\1/
31552 cat >>$CONFIG_STATUS <<\_ACEOF
31553 fi # test -n "$CONFIG_FILES"
31556 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31559 :[FHLC]) ac_mode=$ac_tag; continue;;
31561 case $ac_mode$ac_tag in
31563 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31564 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31565 { (exit 1); exit 1; }; };;
31566 :[FH]-) ac_tag=-:-;;
31567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31584 -) ac_f="$tmp/stdin";;
31585 *) # Look for the file first in the build tree, then in the source tree
31586 # (if the path is not absolute). The absolute path cannot be DOS-style,
31587 # because $ac_f cannot contain `:'.
31591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31593 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31594 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31595 { (exit 1); exit 1; }; };;
31597 ac_file_inputs="$ac_file_inputs $ac_f"
31600 # Let's still pretend it is `configure' which instantiates (i.e., don't
31601 # use $as_me), people would be surprised to read:
31602 # /* config.h. Generated by config.status. */
31603 configure_input="Generated from "`IFS=:
31604 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31605 if test x"$ac_file" != x-; then
31606 configure_input="$ac_file. $configure_input"
31607 { echo "$as_me:$LINENO: creating $ac_file" >&5
31608 echo "$as_me: creating $ac_file" >&6;}
31612 *:-:* | *:-) cat >"$tmp/stdin";;
31617 ac_dir=`$as_dirname -- "$ac_file" ||
31618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31619 X"$ac_file" : 'X\(//\)[^/]' \| \
31620 X"$ac_file" : 'X\(//\)$' \| \
31621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31627 /^X\(\/\/\)[^/].*/{
31642 -*) as_dir=./$as_dir;;
31644 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31648 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31649 *) as_qdir=$as_dir;;
31651 as_dirs="'$as_qdir' $as_dirs"
31652 as_dir=`$as_dirname -- "$as_dir" ||
31653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31654 X"$as_dir" : 'X\(//\)[^/]' \| \
31655 X"$as_dir" : 'X\(//\)$' \| \
31656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31662 /^X\(\/\/\)[^/].*/{
31675 test -d "$as_dir" && break
31677 test -z "$as_dirs" || eval "mkdir $as_dirs"
31678 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31680 { (exit 1); exit 1; }; }; }
31684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31687 # A ".." for each directory in $ac_dir_suffix.
31688 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31689 case $ac_top_builddir_sub in
31690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31694 ac_abs_top_builddir=$ac_pwd
31695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31696 # for backward compatibility:
31697 ac_top_builddir=$ac_top_build_prefix
31700 .) # We are building in place.
31702 ac_top_srcdir=$ac_top_builddir_sub
31703 ac_abs_top_srcdir=$ac_pwd ;;
31704 [\\/]* | ?:[\\/]* ) # Absolute name.
31705 ac_srcdir=$srcdir$ac_dir_suffix;
31706 ac_top_srcdir=$srcdir
31707 ac_abs_top_srcdir=$srcdir ;;
31708 *) # Relative name.
31709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31710 ac_top_srcdir=$ac_top_build_prefix$srcdir
31711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31724 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31728 cat >>$CONFIG_STATUS <<\_ACEOF
31729 # If the template does not know about datarootdir, expand it.
31730 # FIXME: This hack should be removed a few years after 2.60.
31731 ac_datarootdir_hack=; ac_datarootdir_seen=
31733 case `sed -n '/datarootdir/ {
31742 ' $ac_file_inputs` in
31743 *datarootdir*) ac_datarootdir_seen=yes;;
31744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31745 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31748 cat >>$CONFIG_STATUS <<_ACEOF
31749 ac_datarootdir_hack='
31750 s&@datadir@&$datadir&g
31751 s&@docdir@&$docdir&g
31752 s&@infodir@&$infodir&g
31753 s&@localedir@&$localedir&g
31754 s&@mandir@&$mandir&g
31755 s&\\\${datarootdir}&$datarootdir&g' ;;
31759 # Neutralize VPATH when `$srcdir' = `.'.
31760 # Shell code in configure.ac might set extrasub.
31761 # FIXME: do we really want to maintain this feature?
31762 cat >>$CONFIG_STATUS <<_ACEOF
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31769 s&@configure_input@&$configure_input&;t t
31770 s&@top_builddir@&$ac_top_builddir_sub&;t t
31771 s&@srcdir@&$ac_srcdir&;t t
31772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31773 s&@top_srcdir@&$ac_top_srcdir&;t t
31774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31775 s&@builddir@&$ac_builddir&;t t
31776 s&@abs_builddir@&$ac_abs_builddir&;t t
31777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31778 s&@INSTALL@&$ac_INSTALL&;t t
31779 $ac_datarootdir_hack
31780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31785 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31786 which seems to be undefined. Please make sure it is defined." >&5
31787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31788 which seems to be undefined. Please make sure it is defined." >&2;}
31792 -) cat "$tmp/out"; rm -f "$tmp/out";;
31793 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31802 # Transform confdefs.h into a sed script `conftest.defines', that
31803 # substitutes the proper values into config.h.in to produce config.h.
31804 rm -f conftest.defines conftest.tail
31805 # First, append a space to every undef/define line, to ease matching.
31806 echo 's/$/ /' >conftest.defines
31807 # Then, protect against being on the right side of a sed subst, or in
31808 # an unquoted here document, in config.status. If some macros were
31809 # called several times there might be several #defines for the same
31810 # symbol, which is useless. But do not sort them, since the last
31811 # AC_DEFINE must be honored.
31812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31815 # PARAMS is the parameter list in the macro definition--in most cases, it's
31816 # just an empty string.
31817 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31818 ac_dB='\\)[ (].*,\\1define\\2'
31826 s/^[ ]*#[ ]*define[ ][ ]*//
31831 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31832 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31833 ' >>conftest.defines
31835 # Remove the space that was appended to ease matching.
31836 # Then replace #undef with comments. This is necessary, for
31837 # example, in the case of _POSIX_SOURCE, which is predefined and required
31838 # on some systems where configure will not decide to define it.
31839 # (The regexp can be short, since the line contains either #define or #undef.)
31841 s,^[ #]*u.*,/* & */,' >>conftest.defines
31843 # Break up conftest.defines:
31844 ac_max_sed_lines=50
31846 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31847 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31848 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31850 ac_in='$ac_file_inputs'
31851 ac_out='"$tmp/out1"'
31852 ac_nxt='"$tmp/out2"'
31856 # Write a here document:
31857 cat >>$CONFIG_STATUS <<_ACEOF
31858 # First, check the format of the line:
31859 cat >"\$tmp/defines.sed" <<\\CEOF
31860 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31861 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31865 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31867 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31868 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31869 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31870 grep . conftest.tail >/dev/null || break
31871 rm -f conftest.defines
31872 mv conftest.tail conftest.defines
31874 rm -f conftest.defines conftest.tail
31876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31878 if test x"$ac_file" != x-; then
31879 echo "/* $configure_input */" >"$tmp/config.h"
31880 cat "$ac_result" >>"$tmp/config.h"
31881 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31883 echo "$as_me: $ac_file is unchanged" >&6;}
31886 mv "$tmp/config.h" $ac_file
31889 echo "/* $configure_input */"
31893 # Compute $ac_file's index in $config_headers.
31895 for _am_header in $config_headers :; do
31896 case $_am_header in
31897 $ac_file | $ac_file:* )
31900 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31903 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31904 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31905 X$ac_file : 'X\(//\)[^/]' \| \
31906 X$ac_file : 'X\(//\)$' \| \
31907 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31913 /^X\(\/\/\)[^/].*/{
31925 s/.*/./; q'`/stamp-h$_am_stamp_count
31928 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31929 echo "$as_me: executing $ac_file commands" >&6;}
31934 case $ac_file$ac_mode in
31935 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31936 # Strip MF so we end up with the name of the file.
31937 mf=`echo "$mf" | sed -e 's/:.*$//'`
31938 # Check whether this is an Automake generated Makefile or not.
31939 # We used to match only the files named `Makefile.in', but
31940 # some people rename them; so instead we look at the file content.
31941 # Grep'ing the first line is not enough: some people post-process
31942 # each Makefile.in and add a new line on top of each file to say so.
31943 # So let's grep whole file.
31944 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31945 dirpart=`$as_dirname -- "$mf" ||
31946 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31947 X"$mf" : 'X\(//\)[^/]' \| \
31948 X"$mf" : 'X\(//\)$' \| \
31949 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31955 /^X\(\/\/\)[^/].*/{
31971 # Extract the definition of DEPDIR, am__include, and am__quote
31972 # from the Makefile without running `make'.
31973 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31974 test -z "$DEPDIR" && continue
31975 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31976 test -z "am__include" && continue
31977 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31978 # When using ansi2knr, U may be empty or an underscore; expand it
31979 U=`sed -n 's/^U = //p' < "$mf"`
31980 # Find all dependency output files, they are included files with
31981 # $(DEPDIR) in their names. We invoke sed twice because it is the
31982 # simplest approach to changing $(DEPDIR) to its actual value in the
31984 for file in `sed -n "
31985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31987 # Make sure the directory exists.
31988 test -f "$dirpart/$file" && continue
31989 fdir=`$as_dirname -- "$file" ||
31990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31991 X"$file" : 'X\(//\)[^/]' \| \
31992 X"$file" : 'X\(//\)$' \| \
31993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31999 /^X\(\/\/\)[^/].*/{
32012 { as_dir=$dirpart/$fdir
32014 -*) as_dir=./$as_dir;;
32016 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32020 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32021 *) as_qdir=$as_dir;;
32023 as_dirs="'$as_qdir' $as_dirs"
32024 as_dir=`$as_dirname -- "$as_dir" ||
32025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32026 X"$as_dir" : 'X\(//\)[^/]' \| \
32027 X"$as_dir" : 'X\(//\)$' \| \
32028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32034 /^X\(\/\/\)[^/].*/{
32047 test -d "$as_dir" && break
32049 test -z "$as_dirs" || eval "mkdir $as_dirs"
32050 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32052 { (exit 1); exit 1; }; }; }
32053 # echo "creating $dirpart/$file"
32054 echo '# dummy' > "$dirpart/$file"
32063 { (exit 0); exit 0; }
32065 chmod +x $CONFIG_STATUS
32066 ac_clean_files=$ac_clean_files_save
32069 # configure is writing to config.log, and then calls config.status.
32070 # config.status does its own redirection, appending to config.log.
32071 # Unfortunately, on DOS this fails, as config.log is still kept open
32072 # by configure, so config.status won't be able to write to it; its
32073 # output is simply discarded. So we exec the FD to /dev/null,
32074 # effectively closing config.log, so it can be properly (re)opened and
32075 # appended to by config.status. When coming back to configure, we
32076 # need to make the FD available again.
32077 if test "$no_create" != yes; then
32079 ac_config_status_args=
32080 test "$silent" = yes &&
32081 ac_config_status_args="$ac_config_status_args --quiet"
32083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32086 # would make configure fail if this is the last instruction.
32087 $ac_cs_success || { (exit 1); exit 1; }