2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59e for linux nfs-utils 1.0.9-pre1.
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 which exist, to save several forks.
236 if test -f "$as_shell" &&
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.9-pre1'
717 PACKAGE_STRING='linux nfs-utils 1.0.9-pre1'
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
907 ac_precious_vars='build_alias
928 # Initialize some variables set by options.
930 ac_init_version=false
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
940 program_transform_name=s,x,x,
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
980 eval $ac_prev=\$ac_option
986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1016 -datadir | --datadir | --datadi | --datad)
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1028 -disable-* | --disable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1035 eval enable_$ac_feature=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054 eval enable_$ac_feature=\$ac_optarg ;;
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 htmldir=$ac_optarg ;;
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1099 -libdir | --libdir | --libdi | --libd)
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1190 -psdir | --psdir | --psdi | --psd | --ps)
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 sbindir=$ac_optarg ;;
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 sharedstatedir=$ac_optarg ;;
1216 -site | --site | --sit)
1218 -site=* | --site=* | --sit=*)
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1245 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid package name: $ac_package" >&2
1249 { (exit 1); exit 1; }; }
1250 ac_package=`echo $ac_package| sed 's/-/_/g'`
1251 eval with_$ac_package=\$ac_optarg ;;
1253 -without-* | --without-*)
1254 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid package name: $ac_package" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_package=`echo $ac_package | sed 's/-/_/g'`
1260 eval with_$ac_package=no ;;
1263 # Obsolete; use --with-x.
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) { echo "$as_me: error: unrecognized option: $ac_option
1281 Try \`$0 --help' for more information." >&2
1282 { (exit 1); exit 1; }; }
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290 { (exit 1); exit 1; }; }
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 { echo "$as_me: error: missing argument to $ac_option" >&2
1308 { (exit 1); exit 1; }; }
1311 # Be sure to have absolute directory names.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323 { (exit 1); exit 1; }; }
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1331 target=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347 test "$silent" = yes && exec 6>/dev/null
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 { echo "$as_me: error: Working directory cannot be determined" >&2
1354 { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 { echo "$as_me: error: pwd does not report name of working directory" >&2
1357 { (exit 1); exit 1; }; }
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$0" ||
1365 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$0" : 'X\(//\)[^/]' \| \
1367 X"$0" : 'X\(//\)$' \| \
1368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397 { (exit 1); exit 1; }; }
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402 { (exit 1); exit 1; }; }
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1428 \`configure' configures linux nfs-utils 1.0.9-pre1 to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1486 --program-prefix=PREFIX prepend PREFIX to installed program names
1487 --program-suffix=SUFFIX append SUFFIX to installed program names
1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of linux nfs-utils 1.0.9-pre1:";;
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-nfsv3 enable support for NFSv3 [default=yes]
1506 --enable-nfsv4 enable support for NFSv4 [default=yes]
1507 --enable-gss enable support for rpcsec_gss [default=yes]
1508 --enable-kprefix install progs as rpc.knfsd etc
1509 --enable-secure-statd Only lockd can use statd (security)
1510 --enable-rquotad enable rquotad [default=yes]
1511 --enable-mount Create mount.nfs and don't use the util-linux
1512 mount(8) functionality. [default=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-release=XXX set release to XXX [1]
1525 --with-statedir=/foo use state dir /foo /var/lib/nfs
1526 --with-statduser=rpcuser
1527 statd to run under [rpcuser or nobody]
1528 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1529 (optionally in PATH)
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1533 --with-tags[=TAGS] include additional configurations [automatic]
1534 --with-krb5=DIR use Kerberos v5 installation in DIR
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1546 CXXCPP C++ preprocessor
1547 F77 Fortran 77 compiler command
1548 FFLAGS Fortran 77 compiler flags
1549 PKG_CONFIG path to pkg-config utility
1551 C compiler flags for RPCSECGSS, overriding pkg-config
1553 linker flags for RPCSECGSS, overriding pkg-config
1555 C compiler flags for GSSAPI, overriding pkg-config
1556 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1561 Report bugs to <nfs@lists.sf.net>.
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" || continue
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1589 .) # We are building in place.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1613 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1622 linux nfs-utils configure 1.0.9-pre1
1623 generated by GNU Autoconf 2.59e
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1632 cat >config.log <<_ACEOF
1633 This file contains any messages produced by compilers while
1634 running configure, to aid debugging if configure makes a mistake.
1636 It was created by linux nfs-utils $as_me 1.0.9-pre1, which was
1637 generated by GNU Autoconf 2.59e. Invocation command line was
1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1659 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1662 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1663 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1664 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 echo "PATH: $as_dir"
1689 # Keep a trace of the command line.
1690 # Strip out --no-create and --no-recursion so they do not pile up.
1691 # Strip out --silent because we don't want to record it for future runs.
1692 # Also quote any args containing shell meta-characters.
1693 # Make two passes to allow for proper duplicate-argument suppression.
1697 ac_must_keep_next=false
1703 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705 | -silent | --silent | --silen | --sile | --sil)
1708 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714 if test $ac_must_keep_next = true; then
1715 ac_must_keep_next=false # Got value, back to normal.
1718 *=* | --config-cache | -C | -disable-* | --disable-* \
1719 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721 | -with-* | --with-* | -without-* | --without-* | --x)
1722 case "$ac_configure_args0 " in
1723 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726 -* ) ac_must_keep_next=true ;;
1729 ac_configure_args="$ac_configure_args '$ac_arg'"
1734 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log. We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742 trap 'exit_status=$?
1743 # Save into config.log some information that might help in debugging.
1748 ## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##
1753 # The following way of writing the cache mishandles newlines in values,
1755 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756 eval ac_val=\$$ac_var
1760 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764 _ | IFS | as_nl) ;; #(
1765 *) $as_unset $ac_var ;;
1770 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771 *${as_nl}ac_space=\ *)
1773 "s/'\''/'\''\\\\'\'''\''/g;
1774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785 ## ----------------- ##
1786 ## Output variables. ##
1787 ## ----------------- ##
1790 for ac_var in $ac_subst_vars
1792 eval ac_val=\$$ac_var
1794 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 echo "$ac_var='\''$ac_val'\''"
1800 if test -n "$ac_subst_files"; then
1802 ## ------------------- ##
1803 ## File substitutions. ##
1804 ## ------------------- ##
1807 for ac_var in $ac_subst_files
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1818 if test -s confdefs.h; then
1828 test "$ac_signal" != 0 &&
1829 echo "$as_me: caught signal $ac_signal"
1830 echo "$as_me: exit $exit_status"
1832 rm -f core *.core core.conftest.* &&
1833 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836 for ac_signal in 1 2 13 15; do
1837 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1842 rm -f -r conftest* confdefs.h
1844 # Predefined preprocessor variables.
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_NAME "$PACKAGE_NAME"
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_STRING "$PACKAGE_STRING"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871 # Let the site file select an alternate cache file if it wants to.
1872 # Prefer explicitly selected file to automatically selected ones.
1873 if test -n "$CONFIG_SITE"; then
1874 set x "$CONFIG_SITE"
1875 elif test "x$prefix" != xNONE; then
1876 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 set x "$ac_default_prefix/share/config.site" \
1879 "$ac_default_prefix/etc/config.site"
1884 if test -r "$ac_site_file"; then
1885 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1886 echo "$as_me: loading site script $ac_site_file" >&6;}
1887 sed 's/^/| /' "$ac_site_file" >&5
1892 if test -r "$cache_file"; then
1893 # Some versions of bash will fail to source /dev/null (special
1894 # files actually), so we avoid doing that.
1895 if test -f "$cache_file"; then
1896 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1897 echo "$as_me: loading cache $cache_file" >&6;}
1899 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1900 *) . "./$cache_file";;
1904 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1905 echo "$as_me: creating cache $cache_file" >&6;}
1909 # Check that the precious variables saved in the cache have kept the same
1911 ac_cache_corrupted=false
1912 for ac_var in $ac_precious_vars; do
1913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914 eval ac_new_set=\$ac_env_${ac_var}_set
1915 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916 eval ac_new_val=\$ac_env_${ac_var}_value
1917 case $ac_old_set,$ac_new_set in
1919 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921 ac_cache_corrupted=: ;;
1923 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1928 if test "x$ac_old_val" != "x$ac_new_val"; then
1929 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1930 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1931 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1932 echo "$as_me: former value: $ac_old_val" >&2;}
1933 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1934 echo "$as_me: current value: $ac_new_val" >&2;}
1935 ac_cache_corrupted=:
1938 # Pass precious variables to config.status.
1939 if test "$ac_new_set" = set; then
1941 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 *) ac_arg=$ac_var=$ac_new_val ;;
1944 case " $ac_configure_args " in
1945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1946 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1950 if $ac_cache_corrupted; then
1951 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1955 { (exit 1); exit 1; }; }
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991 if test -f "$ac_dir/install-sh"; then
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 elif test -f "$ac_dir/install.sh"; then
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 elif test -f "$ac_dir/shtool"; then
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008 { (exit 1); exit 1; }; }
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024 { (exit 1); exit 1; }; }
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037 { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050 { (exit 1); exit 1; }; };;
2053 ac_save_IFS=$IFS; IFS='-'
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test "x$host_alias" = x; then
2072 ac_cv_host=$ac_cv_build
2074 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087 { (exit 1); exit 1; }; };;
2090 ac_save_IFS=$IFS; IFS='-'
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
2106 *) ac_macro_dir=$srcdir/aclocal ;;
2108 test -d "$ac_macro_dir" ||
2109 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2110 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2111 { (exit 1); exit 1; }; }
2113 am__api_version="1.9"
2114 # Find a good install program. We prefer a C program (faster),
2115 # so one script is as good as another. But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2121 # AmigaOS /C/install, which installs bootblocks on floppy discs
2122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125 # OS/2's system install, which has a completely different semantic
2126 # ./install, which can be erroneously created by make from ./install.sh.
2127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2140 ./ | .// | /cC/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173 if test "${ac_cv_path_install+set}" = set; then
2174 INSTALL=$ac_cv_path_install
2176 # As a last resort, use the slow shell script. Don't cache a
2177 # value for INSTALL within a source directory, because that will
2178 # break other packages using the cache if that directory is
2179 # removed, or if the value is a relative name.
2180 INSTALL=$ac_install_sh
2183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 echo "${ECHO_T}$INSTALL" >&6; }
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments. Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2205 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206 if test "$*" = "X"; then
2208 set X `ls -t $srcdir/configure conftest.file`
2211 if test "$*" != "X $srcdir/configure conftest.file" \
2212 && test "$*" != "X conftest.file $srcdir/configure"; then
2214 # If neither matched, then we have a broken ls. This can happen
2215 # if, for instance, CONFIG_SHELL is bash and it inherits a
2216 # broken ls alias from the environment. This has actually
2217 # happened. Such a system could not be considered "sane".
2218 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2219 alias in your environment" >&5
2220 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2221 alias in your environment" >&2;}
2222 { (exit 1); exit 1; }; }
2225 test "$2" = conftest.file
2231 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $. echo might interpret backslashes.
2245 # By default was `s,x,x', remove it if useless.
2246 cat <<\_ACEOF >conftest.sed
2247 s/[\\$]/&&/g;s/;s,x,x,$//
2249 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2255 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256 # Use eval to expand $SHELL
2257 if eval "$MISSING --run true"; then
2258 am_missing_run="$MISSING --run "
2261 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2266 # We used to keeping the `.' as first argument, in order to
2267 # allow $(mkdir_p) to be used without argument. As in
2268 # $(mkdir_p) $(somedir)
2269 # where $(somedir) is conditionally defined. However this is wrong
2271 # 1. if the package is installed by a user who cannot write `.'
2272 # make install will fail,
2273 # 2. the above comment should most certainly read
2274 # $(mkdir_p) $(DESTDIR)$(somedir)
2275 # so it does not work when $(somedir) is undefined and
2276 # $(DESTDIR) is not.
2277 # To support the latter case, we have to write
2278 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2279 # so the `.' trick is pointless.
2280 mkdir_p='mkdir -p --'
2282 # On NextStep and OpenStep, the `mkdir' command does not
2283 # recognize any option. It will interpret all options as
2284 # directories to create, and then abort because `.' already
2286 for d in ./-p ./--version;
2288 test -d $d && rmdir $d
2290 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291 if test -f "$ac_aux_dir/mkinstalldirs"; then
2292 mkdir_p='$(mkinstalldirs)'
2294 mkdir_p='$(install_sh) -d'
2298 for ac_prog in gawk mawk nawk awk
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$AWK"; then
2308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_AWK="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 if test -n "$AWK"; then
2329 { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2337 test -n "$AWK" && break
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.make <<\_ACEOF
2349 @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354 eval ac_cv_prog_make_${ac_make}_set=yes;;
2356 eval ac_cv_prog_make_${ac_make}_set=no;;
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361 { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 SET_MAKE="MAKE=${MAKE-make}"
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2377 rmdir .tst 2>/dev/null
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381 test -f $srcdir/config.status; then
2382 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384 { (exit 1); exit 1; }; }
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389 if (cygpath --version) >/dev/null 2>/dev/null; then
2390 CYGPATH_W='cygpath -w'
2397 # Define the identity of the package.
2399 VERSION='1.0.9-pre1'
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE "$PACKAGE"
2407 cat >>confdefs.h <<_ACEOF
2408 #define VERSION "$VERSION"
2411 # Some tools Automake needs.
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2427 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'. However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_STRIP+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$STRIP"; then
2443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464 { echo "$as_me:$LINENO: result: $STRIP" >&5
2465 echo "${ECHO_T}$STRIP" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_STRIP"; then
2475 # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_STRIP"; then
2483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_STRIP="strip"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2505 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_STRIP" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2527 STRIP="$ac_cv_prog_STRIP"
2531 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2533 # We need awk for the "check" target. The system "awk" is bad on
2535 # Always define AMTAR for backward compatibility.
2537 AMTAR=${AMTAR-"${am_missing_run}tar"}
2539 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2549 # Check whether --with-release was given.
2550 if test "${with_release+set}" = set; then
2551 withval=$with_release; RELEASE=$withval
2558 # Check whether --with-statedir was given.
2559 if test "${with_statedir+set}" = set; then
2560 withval=$with_statedir; statedir=$withval
2562 statedir=/var/lib/nfs
2567 # Check whether --with-statduser was given.
2568 if test "${with_statduser+set}" = set; then
2569 withval=$with_statduser; statduser=$withval
2571 if test "x$cross_compiling" = "xno"; then
2572 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2583 # Check whether --enable-nfsv3 was given.
2584 if test "${enable_nfsv3+set}" = set; then
2585 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2590 if test "$enable_nfsv3" = yes; then
2592 cat >>confdefs.h <<\_ACEOF
2593 #define NFS3_SUPPORTED 1
2600 # Check whether --enable-nfsv4 was given.
2601 if test "${enable_nfsv4+set}" = set; then
2602 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2607 if test "$enable_nfsv4" = yes; then
2609 cat >>confdefs.h <<\_ACEOF
2610 #define NFS4_SUPPORTED 1
2622 if test "$enable_nfsv4" = "yes"; then
2624 CONFIG_NFSV4_FALSE='#'
2626 CONFIG_NFSV4_TRUE='#'
2630 # Check whether --enable-gss was given.
2631 if test "${enable_gss+set}" = set; then
2632 enableval=$enable_gss; enable_gss=$enableval
2637 if test "$enable_gss" = yes; then
2639 cat >>confdefs.h <<\_ACEOF
2640 #define GSS_SUPPORTED 1
2655 if test "$enable_gss" = "yes"; then
2657 CONFIG_GSS_FALSE='#'
2663 # Check whether --enable-kprefix was given.
2664 if test "${enable_kprefix+set}" = set; then
2665 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2671 # Check whether --enable-secure-statd was given.
2672 if test "${enable_secure_statd+set}" = set; then
2673 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2678 if test "$secure_statd" = yes; then
2680 cat >>confdefs.h <<\_ACEOF
2681 #define RESTRICTED_STATD 1
2686 # Check whether --enable-rquotad was given.
2687 if test "${enable_rquotad+set}" = set; then
2688 enableval=$enable_rquotad; enable_rquotad=$enableval
2693 if test "$enable_rquotad" = yes; then
2700 if test "$enable_rquotad" = "yes"; then
2701 CONFIG_RQUOTAD_TRUE=
2702 CONFIG_RQUOTAD_FALSE='#'
2704 CONFIG_RQUOTAD_TRUE='#'
2705 CONFIG_RQUOTAD_FALSE=
2709 # Check whether --enable-mount was given.
2710 if test "${enable_mount+set}" = set; then
2711 enableval=$enable_mount; enable_mount=$enableval
2718 if test "$enable_mount" = "yes"; then
2720 CONFIG_MOUNT_FALSE='#'
2722 CONFIG_MOUNT_TRUE='#'
2727 # Check whether user wants TCP wrappers support
2728 DEPDIR="${am__leading_dot}deps"
2730 ac_config_commands="$ac_config_commands depfiles"
2733 am_make=${MAKE-make}
2734 cat > confinc << 'END'
2739 # If we don't find an include directive, just comment out the code.
2740 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2741 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2745 # First try GNU make style include.
2746 echo "include confinc" > confmf
2747 # We grep out `Entering directory' and `Leaving directory'
2748 # messages which can occur if `w' ends up in MAKEFLAGS.
2749 # In particular we don't look at `^make:' because GNU make might
2750 # be invoked under some other name (usually "gmake"), in which
2751 # case it prints its new name instead of `make'.
2752 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2757 # Now try BSD make style include.
2758 if test "$am__include" = "#"; then
2759 echo '.include "confinc"' > confmf
2760 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2761 am__include=.include
2768 { echo "$as_me:$LINENO: result: $_am_result" >&5
2769 echo "${ECHO_T}$_am_result" >&6; }
2770 rm -f confinc confmf
2772 # Check whether --enable-dependency-tracking was given.
2773 if test "${enable_dependency_tracking+set}" = set; then
2774 enableval=$enable_dependency_tracking;
2777 if test "x$enable_dependency_tracking" != xno; then
2778 am_depcomp="$ac_aux_dir/depcomp"
2783 if test "x$enable_dependency_tracking" != xno; then
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 { echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2837 if test -z "$ac_cv_prog_CC"; then
2839 # Extract the first word of "gcc", so it can be a program name with args.
2840 set dummy gcc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$ac_ct_CC"; then
2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CC="gcc"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869 echo "${ECHO_T}$ac_ct_CC" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2875 if test "x$ac_ct_CC" = x; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet. If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2894 if test -z "$CC"; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}cc; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC="${ac_tool_prefix}cc"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$CC"; then
2925 { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2928 { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2935 if test -z "$CC"; then
2936 # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955 ac_prog_rejected=yes
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy $ac_cv_prog_CC
2970 if test $# != 0; then
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2981 if test -n "$CC"; then
2982 { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 for ac_prog in cl.exe
2995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$CC"; then
3024 { echo "$as_me:$LINENO: result: $CC" >&5
3025 echo "${ECHO_T}$CC" >&6; }
3027 { echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6; }
3032 test -n "$CC" && break
3035 if test -z "$CC"; then
3037 for ac_prog in cl.exe
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_ac_ct_CC="$ac_prog"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069 echo "${ECHO_T}$ac_ct_CC" >&6; }
3071 { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3076 test -n "$ac_ct_CC" && break
3079 if test "x$ac_ct_CC" = x; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet. If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&5
3087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090 ac_tool_warned=yes ;;
3099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&2;}
3103 { (exit 1); exit 1; }; }
3105 # Provide some information about the compiler.
3106 echo "$as_me:$LINENO: checking for C compiler version" >&5
3107 ac_compiler=`set X $ac_compile; echo $2`
3108 { (ac_try="$ac_compiler --version >&5"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compiler --version >&5") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }
3118 { (ac_try="$ac_compiler -v >&5"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compiler -v >&5") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -V >&5"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compiler -V >&5") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3159 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 # List of possible output files, starting from the most likely.
3164 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165 # only as a last resort. b.out is created by i960 compilers.
3166 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 # The IRIX 6 linker writes into existing files which may not be
3169 # executable, retaining their permissions. Remove them first so a
3170 # subsequent execution test works.
3172 for ac_file in $ac_files
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181 if { (ac_try="$ac_link_default"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_link_default") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; then
3191 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3194 # so that the user can short-circuit this test for compilers unknown to
3196 for ac_file in $ac_files
3198 test -f "$ac_file" || continue
3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3203 # We found the default executable, but exeext='' is most
3207 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 # We set ac_cv_exeext here because the later test for it is not
3212 # safe: cross compilers may not add the suffix if given an `-o'
3213 # argument, so we may need to know it at that point already.
3214 # Even if this section looks crufty: it has the advantage of
3221 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&2;}
3231 { (exit 77); exit 77; }; }
3234 ac_exeext=$ac_cv_exeext
3235 { echo "$as_me:$LINENO: result: $ac_file" >&5
3236 echo "${ECHO_T}$ac_file" >&6; }
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245 if { ac_try='./$ac_file'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 if test "$cross_compiling" = maybe; then
3260 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266 { (exit 1); exit 1; }; }
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_link") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 for ac_file in conftest.exe conftest conftest.*; do
3299 test -f "$ac_file" || continue
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; then
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449 GCC=`test $ac_compiler_gnu = yes && echo yes`
3450 ac_test_CFLAGS=${CFLAGS+set}
3451 ac_save_CFLAGS=$CFLAGS
3452 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3454 if test "${ac_cv_prog_cc_g+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_save_c_werror_flag=$ac_c_werror_flag
3458 ac_c_werror_flag=yes
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_try") 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_compile") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_try") 2>&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3587 rm -f conftest.$ac_objext
3588 if { (ac_try="$ac_compile"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_compile") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_try") 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3649 if test "$GCC" = yes; then
3655 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3656 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3657 if test "${ac_cv_prog_cc_c89+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_cv_prog_cc_c89=no
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3686 s = g (p, va_arg (v,int));
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733 { (case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_try") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_cv_prog_cc_c89=$ac_arg
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3760 rm -f conftest.err conftest.$ac_objext
3761 test "x$ac_cv_prog_cc_c89" != "xno" && break
3763 rm -f conftest.$ac_ext
3768 case "x$ac_cv_prog_cc_c89" in
3770 { echo "$as_me:$LINENO: result: none needed" >&5
3771 echo "${ECHO_T}none needed" >&6; } ;;
3773 { echo "$as_me:$LINENO: result: unsupported" >&5
3774 echo "${ECHO_T}unsupported" >&6; } ;;
3776 CC="$CC $ac_cv_prog_cc_c89"
3777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3778 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 depcc="$CC" am_compiler_list=
3790 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796 # We make a subdir and do the tests there. Otherwise we can end up
3797 # making bogus files that we don't know about and never remove. For
3798 # instance it was reported that on HP-UX the gcc test will end up
3799 # making a dummy file named `D' -- because `-MD' means `put the output
3802 # Copy depcomp to subdir because otherwise we won't find it if we're
3803 # using a relative directory.
3804 cp "$am_depcomp" conftest.dir
3806 # We will build objects and dependencies in a subdirectory because
3807 # it helps to detect inapplicable dependency modes. For instance
3808 # both Tru64's cc and ICC support -MD to output dependencies as a
3809 # side effect of compilation, but ICC will put the dependencies in
3810 # the current directory while Tru64 will put them in the object
3814 am_cv_CC_dependencies_compiler_type=none
3815 if test "$am_compiler_list" = ""; then
3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818 for depmode in $am_compiler_list; do
3819 # Setup a source with many dependencies, because some compilers
3820 # like to wrap large dependency lists on column 80 (with \), and
3821 # we should not choose a depcomp mode which is confused by this.
3823 # We need to recreate these files for each test, as the compiler may
3824 # overwrite some of them when testing with obscure command lines.
3825 # This happens at least with the AIX C compiler.
3827 for i in 1 2 3 4 5 6; do
3828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830 # Solaris 8's {/usr,}/bin/sh.
3831 touch sub/conftst$i.h
3833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837 # after this tag, mechanisms are not by side-effect, so they'll
3838 # only be used when explicitly requested
3839 if test "x$enable_dependency_tracking" = xyes; then
3847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3848 # mode. It turns out that the SunPro C++ compiler does not properly
3849 # handle `-M -o', and we need to detect this.
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858 # icc doesn't choke on unknown options, it will just issue warnings
3859 # or remarks (even with -Werror). So we grep stderr for any message
3860 # that says an option was ignored or not supported.
3861 # When given -MP, icc 7.0 and 7.1 complain thusly:
3862 # icc: Command line warning: ignoring option '-M'; no argument required
3863 # The diagnosis changed in icc 8.0:
3864 # icc: Command line remark: option '-MP' not supported
3865 if (grep 'ignoring option' conftest.err ||
3866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867 am_cv_CC_dependencies_compiler_type=$depmode
3876 am_cv_CC_dependencies_compiler_type=none
3880 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3890 am__fastdepCC_FALSE='#'
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3901 # Check whether --with-tcp-wrappers was given.
3902 if test "${with_tcp_wrappers+set}" = set; then
3903 withval=$with_tcp_wrappers;
3904 if test "x$withval" != "xno" ; then
3906 saved_LDFLAGS="$LDFLAGS"
3907 saved_CPPFLAGS="$CPPFLAGS"
3908 if test -n "${withval}" -a "${withval}" != "yes"; then
3909 if test -d "${withval}/lib"; then
3910 if test -n "${need_dash_r}"; then
3911 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3913 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3916 if test -n "${need_dash_r}"; then
3917 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3919 LDFLAGS="-L${withval} ${LDFLAGS}"
3922 if test -d "${withval}/include"; then
3923 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3925 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3929 LIBS="$LIBWRAP $LIBS"
3930 { echo "$as_me:$LINENO: checking for libwrap" >&5
3931 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3940 int deny_severity = 0, allow_severity = 0;
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_link") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest$ac_exeext'
3975 { (case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_try") 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3985 { echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6; }
3989 cat >>confdefs.h <<\_ACEOF
3994 cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_LIBWRAP 1
3999 cat >>confdefs.h <<\_ACEOF
4000 #define HAVE_TCP_WRAPPER 1
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4011 echo "$as_me: error: *** libwrap missing" >&2;}
4012 { (exit 1); exit 1; }; }
4017 rm -f conftest.err conftest.$ac_objext \
4018 conftest$ac_exeext conftest.$ac_ext
4031 ac_config_headers="$ac_config_headers support/include/config.h"
4034 # Checks for programs.
4036 ac_cpp='$CXXCPP $CPPFLAGS'
4037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4040 if test -z "$CXX"; then
4041 if test -n "$CCC"; then
4044 if test -n "$ac_tool_prefix"; then
4045 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051 if test "${ac_cv_prog_CXX+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 if test -n "$CXX"; then
4055 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 if test -n "$CXX"; then
4076 { echo "$as_me:$LINENO: result: $CXX" >&5
4077 echo "${ECHO_T}$CXX" >&6; }
4079 { echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6; }
4084 test -n "$CXX" && break
4087 if test -z "$CXX"; then
4089 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091 # Extract the first word of "$ac_prog", so it can be a program name with args.
4092 set dummy $ac_prog; ac_word=$2
4093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if test -n "$ac_ct_CXX"; then
4099 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_ac_ct_CXX="$ac_prog"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4119 if test -n "$ac_ct_CXX"; then
4120 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4121 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4123 { echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6; }
4128 test -n "$ac_ct_CXX" && break
4131 if test "x$ac_ct_CXX" = x; then
4134 case $cross_compiling:$ac_tool_warned in
4136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet. If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&5
4139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4140 whose name does not start with the host triplet. If you think this
4141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4142 ac_tool_warned=yes ;;
4150 # Provide some information about the compiler.
4151 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4152 ac_compiler=`set X $ac_compile; echo $2`
4153 { (ac_try="$ac_compiler --version >&5"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compiler --version >&5") 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }
4163 { (ac_try="$ac_compiler -v >&5"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_compiler -v >&5") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }
4173 { (ac_try="$ac_compiler -V >&5"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compiler -V >&5") 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }
4184 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4185 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4186 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4253 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4254 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4255 GXX=`test $ac_compiler_gnu = yes && echo yes`
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4260 if test "${ac_cv_prog_cxx_g+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264 ac_cxx_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_cv_prog_cxx_g=yes
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4352 { (case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_try") 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_prog_cxx_g=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4445 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4446 if test "$ac_test_CXXFLAGS" = set; then
4447 CXXFLAGS=$ac_save_CXXFLAGS
4448 elif test $ac_cv_prog_cxx_g = yes; then
4449 if test "$GXX" = yes; then
4455 if test "$GXX" = yes; then
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 depcc="$CXX" am_compiler_list=
4469 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4470 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4471 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4475 # We make a subdir and do the tests there. Otherwise we can end up
4476 # making bogus files that we don't know about and never remove. For
4477 # instance it was reported that on HP-UX the gcc test will end up
4478 # making a dummy file named `D' -- because `-MD' means `put the output
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4493 am_cv_CXX_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497 for depmode in $am_compiler_list; do
4498 # Setup a source with many dependencies, because some compilers
4499 # like to wrap large dependency lists on column 80 (with \), and
4500 # we should not choose a depcomp mode which is confused by this.
4502 # We need to recreate these files for each test, as the compiler may
4503 # overwrite some of them when testing with obscure command lines.
4504 # This happens at least with the AIX C compiler.
4506 for i in 1 2 3 4 5 6; do
4507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4509 # Solaris 8's {/usr,}/bin/sh.
4510 touch sub/conftst$i.h
4512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516 # after this tag, mechanisms are not by side-effect, so they'll
4517 # only be used when explicitly requested
4518 if test "x$enable_dependency_tracking" = xyes; then
4526 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4527 # mode. It turns out that the SunPro C++ compiler does not properly
4528 # handle `-M -o', and we need to detect this.
4529 if depmode=$depmode \
4530 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4533 >/dev/null 2>conftest.err &&
4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CXX_dependencies_compiler_type=$depmode
4555 am_cv_CXX_dependencies_compiler_type=none
4559 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4560 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4561 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4566 test "x$enable_dependency_tracking" != xno \
4567 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4568 am__fastdepCXX_TRUE=
4569 am__fastdepCXX_FALSE='#'
4571 am__fastdepCXX_TRUE='#'
4572 am__fastdepCXX_FALSE=
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 if test -n "$ac_tool_prefix"; then
4582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_CC+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$CC"; then
4590 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 if test -n "$CC"; then
4611 { echo "$as_me:$LINENO: result: $CC" >&5
4612 echo "${ECHO_T}$CC" >&6; }
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4620 if test -z "$ac_cv_prog_CC"; then
4622 # Extract the first word of "gcc", so it can be a program name with args.
4623 set dummy gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -n "$ac_ct_CC"; then
4630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_ac_ct_CC="gcc"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650 if test -n "$ac_ct_CC"; then
4651 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4652 echo "${ECHO_T}$ac_ct_CC" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4658 if test "x$ac_ct_CC" = x; then
4661 case $cross_compiling:$ac_tool_warned in
4663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4664 whose name does not start with the host triplet. If you think this
4665 configuration is useful to you, please write to autoconf@gnu.org." >&5
4666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4667 whose name does not start with the host triplet. If you think this
4668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4669 ac_tool_warned=yes ;;
4677 if test -z "$CC"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}cc; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_CC="${ac_tool_prefix}cc"
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test -n "$CC"; then
4708 { echo "$as_me:$LINENO: result: $CC" >&5
4709 echo "${ECHO_T}$CC" >&6; }
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4718 if test -z "$CC"; then
4719 # Extract the first word of "cc", so it can be a program name with args.
4720 set dummy cc; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4738 ac_prog_rejected=yes
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 if test $ac_prog_rejected = yes; then
4750 # We found a bogon in the path, so make sure we never use it.
4751 set dummy $ac_cv_prog_CC
4753 if test $# != 0; then
4754 # We chose a different compiler from the bogus one.
4755 # However, it has the same basename, so the bogon will be chosen
4756 # first if we set CC to just the basename; use the full file name.
4758 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4764 if test -n "$CC"; then
4765 { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4774 if test -z "$CC"; then
4775 if test -n "$ac_tool_prefix"; then
4776 for ac_prog in cl.exe
4778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_CC+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$CC"; then
4786 ac_cv_prog_CC="$CC" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 if test -n "$CC"; then
4807 { echo "$as_me:$LINENO: result: $CC" >&5
4808 echo "${ECHO_T}$CC" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 test -n "$CC" && break
4818 if test -z "$CC"; then
4820 for ac_prog in cl.exe
4822 # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy $ac_prog; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$ac_ct_CC"; then
4830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_CC="$ac_prog"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850 if test -n "$ac_ct_CC"; then
4851 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4852 echo "${ECHO_T}$ac_ct_CC" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 test -n "$ac_ct_CC" && break
4862 if test "x$ac_ct_CC" = x; then
4865 case $cross_compiling:$ac_tool_warned in
4867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4868 whose name does not start with the host triplet. If you think this
4869 configuration is useful to you, please write to autoconf@gnu.org." >&5
4870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet. If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4873 ac_tool_warned=yes ;;
4882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4883 See \`config.log' for more details." >&5
4884 echo "$as_me: error: no acceptable C compiler found in \$PATH
4885 See \`config.log' for more details." >&2;}
4886 { (exit 1); exit 1; }; }
4888 # Provide some information about the compiler.
4889 echo "$as_me:$LINENO: checking for C compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (ac_try="$ac_compiler --version >&5"
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compiler --version >&5") 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 { (ac_try="$ac_compiler -v >&5"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compiler -v >&5") 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }
4911 { (ac_try="$ac_compiler -V >&5"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compiler -V >&5") 2>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }
4922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_compile") 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960 { (case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_try") 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_try") 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4993 GCC=`test $ac_compiler_gnu = yes && echo yes`
4994 ac_test_CFLAGS=${CFLAGS+set}
4995 ac_save_CFLAGS=$CFLAGS
4996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4998 if test "${ac_cv_prog_cc_g+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_save_c_werror_flag=$ac_c_werror_flag
5002 ac_c_werror_flag=yes
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5035 { (case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_try") 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_try") 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5075 rm -f conftest.$ac_objext
5076 if { (ac_try="$ac_compile"
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_compile") 2>conftest.er1
5084 grep -v '^ *+' conftest.er1 >conftest.err
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5090 { (case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_try") 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_try") 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_c_werror_flag=$ac_save_c_werror_flag
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compile") 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5146 { (case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_try") 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest.$ac_objext'
5156 { (case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_try") 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180 ac_c_werror_flag=$ac_save_c_werror_flag
5182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5184 if test "$ac_test_CFLAGS" = set; then
5185 CFLAGS=$ac_save_CFLAGS
5186 elif test $ac_cv_prog_cc_g = yes; then
5187 if test "$GCC" = yes; then
5193 if test "$GCC" = yes; then
5199 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5200 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5201 if test "${ac_cv_prog_cc_c89+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 ac_cv_prog_cc_c89=no
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5214 #include <sys/types.h>
5215 #include <sys/stat.h>
5216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5217 struct buf { int x; };
5218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5219 static char *e (p, i)
5225 static char *f (char * (*g) (char **, int), char **p, ...)
5230 s = g (p, va_arg (v,int));
5235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5236 function prototypes and stuff, but not '\xHH' hex character constants.
5237 These don't provoke an error unfortunately, instead are silently treated
5238 as 'x'. The following induces an error, until -std is added to get
5239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5240 array size at least. It's necessary to write '\x00'==0 to get something
5241 that's true only with -std. */
5242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5244 int test (int i, double x);
5245 struct s1 {int (*f) (int a);};
5246 struct s2 {int (*f) (double a);};
5247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5261 CC="$ac_save_CC $ac_arg"
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_compile") 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5277 { (case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_try") 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_try") 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_prog_cc_c89=$ac_arg
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5304 rm -f conftest.err conftest.$ac_objext
5305 test "x$ac_cv_prog_cc_c89" != "xno" && break
5307 rm -f conftest.$ac_ext
5312 case "x$ac_cv_prog_cc_c89" in
5314 { echo "$as_me:$LINENO: result: none needed" >&5
5315 echo "${ECHO_T}none needed" >&6; } ;;
5317 { echo "$as_me:$LINENO: result: unsupported" >&5
5318 echo "${ECHO_T}unsupported" >&6; } ;;
5320 CC="$CC $ac_cv_prog_cc_c89"
5321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5327 ac_cpp='$CPP $CPPFLAGS'
5328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332 depcc="$CC" am_compiler_list=
5334 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5336 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340 # We make a subdir and do the tests there. Otherwise we can end up
5341 # making bogus files that we don't know about and never remove. For
5342 # instance it was reported that on HP-UX the gcc test will end up
5343 # making a dummy file named `D' -- because `-MD' means `put the output
5346 # Copy depcomp to subdir because otherwise we won't find it if we're
5347 # using a relative directory.
5348 cp "$am_depcomp" conftest.dir
5350 # We will build objects and dependencies in a subdirectory because
5351 # it helps to detect inapplicable dependency modes. For instance
5352 # both Tru64's cc and ICC support -MD to output dependencies as a
5353 # side effect of compilation, but ICC will put the dependencies in
5354 # the current directory while Tru64 will put them in the object
5358 am_cv_CC_dependencies_compiler_type=none
5359 if test "$am_compiler_list" = ""; then
5360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5362 for depmode in $am_compiler_list; do
5363 # Setup a source with many dependencies, because some compilers
5364 # like to wrap large dependency lists on column 80 (with \), and
5365 # we should not choose a depcomp mode which is confused by this.
5367 # We need to recreate these files for each test, as the compiler may
5368 # overwrite some of them when testing with obscure command lines.
5369 # This happens at least with the AIX C compiler.
5371 for i in 1 2 3 4 5 6; do
5372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374 # Solaris 8's {/usr,}/bin/sh.
5375 touch sub/conftst$i.h
5377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5381 # after this tag, mechanisms are not by side-effect, so they'll
5382 # only be used when explicitly requested
5383 if test "x$enable_dependency_tracking" = xyes; then
5391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5392 # mode. It turns out that the SunPro C++ compiler does not properly
5393 # handle `-M -o', and we need to detect this.
5394 if depmode=$depmode \
5395 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398 >/dev/null 2>conftest.err &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_CC_dependencies_compiler_type=$depmode
5420 am_cv_CC_dependencies_compiler_type=none
5424 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5426 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5431 test "x$enable_dependency_tracking" != xno \
5432 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5434 am__fastdepCC_FALSE='#'
5436 am__fastdepCC_TRUE='#'
5437 am__fastdepCC_FALSE=
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5452 if test -z "$CPP"; then
5453 if test "${ac_cv_prog_CPP+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 # Double quotes because CPP needs to be expanded
5457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460 for ac_c_preproc_warn_flag in '' yes
5462 # Use a header file that comes with gcc, so configuring glibc
5463 # with a fresh cross-compiler works.
5464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465 # <limits.h> exists even on freestanding compilers.
5466 # On the NeXT, cc -E runs the code through the compiler's parser,
5467 # not just through cpp. "Syntax error" is here to catch this case.
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5475 # include <limits.h>
5477 # include <assert.h>
5481 if { (ac_try="$ac_cpp conftest.$ac_ext"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } >/dev/null; then
5494 if test -s conftest.err; then
5495 ac_cpp_err=$ac_c_preproc_warn_flag
5496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5503 if test -z "$ac_cpp_err"; then
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 # Broken: fails on valid input.
5513 rm -f conftest.err conftest.$ac_ext
5515 # OK, works on sane cases. Now check whether nonexistent headers
5516 # can be detected and how.
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <ac_nonexistent.h>
5525 if { (ac_try="$ac_cpp conftest.$ac_ext"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_c_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5547 if test -z "$ac_cpp_err"; then
5548 # Broken: success on invalid input.
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 # Passes both tests.
5559 rm -f conftest.err conftest.$ac_ext
5562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5563 rm -f conftest.err conftest.$ac_ext
5564 if $ac_preproc_ok; then
5576 { echo "$as_me:$LINENO: result: $CPP" >&5
5577 echo "${ECHO_T}$CPP" >&6; }
5579 for ac_c_preproc_warn_flag in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5594 # include <limits.h>
5596 # include <assert.h>
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null; then
5613 if test -s conftest.err; then
5614 ac_cpp_err=$ac_c_preproc_warn_flag
5615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5622 if test -z "$ac_cpp_err"; then
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 # Broken: fails on valid input.
5632 rm -f conftest.err conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <ac_nonexistent.h>
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null; then
5657 if test -s conftest.err; then
5658 ac_cpp_err=$ac_c_preproc_warn_flag
5659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666 if test -z "$ac_cpp_err"; then
5667 # Broken: success on invalid input.
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5686 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5687 See \`config.log' for more details." >&5
5688 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5689 See \`config.log' for more details." >&2;}
5690 { (exit 1); exit 1; }; }
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 # Find a good install program. We prefer a C program (faster),
5700 # so one script is as good as another. But avoid the broken or
5701 # incompatible versions:
5702 # SysV /etc/install, /usr/sbin/install
5703 # SunOS /usr/etc/install
5704 # IRIX /sbin/install
5706 # AmigaOS /C/install, which installs bootblocks on floppy discs
5707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5710 # OS/2's system install, which has a completely different semantic
5711 # ./install, which can be erroneously created by make from ./install.sh.
5712 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5713 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5714 if test -z "$INSTALL"; then
5715 if test "${ac_cv_path_install+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 # Account for people who put trailing slashes in PATH elements.
5725 ./ | .// | /cC/* | \
5726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5727 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5730 # OSF1 and SCO ODT 3.0 have their own names for install.
5731 # Don't use installbsd from OSF since it installs stuff as root
5733 for ac_prog in ginstall scoinst install; do
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5736 if test $ac_prog = install &&
5737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5738 # AIX install. It has an incompatible calling convention.
5740 elif test $ac_prog = install &&
5741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5742 # program-specific install script used by HP pwplus--don't use.
5745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5758 if test "${ac_cv_path_install+set}" = set; then
5759 INSTALL=$ac_cv_path_install
5761 # As a last resort, use the slow shell script. Don't cache a
5762 # value for INSTALL within a source directory, because that will
5763 # break other packages using the cache if that directory is
5764 # removed, or if the value is a relative name.
5765 INSTALL=$ac_install_sh
5768 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5769 echo "${ECHO_T}$INSTALL" >&6; }
5771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5772 # It thinks the first close brace ends the variable substitution.
5773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5779 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5782 if test "$LN_S" = "ln -s"; then
5783 { echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6; }
5786 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787 echo "${ECHO_T}no, using $LN_S" >&6; }
5790 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5792 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.make <<\_ACEOF
5799 @echo '@@@%%%=$(MAKE)=@@@%%%'
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5804 eval ac_cv_prog_make_${ac_make}_set=yes;;
5806 eval ac_cv_prog_make_${ac_make}_set=no;;
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811 { echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6; }
5815 { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817 SET_MAKE="MAKE=${MAKE-make}"
5820 # Check whether --enable-shared was given.
5821 if test "${enable_shared+set}" = set; then
5822 enableval=$enable_shared; p=${PACKAGE-default}
5824 yes) enable_shared=yes ;;
5825 no) enable_shared=no ;;
5828 # Look at the argument we got. We use all the common list separators.
5829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5830 for pkg in $enableval; do
5832 if test "X$pkg" = "X$p"; then
5844 # Check whether --enable-static was given.
5845 if test "${enable_static+set}" = set; then
5846 enableval=$enable_static; p=${PACKAGE-default}
5848 yes) enable_static=yes ;;
5849 no) enable_static=no ;;
5852 # Look at the argument we got. We use all the common list separators.
5853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5854 for pkg in $enableval; do
5856 if test "X$pkg" = "X$p"; then
5868 # Check whether --enable-fast-install was given.
5869 if test "${enable_fast_install+set}" = set; then
5870 enableval=$enable_fast_install; p=${PACKAGE-default}
5872 yes) enable_fast_install=yes ;;
5873 no) enable_fast_install=no ;;
5875 enable_fast_install=no
5876 # Look at the argument we got. We use all the common list separators.
5877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5878 for pkg in $enableval; do
5880 if test "X$pkg" = "X$p"; then
5881 enable_fast_install=yes
5888 enable_fast_install=yes
5892 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5893 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5894 if test "${lt_cv_path_SED+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 # Loop through the user's path and test for sed and gsed.
5898 # Then use that list of sed's as ones to test for truncation.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for lt_ac_prog in sed gsed; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5907 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5914 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5915 # along with /bin/sed that truncates output.
5916 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5917 test ! -f $lt_ac_sed && continue
5918 cat /dev/null > conftest.in
5920 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5921 # Check for GNU sed and select it if it is found.
5922 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5923 lt_cv_path_SED=$lt_ac_sed
5927 cat conftest.in conftest.in >conftest.tmp
5928 mv conftest.tmp conftest.in
5929 cp conftest.in conftest.nl
5931 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5932 cmp -s conftest.out conftest.nl || break
5933 # 10000 chars as input seems more than enough
5934 test $lt_ac_count -gt 10 && break
5935 lt_ac_count=`expr $lt_ac_count + 1`
5936 if test $lt_ac_count -gt $lt_ac_max; then
5937 lt_ac_max=$lt_ac_count
5938 lt_cv_path_SED=$lt_ac_sed
5946 { echo "$as_me:$LINENO: result: $SED" >&5
5947 echo "${ECHO_T}$SED" >&6; }
5949 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5950 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5951 if test "${ac_cv_path_GREP+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 # Extract the first word of "grep ggrep" to use in msg output
5955 if test -z "$GREP"; then
5956 set dummy grep ggrep; ac_prog_name=$2
5957 if test "${ac_cv_path_GREP+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_path_GREP_found=false
5961 # Loop through the user's path and test for each of PROGNAME-LIST
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5966 test -z "$as_dir" && as_dir=.
5967 for ac_prog in grep ggrep; do
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5970 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5971 # Check for GNU ac_path_GREP and select it if it is found.
5972 # Check for GNU $ac_path_GREP
5973 case `"$ac_path_GREP" --version 2>&1` in
5975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5978 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5981 cat "conftest.in" "conftest.in" >"conftest.tmp"
5982 mv "conftest.tmp" "conftest.in"
5983 cp "conftest.in" "conftest.nl"
5984 echo 'GREP' >> "conftest.nl"
5985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5987 ac_count=`expr $ac_count + 1`
5988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5989 # Best one so far, save it but keep looking for a better one
5990 ac_cv_path_GREP="$ac_path_GREP"
5991 ac_path_GREP_max=$ac_count
5993 # 10*(2^10) chars as input seems more than enough
5994 test $ac_count -gt 10 && break
5996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000 $ac_path_GREP_found && break 3
6010 GREP="$ac_cv_path_GREP"
6011 if test -z "$GREP"; then
6012 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6014 { (exit 1); exit 1; }; }
6018 ac_cv_path_GREP=$GREP
6023 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6024 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6025 GREP="$ac_cv_path_GREP"
6028 { echo "$as_me:$LINENO: checking for egrep" >&5
6029 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6030 if test "${ac_cv_path_EGREP+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034 then ac_cv_path_EGREP="$GREP -E"
6036 # Extract the first word of "egrep" to use in msg output
6037 if test -z "$EGREP"; then
6038 set dummy egrep; ac_prog_name=$2
6039 if test "${ac_cv_path_EGREP+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_path_EGREP_found=false
6043 # Loop through the user's path and test for each of PROGNAME-LIST
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6048 test -z "$as_dir" && as_dir=.
6049 for ac_prog in egrep; do
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6052 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6053 # Check for GNU ac_path_EGREP and select it if it is found.
6054 # Check for GNU $ac_path_EGREP
6055 case `"$ac_path_EGREP" --version 2>&1` in
6057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6060 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6063 cat "conftest.in" "conftest.in" >"conftest.tmp"
6064 mv "conftest.tmp" "conftest.in"
6065 cp "conftest.in" "conftest.nl"
6066 echo 'EGREP' >> "conftest.nl"
6067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069 ac_count=`expr $ac_count + 1`
6070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6071 # Best one so far, save it but keep looking for a better one
6072 ac_cv_path_EGREP="$ac_path_EGREP"
6073 ac_path_EGREP_max=$ac_count
6075 # 10*(2^10) chars as input seems more than enough
6076 test $ac_count -gt 10 && break
6078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6082 $ac_path_EGREP_found && break 3
6092 EGREP="$ac_cv_path_EGREP"
6093 if test -z "$EGREP"; then
6094 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6095 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6096 { (exit 1); exit 1; }; }
6100 ac_cv_path_EGREP=$EGREP
6106 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6107 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6108 EGREP="$ac_cv_path_EGREP"
6112 # Check whether --with-gnu-ld was given.
6113 if test "${with_gnu_ld+set}" = set; then
6114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6120 if test "$GCC" = yes; then
6121 # Check if gcc -print-prog-name=ld gives a path.
6122 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6126 # gcc leaves a trailing carriage return which upsets mingw
6127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6132 # Accept absolute paths.
6134 re_direlt='/[^/][^/]*/\.\./'
6135 # Canonicalize the pathname of ld
6136 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6137 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6138 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6140 test -z "$LD" && LD="$ac_prog"
6143 # If it fails, then pretend we aren't using GCC.
6147 # If it is relative, then search for the first ld in PATH.
6151 elif test "$with_gnu_ld" = yes; then
6152 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6155 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6158 if test "${lt_cv_path_LD+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -z "$LD"; then
6162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6163 for ac_dir in $PATH; do
6165 test -z "$ac_dir" && ac_dir=.
6166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6167 lt_cv_path_LD="$ac_dir/$ac_prog"
6168 # Check to see if the program is GNU ld. I'd rather use --version,
6169 # but apparently some variants of GNU ld only accept -v.
6170 # Break only if it was the GNU/non-GNU ld that we prefer.
6171 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173 test "$with_gnu_ld" != no && break
6176 test "$with_gnu_ld" != yes && break
6183 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6188 if test -n "$LD"; then
6189 { echo "$as_me:$LINENO: result: $LD" >&5
6190 echo "${ECHO_T}$LD" >&6; }
6192 { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6197 { (exit 1); exit 1; }; }
6198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6204 case `$LD -v 2>&1 </dev/null` in
6205 *GNU* | *'with BFD'*)
6206 lt_cv_prog_gnu_ld=yes
6209 lt_cv_prog_gnu_ld=no
6213 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6215 with_gnu_ld=$lt_cv_prog_gnu_ld
6218 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220 if test "${lt_cv_ld_reload_flag+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 lt_cv_ld_reload_flag='-r'
6225 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227 reload_flag=$lt_cv_ld_reload_flag
6228 case $reload_flag in
6230 *) reload_flag=" $reload_flag" ;;
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235 if test "$GCC" = yes; then
6236 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6244 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6245 if test "${lt_cv_path_NM+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 if test -n "$NM"; then
6249 # Let the user override the test.
6252 lt_nm_to_check="${ac_tool_prefix}nm"
6253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6254 lt_nm_to_check="$lt_nm_to_check nm"
6256 for lt_tmp_nm in $lt_nm_to_check; do
6257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6260 test -z "$ac_dir" && ac_dir=.
6261 tmp_nm="$ac_dir/$lt_tmp_nm"
6262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6263 # Check to see if the nm accepts a BSD-compat flag.
6264 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6265 # nm: unknown option "B" ignored
6266 # Tru64's nm complains that /dev/null is an invalid object file
6267 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6268 */dev/null* | *'Invalid file or object type'*)
6269 lt_cv_path_NM="$tmp_nm -B"
6273 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6275 lt_cv_path_NM="$tmp_nm -p"
6279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6280 continue # so that we can try to find one that supports BSD flags
6289 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6292 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6293 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6296 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6297 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6298 if test "${lt_cv_deplibs_check_method+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 lt_cv_file_magic_cmd='$MAGIC_CMD'
6302 lt_cv_file_magic_test_file=
6303 lt_cv_deplibs_check_method='unknown'
6304 # Need to set the preceding variable on all platforms that support
6305 # interlibrary dependencies.
6306 # 'none' -- dependencies not supported.
6307 # `unknown' -- same as none, but documents that we really don't know.
6308 # 'pass_all' -- all dependencies passed with no checks.
6309 # 'test_compile' -- check by making test program.
6310 # 'file_magic [[regex]]' -- check by looking for files in library path
6311 # which responds to the $file_magic_cmd with a given extended regex.
6312 # If you have `file' or equivalent on your system and you're not sure
6313 # whether `pass_all' will *always* work, you probably want this one.
6317 lt_cv_deplibs_check_method=pass_all
6321 lt_cv_deplibs_check_method=pass_all
6325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326 lt_cv_file_magic_cmd='/usr/bin/file -L'
6327 lt_cv_file_magic_test_file=/shlib/libc.so
6331 # func_win32_libid is a shell function defined in ltmain.sh
6332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333 lt_cv_file_magic_cmd='func_win32_libid'
6337 # Base MSYS/MinGW do not provide the 'file' command needed by
6338 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6340 lt_cv_file_magic_cmd='$OBJDUMP -f'
6343 darwin* | rhapsody*)
6344 lt_cv_deplibs_check_method=pass_all
6347 freebsd* | dragonfly*)
6348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6351 # Not sure whether the presence of OpenBSD here was a mistake.
6352 # Let's accept both of them until this is cleared up.
6353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354 lt_cv_file_magic_cmd=/usr/bin/file
6355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6359 lt_cv_deplibs_check_method=pass_all
6364 lt_cv_deplibs_check_method=pass_all
6367 hpux10.20* | hpux11*)
6368 lt_cv_file_magic_cmd=/usr/bin/file
6371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6375 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]'
6376 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6386 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6390 irix5* | irix6* | nonstopux*)
6392 *-32|*"-32 ") libmagic=32-bit;;
6393 *-n32|*"-n32 ") libmagic=N32;;
6394 *-64|*"-64 ") libmagic=64-bit;;
6395 *) libmagic=never-match;;
6397 lt_cv_deplibs_check_method=pass_all
6400 # This must be Linux ELF.
6401 linux* | k*bsd*-gnu)
6402 lt_cv_deplibs_check_method=pass_all
6405 netbsd* | netbsdelf*-gnu)
6406 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6420 lt_cv_deplibs_check_method=unknown
6424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6431 osf3* | osf4* | osf5*)
6432 lt_cv_deplibs_check_method=pass_all
6436 lt_cv_deplibs_check_method=pass_all
6440 case $host_vendor in
6442 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]'
6443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6446 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_file_magic_cmd='/bin/file'
6450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6453 lt_cv_file_magic_cmd='/bin/file'
6454 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6455 lt_cv_file_magic_test_file=/lib/libc.so
6458 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6467 lt_cv_deplibs_check_method=pass_all
6472 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6473 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6474 file_magic_cmd=$lt_cv_file_magic_cmd
6475 deplibs_check_method=$lt_cv_deplibs_check_method
6476 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6481 # If no C compiler was specified, use CC.
6484 # If no C compiler flags were specified, use CFLAGS.
6485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6487 # Allow CC to be a program name with arguments.
6490 # Check whether --enable-libtool-lock was given.
6491 if test "${enable_libtool_lock+set}" = set; then
6492 enableval=$enable_libtool_lock;
6495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6497 # Some flags need to be propagated to the compiler or linker for good
6501 # Find out which ABI we are using.
6502 echo 'int i;' > conftest.$ac_ext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; then
6508 case `/usr/bin/file conftest.$ac_objext` in
6520 # Find out which ABI we are using.
6521 echo '#line 6521 "configure"' > conftest.$ac_ext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; then
6527 if test "$lt_cv_prog_gnu_ld" = yes; then
6528 case `/usr/bin/file conftest.$ac_objext` in
6530 LD="${LD-ld} -melf32bsmip"
6533 LD="${LD-ld} -melf32bmipn32"
6536 LD="${LD-ld} -melf64bmip"
6540 case `/usr/bin/file conftest.$ac_objext` in
6556 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6557 # Find out which ABI we are using.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 (eval $ac_compile) 2>&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; then
6564 case `/usr/bin/file conftest.o` in
6568 LD="${LD-ld} -m elf_i386"
6570 ppc64-*linux*|powerpc64-*linux*)
6571 LD="${LD-ld} -m elf32ppclinux"
6574 LD="${LD-ld} -m elf_s390"
6577 LD="${LD-ld} -m elf32_sparc"
6584 LD="${LD-ld} -m elf_x86_64"
6586 ppc*-*linux*|powerpc*-*linux*)
6587 LD="${LD-ld} -m elf64ppc"
6590 LD="${LD-ld} -m elf64_s390"
6593 LD="${LD-ld} -m elf64_sparc"
6603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604 SAVE_CFLAGS="$CFLAGS"
6605 CFLAGS="$CFLAGS -belf"
6606 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6608 if test "${lt_cv_cc_needs_belf+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_link") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_try") 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest$ac_exeext'
6657 { (case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_try") 2>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 lt_cv_cc_needs_belf=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 lt_cv_cc_needs_belf=no
6674 rm -f conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6677 ac_cpp='$CPP $CPPFLAGS'
6678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6684 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687 CFLAGS="$SAVE_CFLAGS"
6691 # Find out which ABI we are using.
6692 echo 'int i;' > conftest.$ac_ext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; then
6698 case `/usr/bin/file conftest.o` in
6700 case $lt_cv_prog_gnu_ld in
6701 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6702 *) LD="${LD-ld} -64" ;;
6713 need_locks="$enable_libtool_lock"
6717 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719 if test "${ac_cv_header_stdc+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6756 { (case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_try") 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_header_stdc=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_cv_header_stdc=no
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test $ac_cv_header_stdc = yes; then
6786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797 $EGREP "memchr" >/dev/null 2>&1; then
6800 ac_cv_header_stdc=no
6806 if test $ac_cv_header_stdc = yes; then
6807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 $EGREP "free" >/dev/null 2>&1; then
6821 ac_cv_header_stdc=no
6827 if test $ac_cv_header_stdc = yes; then
6828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829 if test "$cross_compiling" = yes; then
6832 cat >conftest.$ac_ext <<_ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6840 #if ((' ' & 0x0FF) == 0x020)
6841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6844 # define ISLOWER(c) \
6845 (('a' <= (c) && (c) <= 'i') \
6846 || ('j' <= (c) && (c) <= 'r') \
6847 || ('s' <= (c) && (c) <= 'z'))
6848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6856 for (i = 0; i < 256; i++)
6857 if (XOR (islower (i), ISLOWER (i))
6858 || toupper (i) != TOUPPER (i))
6863 rm -f conftest$ac_exeext
6864 if { (ac_try="$ac_link"
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_link") 2>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6874 { (case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_try") 2>&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6885 echo "$as_me: program exited with status $ac_status" >&5
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_cv_header_stdc=no
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6898 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6899 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6900 if test $ac_cv_header_stdc = yes; then
6902 cat >>confdefs.h <<\_ACEOF
6903 #define STDC_HEADERS 1
6908 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6918 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919 inttypes.h stdint.h unistd.h
6921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6935 #include <$ac_header>
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_compile") 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6952 { (case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_try") 2>&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_try") 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 eval "$as_ac_Header=yes"
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 eval "$as_ac_Header=no"
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 ac_res=`eval echo '${'$as_ac_Header'}'`
6982 { echo "$as_me:$LINENO: result: $ac_res" >&5
6983 echo "${ECHO_T}$ac_res" >&6; }
6984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6985 cat >>confdefs.h <<_ACEOF
6986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995 for ac_header in dlfcn.h
6997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_res=`eval echo '${'$as_ac_Header'}'`
7005 { echo "$as_me:$LINENO: result: $ac_res" >&5
7006 echo "${ECHO_T}$ac_res" >&6; }
7008 # Is the header compilable?
7009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018 #include <$ac_header>
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_compile") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7035 { (case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_try") 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_try") 2>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_header_compiler=yes
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_header_compiler=no
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064 echo "${ECHO_T}$ac_header_compiler" >&6; }
7066 # Is the header present?
7067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <$ac_header>
7077 if { (ac_try="$ac_cpp conftest.$ac_ext"
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } >/dev/null; then
7090 if test -s conftest.err; then
7091 ac_cpp_err=$ac_c_preproc_warn_flag
7092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7099 if test -z "$ac_cpp_err"; then
7100 ac_header_preproc=yes
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_header_preproc=no
7108 rm -f conftest.err conftest.$ac_ext
7109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110 echo "${ECHO_T}$ac_header_preproc" >&6; }
7112 # So? What about this header?
7113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119 ac_header_preproc=yes
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7135 ## ------------------------------- ##
7136 ## Report this to nfs@lists.sf.net ##
7137 ## ------------------------------- ##
7139 ) | sed "s/^/$as_me: WARNING: /" >&2
7142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 eval "$as_ac_Header=\$ac_header_preproc"
7149 ac_res=`eval echo '${'$as_ac_Header'}'`
7150 { echo "$as_me:$LINENO: result: $ac_res" >&5
7151 echo "${ECHO_T}$ac_res" >&6; }
7154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7166 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7167 (test "X$CXX" != "Xg++"))) ; then
7169 ac_cpp='$CXXCPP $CPPFLAGS'
7170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7174 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7175 if test -z "$CXXCPP"; then
7176 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 # Double quotes because CXXCPP needs to be expanded
7180 for CXXCPP in "$CXX -E" "/lib/cpp"
7183 for ac_cxx_preproc_warn_flag in '' yes
7185 # Use a header file that comes with gcc, so configuring glibc
7186 # with a fresh cross-compiler works.
7187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 # <limits.h> exists even on freestanding compilers.
7189 # On the NeXT, cc -E runs the code through the compiler's parser,
7190 # not just through cpp. "Syntax error" is here to catch this case.
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7198 # include <limits.h>
7200 # include <assert.h>
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } >/dev/null; then
7217 if test -s conftest.err; then
7218 ac_cpp_err=$ac_cxx_preproc_warn_flag
7219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7226 if test -z "$ac_cpp_err"; then
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 # Broken: fails on valid input.
7236 rm -f conftest.err conftest.$ac_ext
7238 # OK, works on sane cases. Now check whether nonexistent headers
7239 # can be detected and how.
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <ac_nonexistent.h>
7248 if { (ac_try="$ac_cpp conftest.$ac_ext"
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null; then
7261 if test -s conftest.err; then
7262 ac_cpp_err=$ac_cxx_preproc_warn_flag
7263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7270 if test -z "$ac_cpp_err"; then
7271 # Broken: success on invalid input.
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 # Passes both tests.
7282 rm -f conftest.err conftest.$ac_ext
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.err conftest.$ac_ext
7287 if $ac_preproc_ok; then
7292 ac_cv_prog_CXXCPP=$CXXCPP
7295 CXXCPP=$ac_cv_prog_CXXCPP
7297 ac_cv_prog_CXXCPP=$CXXCPP
7299 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7300 echo "${ECHO_T}$CXXCPP" >&6; }
7302 for ac_cxx_preproc_warn_flag in '' yes
7304 # Use a header file that comes with gcc, so configuring glibc
7305 # with a fresh cross-compiler works.
7306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 # <limits.h> exists even on freestanding compilers.
7308 # On the NeXT, cc -E runs the code through the compiler's parser,
7309 # not just through cpp. "Syntax error" is here to catch this case.
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7317 # include <limits.h>
7319 # include <assert.h>
7323 if { (ac_try="$ac_cpp conftest.$ac_ext"
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } >/dev/null; then
7336 if test -s conftest.err; then
7337 ac_cpp_err=$ac_cxx_preproc_warn_flag
7338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7345 if test -z "$ac_cpp_err"; then
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 # Broken: fails on valid input.
7355 rm -f conftest.err conftest.$ac_ext
7357 # OK, works on sane cases. Now check whether nonexistent headers
7358 # can be detected and how.
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <ac_nonexistent.h>
7367 if { (ac_try="$ac_cpp conftest.$ac_ext"
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } >/dev/null; then
7380 if test -s conftest.err; then
7381 ac_cpp_err=$ac_cxx_preproc_warn_flag
7382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7389 if test -z "$ac_cpp_err"; then
7390 # Broken: success on invalid input.
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 # Passes both tests.
7401 rm -f conftest.err conftest.$ac_ext
7404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405 rm -f conftest.err conftest.$ac_ext
7406 if $ac_preproc_ok; then
7409 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7410 See \`config.log' for more details." >&5
7411 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7412 See \`config.log' for more details." >&2;}
7413 { (exit 1); exit 1; }; }
7417 ac_cpp='$CXXCPP $CPPFLAGS'
7418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7426 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7427 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7429 if test -n "$ac_tool_prefix"; then
7430 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
7432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_prog_F77+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 if test -n "$F77"; then
7440 ac_cv_prog_F77="$F77" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$F77"; then
7461 { echo "$as_me:$LINENO: result: $F77" >&5
7462 echo "${ECHO_T}$F77" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7469 test -n "$F77" && break
7472 if test -z "$F77"; then
7474 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
7476 # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 if test -n "$ac_ct_F77"; then
7484 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_ac_ct_F77="$ac_prog"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7504 if test -n "$ac_ct_F77"; then
7505 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7506 echo "${ECHO_T}$ac_ct_F77" >&6; }
7508 { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7513 test -n "$ac_ct_F77" && break
7516 if test "x$ac_ct_F77" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet. If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&5
7524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525 whose name does not start with the host triplet. If you think this
7526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527 ac_tool_warned=yes ;;
7534 # Provide some information about the compiler.
7535 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7536 ac_compiler=`set X $ac_compile; echo $2`
7537 { (ac_try="$ac_compiler --version >&5"
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compiler --version >&5") 2>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }
7547 { (ac_try="$ac_compiler -v >&5"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_compiler -v >&5") 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }
7557 { (ac_try="$ac_compiler -V >&5"
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_compiler -V >&5") 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }
7569 # If we don't use `.F' as extension, the preprocessor is not run on the
7570 # input file. (Note that this only needs to work for GNU compilers.)
7573 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7574 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7575 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7601 { (case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_try") 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest.$ac_objext'
7611 { (case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_try") 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7632 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7633 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7635 ac_test_FFLAGS=${FFLAGS+set}
7636 ac_save_FFLAGS=$FFLAGS
7638 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7639 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_f77_g+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7664 { (case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_try") 2>&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest.$ac_objext'
7674 { (case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_try") 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_cv_prog_f77_g=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7695 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7696 if test "$ac_test_FFLAGS" = set; then
7697 FFLAGS=$ac_save_FFLAGS
7698 elif test $ac_cv_prog_f77_g = yes; then
7699 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7705 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7712 G77=`test $ac_compiler_gnu = yes && echo yes`
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7723 # find the maximum length of command line arguments
7724 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7725 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7726 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 # On DJGPP, this test can blow up pretty badly due to problems in libc
7735 # (any single argument exceeding 2000 bytes causes a buffer overrun
7736 # during glob expansion). Even if it were fixed, the result of this
7737 # check would be larger than it should be.
7738 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7742 # Under GNU Hurd, this test is not required because there is
7743 # no limit to the length of command line arguments.
7744 # Libtool will interpret -1 as no limit whatsoever
7745 lt_cv_sys_max_cmd_len=-1;
7749 # On Win9x/ME, this test blows up -- it succeeds, but takes
7750 # about 5 minutes as the teststring grows exponentially.
7751 # Worse, since 9x/ME are not pre-emptively multitasking,
7752 # you end up with a "frozen" computer, even though with patience
7753 # the test eventually succeeds (with a max line length of 256k).
7754 # Instead, let's just punt: use the minimum linelength reported by
7755 # all of the supported platforms: 8192 (on NT/2K/XP).
7756 lt_cv_sys_max_cmd_len=8192;
7760 # On AmigaOS with pdksh, this test takes hours, literally.
7761 # So we just punt and use a minimum line length of 8192.
7762 lt_cv_sys_max_cmd_len=8192;
7765 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7766 # This has been around since 386BSD, at least. Likely further.
7767 if test -x /sbin/sysctl; then
7768 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7769 elif test -x /usr/sbin/sysctl; then
7770 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7772 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7774 # And add a safety zone
7775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7780 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7781 lt_cv_sys_max_cmd_len=196608
7785 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7786 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7787 # nice to cause kernel panics so lets avoid the loop below.
7788 # First set a reasonable default.
7789 lt_cv_sys_max_cmd_len=16384
7791 if test -x /sbin/sysconfig; then
7792 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7793 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7798 lt_cv_sys_max_cmd_len=102400
7800 sysv5* | sco5v6* | sysv4.2uw2*)
7801 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7802 if test -n "$kargmax"; then
7803 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7805 lt_cv_sys_max_cmd_len=32768
7809 # If test is not a shell built-in, we'll probably end up computing a
7810 # maximum length that is only half of the actual maximum length, but
7812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7813 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7814 = "XX$teststring") >/dev/null 2>&1 &&
7815 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7816 lt_cv_sys_max_cmd_len=$new_result &&
7817 test $i != 17 # 1/2 MB should be enough
7820 teststring=$teststring$teststring
7823 # Add a significant safety factor because C++ compilers can tack on massive
7824 # amounts of additional arguments before passing them to the linker.
7825 # It appears as though 1/2 is a usable value.
7826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7832 if test -n $lt_cv_sys_max_cmd_len ; then
7833 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7834 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7836 { echo "$as_me:$LINENO: result: none" >&5
7837 echo "${ECHO_T}none" >&6; }
7843 # Check for command to grab the raw symbol name followed by C symbol from nm.
7844 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7845 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7846 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 # These are sane defaults that work on at least a few old systems.
7851 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7853 # Character class describing NM global symbol codes.
7854 symcode='[BCDEGRST]'
7856 # Regexp to match symbols that can be accessed directly from C.
7857 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7859 # Transform an extracted symbol line into a proper C declaration
7860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7862 # Transform an extracted symbol line into symbol name and symbol address
7863 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'"
7865 # Define system-specific variables.
7870 cygwin* | mingw* | pw32*)
7871 symcode='[ABCDGISTW]'
7873 hpux*) # Its linker distinguishes data from code symbols
7874 if test "$host_cpu" = ia64; then
7875 symcode='[ABCDEGRST]'
7877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7878 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'"
7880 linux* | k*bsd*-gnu)
7881 if test "$host_cpu" = ia64; then
7882 symcode='[ABCDGIRSTW]'
7883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7884 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'"
7888 symcode='[BCDEGRST]'
7891 symcode='[BCDEGQRST]'
7902 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7910 # Handle CRLF in mingw tool chain
7914 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7918 # If we're using GNU nm, then use its standard symbol codes.
7919 case `$NM -V 2>&1` in
7920 *GNU* | *'with BFD'*)
7921 symcode='[ABCDGIRSTW]' ;;
7924 # Try without a prefix undercore, then with it.
7925 for ac_symprfx in "" "_"; do
7927 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7928 symxfrm="\\1 $ac_symprfx\\2 \\2"
7930 # Write the raw and C identifiers.
7931 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7933 # Check to see that the pipe works correctly.
7937 cat > conftest.$ac_ext <<EOF
7942 void nm_test_func(){}
7946 int main(){nm_test_var='a';nm_test_func();return(0);}
7949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950 (eval $ac_compile) 2>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; then
7954 # Now try to grab the symbols.
7956 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7957 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && test -s "$nlist"; then
7961 # Try sorting and uniquifying the output.
7962 if sort "$nlist" | uniq > "$nlist"T; then
7963 mv -f "$nlist"T "$nlist"
7968 # Make sure that we snagged all the symbols we need.
7969 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7970 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7971 cat <<EOF > conftest.$ac_ext
7977 # Now generate the symbol file.
7978 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7980 cat <<EOF >> conftest.$ac_ext
7981 #if defined (__STDC__) && __STDC__
7982 # define lt_ptr_t void *
7984 # define lt_ptr_t char *
7988 /* The mapping between symbol names and symbols. */
7993 lt_preloaded_symbols[] =
7996 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7997 cat <<\EOF >> conftest.$ac_ext
8005 # Now try linking the two files.
8006 mv conftest.$ac_objext conftstm.$ac_objext
8007 lt_save_LIBS="$LIBS"
8008 lt_save_CFLAGS="$CFLAGS"
8009 LIBS="conftstm.$ac_objext"
8010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8018 LIBS="$lt_save_LIBS"
8019 CFLAGS="$lt_save_CFLAGS"
8021 echo "cannot find nm_test_func in $nlist" >&5
8024 echo "cannot find nm_test_var in $nlist" >&5
8027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8030 echo "$progname: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8033 rm -f conftest* conftst*
8035 # Do not use the global_symbol_pipe unless it works.
8036 if test "$pipe_works" = yes; then
8039 lt_cv_sys_global_symbol_pipe=
8045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8046 lt_cv_sys_global_symbol_to_cdecl=
8048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8049 { echo "$as_me:$LINENO: result: failed" >&5
8050 echo "${ECHO_T}failed" >&6; }
8052 { echo "$as_me:$LINENO: result: ok" >&5
8053 echo "${ECHO_T}ok" >&6; }
8056 { echo "$as_me:$LINENO: checking for objdir" >&5
8057 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8058 if test "${lt_cv_objdir+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 rm -f .libs 2>/dev/null
8062 mkdir .libs 2>/dev/null
8063 if test -d .libs; then
8066 # MS-DOS does not allow filenames that begin with a dot.
8069 rmdir .libs 2>/dev/null
8071 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8072 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8073 objdir=$lt_cv_objdir
8081 # AIX sometimes has problems with the GCC collect2 program. For some
8082 # reason, if we set the COLLECT_NAMES environment variable, the problems
8083 # vanish in a puff of smoke.
8084 if test "X${COLLECT_NAMES+set}" != Xset; then
8086 export COLLECT_NAMES
8091 # Sed substitution that helps us do robust quoting. It backslashifies
8092 # metacharacters that are still active within double-quoted strings.
8093 Xsed='sed -e 1s/^X//'
8094 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8096 # Same as above, but do not quote variable references.
8097 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8099 # Sed substitution to delay expansion of an escaped shell variable in a
8100 # double_quote_subst'ed string.
8101 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8103 # Sed substitution to avoid accidental globbing in evaled expressions
8104 no_glob_subst='s/\*/\\\*/g'
8110 default_ofile=libtool
8111 can_build_shared=yes
8113 # All known linkers require a `.a' archive for static linking (except MSVC,
8114 # which needs '.lib').
8116 ltmain="$ac_aux_dir/ltmain.sh"
8117 ofile="$default_ofile"
8118 with_gnu_ld="$lt_cv_prog_gnu_ld"
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}ar; ac_word=$2
8123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125 if test "${ac_cv_prog_AR+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 if test -n "$AR"; then
8129 ac_cv_prog_AR="$AR" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_AR="${ac_tool_prefix}ar"
8139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 if test -n "$AR"; then
8150 { echo "$as_me:$LINENO: result: $AR" >&5
8151 echo "${ECHO_T}$AR" >&6; }
8153 { echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6; }
8159 if test -z "$ac_cv_prog_AR"; then
8161 # Extract the first word of "ar", so it can be a program name with args.
8162 set dummy ar; ac_word=$2
8163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 if test -n "$ac_ct_AR"; then
8169 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_ac_ct_AR="ar"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8189 if test -n "$ac_ct_AR"; then
8190 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8191 echo "${ECHO_T}$ac_ct_AR" >&6; }
8193 { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8197 if test "x$ac_ct_AR" = x; then
8200 case $cross_compiling:$ac_tool_warned in
8202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8203 whose name does not start with the host triplet. If you think this
8204 configuration is useful to you, please write to autoconf@gnu.org." >&5
8205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8206 whose name does not start with the host triplet. If you think this
8207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8208 ac_tool_warned=yes ;;
8216 if test -n "$ac_tool_prefix"; then
8217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8218 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_prog_RANLIB+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 if test -n "$RANLIB"; then
8225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 RANLIB=$ac_cv_prog_RANLIB
8245 if test -n "$RANLIB"; then
8246 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8247 echo "${ECHO_T}$RANLIB" >&6; }
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8255 if test -z "$ac_cv_prog_RANLIB"; then
8256 ac_ct_RANLIB=$RANLIB
8257 # Extract the first word of "ranlib", so it can be a program name with args.
8258 set dummy ranlib; ac_word=$2
8259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 if test -n "$ac_ct_RANLIB"; then
8265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_ac_ct_RANLIB="ranlib"
8275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8285 if test -n "$ac_ct_RANLIB"; then
8286 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8287 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8289 { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8293 if test "x$ac_ct_RANLIB" = x; then
8296 case $cross_compiling:$ac_tool_warned in
8298 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8299 whose name does not start with the host triplet. If you think this
8300 configuration is useful to you, please write to autoconf@gnu.org." >&5
8301 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8302 whose name does not start with the host triplet. If you think this
8303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8304 ac_tool_warned=yes ;;
8306 RANLIB=$ac_ct_RANLIB
8309 RANLIB="$ac_cv_prog_RANLIB"
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}strip; ac_word=$2
8315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317 if test "${ac_cv_prog_STRIP+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 if test -n "$STRIP"; then
8321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 STRIP=$ac_cv_prog_STRIP
8341 if test -n "$STRIP"; then
8342 { echo "$as_me:$LINENO: result: $STRIP" >&5
8343 echo "${ECHO_T}$STRIP" >&6; }
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8351 if test -z "$ac_cv_prog_STRIP"; then
8353 # Extract the first word of "strip", so it can be a program name with args.
8354 set dummy strip; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 if test -n "$ac_ct_STRIP"; then
8361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_ac_ct_STRIP="strip"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381 if test -n "$ac_ct_STRIP"; then
8382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8383 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8385 { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8389 if test "x$ac_ct_STRIP" = x; then
8392 case $cross_compiling:$ac_tool_warned in
8394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8395 whose name does not start with the host triplet. If you think this
8396 configuration is useful to you, please write to autoconf@gnu.org." >&5
8397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8398 whose name does not start with the host triplet. If you think this
8399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8400 ac_tool_warned=yes ;;
8405 STRIP="$ac_cv_prog_STRIP"
8410 old_CFLAGS="$CFLAGS"
8412 # Set sane defaults for various variables
8413 test -z "$AR" && AR=ar
8414 test -z "$AR_FLAGS" && AR_FLAGS=cru
8415 test -z "$AS" && AS=as
8416 test -z "$CC" && CC=cc
8417 test -z "$LTCC" && LTCC=$CC
8418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419 test -z "$DLLTOOL" && DLLTOOL=dlltool
8420 test -z "$LD" && LD=ld
8421 test -z "$LN_S" && LN_S="ln -s"
8422 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423 test -z "$NM" && NM=nm
8424 test -z "$SED" && SED=sed
8425 test -z "$OBJDUMP" && OBJDUMP=objdump
8426 test -z "$RANLIB" && RANLIB=:
8427 test -z "$STRIP" && STRIP=:
8428 test -z "$ac_objext" && ac_objext=o
8430 # Determine commands to create old-style static archives.
8431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8432 old_postinstall_cmds='chmod 644 $oldlib'
8433 old_postuninstall_cmds=
8435 if test -n "$RANLIB"; then
8438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8447 for cc_temp in $compiler""; do
8449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8458 # Only perform the check for file, if the check method requires it
8459 case $deplibs_check_method in
8461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/${ac_tool_prefix}file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such. This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem. Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8518 { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8522 if test -z "$lt_cv_path_MAGIC_CMD"; then
8523 if test -n "$ac_tool_prefix"; then
8524 { echo "$as_me:$LINENO: checking for file" >&5
8525 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8534 lt_save_MAGIC_CMD="$MAGIC_CMD"
8535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f $ac_dir/file; then
8541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8570 MAGIC_CMD="$lt_save_MAGIC_CMD"
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8596 # Check whether --enable-libtool-lock was given.
8597 if test "${enable_libtool_lock+set}" = set; then
8598 enableval=$enable_libtool_lock;
8601 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8604 # Check whether --with-pic was given.
8605 if test "${with_pic+set}" = set; then
8606 withval=$with_pic; pic_mode="$withval"
8611 test -z "$pic_mode" && pic_mode=default
8613 # Use C for the default configuration in the libtool script
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8623 # Source file extension for C test sources.
8626 # Object file extension for compiled C test sources.
8630 # Code to be used in simple compile tests
8631 lt_simple_compile_test_code="int some_variable = 0;\n"
8633 # Code to be used in simple link tests
8634 lt_simple_link_test_code='int main(){return(0);}\n'
8637 # If no C compiler was specified, use CC.
8640 # If no C compiler flags were specified, use CFLAGS.
8641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8643 # Allow CC to be a program name with arguments.
8647 # save warnings/boilerplate of simple test code
8648 ac_outfile=conftest.$ac_objext
8649 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_compiler_boilerplate=`cat conftest.err`
8654 ac_outfile=conftest.$ac_objext
8655 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_linker_boilerplate=`cat conftest.err`
8662 lt_prog_compiler_no_builtin_flag=
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8668 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8669 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 lt_cv_prog_compiler_rtti_exceptions=no
8674 ac_outfile=conftest.$ac_objext
8675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8676 lt_compiler_flag="-fno-rtti -fno-exceptions"
8677 # Insert the option either (1) after the last *FLAGS variable, or
8678 # (2) before a word containing "conftest.", or (3) at the end.
8679 # Note that $ac_compile itself does not contain backslashes and begins
8680 # with a dollar sign (not a hyphen), so the echo should work correctly.
8681 # The option is referenced via a variable to avoid confusing sed.
8682 lt_compile=`echo "$ac_compile" | $SED \
8683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685 -e 's:$: $lt_compiler_flag:'`
8686 (eval echo "\"\$as_me:8686: $lt_compile\"" >&5)
8687 (eval "$lt_compile" 2>conftest.err)
8689 cat conftest.err >&5
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 if (exit $ac_status) && test -s "$ac_outfile"; then
8692 # The compiler can only warn and ignore the option if not recognized
8693 # So say no if there are warnings other than the usual output.
8694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8697 lt_cv_prog_compiler_rtti_exceptions=yes
8703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8704 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8714 lt_prog_compiler_wl=
8715 lt_prog_compiler_pic=
8716 lt_prog_compiler_static=
8718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8721 if test "$GCC" = yes; then
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_static='-static'
8727 # All AIX code is PIC.
8728 if test "$host_cpu" = ia64; then
8729 # AIX 5 now supports IA64 processor
8730 lt_prog_compiler_static='-Bstatic'
8735 # FIXME: we need at least 68020 code to build shared libraries, but
8736 # adding the `-m68020' flag to GCC prevents building anything better,
8738 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8741 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742 # PIC is the default for these OSes.
8745 mingw* | pw32* | os2*)
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 lt_prog_compiler_pic='-DDLL_EXPORT'
8751 darwin* | rhapsody*)
8752 # PIC is the default on this platform
8753 # Common symbols not allowed in MH_DYLIB files
8754 lt_prog_compiler_pic='-fno-common'
8758 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8759 # Instead, we relocate shared libraries at runtime.
8763 # Just because we use GCC doesn't mean we suddenly get shared libraries
8764 # on systems that don't support them.
8765 lt_prog_compiler_can_build_shared=no
8770 if test -d /usr/nec; then
8771 lt_prog_compiler_pic=-Kconform_pic
8776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8783 lt_prog_compiler_pic='-fPIC'
8789 lt_prog_compiler_pic='-fPIC'
8793 # PORTME Check for flag to pass linker flags through the system compiler.
8796 lt_prog_compiler_wl='-Wl,'
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8805 # PIC is the default on this platform
8806 # Common symbols not allowed in MH_DYLIB files
8807 case $cc_basename in
8809 lt_prog_compiler_pic='-qnocommon'
8810 lt_prog_compiler_wl='-Wl,'
8815 mingw* | pw32* | os2*)
8816 # This hack is so that the source file can tell whether it is being
8817 # built for inclusion in a dll (and should export symbols for example).
8818 lt_prog_compiler_pic='-DDLL_EXPORT'
8821 hpux9* | hpux10* | hpux11*)
8822 lt_prog_compiler_wl='-Wl,'
8823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8830 lt_prog_compiler_pic='+Z'
8833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8834 lt_prog_compiler_static='${wl}-a ${wl}archive'
8837 irix5* | irix6* | nonstopux*)
8838 lt_prog_compiler_wl='-Wl,'
8839 # PIC (with -KPIC) is the default.
8840 lt_prog_compiler_static='-non_shared'
8844 lt_prog_compiler_pic='-KPIC'
8845 lt_prog_compiler_static='-Bstatic'
8848 linux* | k*bsd*-gnu)
8849 case $cc_basename in
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-static'
8855 pgcc* | pgf77* | pgf90* | pgf95*)
8856 # Portland Group compilers (*not* the Pentium gcc compiler,
8857 # which looks to be a dead project)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-fpic'
8860 lt_prog_compiler_static='-Bstatic'
8863 lt_prog_compiler_wl='-Wl,'
8864 # All Alpha code is PIC.
8865 lt_prog_compiler_static='-non_shared'
8870 osf3* | osf4* | osf5*)
8871 lt_prog_compiler_wl='-Wl,'
8872 # All OSF/1 code is PIC.
8873 lt_prog_compiler_static='-non_shared'
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 case $cc_basename in
8881 lt_prog_compiler_wl='-Qoption ld ';;
8883 lt_prog_compiler_wl='-Wl,';;
8888 lt_prog_compiler_wl='-Qoption ld '
8889 lt_prog_compiler_pic='-PIC'
8890 lt_prog_compiler_static='-Bstatic'
8893 sysv4 | sysv4.2uw2* | sysv4.3*)
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8900 if test -d /usr/nec ;then
8901 lt_prog_compiler_pic='-Kconform_pic'
8902 lt_prog_compiler_static='-Bstatic'
8906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_can_build_shared=no
8918 lt_prog_compiler_pic='-pic'
8919 lt_prog_compiler_static='-Bstatic'
8923 lt_prog_compiler_can_build_shared=no
8928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8929 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8932 # Check to make sure the PIC flag actually works.
8934 if test -n "$lt_prog_compiler_pic"; then
8936 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8938 if test "${lt_prog_compiler_pic_works+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 lt_prog_compiler_pic_works=no
8942 ac_outfile=conftest.$ac_objext
8943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 # The option is referenced via a variable to avoid confusing sed.
8950 lt_compile=`echo "$ac_compile" | $SED \
8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953 -e 's:$: $lt_compiler_flag:'`
8954 (eval echo "\"\$as_me:8954: $lt_compile\"" >&5)
8955 (eval "$lt_compile" 2>conftest.err)
8957 cat conftest.err >&5
8958 echo "$as_me:8958: \$? = $ac_status" >&5
8959 if (exit $ac_status) && test -s "$ac_outfile"; then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings other than the usual output.
8962 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8965 lt_prog_compiler_pic_works=yes
8971 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8972 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8974 if test x"$lt_prog_compiler_pic_works" = xyes; then
8975 case $lt_prog_compiler_pic in
8977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_can_build_shared=no
8986 # For platforms which do not support PIC, -DPIC is meaningless:
8988 lt_prog_compiler_pic=
8991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8996 # Check to make sure the static flag actually works.
8998 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8999 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9000 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9001 if test "${lt_prog_compiler_static_works+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 lt_prog_compiler_static_works=no
9005 save_LDFLAGS="$LDFLAGS"
9006 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9007 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9009 # The linker can only warn and ignore the option if not recognized
9010 # So say no if there are warnings
9011 if test -s conftest.err; then
9012 # Append any errors to the config.log.
9013 cat conftest.err 1>&5
9014 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016 if diff conftest.exp conftest.er2 >/dev/null; then
9017 lt_prog_compiler_static_works=yes
9020 lt_prog_compiler_static_works=yes
9024 LDFLAGS="$save_LDFLAGS"
9027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9028 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9030 if test x"$lt_prog_compiler_static_works" = xyes; then
9033 lt_prog_compiler_static=
9037 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9038 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9039 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 lt_cv_prog_compiler_c_o=no
9043 $rm -r conftest 2>/dev/null
9047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9049 lt_compiler_flag="-o out/conftest2.$ac_objext"
9050 # Insert the option either (1) after the last *FLAGS variable, or
9051 # (2) before a word containing "conftest.", or (3) at the end.
9052 # Note that $ac_compile itself does not contain backslashes and begins
9053 # with a dollar sign (not a hyphen), so the echo should work correctly.
9054 lt_compile=`echo "$ac_compile" | $SED \
9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057 -e 's:$: $lt_compiler_flag:'`
9058 (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059 (eval "$lt_compile" 2>out/conftest.err)
9061 cat out/conftest.err >&5
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065 # The compiler can only warn and ignore the option if not recognized
9066 # So say no if there are warnings
9067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9070 lt_cv_prog_compiler_c_o=yes
9075 # SGI C++ compiler will create directory out/ii_files/ for
9076 # template instantiation
9077 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9078 $rm out/* && rmdir out
9084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9085 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9088 hard_links="nottested"
9089 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9090 # do not overwrite the value of need_locks provided by the user
9091 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9092 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9097 ln conftest.a conftest.b 2>&5 || hard_links=no
9098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9099 { echo "$as_me:$LINENO: result: $hard_links" >&5
9100 echo "${ECHO_T}$hard_links" >&6; }
9101 if test "$hard_links" = no; then
9102 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9103 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9110 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9111 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9114 allow_undefined_flag=
9115 enable_shared_with_static_runtimes=no
9117 archive_expsym_cmds=
9118 old_archive_From_new_cmds=
9119 old_archive_from_expsyms_cmds=
9120 export_dynamic_flag_spec=
9121 whole_archive_flag_spec=
9122 thread_safe_flag_spec=
9123 hardcode_libdir_flag_spec=
9124 hardcode_libdir_flag_spec_ld=
9125 hardcode_libdir_separator=
9128 hardcode_shlibpath_var=unsupported
9129 link_all_deplibs=unknown
9130 hardcode_automatic=no
9133 always_export_symbols=no
9134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9135 # include_expsyms should be a list of space-separated symbols to be *always*
9136 # included in the symbol list
9138 # exclude_expsyms can be an extended regexp of symbols to exclude
9139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9141 # as well as any symbol that contains `d'.
9142 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9144 # platforms (ab)use it in PIC code, but their linkers get confused if
9145 # the symbol is explicitly referenced. Since portable code cannot
9146 # rely on this symbol name, it's probably fine to never include it in
9147 # preloaded symbol tables.
9148 extract_expsyms_cmds=
9149 # Just being paranoid about ensuring that cc_basename is set.
9150 for cc_temp in $compiler""; do
9152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9161 cygwin* | mingw* | pw32*)
9162 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9163 # When not using gcc, we currently assume that we are using
9164 # Microsoft Visual C++.
9165 if test "$GCC" != yes; then
9170 # we just hope/assume this is gcc and not c89 (= MSVC++)
9179 if test "$with_gnu_ld" = yes; then
9180 # If archive_cmds runs LD, not CC, wlarc should be empty
9183 # Set some defaults for GNU ld with shared library support. These
9184 # are reset later if shared libraries are not supported. Putting them
9185 # here allows them to be overridden if necessary.
9186 runpath_var=LD_RUN_PATH
9187 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9188 export_dynamic_flag_spec='${wl}--export-dynamic'
9189 # ancient GNU ld didn't support --whole-archive et. al.
9190 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9193 whole_archive_flag_spec=
9195 supports_anon_versioning=no
9196 case `$LD -v 2>/dev/null` in
9197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9200 *\ 2.11.*) ;; # other 2.11 versions
9201 *) supports_anon_versioning=yes ;;
9204 # See if GNU ld supports shared libraries.
9206 aix3* | aix4* | aix5*)
9207 # On AIX/PPC, the GNU linker is very broken
9208 if test "$host_cpu" != ia64; then
9212 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9213 *** to be unable to reliably create shared libraries on AIX.
9214 *** Therefore, libtool is disabling shared libraries support. If you
9215 *** really care for shared libraries, you may want to modify your PATH
9216 *** so that a non-GNU linker is found, and then restart.
9223 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)'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9227 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9228 # that the semantics of dynamic libraries on AmigaOS, at least up
9229 # to version 4, is to share data among multiple programs linked
9230 # with the same dynamic library. Since this doesn't match the
9231 # behavior of shared libraries on other platforms, we can't use
9237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9238 allow_undefined_flag=unsupported
9239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9240 # support --undefined. This deserves some investigation. FIXME
9241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 cygwin* | mingw* | pw32*)
9248 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9249 # as there is no search path for DLLs.
9250 hardcode_libdir_flag_spec='-L$libdir'
9251 allow_undefined_flag=unsupported
9252 always_export_symbols=no
9253 enable_shared_with_static_runtimes=yes
9254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9256 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 # If the export-symbols file already is a .def file (1st line
9259 # is EXPORTS), use it as is; otherwise, prepend...
9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9261 cp $export_symbols $output_objdir/$soname.def;
9263 echo EXPORTS > $output_objdir/$soname.def;
9264 cat $export_symbols >> $output_objdir/$soname.def;
9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9274 hardcode_shlibpath_var=no
9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276 export_dynamic_flag_spec='${wl}-E'
9277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9278 # Instead, shared libraries are loaded at an image base (0x10000000 by
9279 # default) and relocated if they conflict, which is a slow very memory
9280 # consuming and fragmenting process. To avoid this, we pick a random,
9281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9282 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9284 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'
9287 linux* | k*bsd*-gnu)
9288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9290 case $cc_basename,$host_cpu in
9291 pgcc*) # Portland Group C compiler
9292 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'
9293 tmp_addflag=' $pic_flag'
9295 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9296 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'
9297 tmp_addflag=' $pic_flag -Mnomain' ;;
9298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9299 tmp_addflag=' -i_dynamic' ;;
9300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9301 tmp_addflag=' -i_dynamic -nofor_main' ;;
9302 ifc* | ifort*) # Intel Fortran compiler
9303 tmp_addflag=' -nofor_main' ;;
9305 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307 if test $supports_anon_versioning = yes; then
9308 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9310 $echo "local: *; };" >> $output_objdir/$libname.ver~
9311 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9319 netbsd* | netbsdelf*-gnu)
9320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335 *** create shared libraries on Solaris systems. Therefore, libtool
9336 *** is disabling shared libraries support. We urge you to upgrade GNU
9337 *** binutils to release 2.9.1 or newer. Another option is to modify
9338 *** your PATH or compiler configuration so that the native linker is
9339 *** used, and then restart.
9342 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351 case `$LD -v 2>&1` in
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9357 *** reliably create shared libraries on SCO systems. Therefore, libtool
9358 *** is disabling shared libraries support. We urge you to upgrade GNU
9359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9360 *** your PATH or compiler configuration so that the native linker is
9361 *** used, and then restart.
9366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9367 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_shlibpath_var=no
9385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394 if test "$ld_shlibs" = no; then
9396 hardcode_libdir_flag_spec=
9397 export_dynamic_flag_spec=
9398 whole_archive_flag_spec=
9401 # PORTME fill in a description of your system's linker (not GNU ld)
9404 allow_undefined_flag=unsupported
9405 always_export_symbols=yes
9406 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'
9407 # Note: this linker hardcodes the directories in LIBPATH if there
9408 # are no directories specified by -L.
9409 hardcode_minus_L=yes
9410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9411 # Neither direct hardcoding nor static linking is supported with a
9413 hardcode_direct=unsupported
9418 if test "$host_cpu" = ia64; then
9419 # On IA64, the linker does run time linking by default, so we don't
9420 # have to do anything special.
9421 aix_use_runtimelinking=no
9422 exp_sym_flag='-Bexport'
9425 # If we're using GNU nm, then we don't want the "-C" option.
9426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9428 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'
9430 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'
9432 aix_use_runtimelinking=no
9434 # Test if we are trying to use run time linking or normal
9435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9436 # need to do runtime linking.
9437 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9438 for ld_flag in $LDFLAGS; do
9439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9440 aix_use_runtimelinking=yes
9447 exp_sym_flag='-bexport'
9448 no_entry_flag='-bnoentry'
9451 # When large executables or shared objects are built, AIX ld can
9452 # have problems creating the table of contents. If linking a library
9453 # or program results in "error TOC overflow" add -mminimal-toc to
9454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9459 hardcode_libdir_separator=':'
9460 link_all_deplibs=yes
9462 if test "$GCC" = yes; then
9463 case $host_os in aix4.[012]|aix4.[012].*)
9464 # We only want to do this on AIX 4.2 and lower, the check
9465 # below for broken collect2 doesn't work under 4.3+
9466 collect2name=`${CC} -print-prog-name=collect2`
9467 if test -f "$collect2name" && \
9468 strings "$collect2name" | grep resolve_lib_name >/dev/null
9470 # We have reworked collect2
9473 # We have old collect2
9474 hardcode_direct=unsupported
9475 # It fails to find uninstalled libraries when the uninstalled
9476 # path is not listed in the libpath. Setting hardcode_minus_L
9477 # to unsupported forces relinking
9478 hardcode_minus_L=yes
9479 hardcode_libdir_flag_spec='-L$libdir'
9480 hardcode_libdir_separator=
9484 shared_flag='-shared'
9485 if test "$aix_use_runtimelinking" = yes; then
9486 shared_flag="$shared_flag "'${wl}-G'
9490 if test "$host_cpu" = ia64; then
9491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9492 # chokes on -Wl,-G. The following line is correct:
9495 if test "$aix_use_runtimelinking" = yes; then
9496 shared_flag='${wl}-G'
9498 shared_flag='${wl}-bM:SRE'
9503 # It seems that -bexpall does not export symbols beginning with
9504 # underscore (_), so it is better to generate a list of symbols to export.
9505 always_export_symbols=yes
9506 if test "$aix_use_runtimelinking" = yes; then
9507 # Warning - without using the other runtime loading flags (-brtl),
9508 # -berok will link without error, but may produce a broken library.
9509 allow_undefined_flag='-berok'
9510 # Determine the default libpath from the value encoded in an empty executable.
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_try") 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9563 # Check for a 64-bit object if we didn't find anything.
9564 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; }
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9578 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"
9580 if test "$host_cpu" = ia64; then
9581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9582 allow_undefined_flag="-z nodefs"
9583 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"
9585 # Determine the default libpath from the value encoded in an empty executable.
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9638 # Check for a 64-bit object if we didn't find anything.
9639 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; }
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9653 # Warning - without using the other run time loading flags,
9654 # -berok will link without error, but may produce a broken library.
9655 no_undefined_flag=' ${wl}-bernotok'
9656 allow_undefined_flag=' ${wl}-berok'
9657 # Exported symbols can be pulled into shared objects from archives
9658 whole_archive_flag_spec='$convenience'
9659 archive_cmds_need_lc=yes
9660 # This is similar to how AIX traditionally builds its shared libraries.
9661 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'
9667 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)'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_minus_L=yes
9670 # see comment about different semantics on the GNU ld section
9675 export_dynamic_flag_spec=-rdynamic
9678 cygwin* | mingw* | pw32*)
9679 # When not using gcc, we currently assume that we are using
9680 # Microsoft Visual C++.
9681 # hardcode_libdir_flag_spec is actually meaningless, as there is
9682 # no search path for DLLs.
9683 hardcode_libdir_flag_spec=' '
9684 allow_undefined_flag=unsupported
9685 # Tell ltmain to make .lib files, not .a files.
9687 # Tell ltmain to make .dll files, not .so files.
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9691 # The linker will automatically build a .lib file if we build a DLL.
9692 old_archive_From_new_cmds='true'
9693 # FIXME: Should let the user specify the lib program.
9694 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9695 fix_srcfile_path='`cygpath -w "$srcfile"`'
9696 enable_shared_with_static_runtimes=yes
9699 darwin* | rhapsody*)
9701 rhapsody* | darwin1.[012])
9702 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9706 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9708 case ${MACOSX_DEPLOYMENT_TARGET} in
9710 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9713 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9719 archive_cmds_need_lc=no
9721 hardcode_automatic=yes
9722 hardcode_shlibpath_var=unsupported
9723 whole_archive_flag_spec=''
9724 link_all_deplibs=yes
9725 if test "$GCC" = yes ; then
9726 output_verbose_link_cmd='echo'
9727 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9728 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9729 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9730 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}'
9731 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}'
9733 case $cc_basename in
9735 output_verbose_link_cmd='echo'
9736 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9737 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9739 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}'
9740 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}'
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_shlibpath_var=no
9759 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9760 # support. Future versions do this automatically, but an explicit c++rt0.o
9761 # does not break anything, and helps significantly (at the cost of a little
9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9765 hardcode_libdir_flag_spec='-R$libdir'
9767 hardcode_shlibpath_var=no
9770 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_minus_L=yes
9775 hardcode_shlibpath_var=no
9778 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9779 freebsd* | dragonfly*)
9780 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9781 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_shlibpath_var=no
9787 if test "$GCC" = yes; then
9788 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'
9790 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'
9792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9793 hardcode_libdir_separator=:
9796 # hardcode_minus_L: Not really in the search PATH,
9797 # but as the default location of the library.
9798 hardcode_minus_L=yes
9799 export_dynamic_flag_spec='${wl}-E'
9803 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9804 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 if test "$with_gnu_ld" = no; then
9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9810 hardcode_libdir_separator=:
9813 export_dynamic_flag_spec='${wl}-E'
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L=yes
9822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9825 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9847 if test "$with_gnu_ld" = no; then
9848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849 hardcode_libdir_separator=:
9853 hardcode_libdir_flag_spec_ld='+b $libdir'
9855 hardcode_shlibpath_var=no
9859 export_dynamic_flag_spec='${wl}-E'
9861 # hardcode_minus_L: Not really in the search PATH,
9862 # but as the default location of the library.
9863 hardcode_minus_L=yes
9869 irix5* | irix6* | nonstopux*)
9870 if test "$GCC" = yes; then
9871 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'
9873 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'
9874 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9877 hardcode_libdir_separator=:
9878 link_all_deplibs=yes
9881 netbsd* | netbsdelf*-gnu)
9882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9887 hardcode_libdir_flag_spec='-R$libdir'
9889 hardcode_shlibpath_var=no
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 hardcode_shlibpath_var=no
9902 hardcode_shlibpath_var=no
9903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907 export_dynamic_flag_spec='${wl}-E'
9910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_libdir_flag_spec='-R$libdir'
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9923 hardcode_libdir_flag_spec='-L$libdir'
9924 hardcode_minus_L=yes
9925 allow_undefined_flag=unsupported
9926 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'
9927 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9931 if test "$GCC" = yes; then
9932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9933 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'
9935 allow_undefined_flag=' -expect_unresolved \*'
9936 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'
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator=:
9942 osf4* | osf5*) # as osf3* with the addition of -msym flag
9943 if test "$GCC" = yes; then
9944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9945 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'
9946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948 allow_undefined_flag=' -expect_unresolved \*'
9949 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'
9950 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9951 $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'
9953 # Both c and cxx compiler support -rpath directly
9954 hardcode_libdir_flag_spec='-rpath $libdir'
9956 hardcode_libdir_separator=:
9960 no_undefined_flag=' -z text'
9961 if test "$GCC" = yes; then
9963 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9972 hardcode_libdir_flag_spec='-R$libdir'
9973 hardcode_shlibpath_var=no
9975 solaris2.[0-5] | solaris2.[0-5].*) ;;
9977 # The compiler driver will combine linker options so we
9978 # cannot just pass the convience library names through
9979 # without $wl, iff we do not link with $LD.
9980 # Luckily, gcc supports the same syntax we need for Sun Studio.
9981 # Supported since Solaris 2.6 (maybe 2.5.1?)
9984 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9986 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' ;;
9989 link_all_deplibs=yes
9993 if test "x$host_vendor" = xsequent; then
9994 # Use $CC to link under sequent, because it throws in some extra .o
9995 # files that make .init and .fini sections work.
9996 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_direct=yes
10002 hardcode_minus_L=yes
10003 hardcode_shlibpath_var=no
10007 case $host_vendor in
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_direct=yes # is this really true???
10013 ## LD is ld it makes a PLAMLIB
10014 ## CC just makes a GrossModule.
10015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10016 reload_cmds='$CC -r -o $output$reload_objs'
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10024 runpath_var='LD_RUN_PATH'
10025 hardcode_shlibpath_var=no
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_shlibpath_var=no
10031 export_dynamic_flag_spec='-Bexport'
10035 if test -d /usr/nec; then
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_shlibpath_var=no
10038 runpath_var=LD_RUN_PATH
10039 hardcode_runpath_var=yes
10044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10045 no_undefined_flag='${wl}-z,text'
10046 archive_cmds_need_lc=no
10047 hardcode_shlibpath_var=no
10048 runpath_var='LD_RUN_PATH'
10050 if test "$GCC" = yes; then
10051 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 sysv5* | sco3.2v5* | sco5v6*)
10060 # Note: We can NOT use -z defs as we might desire, because we do not
10061 # link with -lc, and that would cause any symbols used from libc to
10062 # always be unresolved, which means just about no library would
10063 # ever link correctly. If we're not using GNU ld we use -z text
10064 # though, which does catch some bad symbols but isn't as heavy-handed
10066 no_undefined_flag='${wl}-z,text'
10067 allow_undefined_flag='${wl}-z,nodefs'
10068 archive_cmds_need_lc=no
10069 hardcode_shlibpath_var=no
10070 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10071 hardcode_libdir_separator=':'
10072 link_all_deplibs=yes
10073 export_dynamic_flag_spec='${wl}-Bexport'
10074 runpath_var='LD_RUN_PATH'
10076 if test "$GCC" = yes; then
10077 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_shlibpath_var=no
10097 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10098 echo "${ECHO_T}$ld_shlibs" >&6; }
10099 test "$ld_shlibs" = no && can_build_shared=no
10102 # Do we need to explicitly link libc?
10104 case "x$archive_cmds_need_lc" in
10106 # Assume -lc should be added
10107 archive_cmds_need_lc=yes
10109 if test "$enable_shared" = yes && test "$GCC" = yes; then
10110 case $archive_cmds in
10112 # FIXME: we may have to deal with multi-command sequences.
10115 # Test whether the compiler implicitly links with -lc since on some
10116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10117 # to ld, don't add -lc before -lgcc.
10118 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } 2>conftest.err; then
10130 libobjs=conftest.$ac_objext
10132 wl=$lt_prog_compiler_wl
10133 pic_flag=$lt_prog_compiler_pic
10139 lt_save_allow_undefined_flag=$allow_undefined_flag
10140 allow_undefined_flag=
10141 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10142 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }
10147 archive_cmds_need_lc=no
10149 archive_cmds_need_lc=yes
10151 allow_undefined_flag=$lt_save_allow_undefined_flag
10153 cat conftest.err 1>&5
10156 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10157 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10166 library_names_spec=
10167 libname_spec='lib$name'
10171 postuninstall_cmds=
10175 shlibpath_overrides_runpath=unknown
10177 dynamic_linker="$host_os ld.so"
10178 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10179 if test "$GCC" = yes; then
10180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10181 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10182 # if the path contains ";" then we assume it to be the separator
10183 # otherwise default to the standard path separator (i.e. ":") - it is
10184 # assumed that no part of a normal pathname contains ";" but that should
10185 # okay in the real world where ";" in dirpaths is itself problematic.
10186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10193 need_lib_prefix=unknown
10194 hardcode_into_libs=no
10196 # when you set need_version to no, make sure it does not cause -set_version
10197 # flags to be left without arguments
10198 need_version=unknown
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10204 shlibpath_var=LIBPATH
10206 # AIX 3 has no versioning support, so we append a major version to the name.
10207 soname_spec='${libname}${release}${shared_ext}$major'
10214 hardcode_into_libs=yes
10215 if test "$host_cpu" = ia64; then
10216 # AIX 5 supports IA64
10217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10220 # With GCC up to 2.95.x, collect2 would create an import file
10221 # for dependence libraries. The import file would start with
10222 # the line `#! .'. This would cause the generated library to
10223 # depend on `.', always an invalid library. This was fixed in
10224 # development snapshots of GCC prior to 3.0.
10226 aix4 | aix4.[01] | aix4.[01].*)
10227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10232 can_build_shared=no
10236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10237 # soname into executable. Probably we can add versioning support to
10238 # collect2, so additional links can be useful in future.
10239 if test "$aix_use_runtimelinking" = yes; then
10240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10241 # instead of lib<name>.a to let people know that these are not
10242 # typical AIX shared libraries.
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 # We preserve .a as extension for shared libraries through AIX4.2
10246 # and later when we are not doing run time linking.
10247 library_names_spec='${libname}${release}.a $libname.a'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LIBPATH
10255 library_names_spec='$libname.ixlibrary $libname.a'
10256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10257 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'
10261 library_names_spec='${libname}${shared_ext}'
10262 dynamic_linker="$host_os ld.so"
10263 shlibpath_var=LIBRARY_PATH
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10275 # the default ld.so.conf also contains /usr/contrib/lib and
10276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10277 # libtool to hard-code these into programs
10280 cygwin* | mingw* | pw32*)
10281 version_type=windows
10286 case $GCC,$host_os in
10287 yes,cygwin* | yes,mingw* | yes,pw32*)
10288 library_names_spec='$libname.dll.a'
10289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10290 postinstall_cmds='base_file=`basename \${file}`~
10291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10292 dldir=$destdir/`dirname \$dlpath`~
10293 test -d \$dldir || mkdir -p \$dldir~
10294 $install_prog $dir/$dlname \$dldir/$dlname~
10295 chmod a+x \$dldir/$dlname'
10296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10297 dlpath=$dir/\$dldll~
10299 shlibpath_overrides_runpath=yes
10303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10308 # MinGW DLLs use traditional 'lib' prefix
10309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10312 # It is most probably a Windows format PATH printed by
10313 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10314 # path with ; separators, and with drive letters. We can handle the
10315 # drive letters (cygwin fileutils understands them), so leave them,
10316 # especially as we might pass files found there to a mingw objdump,
10317 # which wouldn't understand a cygwinified path. Ahh.
10318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10324 # pw32 DLLs use 'pw' prefix rather than 'lib'
10325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10334 dynamic_linker='Win32 ld.exe'
10335 # FIXME: first we should search . and the directory the executable is in
10339 darwin* | rhapsody*)
10340 dynamic_linker="$host_os dyld"
10341 version_type=darwin
10344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10345 soname_spec='${libname}${release}${major}$shared_ext'
10346 shlibpath_overrides_runpath=yes
10347 shlibpath_var=DYLD_LIBRARY_PATH
10348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10350 if test "$GCC" = yes; then
10351 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"`
10353 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10371 freebsd* | dragonfly*)
10372 # DragonFly does not have aout. When/if they implement a new
10373 # versioning mechanism, adjust this.
10374 if test -x /usr/bin/objformat; then
10375 objformat=`/usr/bin/objformat`
10378 freebsd[123]*) objformat=aout ;;
10379 *) objformat=elf ;;
10382 version_type=freebsd-$objformat
10383 case $version_type in
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10394 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10399 freebsd3.[01]* | freebsdelf3.[01]*)
10400 shlibpath_overrides_runpath=yes
10401 hardcode_into_libs=yes
10403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10405 shlibpath_overrides_runpath=no
10406 hardcode_into_libs=yes
10408 freebsd*) # from 4.6 on
10409 shlibpath_overrides_runpath=yes
10410 hardcode_into_libs=yes
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 hardcode_into_libs=yes
10425 hpux9* | hpux10* | hpux11*)
10426 # Give a soname corresponding to the major version so that dld.sl refuses to
10427 # link against other versions.
10434 hardcode_into_libs=yes
10435 dynamic_linker="$host_os dld.so"
10436 shlibpath_var=LD_LIBRARY_PATH
10437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 if test "X$HPUX_IA64_MODE" = X32; then
10441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449 hardcode_into_libs=yes
10450 dynamic_linker="$host_os dld.sl"
10451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 dynamic_linker="$host_os dld.sl"
10461 shlibpath_var=SHLIB_PATH
10462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10468 postinstall_cmds='chmod 555 $lib'
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=no
10480 hardcode_into_libs=yes
10483 irix5* | irix6* | nonstopux*)
10485 nonstopux*) version_type=nonstopux ;;
10487 if test "$lt_cv_prog_gnu_ld" = yes; then
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 irix5* | nonstopux*)
10499 libsuff= shlibsuff=
10502 case $LD in # libtool.m4 will add one of these switches to LD
10503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10504 libsuff= shlibsuff= libmagic=32-bit;;
10505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10506 libsuff=32 shlibsuff=N32 libmagic=N32;;
10507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10509 *) libsuff= shlibsuff= libmagic=never-match;;
10513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10514 shlibpath_overrides_runpath=no
10515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10517 hardcode_into_libs=yes
10520 # No shared lib support for Linux oldld, aout, or coff.
10521 linux*oldld* | linux*aout* | linux*coff*)
10525 # This must be Linux ELF.
10526 linux* | k*bsd*-gnu)
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=no
10535 # This implies no fast_install, which is unacceptable.
10536 # Some rework will be needed to allow for fast_install
10537 # before this can be enabled.
10538 hardcode_into_libs=yes
10540 # Append ld.so.conf contents to the search path
10541 if test -f /etc/ld.so.conf; then
10542 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' ' '`
10543 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10546 # We used to test for /lib/ld.so.1 and disable shared libraries on
10547 # powerpc, because MkLinux only supported shared libraries with the
10548 # GNU dynamic linker. Since this was broken with cross compilers,
10549 # most powerpc-linux boxes support dynamic linking these days and
10550 # people can always --disable-shared, the test was removed, and we
10551 # assume the GNU/Linux dynamic linker is in use.
10552 dynamic_linker='GNU/Linux ld.so'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 shlibpath_overrides_runpath=no
10563 hardcode_into_libs=yes
10564 dynamic_linker='NetBSD ld.elf_so'
10571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 dynamic_linker='NetBSD (a.out) ld.so'
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 dynamic_linker='NetBSD ld.elf_so'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10582 hardcode_into_libs=yes
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10604 sys_lib_dlsearch_path_spec="/usr/lib"
10606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10609 *) need_version=no ;;
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 openbsd2.[89] | openbsd2.[89].*)
10617 shlibpath_overrides_runpath=no
10620 shlibpath_overrides_runpath=yes
10624 shlibpath_overrides_runpath=yes
10629 libname_spec='$name'
10632 library_names_spec='$libname${shared_ext} $libname.a'
10633 dynamic_linker='OS/2 ld.exe'
10634 shlibpath_var=LIBPATH
10637 osf3* | osf4* | osf5*)
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes
10656 hardcode_into_libs=yes
10657 # ldd complains unless libraries are executable
10658 postinstall_cmds='chmod +x $lib'
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=yes
10667 if test "$with_gnu_ld" = yes; then
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 case $host_vendor in
10680 shlibpath_overrides_runpath=no
10682 export_dynamic_flag_spec='${wl}-Blargedynsym'
10683 runpath_var=LD_RUN_PATH
10691 shlibpath_overrides_runpath=no
10692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10698 if test -d /usr/nec ;then
10700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10701 soname_spec='$libname${shared_ext}.$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707 version_type=freebsd-elf
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 hardcode_into_libs=yes
10714 if test "$with_gnu_ld" = yes; then
10715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10716 shlibpath_overrides_runpath=no
10718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10719 shlibpath_overrides_runpath=yes
10722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10726 sys_lib_dlsearch_path_spec='/usr/lib'
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10741 echo "${ECHO_T}$dynamic_linker" >&6; }
10742 test "$dynamic_linker" = no && can_build_shared=no
10744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10745 if test "$GCC" = yes; then
10746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10749 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10752 if test -n "$hardcode_libdir_flag_spec" || \
10753 test -n "$runpath_var" || \
10754 test "X$hardcode_automatic" = "Xyes" ; then
10756 # We can hardcode non-existant directories.
10757 if test "$hardcode_direct" != no &&
10758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10759 # have to relink, otherwise we might link with an installed library
10760 # when we should be linking with a yet-to-be-installed one
10761 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10762 test "$hardcode_minus_L" != no; then
10763 # Linking always hardcodes the temporary library directory.
10764 hardcode_action=relink
10766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10767 hardcode_action=immediate
10770 # We cannot hardcode anything, or else we can only hardcode existing
10772 hardcode_action=unsupported
10774 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10775 echo "${ECHO_T}$hardcode_action" >&6; }
10777 if test "$hardcode_action" = relink; then
10778 # Fast installation is not supported
10779 enable_fast_install=no
10780 elif test "$shlibpath_overrides_runpath" = yes ||
10781 test "$enable_shared" = no; then
10782 # Fast installation is not necessary
10783 enable_fast_install=needless
10788 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10789 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10790 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10791 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10792 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10793 { echo "$as_me:$LINENO: result: yes" >&5
10794 echo "${ECHO_T}yes" >&6; }
10796 # FIXME - insert some real tests, host_os isn't really good enough
10799 if test -n "$STRIP" ; then
10800 striplib="$STRIP -x"
10801 { echo "$as_me:$LINENO: result: yes" >&5
10802 echo "${ECHO_T}yes" >&6; }
10804 { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10809 { echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6; }
10815 if test "x$enable_dlopen" != xyes; then
10816 enable_dlopen=unknown
10817 enable_dlopen_self=unknown
10818 enable_dlopen_self_static=unknown
10825 lt_cv_dlopen="load_add_on"
10827 lt_cv_dlopen_self=yes
10831 lt_cv_dlopen="LoadLibrary"
10836 lt_cv_dlopen="dlopen"
10841 # if libdl is installed we need to link against it
10842 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 ac_check_lib_save_LIBS=$LIBS
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_link") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_lib_dl_dlopen=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_cv_lib_dl_dlopen=no
10913 rm -f conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10918 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10919 if test $ac_cv_lib_dl_dlopen = yes; then
10920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10923 lt_cv_dlopen="dyld"
10925 lt_cv_dlopen_self=yes
10932 { echo "$as_me:$LINENO: checking for shl_load" >&5
10933 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10934 if test "${ac_cv_func_shl_load+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945 #define shl_load innocuous_shl_load
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char shl_load (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10953 # include <limits.h>
10955 # include <assert.h>
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10967 /* The GNU C library defines this for functions which it implements
10968 to always fail with ENOSYS. Some functions are actually named
10969 something starting with __ and the normal name is an alias. */
10970 #if defined __stub_shl_load || defined __stub___shl_load
10977 return shl_load ();
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_link") 2>conftest.er1
10991 grep -v '^ *+' conftest.er1 >conftest.err
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
10996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10997 { (case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_try") 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try='test -s conftest$ac_exeext'
11007 { (case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_try") 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_func_shl_load=yes
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_cv_func_shl_load=no
11024 rm -f conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11027 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11028 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11029 if test $ac_cv_func_shl_load = yes; then
11030 lt_cv_dlopen="shl_load"
11032 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11033 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_check_lib_save_LIBS=$LIBS
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11056 return shl_load ();
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_lib_dld_shl_load=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_lib_dld_shl_load=no
11103 rm -f conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11107 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11109 if test $ac_cv_lib_dld_shl_load = yes; then
11110 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11112 { echo "$as_me:$LINENO: checking for dlopen" >&5
11113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11114 if test "${ac_cv_func_dlopen+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11125 #define dlopen innocuous_dlopen
11127 /* System header to define __stub macros and hopefully few prototypes,
11128 which can conflict with char dlopen (); below.
11129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11130 <limits.h> exists even on freestanding compilers. */
11133 # include <limits.h>
11135 # include <assert.h>
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11147 /* The GNU C library defines this for functions which it implements
11148 to always fail with ENOSYS. Some functions are actually named
11149 something starting with __ and the normal name is an alias. */
11150 #if defined __stub_dlopen || defined __stub___dlopen
11162 rm -f conftest.$ac_objext conftest$ac_exeext
11163 if { (ac_try="$ac_link"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_link") 2>conftest.er1
11171 grep -v '^ *+' conftest.er1 >conftest.err
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_func_dlopen=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_func_dlopen=no
11204 rm -f conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11209 if test $ac_cv_func_dlopen = yes; then
11210 lt_cv_dlopen="dlopen"
11212 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_check_lib_save_LIBS=$LIBS
11219 cat >conftest.$ac_ext <<_ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_lib_dl_dlopen=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_lib_dl_dlopen=no
11283 rm -f conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11288 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11289 if test $ac_cv_lib_dl_dlopen = yes; then
11290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11292 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11293 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11294 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-lsvld $LIBS"
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_link") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest$ac_exeext'
11346 { (case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_try") 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_lib_svld_dlopen=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_cv_lib_svld_dlopen=no
11363 rm -f conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11367 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11368 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11369 if test $ac_cv_lib_svld_dlopen = yes; then
11370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11372 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11373 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11374 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 ac_check_lib_save_LIBS=$LIBS
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11396 return dld_link ();
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_link") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_lib_dld_dld_link=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_lib_dld_dld_link=no
11443 rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11449 if test $ac_cv_lib_dld_dld_link = yes; then
11450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11471 if test "x$lt_cv_dlopen" != xno; then
11477 case $lt_cv_dlopen in
11479 save_CPPFLAGS="$CPPFLAGS"
11480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11482 save_LDFLAGS="$LDFLAGS"
11483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486 LIBS="$lt_cv_dlopen_libs $LIBS"
11488 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11489 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11490 if test "${lt_cv_dlopen_self+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 if test "$cross_compiling" = yes; then :
11494 lt_cv_dlopen_self=cross
11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11497 lt_status=$lt_dlunknown
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11499 "configure"
11500 #include "confdefs.h"
11509 # define LT_DLGLOBAL RTLD_GLOBAL
11512 # define LT_DLGLOBAL DL_GLOBAL
11514 # define LT_DLGLOBAL 0
11518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11519 find out it does not work in some platform. */
11520 #ifndef LT_DLLAZY_OR_NOW
11522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11525 # define LT_DLLAZY_OR_NOW DL_LAZY
11528 # define LT_DLLAZY_OR_NOW RTLD_NOW
11531 # define LT_DLLAZY_OR_NOW DL_NOW
11533 # define LT_DLLAZY_OR_NOW 0
11541 extern "C" void exit (int);
11544 void fnord() { int i=42;}
11547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548 int status = $lt_dlunknown;
11552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554 /* dlclose (self); */
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11567 (./conftest; exit; ) >&5 2>/dev/null
11569 case x$lt_status in
11570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11575 # compilation failed
11576 lt_cv_dlopen_self=no
11583 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11586 if test "x$lt_cv_dlopen_self" = xyes; then
11587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11590 if test "${lt_cv_dlopen_self_static+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 if test "$cross_compiling" = yes; then :
11594 lt_cv_dlopen_self_static=cross
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11599 "configure"
11600 #include "confdefs.h"
11609 # define LT_DLGLOBAL RTLD_GLOBAL
11612 # define LT_DLGLOBAL DL_GLOBAL
11614 # define LT_DLGLOBAL 0
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11625 # define LT_DLLAZY_OR_NOW DL_LAZY
11628 # define LT_DLLAZY_OR_NOW RTLD_NOW
11631 # define LT_DLLAZY_OR_NOW DL_NOW
11633 # define LT_DLLAZY_OR_NOW 0
11641 extern "C" void exit (int);
11644 void fnord() { int i=42;}
11647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648 int status = $lt_dlunknown;
11652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654 /* dlclose (self); */
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11667 (./conftest; exit; ) >&5 2>/dev/null
11669 case x$lt_status in
11670 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11671 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11672 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11675 # compilation failed
11676 lt_cv_dlopen_self_static=no
11683 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11684 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11687 CPPFLAGS="$save_CPPFLAGS"
11688 LDFLAGS="$save_LDFLAGS"
11693 case $lt_cv_dlopen_self in
11694 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11695 *) enable_dlopen_self=unknown ;;
11698 case $lt_cv_dlopen_self_static in
11699 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11700 *) enable_dlopen_self_static=unknown ;;
11705 # Report which library types will actually be built
11706 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11707 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11708 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11709 echo "${ECHO_T}$can_build_shared" >&6; }
11711 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11712 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11713 test "$can_build_shared" = "no" && enable_shared=no
11715 # On AIX, shared libraries and static libraries use the same namespace, and
11716 # are all built from PIC.
11719 test "$enable_shared" = yes && enable_static=no
11720 if test -n "$RANLIB"; then
11721 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11722 postinstall_cmds='$RANLIB $lib'
11727 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11728 test "$enable_shared" = yes && enable_static=no
11732 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11733 echo "${ECHO_T}$enable_shared" >&6; }
11735 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11736 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11737 # Make sure either enable_shared or enable_static is yes.
11738 test "$enable_shared" = yes || enable_static=yes
11739 { echo "$as_me:$LINENO: result: $enable_static" >&5
11740 echo "${ECHO_T}$enable_static" >&6; }
11742 # The else clause should only fire when bootstrapping the
11743 # libtool distribution, otherwise you forgot to ship ltmain.sh
11744 # with your package, and you will get complaints that there are
11745 # no rules to generate ltmain.sh.
11746 if test -f "$ltmain"; then
11747 # See if we are running on zsh, and set the options which allow our commands through
11748 # without removal of \ escapes.
11749 if test -n "${ZSH_VERSION+set}" ; then
11750 setopt NO_GLOB_SUBST
11752 # Now quote all the things that may contain metacharacters while being
11753 # careful not to overquote the AC_SUBSTed values. We take copies of the
11754 # variables and quote the copies for generation of the libtool script.
11755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11759 deplibs_check_method reload_flag reload_cmds need_locks \
11760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11761 lt_cv_sys_global_symbol_to_c_name_address \
11762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11763 old_postinstall_cmds old_postuninstall_cmds \
11767 lt_prog_compiler_wl \
11768 lt_prog_compiler_pic \
11769 lt_prog_compiler_static \
11770 lt_prog_compiler_no_builtin_flag \
11771 export_dynamic_flag_spec \
11772 thread_safe_flag_spec \
11773 whole_archive_flag_spec \
11774 enable_shared_with_static_runtimes \
11776 old_archive_from_new_cmds \
11781 compiler_lib_search_path \
11783 archive_expsym_cmds \
11785 postuninstall_cmds \
11786 old_archive_from_expsyms_cmds \
11787 allow_undefined_flag \
11788 no_undefined_flag \
11789 export_symbols_cmds \
11790 hardcode_libdir_flag_spec \
11791 hardcode_libdir_flag_spec_ld \
11792 hardcode_libdir_separator \
11793 hardcode_automatic \
11795 module_expsym_cmds \
11796 lt_cv_prog_compiler_c_o \
11798 include_expsyms; do
11801 old_archive_cmds | \
11802 old_archive_from_new_cmds | \
11804 archive_expsym_cmds | \
11806 module_expsym_cmds | \
11807 old_archive_from_expsyms_cmds | \
11808 export_symbols_cmds | \
11809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11810 postinstall_cmds | postuninstall_cmds | \
11811 old_postinstall_cmds | old_postuninstall_cmds | \
11812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11813 # Double-quote double-evaled strings.
11814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11823 *'\$0 --fallback-echo"')
11824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11828 cfgfile="${ofile}T"
11829 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11831 { echo "$as_me:$LINENO: creating $ofile" >&5
11832 echo "$as_me: creating $ofile" >&6;}
11834 cat <<__EOF__ >> "$cfgfile"
11837 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11838 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11839 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11841 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11842 # Free Software Foundation, Inc.
11844 # This file is part of GNU Libtool:
11845 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11847 # This program is free software; you can redistribute it and/or modify
11848 # it under the terms of the GNU General Public License as published by
11849 # the Free Software Foundation; either version 2 of the License, or
11850 # (at your option) any later version.
11852 # This program is distributed in the hope that it will be useful, but
11853 # WITHOUT ANY WARRANTY; without even the implied warranty of
11854 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11855 # General Public License for more details.
11857 # You should have received a copy of the GNU General Public License
11858 # along with this program; if not, write to the Free Software
11859 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11861 # As a special exception to the GNU General Public License, if you
11862 # distribute this file as part of a program that contains a
11863 # configuration script generated by Autoconf, you may include it under
11864 # the same distribution terms that you use for the rest of that program.
11866 # A sed program that does not truncate output.
11869 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11870 Xsed="$SED -e 1s/^X//"
11872 # The HP-UX ksh and POSIX shell print the target directory to stdout
11873 # if CDPATH is set.
11874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11876 # The names of the tagged configurations supported by this script.
11879 # ### BEGIN LIBTOOL CONFIG
11881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11883 # Shell to use when invoking shell scripts.
11886 # Whether or not to build shared libraries.
11887 build_libtool_libs=$enable_shared
11889 # Whether or not to build static libraries.
11890 build_old_libs=$enable_static
11892 # Whether or not to add -lc for building shared libraries.
11893 build_libtool_need_lc=$archive_cmds_need_lc
11895 # Whether or not to disallow shared libs when runtime libs are static
11896 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11898 # Whether or not to optimize for fast installation.
11899 fast_install=$enable_fast_install
11902 host_alias=$host_alias
11906 # The build system.
11907 build_alias=$build_alias
11911 # An echo program that does not interpret backslashes.
11916 AR_FLAGS=$lt_AR_FLAGS
11921 # LTCC compiler flags.
11922 LTCFLAGS=$lt_LTCFLAGS
11924 # A language-specific compiler.
11927 # Is the compiler the GNU C compiler?
11933 # The linker used to build libraries.
11936 # Whether we need hard or soft links.
11939 # A BSD-compatible nm program.
11942 # A symbol stripping program
11945 # Used to examine libraries when file_magic_cmd begins "file"
11946 MAGIC_CMD=$MAGIC_CMD
11948 # Used on cygwin: DLL creation program.
11951 # Used on cygwin: object dumper.
11954 # Used on cygwin: assembler.
11957 # The name of the directory that contains temporary libtool files.
11960 # How to create reloadable object files.
11961 reload_flag=$lt_reload_flag
11962 reload_cmds=$lt_reload_cmds
11964 # How to pass a linker flag through the compiler.
11965 wl=$lt_lt_prog_compiler_wl
11967 # Object file suffix (normally "o").
11968 objext="$ac_objext"
11970 # Old archive suffix (normally "a").
11973 # Shared library suffix (normally ".so").
11974 shrext_cmds='$shrext_cmds'
11976 # Executable file suffix (normally "").
11979 # Additional compiler flags for building library objects.
11980 pic_flag=$lt_lt_prog_compiler_pic
11983 # What is the maximum length of a command?
11984 max_cmd_len=$lt_cv_sys_max_cmd_len
11986 # Does compiler simultaneously support -c and -o options?
11987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11989 # Must we lock files when doing compilation?
11990 need_locks=$lt_need_locks
11992 # Do we need the lib prefix for modules?
11993 need_lib_prefix=$need_lib_prefix
11995 # Do we need a version for libraries?
11996 need_version=$need_version
11998 # Whether dlopen is supported.
11999 dlopen_support=$enable_dlopen
12001 # Whether dlopen of programs is supported.
12002 dlopen_self=$enable_dlopen_self
12004 # Whether dlopen of statically linked programs is supported.
12005 dlopen_self_static=$enable_dlopen_self_static
12007 # Compiler flag to prevent dynamic linking.
12008 link_static_flag=$lt_lt_prog_compiler_static
12010 # Compiler flag to turn off builtin functions.
12011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12013 # Compiler flag to allow reflexive dlopens.
12014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12016 # Compiler flag to generate shared objects directly from archives.
12017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12019 # Compiler flag to generate thread-safe objects.
12020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12022 # Library versioning type.
12023 version_type=$version_type
12025 # Format of library name prefix.
12026 libname_spec=$lt_libname_spec
12028 # List of archive names. First name is the real one, the rest are links.
12029 # The last name is the one that the linker finds with -lNAME.
12030 library_names_spec=$lt_library_names_spec
12032 # The coded name of the library, if different from the real name.
12033 soname_spec=$lt_soname_spec
12035 # Commands used to build and install an old-style archive.
12037 old_archive_cmds=$lt_old_archive_cmds
12038 old_postinstall_cmds=$lt_old_postinstall_cmds
12039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12041 # Create an old-style archive from a shared archive.
12042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12044 # Create a temporary old-style archive to link instead of a shared archive.
12045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12047 # Commands used to build and install a shared archive.
12048 archive_cmds=$lt_archive_cmds
12049 archive_expsym_cmds=$lt_archive_expsym_cmds
12050 postinstall_cmds=$lt_postinstall_cmds
12051 postuninstall_cmds=$lt_postuninstall_cmds
12053 # Commands used to build a loadable module (assumed same as above if empty)
12054 module_cmds=$lt_module_cmds
12055 module_expsym_cmds=$lt_module_expsym_cmds
12057 # Commands to strip libraries.
12058 old_striplib=$lt_old_striplib
12059 striplib=$lt_striplib
12061 # Dependencies to place before the objects being linked to create a
12063 predep_objects=$lt_predep_objects
12065 # Dependencies to place after the objects being linked to create a
12067 postdep_objects=$lt_postdep_objects
12069 # Dependencies to place before the objects being linked to create a
12071 predeps=$lt_predeps
12073 # Dependencies to place after the objects being linked to create a
12075 postdeps=$lt_postdeps
12077 # The library search path used internally by the compiler when linking
12078 # a shared library.
12079 compiler_lib_search_path=$lt_compiler_lib_search_path
12081 # Method to check whether dependent libraries are shared objects.
12082 deplibs_check_method=$lt_deplibs_check_method
12084 # Command to use when deplibs_check_method == file_magic.
12085 file_magic_cmd=$lt_file_magic_cmd
12087 # Flag that allows shared libraries with undefined symbols to be built.
12088 allow_undefined_flag=$lt_allow_undefined_flag
12090 # Flag that forces no undefined symbols.
12091 no_undefined_flag=$lt_no_undefined_flag
12093 # Commands used to finish a libtool library installation in a directory.
12094 finish_cmds=$lt_finish_cmds
12096 # Same as above, but a single script fragment to be evaled but not shown.
12097 finish_eval=$lt_finish_eval
12099 # Take the output of nm and produce a listing of raw symbols and C names.
12100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12102 # Transform the output of nm in a proper C declaration
12103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12105 # Transform the output of nm in a C name address pair
12106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12108 # This is the shared library runtime path variable.
12109 runpath_var=$runpath_var
12111 # This is the shared library path variable.
12112 shlibpath_var=$shlibpath_var
12114 # Is shlibpath searched before the hard-coded library search path?
12115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12117 # How to hardcode a shared library path into an executable.
12118 hardcode_action=$hardcode_action
12120 # Whether we should hardcode library paths into libraries.
12121 hardcode_into_libs=$hardcode_into_libs
12123 # Flag to hardcode \$libdir into a binary during linking.
12124 # This must work even if \$libdir does not exist.
12125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12127 # If ld is used when linking, flag to hardcode \$libdir into
12128 # a binary during linking. This must work even if \$libdir does
12130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12132 # Whether we need a single -rpath flag with a separated argument.
12133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12136 # resulting binary.
12137 hardcode_direct=$hardcode_direct
12139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12140 # resulting binary.
12141 hardcode_minus_L=$hardcode_minus_L
12143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12144 # the resulting binary.
12145 hardcode_shlibpath_var=$hardcode_shlibpath_var
12147 # Set to yes if building a shared library automatically hardcodes DIR into the library
12148 # and all subsequent libraries and executables linked against it.
12149 hardcode_automatic=$hardcode_automatic
12151 # Variables whose values should be saved in libtool wrapper scripts and
12152 # restored at relink time.
12153 variables_saved_for_relink="$variables_saved_for_relink"
12155 # Whether libtool must link a program against all its dependency libraries.
12156 link_all_deplibs=$link_all_deplibs
12158 # Compile-time system search path for libraries
12159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12161 # Run-time system search path for libraries
12162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12164 # Fix the shell variable \$srcfile for the compiler.
12165 fix_srcfile_path="$fix_srcfile_path"
12167 # Set to yes if exported symbols are required.
12168 always_export_symbols=$always_export_symbols
12170 # The commands to list exported symbols.
12171 export_symbols_cmds=$lt_export_symbols_cmds
12173 # The commands to extract the exported symbol list from a shared archive.
12174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12176 # Symbols that should not be listed in the preloaded symbols.
12177 exclude_expsyms=$lt_exclude_expsyms
12179 # Symbols that must always be exported.
12180 include_expsyms=$lt_include_expsyms
12182 # ### END LIBTOOL CONFIG
12189 cat <<\EOF >> "$cfgfile"
12191 # AIX sometimes has problems with the GCC collect2 program. For some
12192 # reason, if we set the COLLECT_NAMES environment variable, the problems
12193 # vanish in a puff of smoke.
12194 if test "X${COLLECT_NAMES+set}" != Xset; then
12196 export COLLECT_NAMES
12202 # We use sed instead of cat because bash on DJGPP gets confused if
12203 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12204 # text mode, it properly converts lines to CR/LF. This bash problem
12205 # is reportedly fixed, but why not run on old versions too?
12206 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12208 mv -f "$cfgfile" "$ofile" || \
12209 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12213 # If there is no Makefile yet, we rely on a make rule to execute
12214 # `config.status --recheck' to rerun these tests and create the
12215 # libtool script then.
12216 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12217 if test -f "$ltmain_in"; then
12218 test -f Makefile && make "$ltmain"
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232 # Check whether --with-tags was given.
12233 if test "${with_tags+set}" = set; then
12234 withval=$with_tags; tagnames="$withval"
12238 if test -f "$ltmain" && test -n "$tagnames"; then
12239 if test ! -f "${ofile}"; then
12240 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12241 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12244 if test -z "$LTCC"; then
12245 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12246 if test -z "$LTCC"; then
12247 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12248 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12251 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12254 if test -z "$LTCFLAGS"; then
12255 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12258 # Extract list of available tagged configurations in $ofile.
12259 # Note that this assumes the entire list is on one line.
12260 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12263 for tagname in $tagnames; do
12265 # Check whether tagname contains only valid characters
12266 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12268 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12269 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12270 { (exit 1); exit 1; }; }
12274 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12276 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12277 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12278 { (exit 1); exit 1; }; }
12281 # Update the list of available tags.
12282 if test -n "$tagname"; then
12283 echo appending configuration tag \"$tagname\" to $ofile
12287 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12288 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12289 (test "X$CXX" != "Xg++"))) ; then
12291 ac_cpp='$CXXCPP $CPPFLAGS'
12292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12299 archive_cmds_need_lc_CXX=no
12300 allow_undefined_flag_CXX=
12301 always_export_symbols_CXX=no
12302 archive_expsym_cmds_CXX=
12303 export_dynamic_flag_spec_CXX=
12304 hardcode_direct_CXX=no
12305 hardcode_libdir_flag_spec_CXX=
12306 hardcode_libdir_flag_spec_ld_CXX=
12307 hardcode_libdir_separator_CXX=
12308 hardcode_minus_L_CXX=no
12309 hardcode_shlibpath_var_CXX=unsupported
12310 hardcode_automatic_CXX=no
12312 module_expsym_cmds_CXX=
12313 link_all_deplibs_CXX=unknown
12314 old_archive_cmds_CXX=$old_archive_cmds
12315 no_undefined_flag_CXX=
12316 whole_archive_flag_spec_CXX=
12317 enable_shared_with_static_runtimes_CXX=no
12319 # Dependencies to place before and after the object being linked:
12320 predep_objects_CXX=
12321 postdep_objects_CXX=
12324 compiler_lib_search_path_CXX=
12326 # Source file extension for C++ test sources.
12329 # Object file extension for compiled C++ test sources.
12333 # Code to be used in simple compile tests
12334 lt_simple_compile_test_code="int some_variable = 0;\n"
12336 # Code to be used in simple link tests
12337 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12341 # If no C compiler was specified, use CC.
12344 # If no C compiler flags were specified, use CFLAGS.
12345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12347 # Allow CC to be a program name with arguments.
12351 # save warnings/boilerplate of simple test code
12352 ac_outfile=conftest.$ac_objext
12353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12355 _lt_compiler_boilerplate=`cat conftest.err`
12358 ac_outfile=conftest.$ac_objext
12359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12361 _lt_linker_boilerplate=`cat conftest.err`
12365 # Allow CC to be a program name with arguments.
12370 lt_save_with_gnu_ld=$with_gnu_ld
12371 lt_save_path_LD=$lt_cv_path_LD
12372 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12373 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12375 $as_unset lt_cv_prog_gnu_ld
12377 if test -n "${lt_cv_path_LDCXX+set}"; then
12378 lt_cv_path_LD=$lt_cv_path_LDCXX
12380 $as_unset lt_cv_path_LD
12382 test -z "${LDCXX+set}" || LD=$LDCXX
12386 for cc_temp in $compiler""; do
12388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12394 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12397 # We don't want -fno-exception wen compiling C++ code, so set the
12398 # no_builtin_flag separately
12399 if test "$GXX" = yes; then
12400 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12402 lt_prog_compiler_no_builtin_flag_CXX=
12405 if test "$GXX" = yes; then
12406 # Set up default GNU C++ configuration
12409 # Check whether --with-gnu-ld was given.
12410 if test "${with_gnu_ld+set}" = set; then
12411 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12417 if test "$GCC" = yes; then
12418 # Check if gcc -print-prog-name=ld gives a path.
12419 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12420 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12423 # gcc leaves a trailing carriage return which upsets mingw
12424 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12426 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12429 # Accept absolute paths.
12431 re_direlt='/[^/][^/]*/\.\./'
12432 # Canonicalize the pathname of ld
12433 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12434 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12435 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12437 test -z "$LD" && LD="$ac_prog"
12440 # If it fails, then pretend we aren't using GCC.
12444 # If it is relative, then search for the first ld in PATH.
12445 with_gnu_ld=unknown
12448 elif test "$with_gnu_ld" = yes; then
12449 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12450 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12452 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12453 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12455 if test "${lt_cv_path_LD+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 if test -z "$LD"; then
12459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12460 for ac_dir in $PATH; do
12462 test -z "$ac_dir" && ac_dir=.
12463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12464 lt_cv_path_LD="$ac_dir/$ac_prog"
12465 # Check to see if the program is GNU ld. I'd rather use --version,
12466 # but apparently some variants of GNU ld only accept -v.
12467 # Break only if it was the GNU/non-GNU ld that we prefer.
12468 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12469 *GNU* | *'with BFD'*)
12470 test "$with_gnu_ld" != no && break
12473 test "$with_gnu_ld" != yes && break
12480 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12484 LD="$lt_cv_path_LD"
12485 if test -n "$LD"; then
12486 { echo "$as_me:$LINENO: result: $LD" >&5
12487 echo "${ECHO_T}$LD" >&6; }
12489 { echo "$as_me:$LINENO: result: no" >&5
12490 echo "${ECHO_T}no" >&6; }
12492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12494 { (exit 1); exit 1; }; }
12495 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12497 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12501 case `$LD -v 2>&1 </dev/null` in
12502 *GNU* | *'with BFD'*)
12503 lt_cv_prog_gnu_ld=yes
12506 lt_cv_prog_gnu_ld=no
12510 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12511 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12512 with_gnu_ld=$lt_cv_prog_gnu_ld
12516 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12517 # archiving commands below assume that GNU ld is being used.
12518 if test "$with_gnu_ld" = yes; then
12519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12520 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'
12522 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12525 # If archive_cmds runs LD, not CC, wlarc should be empty
12526 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12527 # investigate it a little bit more. (MM)
12530 # ancient GNU ld didn't support --whole-archive et. al.
12531 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12532 grep 'no-whole-archive' > /dev/null; then
12533 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12535 whole_archive_flag_spec_CXX=
12541 # A generic and very simple default shared library creation
12542 # command for GNU C++ for the case where it uses the native
12543 # linker, instead of GNU ld. If possible, this setting should
12544 # overridden to take advantage of the native linker features on
12545 # the platform it is being used on.
12546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12549 # Commands to make compiler produce verbose output that lists
12550 # what "hidden" libraries, object files and flags are used when
12551 # linking a shared library.
12552 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12560 # PORTME: fill in a description of your system's C++ link characteristics
12561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12566 # FIXME: insert proper C++ library support
12570 if test "$host_cpu" = ia64; then
12571 # On IA64, the linker does run time linking by default, so we don't
12572 # have to do anything special.
12573 aix_use_runtimelinking=no
12574 exp_sym_flag='-Bexport'
12577 aix_use_runtimelinking=no
12579 # Test if we are trying to use run time linking or normal
12580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12581 # need to do runtime linking.
12582 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12583 for ld_flag in $LDFLAGS; do
12586 aix_use_runtimelinking=yes
12594 exp_sym_flag='-bexport'
12595 no_entry_flag='-bnoentry'
12598 # When large executables or shared objects are built, AIX ld can
12599 # have problems creating the table of contents. If linking a library
12600 # or program results in "error TOC overflow" add -mminimal-toc to
12601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12604 archive_cmds_CXX=''
12605 hardcode_direct_CXX=yes
12606 hardcode_libdir_separator_CXX=':'
12607 link_all_deplibs_CXX=yes
12609 if test "$GXX" = yes; then
12610 case $host_os in aix4.[012]|aix4.[012].*)
12611 # We only want to do this on AIX 4.2 and lower, the check
12612 # below for broken collect2 doesn't work under 4.3+
12613 collect2name=`${CC} -print-prog-name=collect2`
12614 if test -f "$collect2name" && \
12615 strings "$collect2name" | grep resolve_lib_name >/dev/null
12617 # We have reworked collect2
12618 hardcode_direct_CXX=yes
12620 # We have old collect2
12621 hardcode_direct_CXX=unsupported
12622 # It fails to find uninstalled libraries when the uninstalled
12623 # path is not listed in the libpath. Setting hardcode_minus_L
12624 # to unsupported forces relinking
12625 hardcode_minus_L_CXX=yes
12626 hardcode_libdir_flag_spec_CXX='-L$libdir'
12627 hardcode_libdir_separator_CXX=
12631 shared_flag='-shared'
12632 if test "$aix_use_runtimelinking" = yes; then
12633 shared_flag="$shared_flag "'${wl}-G'
12637 if test "$host_cpu" = ia64; then
12638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12639 # chokes on -Wl,-G. The following line is correct:
12642 if test "$aix_use_runtimelinking" = yes; then
12643 shared_flag='${wl}-G'
12645 shared_flag='${wl}-bM:SRE'
12650 # It seems that -bexpall does not export symbols beginning with
12651 # underscore (_), so it is better to generate a list of symbols to export.
12652 always_export_symbols_CXX=yes
12653 if test "$aix_use_runtimelinking" = yes; then
12654 # Warning - without using the other runtime loading flags (-brtl),
12655 # -berok will link without error, but may produce a broken library.
12656 allow_undefined_flag_CXX='-berok'
12657 # Determine the default libpath from the value encoded in an empty executable.
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12688 { (case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_try") 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest$ac_exeext'
12698 { (case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_try") 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12710 # Check for a 64-bit object if we didn't find anything.
12711 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; }
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12720 rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12724 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12726 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"
12728 if test "$host_cpu" = ia64; then
12729 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12730 allow_undefined_flag_CXX="-z nodefs"
12731 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"
12733 # Determine the default libpath from the value encoded in an empty executable.
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_link") 2>conftest.er1
12758 grep -v '^ *+' conftest.er1 >conftest.err
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12786 # Check for a 64-bit object if we didn't find anything.
12787 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; }
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12796 rm -f conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12801 # Warning - without using the other run time loading flags,
12802 # -berok will link without error, but may produce a broken library.
12803 no_undefined_flag_CXX=' ${wl}-bernotok'
12804 allow_undefined_flag_CXX=' ${wl}-berok'
12805 # Exported symbols can be pulled into shared objects from archives
12806 whole_archive_flag_spec_CXX='$convenience'
12807 archive_cmds_need_lc_CXX=yes
12808 # This is similar to how AIX traditionally builds its shared libraries.
12809 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'
12815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12816 allow_undefined_flag_CXX=unsupported
12817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12818 # support --undefined. This deserves some investigation. FIXME
12819 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 case $cc_basename in
12828 # FIXME: insert proper C++ library support
12834 cygwin* | mingw* | pw32*)
12835 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12836 # as there is no search path for DLLs.
12837 hardcode_libdir_flag_spec_CXX='-L$libdir'
12838 allow_undefined_flag_CXX=unsupported
12839 always_export_symbols_CXX=no
12840 enable_shared_with_static_runtimes_CXX=yes
12842 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12843 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'
12844 # If the export-symbols file already is a .def file (1st line
12845 # is EXPORTS), use it as is; otherwise, prepend...
12846 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12847 cp $export_symbols $output_objdir/$soname.def;
12849 echo EXPORTS > $output_objdir/$soname.def;
12850 cat $export_symbols >> $output_objdir/$soname.def;
12852 $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'
12857 darwin* | rhapsody*)
12859 rhapsody* | darwin1.[012])
12860 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12863 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12864 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12866 case ${MACOSX_DEPLOYMENT_TARGET} in
12868 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12871 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12877 archive_cmds_need_lc_CXX=no
12878 hardcode_direct_CXX=no
12879 hardcode_automatic_CXX=yes
12880 hardcode_shlibpath_var_CXX=unsupported
12881 whole_archive_flag_spec_CXX=''
12882 link_all_deplibs_CXX=yes
12884 if test "$GXX" = yes ; then
12885 lt_int_apple_cc_single_mod=no
12886 output_verbose_link_cmd='echo'
12887 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12888 lt_int_apple_cc_single_mod=yes
12890 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12891 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12893 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'
12895 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12897 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12898 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}'
12900 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}'
12902 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}'
12904 case $cc_basename in
12906 output_verbose_link_cmd='echo'
12907 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'
12908 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12909 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12910 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}'
12911 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}'
12921 case $cc_basename in
12923 # FIXME: insert proper C++ library support
12927 # Green Hills C++ Compiler
12928 # FIXME: insert proper C++ library support
12932 # FIXME: insert proper C++ library support
12938 # C++ shared libraries reported to be fairly broken before switch to ELF
12942 archive_cmds_need_lc_CXX=no
12944 freebsd* | dragonfly*)
12945 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12952 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12953 hardcode_libdir_separator_CXX=:
12954 export_dynamic_flag_spec_CXX='${wl}-E'
12955 hardcode_direct_CXX=yes
12956 hardcode_minus_L_CXX=yes # Not in the search PATH,
12957 # but as the default
12958 # location of the library.
12960 case $cc_basename in
12962 # FIXME: insert proper C++ library support
12966 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'
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
12971 # There doesn't appear to be a way to prevent this compiler from
12972 # explicitly linking system object files so we need to strip them
12973 # from the output so that they don't get included in the library
12975 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'
12978 if test "$GXX" = yes; then
12979 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'
12981 # FIXME: insert proper C++ library support
12988 if test $with_gnu_ld = no; then
12989 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12990 hardcode_libdir_separator_CXX=:
12994 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12997 export_dynamic_flag_spec_CXX='${wl}-E'
13003 hardcode_direct_CXX=no
13004 hardcode_shlibpath_var_CXX=no
13007 hardcode_direct_CXX=yes
13008 hardcode_minus_L_CXX=yes # Not in the search PATH,
13009 # but as the default
13010 # location of the library.
13014 case $cc_basename in
13016 # FIXME: insert proper C++ library support
13022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13035 # There doesn't appear to be a way to prevent this compiler from
13036 # explicitly linking system object files so we need to strip them
13037 # from the output so that they don't get included in the library
13039 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'
13042 if test "$GXX" = yes; then
13043 if test $with_gnu_ld = no; then
13046 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13049 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13052 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'
13057 # FIXME: insert proper C++ library support
13064 hardcode_direct_CXX=no
13065 hardcode_shlibpath_var_CXX=no
13066 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13067 export_dynamic_flag_spec_CXX='${wl}-E'
13068 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13069 # Instead, shared libraries are loaded at an image base (0x10000000 by
13070 # default) and relocated if they conflict, which is a slow very memory
13071 # consuming and fragmenting process. To avoid this, we pick a random,
13072 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13073 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13074 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'
13075 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'
13078 case $cc_basename in
13081 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'
13083 # Archives containing C++ object files must be created using
13084 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13085 # necessary to make sure instantiated templates are included
13087 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13090 if test "$GXX" = yes; then
13091 if test "$with_gnu_ld" = no; then
13092 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'
13094 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'
13097 link_all_deplibs_CXX=yes
13100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13101 hardcode_libdir_separator_CXX=:
13103 linux* | k*bsd*-gnu)
13104 case $cc_basename in
13106 # Kuck and Associates, Inc. (KAI) C++ Compiler
13108 # KCC will only create a shared library if the output file
13109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13110 # to its proper name (with version) after linking.
13111 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'
13112 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'
13113 # Commands to make compiler produce verbose output that lists
13114 # what "hidden" libraries, object files and flags are used when
13115 # linking a shared library.
13117 # There doesn't appear to be a way to prevent this compiler from
13118 # explicitly linking system object files so we need to strip them
13119 # from the output so that they don't get included in the library
13121 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'
13123 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13126 # Archives containing C++ object files must be created using
13127 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13128 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13133 # version 8.0 and above of icpc choke on multiply defined symbols
13134 # if we add $predep_objects and $postdep_objects, however 7.1 and
13135 # earlier do not add the objects themselves.
13136 case `$CC -V 2>&1` in
13138 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139 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'
13141 *) # Version 8.0 or newer
13144 ia64*) tmp_idyn=' -i_dynamic';;
13146 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 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'
13150 archive_cmds_need_lc_CXX=no
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13153 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13156 # Portland Group C++ compiler
13157 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13158 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'
13160 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13162 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'
13166 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13167 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'
13169 runpath_var=LD_RUN_PATH
13170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171 hardcode_libdir_separator_CXX=:
13173 # Commands to make compiler produce verbose output that lists
13174 # what "hidden" libraries, object files and flags are used when
13175 # linking a shared library.
13177 # There doesn't appear to be a way to prevent this compiler from
13178 # explicitly linking system object files so we need to strip them
13179 # from the output so that they don't get included in the library
13181 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'
13186 # FIXME: insert proper C++ library support
13190 # FIXME: insert proper C++ library support
13194 case $cc_basename in
13196 # FIXME: insert proper C++ library support
13200 # FIXME: insert proper C++ library support
13205 netbsd* | netbsdelf*-gnu)
13206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13207 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13209 hardcode_libdir_flag_spec_CXX='-R$libdir'
13210 hardcode_direct_CXX=yes
13211 hardcode_shlibpath_var_CXX=no
13213 # Workaround some broken pre-1.5 toolchains
13214 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13217 # C++ shared libraries are fairly broken
13221 hardcode_direct_CXX=yes
13222 hardcode_shlibpath_var_CXX=no
13223 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13225 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13226 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13227 export_dynamic_flag_spec_CXX='${wl}-E'
13228 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13230 output_verbose_link_cmd='echo'
13233 case $cc_basename in
13235 # Kuck and Associates, Inc. (KAI) C++ Compiler
13237 # KCC will only create a shared library if the output file
13238 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239 # to its proper name (with version) after linking.
13240 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'
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243 hardcode_libdir_separator_CXX=:
13245 # Archives containing C++ object files must be created using
13246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13247 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13251 # Rational C++ 2.4.1
13252 # FIXME: insert proper C++ library support
13256 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13257 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'
13259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260 hardcode_libdir_separator_CXX=:
13262 # Commands to make compiler produce verbose output that lists
13263 # what "hidden" libraries, object files and flags are used when
13264 # linking a shared library.
13266 # There doesn't appear to be a way to prevent this compiler from
13267 # explicitly linking system object files so we need to strip them
13268 # from the output so that they don't get included in the library
13270 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'
13273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13275 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'
13277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278 hardcode_libdir_separator_CXX=:
13280 # Commands to make compiler produce verbose output that lists
13281 # what "hidden" libraries, object files and flags are used when
13282 # linking a shared library.
13283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13286 # FIXME: insert proper C++ library support
13293 case $cc_basename in
13295 # Kuck and Associates, Inc. (KAI) C++ Compiler
13297 # KCC will only create a shared library if the output file
13298 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13299 # to its proper name (with version) after linking.
13300 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'
13302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303 hardcode_libdir_separator_CXX=:
13305 # Archives containing C++ object files must be created using
13306 # the KAI C++ compiler.
13307 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13310 # Rational C++ 2.4.1
13311 # FIXME: insert proper C++ library support
13315 allow_undefined_flag_CXX=' -expect_unresolved \*'
13316 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'
13317 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13318 echo "-hidden">> $lib.exp~
13319 $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~
13322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323 hardcode_libdir_separator_CXX=:
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13333 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'
13336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13338 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'
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator_CXX=:
13343 # Commands to make compiler produce verbose output that lists
13344 # what "hidden" libraries, object files and flags are used when
13345 # linking a shared library.
13346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13349 # FIXME: insert proper C++ library support
13356 # FIXME: insert proper C++ library support
13360 case $cc_basename in
13363 # FIXME: insert proper C++ library support
13368 # FIXME: insert proper C++ library support
13372 # FIXME: insert proper C++ library support
13378 case $cc_basename in
13380 # Sun C++ 4.2, 5.x and Centerline C++
13381 archive_cmds_need_lc_CXX=yes
13382 no_undefined_flag_CXX=' -zdefs'
13383 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13384 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13385 $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'
13387 hardcode_libdir_flag_spec_CXX='-R$libdir'
13388 hardcode_shlibpath_var_CXX=no
13390 solaris2.[0-5] | solaris2.[0-5].*) ;;
13392 # The C++ compiler is used as linker so we must use $wl
13393 # flag to pass the commands to the underlying system
13394 # linker. We must also pass each convience library through
13395 # to the system linker between allextract/defaultextract.
13396 # The C++ compiler will combine linker options so we
13397 # cannot just pass the convience library names through
13399 # Supported since Solaris 2.6 (maybe 2.5.1?)
13400 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'
13403 link_all_deplibs_CXX=yes
13405 output_verbose_link_cmd='echo'
13407 # Archives containing C++ object files must be created using
13408 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13409 # necessary to make sure instantiated templates are included
13411 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13414 # Green Hills C++ Compiler
13415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13417 # The C++ compiler must be used to create the archive.
13418 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13421 # GNU C++ compiler with Solaris linker
13422 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13423 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13424 if $CC --version | grep -v '^2\.7' > /dev/null; then
13425 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13426 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13427 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13429 # Commands to make compiler produce verbose output that lists
13430 # what "hidden" libraries, object files and flags are used when
13431 # linking a shared library.
13432 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13434 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13436 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13446 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452 no_undefined_flag_CXX='${wl}-z,text'
13453 archive_cmds_need_lc_CXX=no
13454 hardcode_shlibpath_var_CXX=no
13455 runpath_var='LD_RUN_PATH'
13457 case $cc_basename in
13459 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 sysv5* | sco3.2v5* | sco5v6*)
13469 # Note: We can NOT use -z defs as we might desire, because we do not
13470 # link with -lc, and that would cause any symbols used from libc to
13471 # always be unresolved, which means just about no library would
13472 # ever link correctly. If we're not using GNU ld we use -z text
13473 # though, which does catch some bad symbols but isn't as heavy-handed
13475 # For security reasons, it is highly recommended that you always
13476 # use absolute paths for naming shared libraries, and exclude the
13477 # DT_RUNPATH tag from executables and libraries. But doing so
13478 # requires that you compile everything twice, which is a pain.
13479 # So that behaviour is only enabled if SCOABSPATH is set to a
13480 # non-empty value in the environment. Most likely only useful for
13481 # creating official distributions of packages.
13482 # This is a hack until libtool officially supports absolute path
13483 # names for shared libraries.
13484 no_undefined_flag_CXX='${wl}-z,text'
13485 allow_undefined_flag_CXX='${wl}-z,nodefs'
13486 archive_cmds_need_lc_CXX=no
13487 hardcode_shlibpath_var_CXX=no
13488 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13489 hardcode_libdir_separator_CXX=':'
13490 link_all_deplibs_CXX=yes
13491 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13492 runpath_var='LD_RUN_PATH'
13494 case $cc_basename in
13496 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 case $cc_basename in
13508 # NonStop-UX NCC 3.20
13509 # FIXME: insert proper C++ library support
13513 # FIXME: insert proper C++ library support
13519 # FIXME: insert proper C++ library support
13523 # FIXME: insert proper C++ library support
13527 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13528 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13529 test "$ld_shlibs_CXX" = no && can_build_shared=no
13535 cat > conftest.$ac_ext <<EOF
13539 Foo (void) { a = 0; }
13545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; then
13550 # Parse the compiler output and extract the necessary
13551 # objects, libraries and library flags.
13553 # Sentinel used to keep track of whether or not we are before
13554 # the conftest object file.
13555 pre_test_object_deps_done=no
13557 # The `*' in the case matches for architectures that use `case' in
13558 # $output_verbose_cmd can trigger glob expansion during the loop
13559 # eval without this substitution.
13560 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13562 for p in `eval $output_verbose_link_cmd`; do
13566 # Some compilers place space between "-{L,R}" and the path.
13567 # Remove the space.
13568 if test $p = "-L" \
13569 || test $p = "-R"; then
13576 if test "$pre_test_object_deps_done" = no; then
13579 # Internal compiler library paths should come after those
13580 # provided the user. The postdeps already come after the
13581 # user supplied libs so there is no need to process them.
13582 if test -z "$compiler_lib_search_path_CXX"; then
13583 compiler_lib_search_path_CXX="${prev}${p}"
13585 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13588 # The "-l" case would never come before the object being
13589 # linked, so don't bother handling this case.
13592 if test -z "$postdeps_CXX"; then
13593 postdeps_CXX="${prev}${p}"
13595 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13601 # This assumes that the test object file only shows up
13602 # once in the compiler output.
13603 if test "$p" = "conftest.$objext"; then
13604 pre_test_object_deps_done=yes
13608 if test "$pre_test_object_deps_done" = no; then
13609 if test -z "$predep_objects_CXX"; then
13610 predep_objects_CXX="$p"
13612 predep_objects_CXX="$predep_objects_CXX $p"
13615 if test -z "$postdep_objects_CXX"; then
13616 postdep_objects_CXX="$p"
13618 postdep_objects_CXX="$postdep_objects_CXX $p"
13623 *) ;; # Ignore the rest.
13631 echo "libtool.m4: error: problem compiling CXX test program"
13634 $rm -f confest.$objext
13636 # PORTME: override above test on systems where it is broken
13639 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13640 # hack all around it, let's just trust "g++" to DTRT.
13641 predep_objects_CXX=
13642 postdep_objects_CXX=
13647 case $cc_basename in
13649 # Adding this requires a known-good setup of shared libraries for
13650 # Sun compiler versions before 5.6, else PIC objects from an old
13651 # archive will be linked into the output, leading to subtle bugs.
13652 postdeps_CXX='-lCstd -lCrun'
13659 case " $postdeps_CXX " in
13660 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13663 lt_prog_compiler_wl_CXX=
13664 lt_prog_compiler_pic_CXX=
13665 lt_prog_compiler_static_CXX=
13667 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13668 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13670 # C++ specific cases for pic, static, wl, etc.
13671 if test "$GXX" = yes; then
13672 lt_prog_compiler_wl_CXX='-Wl,'
13673 lt_prog_compiler_static_CXX='-static'
13677 # All AIX code is PIC.
13678 if test "$host_cpu" = ia64; then
13679 # AIX 5 now supports IA64 processor
13680 lt_prog_compiler_static_CXX='-Bstatic'
13684 # FIXME: we need at least 68020 code to build shared libraries, but
13685 # adding the `-m68020' flag to GCC prevents building anything better,
13687 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13689 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13690 # PIC is the default for these OSes.
13692 mingw* | os2* | pw32*)
13693 # This hack is so that the source file can tell whether it is being
13694 # built for inclusion in a dll (and should export symbols for example).
13695 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13697 darwin* | rhapsody*)
13698 # PIC is the default on this platform
13699 # Common symbols not allowed in MH_DYLIB files
13700 lt_prog_compiler_pic_CXX='-fno-common'
13703 # DJGPP does not support shared libraries at all
13704 lt_prog_compiler_pic_CXX=
13707 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13708 # Instead, we relocate shared libraries at runtime.
13711 if test -d /usr/nec; then
13712 lt_prog_compiler_pic_CXX=-Kconform_pic
13716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13717 # not for PA HP-UX.
13722 lt_prog_compiler_pic_CXX='-fPIC'
13727 lt_prog_compiler_pic_CXX='-fPIC'
13733 # All AIX code is PIC.
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 now supports IA64 processor
13736 lt_prog_compiler_static_CXX='-Bstatic'
13738 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13742 case $cc_basename in
13744 # Green Hills C++ Compiler
13745 # _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"
13750 # PIC is the default on this platform
13751 # Common symbols not allowed in MH_DYLIB files
13752 case $cc_basename in
13754 lt_prog_compiler_pic_CXX='-qnocommon'
13755 lt_prog_compiler_wl_CXX='-Wl,'
13760 case $cc_basename in
13762 lt_prog_compiler_pic_CXX='-KPIC'
13765 # Green Hills C++ Compiler
13766 lt_prog_compiler_pic_CXX='-pic'
13772 freebsd* | dragonfly*)
13773 # FreeBSD uses GNU C++
13775 hpux9* | hpux10* | hpux11*)
13776 case $cc_basename in
13778 lt_prog_compiler_wl_CXX='-Wl,'
13779 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13780 if test "$host_cpu" != ia64; then
13781 lt_prog_compiler_pic_CXX='+Z'
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13792 lt_prog_compiler_pic_CXX='+Z'
13801 # This is c89, which is MS Visual C++ (no shared libs)
13802 # Anyone wants to do a port?
13804 irix5* | irix6* | nonstopux*)
13805 case $cc_basename in
13807 lt_prog_compiler_wl_CXX='-Wl,'
13808 lt_prog_compiler_static_CXX='-non_shared'
13809 # CC pic flag -KPIC is the default.
13815 linux* | k*bsd*-gnu)
13816 case $cc_basename in
13819 lt_prog_compiler_wl_CXX='--backend -Wl,'
13820 lt_prog_compiler_pic_CXX='-fPIC'
13824 lt_prog_compiler_wl_CXX='-Wl,'
13825 lt_prog_compiler_pic_CXX='-KPIC'
13826 lt_prog_compiler_static_CXX='-static'
13829 # Portland Group C++ compiler.
13830 lt_prog_compiler_wl_CXX='-Wl,'
13831 lt_prog_compiler_pic_CXX='-fpic'
13832 lt_prog_compiler_static_CXX='-Bstatic'
13836 # Make sure the PIC flag is empty. It appears that all Alpha
13837 # Linux and Compaq Tru64 Unix objects are PIC.
13838 lt_prog_compiler_pic_CXX=
13839 lt_prog_compiler_static_CXX='-non_shared'
13850 case $cc_basename in
13852 lt_prog_compiler_pic_CXX='-W c,exportall'
13858 netbsd* | netbsdelf*-gnu)
13860 osf3* | osf4* | osf5*)
13861 case $cc_basename in
13863 lt_prog_compiler_wl_CXX='--backend -Wl,'
13866 # Rational C++ 2.4.1
13867 lt_prog_compiler_pic_CXX='-pic'
13870 # Digital/Compaq C++
13871 lt_prog_compiler_wl_CXX='-Wl,'
13872 # Make sure the PIC flag is empty. It appears that all Alpha
13873 # Linux and Compaq Tru64 Unix objects are PIC.
13874 lt_prog_compiler_pic_CXX=
13875 lt_prog_compiler_static_CXX='-non_shared'
13884 case $cc_basename in
13886 # Sun C++ 4.2, 5.x and Centerline C++
13887 lt_prog_compiler_pic_CXX='-KPIC'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13889 lt_prog_compiler_wl_CXX='-Qoption ld '
13892 # Green Hills C++ Compiler
13893 lt_prog_compiler_pic_CXX='-PIC'
13900 case $cc_basename in
13903 lt_prog_compiler_pic_CXX='-pic'
13904 lt_prog_compiler_static_CXX='-Bstatic'
13908 lt_prog_compiler_pic_CXX='-pic'
13915 case $cc_basename in
13917 # NonStop-UX NCC 3.20
13918 lt_prog_compiler_pic_CXX='-KPIC'
13924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13925 case $cc_basename in
13927 lt_prog_compiler_wl_CXX='-Wl,'
13928 lt_prog_compiler_pic_CXX='-KPIC'
13929 lt_prog_compiler_static_CXX='-Bstatic'
13936 lt_prog_compiler_can_build_shared_CXX=no
13941 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13942 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13945 # Check to make sure the PIC flag actually works.
13947 if test -n "$lt_prog_compiler_pic_CXX"; then
13949 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13951 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 lt_prog_compiler_pic_works_CXX=no
13955 ac_outfile=conftest.$ac_objext
13956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13957 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13958 # Insert the option either (1) after the last *FLAGS variable, or
13959 # (2) before a word containing "conftest.", or (3) at the end.
13960 # Note that $ac_compile itself does not contain backslashes and begins
13961 # with a dollar sign (not a hyphen), so the echo should work correctly.
13962 # The option is referenced via a variable to avoid confusing sed.
13963 lt_compile=`echo "$ac_compile" | $SED \
13964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13966 -e 's:$: $lt_compiler_flag:'`
13967 (eval echo "\"\$as_me:13967: $lt_compile\"" >&5)
13968 (eval "$lt_compile" 2>conftest.err)
13970 cat conftest.err >&5
13971 echo "$as_me:13971: \$? = $ac_status" >&5
13972 if (exit $ac_status) && test -s "$ac_outfile"; then
13973 # The compiler can only warn and ignore the option if not recognized
13974 # So say no if there are warnings other than the usual output.
13975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13978 lt_prog_compiler_pic_works_CXX=yes
13984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13985 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13987 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13988 case $lt_prog_compiler_pic_CXX in
13990 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13993 lt_prog_compiler_pic_CXX=
13994 lt_prog_compiler_can_build_shared_CXX=no
13999 # For platforms which do not support PIC, -DPIC is meaningless:
14001 lt_prog_compiler_pic_CXX=
14004 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14009 # Check to make sure the static flag actually works.
14011 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14012 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14013 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14014 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 lt_prog_compiler_static_works_CXX=no
14018 save_LDFLAGS="$LDFLAGS"
14019 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14020 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14022 # The linker can only warn and ignore the option if not recognized
14023 # So say no if there are warnings
14024 if test -s conftest.err; then
14025 # Append any errors to the config.log.
14026 cat conftest.err 1>&5
14027 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14029 if diff conftest.exp conftest.er2 >/dev/null; then
14030 lt_prog_compiler_static_works_CXX=yes
14033 lt_prog_compiler_static_works_CXX=yes
14037 LDFLAGS="$save_LDFLAGS"
14040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14041 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14043 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14046 lt_prog_compiler_static_CXX=
14050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14052 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 lt_cv_prog_compiler_c_o_CXX=no
14056 $rm -r conftest 2>/dev/null
14060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14062 lt_compiler_flag="-o out/conftest2.$ac_objext"
14063 # Insert the option either (1) after the last *FLAGS variable, or
14064 # (2) before a word containing "conftest.", or (3) at the end.
14065 # Note that $ac_compile itself does not contain backslashes and begins
14066 # with a dollar sign (not a hyphen), so the echo should work correctly.
14067 lt_compile=`echo "$ac_compile" | $SED \
14068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14070 -e 's:$: $lt_compiler_flag:'`
14071 (eval echo "\"\$as_me:14071: $lt_compile\"" >&5)
14072 (eval "$lt_compile" 2>out/conftest.err)
14074 cat out/conftest.err >&5
14075 echo "$as_me:14075: \$? = $ac_status" >&5
14076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14078 # The compiler can only warn and ignore the option if not recognized
14079 # So say no if there are warnings
14080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14083 lt_cv_prog_compiler_c_o_CXX=yes
14088 # SGI C++ compiler will create directory out/ii_files/ for
14089 # template instantiation
14090 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14091 $rm out/* && rmdir out
14097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14101 hard_links="nottested"
14102 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14103 # do not overwrite the value of need_locks provided by the user
14104 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 ln conftest.a conftest.b 2>&5 || hard_links=no
14111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14112 { echo "$as_me:$LINENO: result: $hard_links" >&5
14113 echo "${ECHO_T}$hard_links" >&6; }
14114 if test "$hard_links" = no; then
14115 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14116 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14123 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14124 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14129 # If we're using GNU nm, then we don't want the "-C" option.
14130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14132 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'
14134 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'
14138 export_symbols_cmds_CXX="$ltdll_cmds"
14141 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'
14143 linux* | k*bsd*-gnu)
14144 link_all_deplibs_CXX=no
14147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14152 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14153 test "$ld_shlibs_CXX" = no && can_build_shared=no
14156 # Do we need to explicitly link libc?
14158 case "x$archive_cmds_need_lc_CXX" in
14160 # Assume -lc should be added
14161 archive_cmds_need_lc_CXX=yes
14163 if test "$enable_shared" = yes && test "$GCC" = yes; then
14164 case $archive_cmds_CXX in
14166 # FIXME: we may have to deal with multi-command sequences.
14169 # Test whether the compiler implicitly links with -lc since on some
14170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14171 # to ld, don't add -lc before -lgcc.
14172 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } 2>conftest.err; then
14184 libobjs=conftest.$ac_objext
14186 wl=$lt_prog_compiler_wl_CXX
14187 pic_flag=$lt_prog_compiler_pic_CXX
14193 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14194 allow_undefined_flag_CXX=
14195 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14196 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }
14201 archive_cmds_need_lc_CXX=no
14203 archive_cmds_need_lc_CXX=yes
14205 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14207 cat conftest.err 1>&5
14210 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14218 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14220 library_names_spec=
14221 libname_spec='lib$name'
14225 postuninstall_cmds=
14229 shlibpath_overrides_runpath=unknown
14231 dynamic_linker="$host_os ld.so"
14232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14233 if test "$GCC" = yes; then
14234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14235 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14236 # if the path contains ";" then we assume it to be the separator
14237 # otherwise default to the standard path separator (i.e. ":") - it is
14238 # assumed that no part of a normal pathname contains ";" but that should
14239 # okay in the real world where ";" in dirpaths is itself problematic.
14240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14247 need_lib_prefix=unknown
14248 hardcode_into_libs=no
14250 # when you set need_version to no, make sure it does not cause -set_version
14251 # flags to be left without arguments
14252 need_version=unknown
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14258 shlibpath_var=LIBPATH
14260 # AIX 3 has no versioning support, so we append a major version to the name.
14261 soname_spec='${libname}${release}${shared_ext}$major'
14268 hardcode_into_libs=yes
14269 if test "$host_cpu" = ia64; then
14270 # AIX 5 supports IA64
14271 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14272 shlibpath_var=LD_LIBRARY_PATH
14274 # With GCC up to 2.95.x, collect2 would create an import file
14275 # for dependence libraries. The import file would start with
14276 # the line `#! .'. This would cause the generated library to
14277 # depend on `.', always an invalid library. This was fixed in
14278 # development snapshots of GCC prior to 3.0.
14280 aix4 | aix4.[01] | aix4.[01].*)
14281 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14283 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14286 can_build_shared=no
14290 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14291 # soname into executable. Probably we can add versioning support to
14292 # collect2, so additional links can be useful in future.
14293 if test "$aix_use_runtimelinking" = yes; then
14294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14295 # instead of lib<name>.a to let people know that these are not
14296 # typical AIX shared libraries.
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299 # We preserve .a as extension for shared libraries through AIX4.2
14300 # and later when we are not doing run time linking.
14301 library_names_spec='${libname}${release}.a $libname.a'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14304 shlibpath_var=LIBPATH
14309 library_names_spec='$libname.ixlibrary $libname.a'
14310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14311 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'
14315 library_names_spec='${libname}${shared_ext}'
14316 dynamic_linker="$host_os ld.so"
14317 shlibpath_var=LIBRARY_PATH
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14326 shlibpath_var=LD_LIBRARY_PATH
14327 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14328 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14329 # the default ld.so.conf also contains /usr/contrib/lib and
14330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14331 # libtool to hard-code these into programs
14334 cygwin* | mingw* | pw32*)
14335 version_type=windows
14340 case $GCC,$host_os in
14341 yes,cygwin* | yes,mingw* | yes,pw32*)
14342 library_names_spec='$libname.dll.a'
14343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14344 postinstall_cmds='base_file=`basename \${file}`~
14345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14346 dldir=$destdir/`dirname \$dlpath`~
14347 test -d \$dldir || mkdir -p \$dldir~
14348 $install_prog $dir/$dlname \$dldir/$dlname~
14349 chmod a+x \$dldir/$dlname'
14350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14351 dlpath=$dir/\$dldll~
14353 shlibpath_overrides_runpath=yes
14357 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14358 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14359 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14362 # MinGW DLLs use traditional 'lib' prefix
14363 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14364 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14365 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14366 # It is most probably a Windows format PATH printed by
14367 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14368 # path with ; separators, and with drive letters. We can handle the
14369 # drive letters (cygwin fileutils understands them), so leave them,
14370 # especially as we might pass files found there to a mingw objdump,
14371 # which wouldn't understand a cygwinified path. Ahh.
14372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14378 # pw32 DLLs use 'pw' prefix rather than 'lib'
14379 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14385 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14388 dynamic_linker='Win32 ld.exe'
14389 # FIXME: first we should search . and the directory the executable is in
14393 darwin* | rhapsody*)
14394 dynamic_linker="$host_os dyld"
14395 version_type=darwin
14398 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14399 soname_spec='${libname}${release}${major}$shared_ext'
14400 shlibpath_overrides_runpath=yes
14401 shlibpath_var=DYLD_LIBRARY_PATH
14402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14403 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14404 if test "$GCC" = yes; then
14405 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"`
14407 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14425 freebsd* | dragonfly*)
14426 # DragonFly does not have aout. When/if they implement a new
14427 # versioning mechanism, adjust this.
14428 if test -x /usr/bin/objformat; then
14429 objformat=`/usr/bin/objformat`
14432 freebsd[123]*) objformat=aout ;;
14433 *) objformat=elf ;;
14436 version_type=freebsd-$objformat
14437 case $version_type in
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14448 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=yes
14453 freebsd3.[01]* | freebsdelf3.[01]*)
14454 shlibpath_overrides_runpath=yes
14455 hardcode_into_libs=yes
14457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14459 shlibpath_overrides_runpath=no
14460 hardcode_into_libs=yes
14462 freebsd*) # from 4.6 on
14463 shlibpath_overrides_runpath=yes
14464 hardcode_into_libs=yes
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 hardcode_into_libs=yes
14479 hpux9* | hpux10* | hpux11*)
14480 # Give a soname corresponding to the major version so that dld.sl refuses to
14481 # link against other versions.
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.so"
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 if test "X$HPUX_IA64_MODE" = X32; then
14495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14503 hardcode_into_libs=yes
14504 dynamic_linker="$host_os dld.sl"
14505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514 dynamic_linker="$host_os dld.sl"
14515 shlibpath_var=SHLIB_PATH
14516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14522 postinstall_cmds='chmod 555 $lib'
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=no
14534 hardcode_into_libs=yes
14537 irix5* | irix6* | nonstopux*)
14539 nonstopux*) version_type=nonstopux ;;
14541 if test "$lt_cv_prog_gnu_ld" = yes; then
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14552 irix5* | nonstopux*)
14553 libsuff= shlibsuff=
14556 case $LD in # libtool.m4 will add one of these switches to LD
14557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558 libsuff= shlibsuff= libmagic=32-bit;;
14559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560 libsuff=32 shlibsuff=N32 libmagic=N32;;
14561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563 *) libsuff= shlibsuff= libmagic=never-match;;
14567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568 shlibpath_overrides_runpath=no
14569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571 hardcode_into_libs=yes
14574 # No shared lib support for Linux oldld, aout, or coff.
14575 linux*oldld* | linux*aout* | linux*coff*)
14579 # This must be Linux ELF.
14580 linux* | k*bsd*-gnu)
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=no
14589 # This implies no fast_install, which is unacceptable.
14590 # Some rework will be needed to allow for fast_install
14591 # before this can be enabled.
14592 hardcode_into_libs=yes
14594 # Append ld.so.conf contents to the search path
14595 if test -f /etc/ld.so.conf; then
14596 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' ' '`
14597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14600 # We used to test for /lib/ld.so.1 and disable shared libraries on
14601 # powerpc, because MkLinux only supported shared libraries with the
14602 # GNU dynamic linker. Since this was broken with cross compilers,
14603 # most powerpc-linux boxes support dynamic linking these days and
14604 # people can always --disable-shared, the test was removed, and we
14605 # assume the GNU/Linux dynamic linker is in use.
14606 dynamic_linker='GNU/Linux ld.so'
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='NetBSD ld.elf_so'
14625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628 dynamic_linker='NetBSD (a.out) ld.so'
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 dynamic_linker='NetBSD ld.elf_so'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=yes
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14658 sys_lib_dlsearch_path_spec="/usr/lib"
14660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14663 *) need_version=no ;;
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14670 openbsd2.[89] | openbsd2.[89].*)
14671 shlibpath_overrides_runpath=no
14674 shlibpath_overrides_runpath=yes
14678 shlibpath_overrides_runpath=yes
14683 libname_spec='$name'
14686 library_names_spec='$libname${shared_ext} $libname.a'
14687 dynamic_linker='OS/2 ld.exe'
14688 shlibpath_var=LIBPATH
14691 osf3* | osf4* | osf5*)
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes
14710 hardcode_into_libs=yes
14711 # ldd complains unless libraries are executable
14712 postinstall_cmds='chmod +x $lib'
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes
14721 if test "$with_gnu_ld" = yes; then
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 case $host_vendor in
14734 shlibpath_overrides_runpath=no
14736 export_dynamic_flag_spec='${wl}-Blargedynsym'
14737 runpath_var=LD_RUN_PATH
14745 shlibpath_overrides_runpath=no
14746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14752 if test -d /usr/nec ;then
14754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14755 soname_spec='$libname${shared_ext}.$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14761 version_type=freebsd-elf
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 hardcode_into_libs=yes
14768 if test "$with_gnu_ld" = yes; then
14769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14770 shlibpath_overrides_runpath=no
14772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14773 shlibpath_overrides_runpath=yes
14776 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14780 sys_lib_dlsearch_path_spec='/usr/lib'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14794 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14795 echo "${ECHO_T}$dynamic_linker" >&6; }
14796 test "$dynamic_linker" = no && can_build_shared=no
14798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14799 if test "$GCC" = yes; then
14800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14803 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14805 hardcode_action_CXX=
14806 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14807 test -n "$runpath_var_CXX" || \
14808 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14810 # We can hardcode non-existant directories.
14811 if test "$hardcode_direct_CXX" != no &&
14812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14813 # have to relink, otherwise we might link with an installed library
14814 # when we should be linking with a yet-to-be-installed one
14815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14816 test "$hardcode_minus_L_CXX" != no; then
14817 # Linking always hardcodes the temporary library directory.
14818 hardcode_action_CXX=relink
14820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14821 hardcode_action_CXX=immediate
14824 # We cannot hardcode anything, or else we can only hardcode existing
14826 hardcode_action_CXX=unsupported
14828 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14829 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14831 if test "$hardcode_action_CXX" = relink; then
14832 # Fast installation is not supported
14833 enable_fast_install=no
14834 elif test "$shlibpath_overrides_runpath" = yes ||
14835 test "$enable_shared" = no; then
14836 # Fast installation is not necessary
14837 enable_fast_install=needless
14841 # The else clause should only fire when bootstrapping the
14842 # libtool distribution, otherwise you forgot to ship ltmain.sh
14843 # with your package, and you will get complaints that there are
14844 # no rules to generate ltmain.sh.
14845 if test -f "$ltmain"; then
14846 # See if we are running on zsh, and set the options which allow our commands through
14847 # without removal of \ escapes.
14848 if test -n "${ZSH_VERSION+set}" ; then
14849 setopt NO_GLOB_SUBST
14851 # Now quote all the things that may contain metacharacters while being
14852 # careful not to overquote the AC_SUBSTed values. We take copies of the
14853 # variables and quote the copies for generation of the libtool script.
14854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14858 deplibs_check_method reload_flag reload_cmds need_locks \
14859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14860 lt_cv_sys_global_symbol_to_c_name_address \
14861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14862 old_postinstall_cmds old_postuninstall_cmds \
14866 lt_prog_compiler_wl_CXX \
14867 lt_prog_compiler_pic_CXX \
14868 lt_prog_compiler_static_CXX \
14869 lt_prog_compiler_no_builtin_flag_CXX \
14870 export_dynamic_flag_spec_CXX \
14871 thread_safe_flag_spec_CXX \
14872 whole_archive_flag_spec_CXX \
14873 enable_shared_with_static_runtimes_CXX \
14874 old_archive_cmds_CXX \
14875 old_archive_from_new_cmds_CXX \
14876 predep_objects_CXX \
14877 postdep_objects_CXX \
14880 compiler_lib_search_path_CXX \
14882 archive_expsym_cmds_CXX \
14883 postinstall_cmds_CXX \
14884 postuninstall_cmds_CXX \
14885 old_archive_from_expsyms_cmds_CXX \
14886 allow_undefined_flag_CXX \
14887 no_undefined_flag_CXX \
14888 export_symbols_cmds_CXX \
14889 hardcode_libdir_flag_spec_CXX \
14890 hardcode_libdir_flag_spec_ld_CXX \
14891 hardcode_libdir_separator_CXX \
14892 hardcode_automatic_CXX \
14894 module_expsym_cmds_CXX \
14895 lt_cv_prog_compiler_c_o_CXX \
14896 exclude_expsyms_CXX \
14897 include_expsyms_CXX; do
14900 old_archive_cmds_CXX | \
14901 old_archive_from_new_cmds_CXX | \
14902 archive_cmds_CXX | \
14903 archive_expsym_cmds_CXX | \
14904 module_cmds_CXX | \
14905 module_expsym_cmds_CXX | \
14906 old_archive_from_expsyms_cmds_CXX | \
14907 export_symbols_cmds_CXX | \
14908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14909 postinstall_cmds | postuninstall_cmds | \
14910 old_postinstall_cmds | old_postuninstall_cmds | \
14911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14912 # Double-quote double-evaled strings.
14913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14922 *'\$0 --fallback-echo"')
14923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14929 cat <<__EOF__ >> "$cfgfile"
14930 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14932 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14934 # Shell to use when invoking shell scripts.
14937 # Whether or not to build shared libraries.
14938 build_libtool_libs=$enable_shared
14940 # Whether or not to build static libraries.
14941 build_old_libs=$enable_static
14943 # Whether or not to add -lc for building shared libraries.
14944 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14946 # Whether or not to disallow shared libs when runtime libs are static
14947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14949 # Whether or not to optimize for fast installation.
14950 fast_install=$enable_fast_install
14953 host_alias=$host_alias
14957 # The build system.
14958 build_alias=$build_alias
14962 # An echo program that does not interpret backslashes.
14967 AR_FLAGS=$lt_AR_FLAGS
14972 # LTCC compiler flags.
14973 LTCFLAGS=$lt_LTCFLAGS
14975 # A language-specific compiler.
14976 CC=$lt_compiler_CXX
14978 # Is the compiler the GNU C compiler?
14984 # The linker used to build libraries.
14987 # Whether we need hard or soft links.
14990 # A BSD-compatible nm program.
14993 # A symbol stripping program
14996 # Used to examine libraries when file_magic_cmd begins "file"
14997 MAGIC_CMD=$MAGIC_CMD
14999 # Used on cygwin: DLL creation program.
15002 # Used on cygwin: object dumper.
15005 # Used on cygwin: assembler.
15008 # The name of the directory that contains temporary libtool files.
15011 # How to create reloadable object files.
15012 reload_flag=$lt_reload_flag
15013 reload_cmds=$lt_reload_cmds
15015 # How to pass a linker flag through the compiler.
15016 wl=$lt_lt_prog_compiler_wl_CXX
15018 # Object file suffix (normally "o").
15019 objext="$ac_objext"
15021 # Old archive suffix (normally "a").
15024 # Shared library suffix (normally ".so").
15025 shrext_cmds='$shrext_cmds'
15027 # Executable file suffix (normally "").
15030 # Additional compiler flags for building library objects.
15031 pic_flag=$lt_lt_prog_compiler_pic_CXX
15034 # What is the maximum length of a command?
15035 max_cmd_len=$lt_cv_sys_max_cmd_len
15037 # Does compiler simultaneously support -c and -o options?
15038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15040 # Must we lock files when doing compilation?
15041 need_locks=$lt_need_locks
15043 # Do we need the lib prefix for modules?
15044 need_lib_prefix=$need_lib_prefix
15046 # Do we need a version for libraries?
15047 need_version=$need_version
15049 # Whether dlopen is supported.
15050 dlopen_support=$enable_dlopen
15052 # Whether dlopen of programs is supported.
15053 dlopen_self=$enable_dlopen_self
15055 # Whether dlopen of statically linked programs is supported.
15056 dlopen_self_static=$enable_dlopen_self_static
15058 # Compiler flag to prevent dynamic linking.
15059 link_static_flag=$lt_lt_prog_compiler_static_CXX
15061 # Compiler flag to turn off builtin functions.
15062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15064 # Compiler flag to allow reflexive dlopens.
15065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15067 # Compiler flag to generate shared objects directly from archives.
15068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15070 # Compiler flag to generate thread-safe objects.
15071 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15073 # Library versioning type.
15074 version_type=$version_type
15076 # Format of library name prefix.
15077 libname_spec=$lt_libname_spec
15079 # List of archive names. First name is the real one, the rest are links.
15080 # The last name is the one that the linker finds with -lNAME.
15081 library_names_spec=$lt_library_names_spec
15083 # The coded name of the library, if different from the real name.
15084 soname_spec=$lt_soname_spec
15086 # Commands used to build and install an old-style archive.
15088 old_archive_cmds=$lt_old_archive_cmds_CXX
15089 old_postinstall_cmds=$lt_old_postinstall_cmds
15090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15092 # Create an old-style archive from a shared archive.
15093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15095 # Create a temporary old-style archive to link instead of a shared archive.
15096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15098 # Commands used to build and install a shared archive.
15099 archive_cmds=$lt_archive_cmds_CXX
15100 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15101 postinstall_cmds=$lt_postinstall_cmds
15102 postuninstall_cmds=$lt_postuninstall_cmds
15104 # Commands used to build a loadable module (assumed same as above if empty)
15105 module_cmds=$lt_module_cmds_CXX
15106 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15108 # Commands to strip libraries.
15109 old_striplib=$lt_old_striplib
15110 striplib=$lt_striplib
15112 # Dependencies to place before the objects being linked to create a
15114 predep_objects=$lt_predep_objects_CXX
15116 # Dependencies to place after the objects being linked to create a
15118 postdep_objects=$lt_postdep_objects_CXX
15120 # Dependencies to place before the objects being linked to create a
15122 predeps=$lt_predeps_CXX
15124 # Dependencies to place after the objects being linked to create a
15126 postdeps=$lt_postdeps_CXX
15128 # The library search path used internally by the compiler when linking
15129 # a shared library.
15130 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15132 # Method to check whether dependent libraries are shared objects.
15133 deplibs_check_method=$lt_deplibs_check_method
15135 # Command to use when deplibs_check_method == file_magic.
15136 file_magic_cmd=$lt_file_magic_cmd
15138 # Flag that allows shared libraries with undefined symbols to be built.
15139 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15141 # Flag that forces no undefined symbols.
15142 no_undefined_flag=$lt_no_undefined_flag_CXX
15144 # Commands used to finish a libtool library installation in a directory.
15145 finish_cmds=$lt_finish_cmds
15147 # Same as above, but a single script fragment to be evaled but not shown.
15148 finish_eval=$lt_finish_eval
15150 # Take the output of nm and produce a listing of raw symbols and C names.
15151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15153 # Transform the output of nm in a proper C declaration
15154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15156 # Transform the output of nm in a C name address pair
15157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15159 # This is the shared library runtime path variable.
15160 runpath_var=$runpath_var
15162 # This is the shared library path variable.
15163 shlibpath_var=$shlibpath_var
15165 # Is shlibpath searched before the hard-coded library search path?
15166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15168 # How to hardcode a shared library path into an executable.
15169 hardcode_action=$hardcode_action_CXX
15171 # Whether we should hardcode library paths into libraries.
15172 hardcode_into_libs=$hardcode_into_libs
15174 # Flag to hardcode \$libdir into a binary during linking.
15175 # This must work even if \$libdir does not exist.
15176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15178 # If ld is used when linking, flag to hardcode \$libdir into
15179 # a binary during linking. This must work even if \$libdir does
15181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15183 # Whether we need a single -rpath flag with a separated argument.
15184 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15186 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15187 # resulting binary.
15188 hardcode_direct=$hardcode_direct_CXX
15190 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15191 # resulting binary.
15192 hardcode_minus_L=$hardcode_minus_L_CXX
15194 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15195 # the resulting binary.
15196 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15198 # Set to yes if building a shared library automatically hardcodes DIR into the library
15199 # and all subsequent libraries and executables linked against it.
15200 hardcode_automatic=$hardcode_automatic_CXX
15202 # Variables whose values should be saved in libtool wrapper scripts and
15203 # restored at relink time.
15204 variables_saved_for_relink="$variables_saved_for_relink"
15206 # Whether libtool must link a program against all its dependency libraries.
15207 link_all_deplibs=$link_all_deplibs_CXX
15209 # Compile-time system search path for libraries
15210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15212 # Run-time system search path for libraries
15213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15215 # Fix the shell variable \$srcfile for the compiler.
15216 fix_srcfile_path="$fix_srcfile_path_CXX"
15218 # Set to yes if exported symbols are required.
15219 always_export_symbols=$always_export_symbols_CXX
15221 # The commands to list exported symbols.
15222 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15224 # The commands to extract the exported symbol list from a shared archive.
15225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15227 # Symbols that should not be listed in the preloaded symbols.
15228 exclude_expsyms=$lt_exclude_expsyms_CXX
15230 # Symbols that must always be exported.
15231 include_expsyms=$lt_include_expsyms_CXX
15233 # ### END LIBTOOL TAG CONFIG: $tagname
15239 # If there is no Makefile yet, we rely on a make rule to execute
15240 # `config.status --recheck' to rerun these tests and create the
15241 # libtool script then.
15242 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15243 if test -f "$ltmain_in"; then
15244 test -f Makefile && make "$ltmain"
15250 ac_cpp='$CPP $CPPFLAGS'
15251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15259 with_gnu_ldcxx=$with_gnu_ld
15260 with_gnu_ld=$lt_save_with_gnu_ld
15261 lt_cv_path_LDCXX=$lt_cv_path_LD
15262 lt_cv_path_LD=$lt_save_path_LD
15263 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15264 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15272 if test -n "$F77" && test "X$F77" != "Xno"; then
15275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15280 archive_cmds_need_lc_F77=no
15281 allow_undefined_flag_F77=
15282 always_export_symbols_F77=no
15283 archive_expsym_cmds_F77=
15284 export_dynamic_flag_spec_F77=
15285 hardcode_direct_F77=no
15286 hardcode_libdir_flag_spec_F77=
15287 hardcode_libdir_flag_spec_ld_F77=
15288 hardcode_libdir_separator_F77=
15289 hardcode_minus_L_F77=no
15290 hardcode_automatic_F77=no
15292 module_expsym_cmds_F77=
15293 link_all_deplibs_F77=unknown
15294 old_archive_cmds_F77=$old_archive_cmds
15295 no_undefined_flag_F77=
15296 whole_archive_flag_spec_F77=
15297 enable_shared_with_static_runtimes_F77=no
15299 # Source file extension for f77 test sources.
15302 # Object file extension for compiled f77 test sources.
15306 # Code to be used in simple compile tests
15307 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15309 # Code to be used in simple link tests
15310 lt_simple_link_test_code=" program t\n end\n"
15312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314 # If no C compiler was specified, use CC.
15317 # If no C compiler flags were specified, use CFLAGS.
15318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15320 # Allow CC to be a program name with arguments.
15324 # save warnings/boilerplate of simple test code
15325 ac_outfile=conftest.$ac_objext
15326 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15328 _lt_compiler_boilerplate=`cat conftest.err`
15331 ac_outfile=conftest.$ac_objext
15332 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15334 _lt_linker_boilerplate=`cat conftest.err`
15338 # Allow CC to be a program name with arguments.
15343 for cc_temp in $compiler""; do
15345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15354 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15356 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15357 echo "${ECHO_T}$can_build_shared" >&6; }
15359 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15361 test "$can_build_shared" = "no" && enable_shared=no
15363 # On AIX, shared libraries and static libraries use the same namespace, and
15364 # are all built from PIC.
15367 test "$enable_shared" = yes && enable_static=no
15368 if test -n "$RANLIB"; then
15369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15370 postinstall_cmds='$RANLIB $lib'
15374 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15375 test "$enable_shared" = yes && enable_static=no
15379 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15380 echo "${ECHO_T}$enable_shared" >&6; }
15382 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15383 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15384 # Make sure either enable_shared or enable_static is yes.
15385 test "$enable_shared" = yes || enable_static=yes
15386 { echo "$as_me:$LINENO: result: $enable_static" >&5
15387 echo "${ECHO_T}$enable_static" >&6; }
15392 lt_prog_compiler_wl_F77=
15393 lt_prog_compiler_pic_F77=
15394 lt_prog_compiler_static_F77=
15396 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15399 if test "$GCC" = yes; then
15400 lt_prog_compiler_wl_F77='-Wl,'
15401 lt_prog_compiler_static_F77='-static'
15405 # All AIX code is PIC.
15406 if test "$host_cpu" = ia64; then
15407 # AIX 5 now supports IA64 processor
15408 lt_prog_compiler_static_F77='-Bstatic'
15413 # FIXME: we need at least 68020 code to build shared libraries, but
15414 # adding the `-m68020' flag to GCC prevents building anything better,
15416 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15420 # PIC is the default for these OSes.
15423 mingw* | pw32* | os2*)
15424 # This hack is so that the source file can tell whether it is being
15425 # built for inclusion in a dll (and should export symbols for example).
15426 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15429 darwin* | rhapsody*)
15430 # PIC is the default on this platform
15431 # Common symbols not allowed in MH_DYLIB files
15432 lt_prog_compiler_pic_F77='-fno-common'
15436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15437 # Instead, we relocate shared libraries at runtime.
15441 # Just because we use GCC doesn't mean we suddenly get shared libraries
15442 # on systems that don't support them.
15443 lt_prog_compiler_can_build_shared_F77=no
15448 if test -d /usr/nec; then
15449 lt_prog_compiler_pic_F77=-Kconform_pic
15454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15455 # not for PA HP-UX.
15461 lt_prog_compiler_pic_F77='-fPIC'
15467 lt_prog_compiler_pic_F77='-fPIC'
15471 # PORTME Check for flag to pass linker flags through the system compiler.
15474 lt_prog_compiler_wl_F77='-Wl,'
15475 if test "$host_cpu" = ia64; then
15476 # AIX 5 now supports IA64 processor
15477 lt_prog_compiler_static_F77='-Bstatic'
15479 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15483 # PIC is the default on this platform
15484 # Common symbols not allowed in MH_DYLIB files
15485 case $cc_basename in
15487 lt_prog_compiler_pic_F77='-qnocommon'
15488 lt_prog_compiler_wl_F77='-Wl,'
15493 mingw* | pw32* | os2*)
15494 # This hack is so that the source file can tell whether it is being
15495 # built for inclusion in a dll (and should export symbols for example).
15496 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15499 hpux9* | hpux10* | hpux11*)
15500 lt_prog_compiler_wl_F77='-Wl,'
15501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15502 # not for PA HP-UX.
15508 lt_prog_compiler_pic_F77='+Z'
15511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15512 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15515 irix5* | irix6* | nonstopux*)
15516 lt_prog_compiler_wl_F77='-Wl,'
15517 # PIC (with -KPIC) is the default.
15518 lt_prog_compiler_static_F77='-non_shared'
15522 lt_prog_compiler_pic_F77='-KPIC'
15523 lt_prog_compiler_static_F77='-Bstatic'
15526 linux* | k*bsd*-gnu)
15527 case $cc_basename in
15529 lt_prog_compiler_wl_F77='-Wl,'
15530 lt_prog_compiler_pic_F77='-KPIC'
15531 lt_prog_compiler_static_F77='-static'
15533 pgcc* | pgf77* | pgf90* | pgf95*)
15534 # Portland Group compilers (*not* the Pentium gcc compiler,
15535 # which looks to be a dead project)
15536 lt_prog_compiler_wl_F77='-Wl,'
15537 lt_prog_compiler_pic_F77='-fpic'
15538 lt_prog_compiler_static_F77='-Bstatic'
15541 lt_prog_compiler_wl_F77='-Wl,'
15542 # All Alpha code is PIC.
15543 lt_prog_compiler_static_F77='-non_shared'
15548 osf3* | osf4* | osf5*)
15549 lt_prog_compiler_wl_F77='-Wl,'
15550 # All OSF/1 code is PIC.
15551 lt_prog_compiler_static_F77='-non_shared'
15555 lt_prog_compiler_pic_F77='-KPIC'
15556 lt_prog_compiler_static_F77='-Bstatic'
15557 case $cc_basename in
15558 f77* | f90* | f95*)
15559 lt_prog_compiler_wl_F77='-Qoption ld ';;
15561 lt_prog_compiler_wl_F77='-Wl,';;
15566 lt_prog_compiler_wl_F77='-Qoption ld '
15567 lt_prog_compiler_pic_F77='-PIC'
15568 lt_prog_compiler_static_F77='-Bstatic'
15571 sysv4 | sysv4.2uw2* | sysv4.3*)
15572 lt_prog_compiler_wl_F77='-Wl,'
15573 lt_prog_compiler_pic_F77='-KPIC'
15574 lt_prog_compiler_static_F77='-Bstatic'
15578 if test -d /usr/nec ;then
15579 lt_prog_compiler_pic_F77='-Kconform_pic'
15580 lt_prog_compiler_static_F77='-Bstatic'
15584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15585 lt_prog_compiler_wl_F77='-Wl,'
15586 lt_prog_compiler_pic_F77='-KPIC'
15587 lt_prog_compiler_static_F77='-Bstatic'
15591 lt_prog_compiler_wl_F77='-Wl,'
15592 lt_prog_compiler_can_build_shared_F77=no
15596 lt_prog_compiler_pic_F77='-pic'
15597 lt_prog_compiler_static_F77='-Bstatic'
15601 lt_prog_compiler_can_build_shared_F77=no
15606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15607 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15610 # Check to make sure the PIC flag actually works.
15612 if test -n "$lt_prog_compiler_pic_F77"; then
15614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15616 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 lt_prog_compiler_pic_works_F77=no
15620 ac_outfile=conftest.$ac_objext
15621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15622 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15623 # Insert the option either (1) after the last *FLAGS variable, or
15624 # (2) before a word containing "conftest.", or (3) at the end.
15625 # Note that $ac_compile itself does not contain backslashes and begins
15626 # with a dollar sign (not a hyphen), so the echo should work correctly.
15627 # The option is referenced via a variable to avoid confusing sed.
15628 lt_compile=`echo "$ac_compile" | $SED \
15629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15631 -e 's:$: $lt_compiler_flag:'`
15632 (eval echo "\"\$as_me:15632: $lt_compile\"" >&5)
15633 (eval "$lt_compile" 2>conftest.err)
15635 cat conftest.err >&5
15636 echo "$as_me:15636: \$? = $ac_status" >&5
15637 if (exit $ac_status) && test -s "$ac_outfile"; then
15638 # The compiler can only warn and ignore the option if not recognized
15639 # So say no if there are warnings other than the usual output.
15640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15643 lt_prog_compiler_pic_works_F77=yes
15649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15650 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15652 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15653 case $lt_prog_compiler_pic_F77 in
15655 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15658 lt_prog_compiler_pic_F77=
15659 lt_prog_compiler_can_build_shared_F77=no
15664 # For platforms which do not support PIC, -DPIC is meaningless:
15666 lt_prog_compiler_pic_F77=
15669 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15674 # Check to make sure the static flag actually works.
15676 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15679 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 lt_prog_compiler_static_works_F77=no
15683 save_LDFLAGS="$LDFLAGS"
15684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15685 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15687 # The linker can only warn and ignore the option if not recognized
15688 # So say no if there are warnings
15689 if test -s conftest.err; then
15690 # Append any errors to the config.log.
15691 cat conftest.err 1>&5
15692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15694 if diff conftest.exp conftest.er2 >/dev/null; then
15695 lt_prog_compiler_static_works_F77=yes
15698 lt_prog_compiler_static_works_F77=yes
15702 LDFLAGS="$save_LDFLAGS"
15705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15706 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15708 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15711 lt_prog_compiler_static_F77=
15715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 lt_cv_prog_compiler_c_o_F77=no
15721 $rm -r conftest 2>/dev/null
15725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15727 lt_compiler_flag="-o out/conftest2.$ac_objext"
15728 # Insert the option either (1) after the last *FLAGS variable, or
15729 # (2) before a word containing "conftest.", or (3) at the end.
15730 # Note that $ac_compile itself does not contain backslashes and begins
15731 # with a dollar sign (not a hyphen), so the echo should work correctly.
15732 lt_compile=`echo "$ac_compile" | $SED \
15733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735 -e 's:$: $lt_compiler_flag:'`
15736 (eval echo "\"\$as_me:15736: $lt_compile\"" >&5)
15737 (eval "$lt_compile" 2>out/conftest.err)
15739 cat out/conftest.err >&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743 # The compiler can only warn and ignore the option if not recognized
15744 # So say no if there are warnings
15745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15748 lt_cv_prog_compiler_c_o_F77=yes
15753 # SGI C++ compiler will create directory out/ii_files/ for
15754 # template instantiation
15755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15756 $rm out/* && rmdir out
15762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15766 hard_links="nottested"
15767 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15768 # do not overwrite the value of need_locks provided by the user
15769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775 ln conftest.a conftest.b 2>&5 || hard_links=no
15776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777 { echo "$as_me:$LINENO: result: $hard_links" >&5
15778 echo "${ECHO_T}$hard_links" >&6; }
15779 if test "$hard_links" = no; then
15780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15792 allow_undefined_flag_F77=
15793 enable_shared_with_static_runtimes_F77=no
15795 archive_expsym_cmds_F77=
15796 old_archive_From_new_cmds_F77=
15797 old_archive_from_expsyms_cmds_F77=
15798 export_dynamic_flag_spec_F77=
15799 whole_archive_flag_spec_F77=
15800 thread_safe_flag_spec_F77=
15801 hardcode_libdir_flag_spec_F77=
15802 hardcode_libdir_flag_spec_ld_F77=
15803 hardcode_libdir_separator_F77=
15804 hardcode_direct_F77=no
15805 hardcode_minus_L_F77=no
15806 hardcode_shlibpath_var_F77=unsupported
15807 link_all_deplibs_F77=unknown
15808 hardcode_automatic_F77=no
15810 module_expsym_cmds_F77=
15811 always_export_symbols_F77=no
15812 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15813 # include_expsyms should be a list of space-separated symbols to be *always*
15814 # included in the symbol list
15815 include_expsyms_F77=
15816 # exclude_expsyms can be an extended regexp of symbols to exclude
15817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15819 # as well as any symbol that contains `d'.
15820 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15822 # platforms (ab)use it in PIC code, but their linkers get confused if
15823 # the symbol is explicitly referenced. Since portable code cannot
15824 # rely on this symbol name, it's probably fine to never include it in
15825 # preloaded symbol tables.
15826 extract_expsyms_cmds=
15827 # Just being paranoid about ensuring that cc_basename is set.
15828 for cc_temp in $compiler""; do
15830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15839 cygwin* | mingw* | pw32*)
15840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15841 # When not using gcc, we currently assume that we are using
15842 # Microsoft Visual C++.
15843 if test "$GCC" != yes; then
15848 # we just hope/assume this is gcc and not c89 (= MSVC++)
15857 if test "$with_gnu_ld" = yes; then
15858 # If archive_cmds runs LD, not CC, wlarc should be empty
15861 # Set some defaults for GNU ld with shared library support. These
15862 # are reset later if shared libraries are not supported. Putting them
15863 # here allows them to be overridden if necessary.
15864 runpath_var=LD_RUN_PATH
15865 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15866 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15867 # ancient GNU ld didn't support --whole-archive et. al.
15868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15869 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15871 whole_archive_flag_spec_F77=
15873 supports_anon_versioning=no
15874 case `$LD -v 2>/dev/null` in
15875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878 *\ 2.11.*) ;; # other 2.11 versions
15879 *) supports_anon_versioning=yes ;;
15882 # See if GNU ld supports shared libraries.
15884 aix3* | aix4* | aix5*)
15885 # On AIX/PPC, the GNU linker is very broken
15886 if test "$host_cpu" != ia64; then
15890 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15891 *** to be unable to reliably create shared libraries on AIX.
15892 *** Therefore, libtool is disabling shared libraries support. If you
15893 *** really care for shared libraries, you may want to modify your PATH
15894 *** so that a non-GNU linker is found, and then restart.
15901 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)'
15902 hardcode_libdir_flag_spec_F77='-L$libdir'
15903 hardcode_minus_L_F77=yes
15905 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15906 # that the semantics of dynamic libraries on AmigaOS, at least up
15907 # to version 4, is to share data among multiple programs linked
15908 # with the same dynamic library. Since this doesn't match the
15909 # behavior of shared libraries on other platforms, we can't use
15915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15916 allow_undefined_flag_F77=unsupported
15917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15918 # support --undefined. This deserves some investigation. FIXME
15919 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15925 cygwin* | mingw* | pw32*)
15926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15927 # as there is no search path for DLLs.
15928 hardcode_libdir_flag_spec_F77='-L$libdir'
15929 allow_undefined_flag_F77=unsupported
15930 always_export_symbols_F77=no
15931 enable_shared_with_static_runtimes_F77=yes
15932 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15935 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15936 # If the export-symbols file already is a .def file (1st line
15937 # is EXPORTS), use it as is; otherwise, prepend...
15938 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15939 cp $export_symbols $output_objdir/$soname.def;
15941 echo EXPORTS > $output_objdir/$soname.def;
15942 cat $export_symbols >> $output_objdir/$soname.def;
15944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15951 hardcode_direct_F77=no
15952 hardcode_shlibpath_var_F77=no
15953 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15954 export_dynamic_flag_spec_F77='${wl}-E'
15955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15956 # Instead, shared libraries are loaded at an image base (0x10000000 by
15957 # default) and relocated if they conflict, which is a slow very memory
15958 # consuming and fragmenting process. To avoid this, we pick a random,
15959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15961 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'
15962 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'
15965 linux* | k*bsd*-gnu)
15966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15968 case $cc_basename,$host_cpu in
15969 pgcc*) # Portland Group C compiler
15970 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'
15971 tmp_addflag=' $pic_flag'
15973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15974 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'
15975 tmp_addflag=' $pic_flag -Mnomain' ;;
15976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15977 tmp_addflag=' -i_dynamic' ;;
15978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15979 tmp_addflag=' -i_dynamic -nofor_main' ;;
15980 ifc* | ifort*) # Intel Fortran compiler
15981 tmp_addflag=' -nofor_main' ;;
15983 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985 if test $supports_anon_versioning = yes; then
15986 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15988 $echo "local: *; };" >> $output_objdir/$libname.ver~
15989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15991 link_all_deplibs_F77=no
15997 netbsd* | netbsdelf*-gnu)
15998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15999 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16003 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16008 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16013 *** create shared libraries on Solaris systems. Therefore, libtool
16014 *** is disabling shared libraries support. We urge you to upgrade GNU
16015 *** binutils to release 2.9.1 or newer. Another option is to modify
16016 *** your PATH or compiler configuration so that the native linker is
16017 *** used, and then restart.
16020 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16029 case `$LD -v 2>&1` in
16030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16035 *** reliably create shared libraries on SCO systems. Therefore, libtool
16036 *** is disabling shared libraries support. We urge you to upgrade GNU
16037 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16038 *** your PATH or compiler configuration so that the native linker is
16039 *** used, and then restart.
16044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16046 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16047 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16056 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16058 hardcode_direct_F77=yes
16059 hardcode_shlibpath_var_F77=no
16063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16072 if test "$ld_shlibs_F77" = no; then
16074 hardcode_libdir_flag_spec_F77=
16075 export_dynamic_flag_spec_F77=
16076 whole_archive_flag_spec_F77=
16079 # PORTME fill in a description of your system's linker (not GNU ld)
16082 allow_undefined_flag_F77=unsupported
16083 always_export_symbols_F77=yes
16084 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'
16085 # Note: this linker hardcodes the directories in LIBPATH if there
16086 # are no directories specified by -L.
16087 hardcode_minus_L_F77=yes
16088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16089 # Neither direct hardcoding nor static linking is supported with a
16091 hardcode_direct_F77=unsupported
16096 if test "$host_cpu" = ia64; then
16097 # On IA64, the linker does run time linking by default, so we don't
16098 # have to do anything special.
16099 aix_use_runtimelinking=no
16100 exp_sym_flag='-Bexport'
16103 # If we're using GNU nm, then we don't want the "-C" option.
16104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16106 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'
16108 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'
16110 aix_use_runtimelinking=no
16112 # Test if we are trying to use run time linking or normal
16113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16114 # need to do runtime linking.
16115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16116 for ld_flag in $LDFLAGS; do
16117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16118 aix_use_runtimelinking=yes
16125 exp_sym_flag='-bexport'
16126 no_entry_flag='-bnoentry'
16129 # When large executables or shared objects are built, AIX ld can
16130 # have problems creating the table of contents. If linking a library
16131 # or program results in "error TOC overflow" add -mminimal-toc to
16132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16135 archive_cmds_F77=''
16136 hardcode_direct_F77=yes
16137 hardcode_libdir_separator_F77=':'
16138 link_all_deplibs_F77=yes
16140 if test "$GCC" = yes; then
16141 case $host_os in aix4.[012]|aix4.[012].*)
16142 # We only want to do this on AIX 4.2 and lower, the check
16143 # below for broken collect2 doesn't work under 4.3+
16144 collect2name=`${CC} -print-prog-name=collect2`
16145 if test -f "$collect2name" && \
16146 strings "$collect2name" | grep resolve_lib_name >/dev/null
16148 # We have reworked collect2
16149 hardcode_direct_F77=yes
16151 # We have old collect2
16152 hardcode_direct_F77=unsupported
16153 # It fails to find uninstalled libraries when the uninstalled
16154 # path is not listed in the libpath. Setting hardcode_minus_L
16155 # to unsupported forces relinking
16156 hardcode_minus_L_F77=yes
16157 hardcode_libdir_flag_spec_F77='-L$libdir'
16158 hardcode_libdir_separator_F77=
16162 shared_flag='-shared'
16163 if test "$aix_use_runtimelinking" = yes; then
16164 shared_flag="$shared_flag "'${wl}-G'
16168 if test "$host_cpu" = ia64; then
16169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16170 # chokes on -Wl,-G. The following line is correct:
16173 if test "$aix_use_runtimelinking" = yes; then
16174 shared_flag='${wl}-G'
16176 shared_flag='${wl}-bM:SRE'
16181 # It seems that -bexpall does not export symbols beginning with
16182 # underscore (_), so it is better to generate a list of symbols to export.
16183 always_export_symbols_F77=yes
16184 if test "$aix_use_runtimelinking" = yes; then
16185 # Warning - without using the other runtime loading flags (-brtl),
16186 # -berok will link without error, but may produce a broken library.
16187 allow_undefined_flag_F77='-berok'
16188 # Determine the default libpath from the value encoded in an empty executable.
16189 cat >conftest.$ac_ext <<_ACEOF
16194 rm -f conftest.$ac_objext conftest$ac_exeext
16195 if { (ac_try="$ac_link"
16196 case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_link") 2>conftest.er1
16203 grep -v '^ *+' conftest.er1 >conftest.err
16205 cat conftest.err >&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16209 { (case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_try") 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest$ac_exeext'
16219 { (case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_try") 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16231 # Check for a 64-bit object if we didn't find anything.
16232 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; }
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16241 rm -f conftest.err conftest.$ac_objext \
16242 conftest$ac_exeext conftest.$ac_ext
16243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16245 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16246 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"
16248 if test "$host_cpu" = ia64; then
16249 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16250 allow_undefined_flag_F77="-z nodefs"
16251 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"
16253 # Determine the default libpath from the value encoded in an empty executable.
16254 cat >conftest.$ac_ext <<_ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (ac_try="$ac_link"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_link") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest$ac_exeext'
16284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16296 # Check for a 64-bit object if we didn't find anything.
16297 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; }
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16306 rm -f conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16310 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16311 # Warning - without using the other run time loading flags,
16312 # -berok will link without error, but may produce a broken library.
16313 no_undefined_flag_F77=' ${wl}-bernotok'
16314 allow_undefined_flag_F77=' ${wl}-berok'
16315 # Exported symbols can be pulled into shared objects from archives
16316 whole_archive_flag_spec_F77='$convenience'
16317 archive_cmds_need_lc_F77=yes
16318 # This is similar to how AIX traditionally builds its shared libraries.
16319 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'
16325 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)'
16326 hardcode_libdir_flag_spec_F77='-L$libdir'
16327 hardcode_minus_L_F77=yes
16328 # see comment about different semantics on the GNU ld section
16333 export_dynamic_flag_spec_F77=-rdynamic
16336 cygwin* | mingw* | pw32*)
16337 # When not using gcc, we currently assume that we are using
16338 # Microsoft Visual C++.
16339 # hardcode_libdir_flag_spec is actually meaningless, as there is
16340 # no search path for DLLs.
16341 hardcode_libdir_flag_spec_F77=' '
16342 allow_undefined_flag_F77=unsupported
16343 # Tell ltmain to make .lib files, not .a files.
16345 # Tell ltmain to make .dll files, not .so files.
16347 # FIXME: Setting linknames here is a bad hack.
16348 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16349 # The linker will automatically build a .lib file if we build a DLL.
16350 old_archive_From_new_cmds_F77='true'
16351 # FIXME: Should let the user specify the lib program.
16352 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16353 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16354 enable_shared_with_static_runtimes_F77=yes
16357 darwin* | rhapsody*)
16359 rhapsody* | darwin1.[012])
16360 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16363 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16364 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16366 case ${MACOSX_DEPLOYMENT_TARGET} in
16368 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16371 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16377 archive_cmds_need_lc_F77=no
16378 hardcode_direct_F77=no
16379 hardcode_automatic_F77=yes
16380 hardcode_shlibpath_var_F77=unsupported
16381 whole_archive_flag_spec_F77=''
16382 link_all_deplibs_F77=yes
16383 if test "$GCC" = yes ; then
16384 output_verbose_link_cmd='echo'
16385 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16386 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16388 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}'
16389 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}'
16391 case $cc_basename in
16393 output_verbose_link_cmd='echo'
16394 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16397 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}'
16398 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}'
16408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409 hardcode_libdir_flag_spec_F77='-L$libdir'
16410 hardcode_shlibpath_var_F77=no
16417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16418 # support. Future versions do this automatically, but an explicit c++rt0.o
16419 # does not break anything, and helps significantly (at the cost of a little
16422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16423 hardcode_libdir_flag_spec_F77='-R$libdir'
16424 hardcode_direct_F77=yes
16425 hardcode_shlibpath_var_F77=no
16428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_direct_F77=yes
16432 hardcode_minus_L_F77=yes
16433 hardcode_shlibpath_var_F77=no
16436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16437 freebsd* | dragonfly*)
16438 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16439 hardcode_libdir_flag_spec_F77='-R$libdir'
16440 hardcode_direct_F77=yes
16441 hardcode_shlibpath_var_F77=no
16445 if test "$GCC" = yes; then
16446 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'
16448 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'
16450 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16451 hardcode_libdir_separator_F77=:
16452 hardcode_direct_F77=yes
16454 # hardcode_minus_L: Not really in the search PATH,
16455 # but as the default location of the library.
16456 hardcode_minus_L_F77=yes
16457 export_dynamic_flag_spec_F77='${wl}-E'
16461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16462 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16464 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16466 if test "$with_gnu_ld" = no; then
16467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16468 hardcode_libdir_separator_F77=:
16470 hardcode_direct_F77=yes
16471 export_dynamic_flag_spec_F77='${wl}-E'
16473 # hardcode_minus_L: Not really in the search PATH,
16474 # but as the default location of the library.
16475 hardcode_minus_L_F77=yes
16480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16483 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16498 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16501 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16505 if test "$with_gnu_ld" = no; then
16506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507 hardcode_libdir_separator_F77=:
16511 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16512 hardcode_direct_F77=no
16513 hardcode_shlibpath_var_F77=no
16516 hardcode_direct_F77=yes
16517 export_dynamic_flag_spec_F77='${wl}-E'
16519 # hardcode_minus_L: Not really in the search PATH,
16520 # but as the default location of the library.
16521 hardcode_minus_L_F77=yes
16527 irix5* | irix6* | nonstopux*)
16528 if test "$GCC" = yes; then
16529 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'
16531 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'
16532 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16535 hardcode_libdir_separator_F77=:
16536 link_all_deplibs_F77=yes
16539 netbsd* | netbsdelf*-gnu)
16540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16543 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16545 hardcode_libdir_flag_spec_F77='-R$libdir'
16546 hardcode_direct_F77=yes
16547 hardcode_shlibpath_var_F77=no
16551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_direct_F77=yes
16553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16554 hardcode_libdir_separator_F77=:
16555 hardcode_shlibpath_var_F77=no
16559 hardcode_direct_F77=yes
16560 hardcode_shlibpath_var_F77=no
16561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16562 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16563 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16564 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16565 export_dynamic_flag_spec_F77='${wl}-E'
16568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16569 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16570 hardcode_libdir_flag_spec_F77='-R$libdir'
16573 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16574 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16581 hardcode_libdir_flag_spec_F77='-L$libdir'
16582 hardcode_minus_L_F77=yes
16583 allow_undefined_flag_F77=unsupported
16584 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'
16585 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16589 if test "$GCC" = yes; then
16590 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16591 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'
16593 allow_undefined_flag_F77=' -expect_unresolved \*'
16594 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'
16596 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16597 hardcode_libdir_separator_F77=:
16600 osf4* | osf5*) # as osf3* with the addition of -msym flag
16601 if test "$GCC" = yes; then
16602 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16603 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'
16604 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16606 allow_undefined_flag_F77=' -expect_unresolved \*'
16607 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'
16608 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~
16609 $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'
16611 # Both c and cxx compiler support -rpath directly
16612 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16614 hardcode_libdir_separator_F77=:
16618 no_undefined_flag_F77=' -z text'
16619 if test "$GCC" = yes; then
16621 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16626 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16630 hardcode_libdir_flag_spec_F77='-R$libdir'
16631 hardcode_shlibpath_var_F77=no
16633 solaris2.[0-5] | solaris2.[0-5].*) ;;
16635 # The compiler driver will combine linker options so we
16636 # cannot just pass the convience library names through
16637 # without $wl, iff we do not link with $LD.
16638 # Luckily, gcc supports the same syntax we need for Sun Studio.
16639 # Supported since Solaris 2.6 (maybe 2.5.1?)
16642 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16644 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' ;;
16647 link_all_deplibs_F77=yes
16651 if test "x$host_vendor" = xsequent; then
16652 # Use $CC to link under sequent, because it throws in some extra .o
16653 # files that make .init and .fini sections work.
16654 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_libdir_flag_spec_F77='-L$libdir'
16659 hardcode_direct_F77=yes
16660 hardcode_minus_L_F77=yes
16661 hardcode_shlibpath_var_F77=no
16665 case $host_vendor in
16667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_direct_F77=yes # is this really true???
16671 ## LD is ld it makes a PLAMLIB
16672 ## CC just makes a GrossModule.
16673 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16674 reload_cmds_F77='$CC -r -o $output$reload_objs'
16675 hardcode_direct_F77=no
16678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16682 runpath_var='LD_RUN_PATH'
16683 hardcode_shlibpath_var_F77=no
16687 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_shlibpath_var_F77=no
16689 export_dynamic_flag_spec_F77='-Bexport'
16693 if test -d /usr/nec; then
16694 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695 hardcode_shlibpath_var_F77=no
16696 runpath_var=LD_RUN_PATH
16697 hardcode_runpath_var=yes
16702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16703 no_undefined_flag_F77='${wl}-z,text'
16704 archive_cmds_need_lc_F77=no
16705 hardcode_shlibpath_var_F77=no
16706 runpath_var='LD_RUN_PATH'
16708 if test "$GCC" = yes; then
16709 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 sysv5* | sco3.2v5* | sco5v6*)
16718 # Note: We can NOT use -z defs as we might desire, because we do not
16719 # link with -lc, and that would cause any symbols used from libc to
16720 # always be unresolved, which means just about no library would
16721 # ever link correctly. If we're not using GNU ld we use -z text
16722 # though, which does catch some bad symbols but isn't as heavy-handed
16724 no_undefined_flag_F77='${wl}-z,text'
16725 allow_undefined_flag_F77='${wl}-z,nodefs'
16726 archive_cmds_need_lc_F77=no
16727 hardcode_shlibpath_var_F77=no
16728 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16729 hardcode_libdir_separator_F77=':'
16730 link_all_deplibs_F77=yes
16731 export_dynamic_flag_spec_F77='${wl}-Bexport'
16732 runpath_var='LD_RUN_PATH'
16734 if test "$GCC" = yes; then
16735 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745 hardcode_libdir_flag_spec_F77='-L$libdir'
16746 hardcode_shlibpath_var_F77=no
16755 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16756 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16757 test "$ld_shlibs_F77" = no && can_build_shared=no
16760 # Do we need to explicitly link libc?
16762 case "x$archive_cmds_need_lc_F77" in
16764 # Assume -lc should be added
16765 archive_cmds_need_lc_F77=yes
16767 if test "$enable_shared" = yes && test "$GCC" = yes; then
16768 case $archive_cmds_F77 in
16770 # FIXME: we may have to deal with multi-command sequences.
16773 # Test whether the compiler implicitly links with -lc since on some
16774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16775 # to ld, don't add -lc before -lgcc.
16776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16777 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } 2>conftest.err; then
16788 libobjs=conftest.$ac_objext
16790 wl=$lt_prog_compiler_wl_F77
16791 pic_flag=$lt_prog_compiler_pic_F77
16797 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16798 allow_undefined_flag_F77=
16799 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16800 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }
16805 archive_cmds_need_lc_F77=no
16807 archive_cmds_need_lc_F77=yes
16809 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16811 cat conftest.err 1>&5
16814 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16815 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16822 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16824 library_names_spec=
16825 libname_spec='lib$name'
16829 postuninstall_cmds=
16833 shlibpath_overrides_runpath=unknown
16835 dynamic_linker="$host_os ld.so"
16836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16837 if test "$GCC" = yes; then
16838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16840 # if the path contains ";" then we assume it to be the separator
16841 # otherwise default to the standard path separator (i.e. ":") - it is
16842 # assumed that no part of a normal pathname contains ";" but that should
16843 # okay in the real world where ";" in dirpaths is itself problematic.
16844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16851 need_lib_prefix=unknown
16852 hardcode_into_libs=no
16854 # when you set need_version to no, make sure it does not cause -set_version
16855 # flags to be left without arguments
16856 need_version=unknown
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16862 shlibpath_var=LIBPATH
16864 # AIX 3 has no versioning support, so we append a major version to the name.
16865 soname_spec='${libname}${release}${shared_ext}$major'
16872 hardcode_into_libs=yes
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 supports IA64
16875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16876 shlibpath_var=LD_LIBRARY_PATH
16878 # With GCC up to 2.95.x, collect2 would create an import file
16879 # for dependence libraries. The import file would start with
16880 # the line `#! .'. This would cause the generated library to
16881 # depend on `.', always an invalid library. This was fixed in
16882 # development snapshots of GCC prior to 3.0.
16884 aix4 | aix4.[01] | aix4.[01].*)
16885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16890 can_build_shared=no
16894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16895 # soname into executable. Probably we can add versioning support to
16896 # collect2, so additional links can be useful in future.
16897 if test "$aix_use_runtimelinking" = yes; then
16898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16899 # instead of lib<name>.a to let people know that these are not
16900 # typical AIX shared libraries.
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 # We preserve .a as extension for shared libraries through AIX4.2
16904 # and later when we are not doing run time linking.
16905 library_names_spec='${libname}${release}.a $libname.a'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16908 shlibpath_var=LIBPATH
16913 library_names_spec='$libname.ixlibrary $libname.a'
16914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16915 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'
16919 library_names_spec='${libname}${shared_ext}'
16920 dynamic_linker="$host_os ld.so"
16921 shlibpath_var=LIBRARY_PATH
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16933 # the default ld.so.conf also contains /usr/contrib/lib and
16934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16935 # libtool to hard-code these into programs
16938 cygwin* | mingw* | pw32*)
16939 version_type=windows
16944 case $GCC,$host_os in
16945 yes,cygwin* | yes,mingw* | yes,pw32*)
16946 library_names_spec='$libname.dll.a'
16947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16948 postinstall_cmds='base_file=`basename \${file}`~
16949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16950 dldir=$destdir/`dirname \$dlpath`~
16951 test -d \$dldir || mkdir -p \$dldir~
16952 $install_prog $dir/$dlname \$dldir/$dlname~
16953 chmod a+x \$dldir/$dlname'
16954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16955 dlpath=$dir/\$dldll~
16957 shlibpath_overrides_runpath=yes
16961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16966 # MinGW DLLs use traditional 'lib' prefix
16967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16970 # It is most probably a Windows format PATH printed by
16971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16972 # path with ; separators, and with drive letters. We can handle the
16973 # drive letters (cygwin fileutils understands them), so leave them,
16974 # especially as we might pass files found there to a mingw objdump,
16975 # which wouldn't understand a cygwinified path. Ahh.
16976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16982 # pw32 DLLs use 'pw' prefix rather than 'lib'
16983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16992 dynamic_linker='Win32 ld.exe'
16993 # FIXME: first we should search . and the directory the executable is in
16997 darwin* | rhapsody*)
16998 dynamic_linker="$host_os dyld"
16999 version_type=darwin
17002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17003 soname_spec='${libname}${release}${major}$shared_ext'
17004 shlibpath_overrides_runpath=yes
17005 shlibpath_var=DYLD_LIBRARY_PATH
17006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17008 if test "$GCC" = yes; then
17009 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"`
17011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17029 freebsd* | dragonfly*)
17030 # DragonFly does not have aout. When/if they implement a new
17031 # versioning mechanism, adjust this.
17032 if test -x /usr/bin/objformat; then
17033 objformat=`/usr/bin/objformat`
17036 freebsd[123]*) objformat=aout ;;
17037 *) objformat=elf ;;
17040 version_type=freebsd-$objformat
17041 case $version_type in
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17052 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes
17057 freebsd3.[01]* | freebsdelf3.[01]*)
17058 shlibpath_overrides_runpath=yes
17059 hardcode_into_libs=yes
17061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17063 shlibpath_overrides_runpath=no
17064 hardcode_into_libs=yes
17066 freebsd*) # from 4.6 on
17067 shlibpath_overrides_runpath=yes
17068 hardcode_into_libs=yes
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 hardcode_into_libs=yes
17083 hpux9* | hpux10* | hpux11*)
17084 # Give a soname corresponding to the major version so that dld.sl refuses to
17085 # link against other versions.
17092 hardcode_into_libs=yes
17093 dynamic_linker="$host_os dld.so"
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 if test "X$HPUX_IA64_MODE" = X32; then
17099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17107 hardcode_into_libs=yes
17108 dynamic_linker="$host_os dld.sl"
17109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17118 dynamic_linker="$host_os dld.sl"
17119 shlibpath_var=SHLIB_PATH
17120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17126 postinstall_cmds='chmod 555 $lib'
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=no
17138 hardcode_into_libs=yes
17141 irix5* | irix6* | nonstopux*)
17143 nonstopux*) version_type=nonstopux ;;
17145 if test "$lt_cv_prog_gnu_ld" = yes; then
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17156 irix5* | nonstopux*)
17157 libsuff= shlibsuff=
17160 case $LD in # libtool.m4 will add one of these switches to LD
17161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17162 libsuff= shlibsuff= libmagic=32-bit;;
17163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17164 libsuff=32 shlibsuff=N32 libmagic=N32;;
17165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17167 *) libsuff= shlibsuff= libmagic=never-match;;
17171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17172 shlibpath_overrides_runpath=no
17173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17175 hardcode_into_libs=yes
17178 # No shared lib support for Linux oldld, aout, or coff.
17179 linux*oldld* | linux*aout* | linux*coff*)
17183 # This must be Linux ELF.
17184 linux* | k*bsd*-gnu)
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=no
17193 # This implies no fast_install, which is unacceptable.
17194 # Some rework will be needed to allow for fast_install
17195 # before this can be enabled.
17196 hardcode_into_libs=yes
17198 # Append ld.so.conf contents to the search path
17199 if test -f /etc/ld.so.conf; then
17200 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' ' '`
17201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17204 # We used to test for /lib/ld.so.1 and disable shared libraries on
17205 # powerpc, because MkLinux only supported shared libraries with the
17206 # GNU dynamic linker. Since this was broken with cross compilers,
17207 # most powerpc-linux boxes support dynamic linking these days and
17208 # people can always --disable-shared, the test was removed, and we
17209 # assume the GNU/Linux dynamic linker is in use.
17210 dynamic_linker='GNU/Linux ld.so'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath=no
17221 hardcode_into_libs=yes
17222 dynamic_linker='NetBSD ld.elf_so'
17229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 dynamic_linker='NetBSD (a.out) ld.so'
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 dynamic_linker='NetBSD ld.elf_so'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 hardcode_into_libs=yes
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17262 sys_lib_dlsearch_path_spec="/usr/lib"
17264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17267 *) need_version=no ;;
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17274 openbsd2.[89] | openbsd2.[89].*)
17275 shlibpath_overrides_runpath=no
17278 shlibpath_overrides_runpath=yes
17282 shlibpath_overrides_runpath=yes
17287 libname_spec='$name'
17290 library_names_spec='$libname${shared_ext} $libname.a'
17291 dynamic_linker='OS/2 ld.exe'
17292 shlibpath_var=LIBPATH
17295 osf3* | osf4* | osf5*)
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17314 hardcode_into_libs=yes
17315 # ldd complains unless libraries are executable
17316 postinstall_cmds='chmod +x $lib'
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath=yes
17325 if test "$with_gnu_ld" = yes; then
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 case $host_vendor in
17338 shlibpath_overrides_runpath=no
17340 export_dynamic_flag_spec='${wl}-Blargedynsym'
17341 runpath_var=LD_RUN_PATH
17349 shlibpath_overrides_runpath=no
17350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17356 if test -d /usr/nec ;then
17358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17359 soname_spec='$libname${shared_ext}.$major'
17360 shlibpath_var=LD_LIBRARY_PATH
17364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17365 version_type=freebsd-elf
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 hardcode_into_libs=yes
17372 if test "$with_gnu_ld" = yes; then
17373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17374 shlibpath_overrides_runpath=no
17376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17377 shlibpath_overrides_runpath=yes
17380 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17384 sys_lib_dlsearch_path_spec='/usr/lib'
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 soname_spec='${libname}${release}${shared_ext}$major'
17391 shlibpath_var=LD_LIBRARY_PATH
17398 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17399 echo "${ECHO_T}$dynamic_linker" >&6; }
17400 test "$dynamic_linker" = no && can_build_shared=no
17402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17403 if test "$GCC" = yes; then
17404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17407 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17409 hardcode_action_F77=
17410 if test -n "$hardcode_libdir_flag_spec_F77" || \
17411 test -n "$runpath_var_F77" || \
17412 test "X$hardcode_automatic_F77" = "Xyes" ; then
17414 # We can hardcode non-existant directories.
17415 if test "$hardcode_direct_F77" != no &&
17416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17417 # have to relink, otherwise we might link with an installed library
17418 # when we should be linking with a yet-to-be-installed one
17419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17420 test "$hardcode_minus_L_F77" != no; then
17421 # Linking always hardcodes the temporary library directory.
17422 hardcode_action_F77=relink
17424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17425 hardcode_action_F77=immediate
17428 # We cannot hardcode anything, or else we can only hardcode existing
17430 hardcode_action_F77=unsupported
17432 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17433 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17435 if test "$hardcode_action_F77" = relink; then
17436 # Fast installation is not supported
17437 enable_fast_install=no
17438 elif test "$shlibpath_overrides_runpath" = yes ||
17439 test "$enable_shared" = no; then
17440 # Fast installation is not necessary
17441 enable_fast_install=needless
17445 # The else clause should only fire when bootstrapping the
17446 # libtool distribution, otherwise you forgot to ship ltmain.sh
17447 # with your package, and you will get complaints that there are
17448 # no rules to generate ltmain.sh.
17449 if test -f "$ltmain"; then
17450 # See if we are running on zsh, and set the options which allow our commands through
17451 # without removal of \ escapes.
17452 if test -n "${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17455 # Now quote all the things that may contain metacharacters while being
17456 # careful not to overquote the AC_SUBSTed values. We take copies of the
17457 # variables and quote the copies for generation of the libtool script.
17458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17462 deplibs_check_method reload_flag reload_cmds need_locks \
17463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17464 lt_cv_sys_global_symbol_to_c_name_address \
17465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17466 old_postinstall_cmds old_postuninstall_cmds \
17470 lt_prog_compiler_wl_F77 \
17471 lt_prog_compiler_pic_F77 \
17472 lt_prog_compiler_static_F77 \
17473 lt_prog_compiler_no_builtin_flag_F77 \
17474 export_dynamic_flag_spec_F77 \
17475 thread_safe_flag_spec_F77 \
17476 whole_archive_flag_spec_F77 \
17477 enable_shared_with_static_runtimes_F77 \
17478 old_archive_cmds_F77 \
17479 old_archive_from_new_cmds_F77 \
17480 predep_objects_F77 \
17481 postdep_objects_F77 \
17484 compiler_lib_search_path_F77 \
17486 archive_expsym_cmds_F77 \
17487 postinstall_cmds_F77 \
17488 postuninstall_cmds_F77 \
17489 old_archive_from_expsyms_cmds_F77 \
17490 allow_undefined_flag_F77 \
17491 no_undefined_flag_F77 \
17492 export_symbols_cmds_F77 \
17493 hardcode_libdir_flag_spec_F77 \
17494 hardcode_libdir_flag_spec_ld_F77 \
17495 hardcode_libdir_separator_F77 \
17496 hardcode_automatic_F77 \
17498 module_expsym_cmds_F77 \
17499 lt_cv_prog_compiler_c_o_F77 \
17500 exclude_expsyms_F77 \
17501 include_expsyms_F77; do
17504 old_archive_cmds_F77 | \
17505 old_archive_from_new_cmds_F77 | \
17506 archive_cmds_F77 | \
17507 archive_expsym_cmds_F77 | \
17508 module_cmds_F77 | \
17509 module_expsym_cmds_F77 | \
17510 old_archive_from_expsyms_cmds_F77 | \
17511 export_symbols_cmds_F77 | \
17512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17513 postinstall_cmds | postuninstall_cmds | \
17514 old_postinstall_cmds | old_postuninstall_cmds | \
17515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17516 # Double-quote double-evaled strings.
17517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17526 *'\$0 --fallback-echo"')
17527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17533 cat <<__EOF__ >> "$cfgfile"
17534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17538 # Shell to use when invoking shell scripts.
17541 # Whether or not to build shared libraries.
17542 build_libtool_libs=$enable_shared
17544 # Whether or not to build static libraries.
17545 build_old_libs=$enable_static
17547 # Whether or not to add -lc for building shared libraries.
17548 build_libtool_need_lc=$archive_cmds_need_lc_F77
17550 # Whether or not to disallow shared libs when runtime libs are static
17551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17553 # Whether or not to optimize for fast installation.
17554 fast_install=$enable_fast_install
17557 host_alias=$host_alias
17561 # The build system.
17562 build_alias=$build_alias
17566 # An echo program that does not interpret backslashes.
17571 AR_FLAGS=$lt_AR_FLAGS
17576 # LTCC compiler flags.
17577 LTCFLAGS=$lt_LTCFLAGS
17579 # A language-specific compiler.
17580 CC=$lt_compiler_F77
17582 # Is the compiler the GNU C compiler?
17588 # The linker used to build libraries.
17591 # Whether we need hard or soft links.
17594 # A BSD-compatible nm program.
17597 # A symbol stripping program
17600 # Used to examine libraries when file_magic_cmd begins "file"
17601 MAGIC_CMD=$MAGIC_CMD
17603 # Used on cygwin: DLL creation program.
17606 # Used on cygwin: object dumper.
17609 # Used on cygwin: assembler.
17612 # The name of the directory that contains temporary libtool files.
17615 # How to create reloadable object files.
17616 reload_flag=$lt_reload_flag
17617 reload_cmds=$lt_reload_cmds
17619 # How to pass a linker flag through the compiler.
17620 wl=$lt_lt_prog_compiler_wl_F77
17622 # Object file suffix (normally "o").
17623 objext="$ac_objext"
17625 # Old archive suffix (normally "a").
17628 # Shared library suffix (normally ".so").
17629 shrext_cmds='$shrext_cmds'
17631 # Executable file suffix (normally "").
17634 # Additional compiler flags for building library objects.
17635 pic_flag=$lt_lt_prog_compiler_pic_F77
17638 # What is the maximum length of a command?
17639 max_cmd_len=$lt_cv_sys_max_cmd_len
17641 # Does compiler simultaneously support -c and -o options?
17642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17644 # Must we lock files when doing compilation?
17645 need_locks=$lt_need_locks
17647 # Do we need the lib prefix for modules?
17648 need_lib_prefix=$need_lib_prefix
17650 # Do we need a version for libraries?
17651 need_version=$need_version
17653 # Whether dlopen is supported.
17654 dlopen_support=$enable_dlopen
17656 # Whether dlopen of programs is supported.
17657 dlopen_self=$enable_dlopen_self
17659 # Whether dlopen of statically linked programs is supported.
17660 dlopen_self_static=$enable_dlopen_self_static
17662 # Compiler flag to prevent dynamic linking.
17663 link_static_flag=$lt_lt_prog_compiler_static_F77
17665 # Compiler flag to turn off builtin functions.
17666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17668 # Compiler flag to allow reflexive dlopens.
17669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17671 # Compiler flag to generate shared objects directly from archives.
17672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17674 # Compiler flag to generate thread-safe objects.
17675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17677 # Library versioning type.
17678 version_type=$version_type
17680 # Format of library name prefix.
17681 libname_spec=$lt_libname_spec
17683 # List of archive names. First name is the real one, the rest are links.
17684 # The last name is the one that the linker finds with -lNAME.
17685 library_names_spec=$lt_library_names_spec
17687 # The coded name of the library, if different from the real name.
17688 soname_spec=$lt_soname_spec
17690 # Commands used to build and install an old-style archive.
17692 old_archive_cmds=$lt_old_archive_cmds_F77
17693 old_postinstall_cmds=$lt_old_postinstall_cmds
17694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17696 # Create an old-style archive from a shared archive.
17697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17699 # Create a temporary old-style archive to link instead of a shared archive.
17700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17702 # Commands used to build and install a shared archive.
17703 archive_cmds=$lt_archive_cmds_F77
17704 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17705 postinstall_cmds=$lt_postinstall_cmds
17706 postuninstall_cmds=$lt_postuninstall_cmds
17708 # Commands used to build a loadable module (assumed same as above if empty)
17709 module_cmds=$lt_module_cmds_F77
17710 module_expsym_cmds=$lt_module_expsym_cmds_F77
17712 # Commands to strip libraries.
17713 old_striplib=$lt_old_striplib
17714 striplib=$lt_striplib
17716 # Dependencies to place before the objects being linked to create a
17718 predep_objects=$lt_predep_objects_F77
17720 # Dependencies to place after the objects being linked to create a
17722 postdep_objects=$lt_postdep_objects_F77
17724 # Dependencies to place before the objects being linked to create a
17726 predeps=$lt_predeps_F77
17728 # Dependencies to place after the objects being linked to create a
17730 postdeps=$lt_postdeps_F77
17732 # The library search path used internally by the compiler when linking
17733 # a shared library.
17734 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17736 # Method to check whether dependent libraries are shared objects.
17737 deplibs_check_method=$lt_deplibs_check_method
17739 # Command to use when deplibs_check_method == file_magic.
17740 file_magic_cmd=$lt_file_magic_cmd
17742 # Flag that allows shared libraries with undefined symbols to be built.
17743 allow_undefined_flag=$lt_allow_undefined_flag_F77
17745 # Flag that forces no undefined symbols.
17746 no_undefined_flag=$lt_no_undefined_flag_F77
17748 # Commands used to finish a libtool library installation in a directory.
17749 finish_cmds=$lt_finish_cmds
17751 # Same as above, but a single script fragment to be evaled but not shown.
17752 finish_eval=$lt_finish_eval
17754 # Take the output of nm and produce a listing of raw symbols and C names.
17755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17757 # Transform the output of nm in a proper C declaration
17758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17760 # Transform the output of nm in a C name address pair
17761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17763 # This is the shared library runtime path variable.
17764 runpath_var=$runpath_var
17766 # This is the shared library path variable.
17767 shlibpath_var=$shlibpath_var
17769 # Is shlibpath searched before the hard-coded library search path?
17770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17772 # How to hardcode a shared library path into an executable.
17773 hardcode_action=$hardcode_action_F77
17775 # Whether we should hardcode library paths into libraries.
17776 hardcode_into_libs=$hardcode_into_libs
17778 # Flag to hardcode \$libdir into a binary during linking.
17779 # This must work even if \$libdir does not exist.
17780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17782 # If ld is used when linking, flag to hardcode \$libdir into
17783 # a binary during linking. This must work even if \$libdir does
17785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17787 # Whether we need a single -rpath flag with a separated argument.
17788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17791 # resulting binary.
17792 hardcode_direct=$hardcode_direct_F77
17794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17795 # resulting binary.
17796 hardcode_minus_L=$hardcode_minus_L_F77
17798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17799 # the resulting binary.
17800 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17802 # Set to yes if building a shared library automatically hardcodes DIR into the library
17803 # and all subsequent libraries and executables linked against it.
17804 hardcode_automatic=$hardcode_automatic_F77
17806 # Variables whose values should be saved in libtool wrapper scripts and
17807 # restored at relink time.
17808 variables_saved_for_relink="$variables_saved_for_relink"
17810 # Whether libtool must link a program against all its dependency libraries.
17811 link_all_deplibs=$link_all_deplibs_F77
17813 # Compile-time system search path for libraries
17814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17816 # Run-time system search path for libraries
17817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17819 # Fix the shell variable \$srcfile for the compiler.
17820 fix_srcfile_path="$fix_srcfile_path_F77"
17822 # Set to yes if exported symbols are required.
17823 always_export_symbols=$always_export_symbols_F77
17825 # The commands to list exported symbols.
17826 export_symbols_cmds=$lt_export_symbols_cmds_F77
17828 # The commands to extract the exported symbol list from a shared archive.
17829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17831 # Symbols that should not be listed in the preloaded symbols.
17832 exclude_expsyms=$lt_exclude_expsyms_F77
17834 # Symbols that must always be exported.
17835 include_expsyms=$lt_include_expsyms_F77
17837 # ### END LIBTOOL TAG CONFIG: $tagname
17843 # If there is no Makefile yet, we rely on a make rule to execute
17844 # `config.status --recheck' to rerun these tests and create the
17845 # libtool script then.
17846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17847 if test -f "$ltmain_in"; then
17848 test -f Makefile && make "$ltmain"
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17867 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17870 # Source file extension for Java test sources.
17873 # Object file extension for compiled Java test sources.
17877 # Code to be used in simple compile tests
17878 lt_simple_compile_test_code="class foo {}\n"
17880 # Code to be used in simple link tests
17881 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17885 # If no C compiler was specified, use CC.
17888 # If no C compiler flags were specified, use CFLAGS.
17889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17891 # Allow CC to be a program name with arguments.
17895 # save warnings/boilerplate of simple test code
17896 ac_outfile=conftest.$ac_objext
17897 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17899 _lt_compiler_boilerplate=`cat conftest.err`
17902 ac_outfile=conftest.$ac_objext
17903 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17905 _lt_linker_boilerplate=`cat conftest.err`
17909 # Allow CC to be a program name with arguments.
17914 for cc_temp in $compiler""; do
17916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17925 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17926 archive_cmds_need_lc_GCJ=no
17928 old_archive_cmds_GCJ=$old_archive_cmds
17931 lt_prog_compiler_no_builtin_flag_GCJ=
17933 if test "$GCC" = yes; then
17934 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17937 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17938 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17939 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 lt_cv_prog_compiler_rtti_exceptions=no
17943 ac_outfile=conftest.$ac_objext
17944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17945 lt_compiler_flag="-fno-rtti -fno-exceptions"
17946 # Insert the option either (1) after the last *FLAGS variable, or
17947 # (2) before a word containing "conftest.", or (3) at the end.
17948 # Note that $ac_compile itself does not contain backslashes and begins
17949 # with a dollar sign (not a hyphen), so the echo should work correctly.
17950 # The option is referenced via a variable to avoid confusing sed.
17951 lt_compile=`echo "$ac_compile" | $SED \
17952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17954 -e 's:$: $lt_compiler_flag:'`
17955 (eval echo "\"\$as_me:17955: $lt_compile\"" >&5)
17956 (eval "$lt_compile" 2>conftest.err)
17958 cat conftest.err >&5
17959 echo "$as_me:17959: \$? = $ac_status" >&5
17960 if (exit $ac_status) && test -s "$ac_outfile"; then
17961 # The compiler can only warn and ignore the option if not recognized
17962 # So say no if there are warnings other than the usual output.
17963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17966 lt_cv_prog_compiler_rtti_exceptions=yes
17972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17973 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17976 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17983 lt_prog_compiler_wl_GCJ=
17984 lt_prog_compiler_pic_GCJ=
17985 lt_prog_compiler_static_GCJ=
17987 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17988 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17990 if test "$GCC" = yes; then
17991 lt_prog_compiler_wl_GCJ='-Wl,'
17992 lt_prog_compiler_static_GCJ='-static'
17996 # All AIX code is PIC.
17997 if test "$host_cpu" = ia64; then
17998 # AIX 5 now supports IA64 processor
17999 lt_prog_compiler_static_GCJ='-Bstatic'
18004 # FIXME: we need at least 68020 code to build shared libraries, but
18005 # adding the `-m68020' flag to GCC prevents building anything better,
18007 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18010 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18011 # PIC is the default for these OSes.
18014 mingw* | pw32* | os2*)
18015 # This hack is so that the source file can tell whether it is being
18016 # built for inclusion in a dll (and should export symbols for example).
18017 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18020 darwin* | rhapsody*)
18021 # PIC is the default on this platform
18022 # Common symbols not allowed in MH_DYLIB files
18023 lt_prog_compiler_pic_GCJ='-fno-common'
18027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18028 # Instead, we relocate shared libraries at runtime.
18032 # Just because we use GCC doesn't mean we suddenly get shared libraries
18033 # on systems that don't support them.
18034 lt_prog_compiler_can_build_shared_GCJ=no
18039 if test -d /usr/nec; then
18040 lt_prog_compiler_pic_GCJ=-Kconform_pic
18045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18046 # not for PA HP-UX.
18052 lt_prog_compiler_pic_GCJ='-fPIC'
18058 lt_prog_compiler_pic_GCJ='-fPIC'
18062 # PORTME Check for flag to pass linker flags through the system compiler.
18065 lt_prog_compiler_wl_GCJ='-Wl,'
18066 if test "$host_cpu" = ia64; then
18067 # AIX 5 now supports IA64 processor
18068 lt_prog_compiler_static_GCJ='-Bstatic'
18070 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18074 # PIC is the default on this platform
18075 # Common symbols not allowed in MH_DYLIB files
18076 case $cc_basename in
18078 lt_prog_compiler_pic_GCJ='-qnocommon'
18079 lt_prog_compiler_wl_GCJ='-Wl,'
18084 mingw* | pw32* | os2*)
18085 # This hack is so that the source file can tell whether it is being
18086 # built for inclusion in a dll (and should export symbols for example).
18087 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18090 hpux9* | hpux10* | hpux11*)
18091 lt_prog_compiler_wl_GCJ='-Wl,'
18092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18093 # not for PA HP-UX.
18099 lt_prog_compiler_pic_GCJ='+Z'
18102 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18103 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18106 irix5* | irix6* | nonstopux*)
18107 lt_prog_compiler_wl_GCJ='-Wl,'
18108 # PIC (with -KPIC) is the default.
18109 lt_prog_compiler_static_GCJ='-non_shared'
18113 lt_prog_compiler_pic_GCJ='-KPIC'
18114 lt_prog_compiler_static_GCJ='-Bstatic'
18117 linux* | k*bsd*-gnu)
18118 case $cc_basename in
18120 lt_prog_compiler_wl_GCJ='-Wl,'
18121 lt_prog_compiler_pic_GCJ='-KPIC'
18122 lt_prog_compiler_static_GCJ='-static'
18124 pgcc* | pgf77* | pgf90* | pgf95*)
18125 # Portland Group compilers (*not* the Pentium gcc compiler,
18126 # which looks to be a dead project)
18127 lt_prog_compiler_wl_GCJ='-Wl,'
18128 lt_prog_compiler_pic_GCJ='-fpic'
18129 lt_prog_compiler_static_GCJ='-Bstatic'
18132 lt_prog_compiler_wl_GCJ='-Wl,'
18133 # All Alpha code is PIC.
18134 lt_prog_compiler_static_GCJ='-non_shared'
18139 osf3* | osf4* | osf5*)
18140 lt_prog_compiler_wl_GCJ='-Wl,'
18141 # All OSF/1 code is PIC.
18142 lt_prog_compiler_static_GCJ='-non_shared'
18146 lt_prog_compiler_pic_GCJ='-KPIC'
18147 lt_prog_compiler_static_GCJ='-Bstatic'
18148 case $cc_basename in
18149 f77* | f90* | f95*)
18150 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18152 lt_prog_compiler_wl_GCJ='-Wl,';;
18157 lt_prog_compiler_wl_GCJ='-Qoption ld '
18158 lt_prog_compiler_pic_GCJ='-PIC'
18159 lt_prog_compiler_static_GCJ='-Bstatic'
18162 sysv4 | sysv4.2uw2* | sysv4.3*)
18163 lt_prog_compiler_wl_GCJ='-Wl,'
18164 lt_prog_compiler_pic_GCJ='-KPIC'
18165 lt_prog_compiler_static_GCJ='-Bstatic'
18169 if test -d /usr/nec ;then
18170 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18171 lt_prog_compiler_static_GCJ='-Bstatic'
18175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18176 lt_prog_compiler_wl_GCJ='-Wl,'
18177 lt_prog_compiler_pic_GCJ='-KPIC'
18178 lt_prog_compiler_static_GCJ='-Bstatic'
18182 lt_prog_compiler_wl_GCJ='-Wl,'
18183 lt_prog_compiler_can_build_shared_GCJ=no
18187 lt_prog_compiler_pic_GCJ='-pic'
18188 lt_prog_compiler_static_GCJ='-Bstatic'
18192 lt_prog_compiler_can_build_shared_GCJ=no
18197 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18198 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18201 # Check to make sure the PIC flag actually works.
18203 if test -n "$lt_prog_compiler_pic_GCJ"; then
18205 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18207 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 lt_prog_compiler_pic_works_GCJ=no
18211 ac_outfile=conftest.$ac_objext
18212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18213 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18214 # Insert the option either (1) after the last *FLAGS variable, or
18215 # (2) before a word containing "conftest.", or (3) at the end.
18216 # Note that $ac_compile itself does not contain backslashes and begins
18217 # with a dollar sign (not a hyphen), so the echo should work correctly.
18218 # The option is referenced via a variable to avoid confusing sed.
18219 lt_compile=`echo "$ac_compile" | $SED \
18220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18222 -e 's:$: $lt_compiler_flag:'`
18223 (eval echo "\"\$as_me:18223: $lt_compile\"" >&5)
18224 (eval "$lt_compile" 2>conftest.err)
18226 cat conftest.err >&5
18227 echo "$as_me:18227: \$? = $ac_status" >&5
18228 if (exit $ac_status) && test -s "$ac_outfile"; then
18229 # The compiler can only warn and ignore the option if not recognized
18230 # So say no if there are warnings other than the usual output.
18231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18234 lt_prog_compiler_pic_works_GCJ=yes
18240 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18241 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18243 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18244 case $lt_prog_compiler_pic_GCJ in
18246 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18249 lt_prog_compiler_pic_GCJ=
18250 lt_prog_compiler_can_build_shared_GCJ=no
18255 # For platforms which do not support PIC, -DPIC is meaningless:
18257 lt_prog_compiler_pic_GCJ=
18260 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18265 # Check to make sure the static flag actually works.
18267 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18268 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18269 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18270 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 lt_prog_compiler_static_works_GCJ=no
18274 save_LDFLAGS="$LDFLAGS"
18275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18276 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18278 # The linker can only warn and ignore the option if not recognized
18279 # So say no if there are warnings
18280 if test -s conftest.err; then
18281 # Append any errors to the config.log.
18282 cat conftest.err 1>&5
18283 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18285 if diff conftest.exp conftest.er2 >/dev/null; then
18286 lt_prog_compiler_static_works_GCJ=yes
18289 lt_prog_compiler_static_works_GCJ=yes
18293 LDFLAGS="$save_LDFLAGS"
18296 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18297 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18299 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18302 lt_prog_compiler_static_GCJ=
18306 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18307 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18308 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 lt_cv_prog_compiler_c_o_GCJ=no
18312 $rm -r conftest 2>/dev/null
18316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18318 lt_compiler_flag="-o out/conftest2.$ac_objext"
18319 # Insert the option either (1) after the last *FLAGS variable, or
18320 # (2) before a word containing "conftest.", or (3) at the end.
18321 # Note that $ac_compile itself does not contain backslashes and begins
18322 # with a dollar sign (not a hyphen), so the echo should work correctly.
18323 lt_compile=`echo "$ac_compile" | $SED \
18324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18326 -e 's:$: $lt_compiler_flag:'`
18327 (eval echo "\"\$as_me:18327: $lt_compile\"" >&5)
18328 (eval "$lt_compile" 2>out/conftest.err)
18330 cat out/conftest.err >&5
18331 echo "$as_me:18331: \$? = $ac_status" >&5
18332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18334 # The compiler can only warn and ignore the option if not recognized
18335 # So say no if there are warnings
18336 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18339 lt_cv_prog_compiler_c_o_GCJ=yes
18344 # SGI C++ compiler will create directory out/ii_files/ for
18345 # template instantiation
18346 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18347 $rm out/* && rmdir out
18353 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18354 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18357 hard_links="nottested"
18358 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18359 # do not overwrite the value of need_locks provided by the user
18360 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18361 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18366 ln conftest.a conftest.b 2>&5 || hard_links=no
18367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18368 { echo "$as_me:$LINENO: result: $hard_links" >&5
18369 echo "${ECHO_T}$hard_links" >&6; }
18370 if test "$hard_links" = no; then
18371 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18372 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18383 allow_undefined_flag_GCJ=
18384 enable_shared_with_static_runtimes_GCJ=no
18386 archive_expsym_cmds_GCJ=
18387 old_archive_From_new_cmds_GCJ=
18388 old_archive_from_expsyms_cmds_GCJ=
18389 export_dynamic_flag_spec_GCJ=
18390 whole_archive_flag_spec_GCJ=
18391 thread_safe_flag_spec_GCJ=
18392 hardcode_libdir_flag_spec_GCJ=
18393 hardcode_libdir_flag_spec_ld_GCJ=
18394 hardcode_libdir_separator_GCJ=
18395 hardcode_direct_GCJ=no
18396 hardcode_minus_L_GCJ=no
18397 hardcode_shlibpath_var_GCJ=unsupported
18398 link_all_deplibs_GCJ=unknown
18399 hardcode_automatic_GCJ=no
18401 module_expsym_cmds_GCJ=
18402 always_export_symbols_GCJ=no
18403 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18404 # include_expsyms should be a list of space-separated symbols to be *always*
18405 # included in the symbol list
18406 include_expsyms_GCJ=
18407 # exclude_expsyms can be an extended regexp of symbols to exclude
18408 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18409 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18410 # as well as any symbol that contains `d'.
18411 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18412 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18413 # platforms (ab)use it in PIC code, but their linkers get confused if
18414 # the symbol is explicitly referenced. Since portable code cannot
18415 # rely on this symbol name, it's probably fine to never include it in
18416 # preloaded symbol tables.
18417 extract_expsyms_cmds=
18418 # Just being paranoid about ensuring that cc_basename is set.
18419 for cc_temp in $compiler""; do
18421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18430 cygwin* | mingw* | pw32*)
18431 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18432 # When not using gcc, we currently assume that we are using
18433 # Microsoft Visual C++.
18434 if test "$GCC" != yes; then
18439 # we just hope/assume this is gcc and not c89 (= MSVC++)
18448 if test "$with_gnu_ld" = yes; then
18449 # If archive_cmds runs LD, not CC, wlarc should be empty
18452 # Set some defaults for GNU ld with shared library support. These
18453 # are reset later if shared libraries are not supported. Putting them
18454 # here allows them to be overridden if necessary.
18455 runpath_var=LD_RUN_PATH
18456 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18457 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18458 # ancient GNU ld didn't support --whole-archive et. al.
18459 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18460 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18462 whole_archive_flag_spec_GCJ=
18464 supports_anon_versioning=no
18465 case `$LD -v 2>/dev/null` in
18466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18469 *\ 2.11.*) ;; # other 2.11 versions
18470 *) supports_anon_versioning=yes ;;
18473 # See if GNU ld supports shared libraries.
18475 aix3* | aix4* | aix5*)
18476 # On AIX/PPC, the GNU linker is very broken
18477 if test "$host_cpu" != ia64; then
18481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18482 *** to be unable to reliably create shared libraries on AIX.
18483 *** Therefore, libtool is disabling shared libraries support. If you
18484 *** really care for shared libraries, you may want to modify your PATH
18485 *** so that a non-GNU linker is found, and then restart.
18492 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)'
18493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494 hardcode_minus_L_GCJ=yes
18496 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18497 # that the semantics of dynamic libraries on AmigaOS, at least up
18498 # to version 4, is to share data among multiple programs linked
18499 # with the same dynamic library. Since this doesn't match the
18500 # behavior of shared libraries on other platforms, we can't use
18506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18507 allow_undefined_flag_GCJ=unsupported
18508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18509 # support --undefined. This deserves some investigation. FIXME
18510 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18516 cygwin* | mingw* | pw32*)
18517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18518 # as there is no search path for DLLs.
18519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520 allow_undefined_flag_GCJ=unsupported
18521 always_export_symbols_GCJ=no
18522 enable_shared_with_static_runtimes_GCJ=yes
18523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18527 # If the export-symbols file already is a .def file (1st line
18528 # is EXPORTS), use it as is; otherwise, prepend...
18529 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18530 cp $export_symbols $output_objdir/$soname.def;
18532 echo EXPORTS > $output_objdir/$soname.def;
18533 cat $export_symbols >> $output_objdir/$soname.def;
18535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18542 hardcode_direct_GCJ=no
18543 hardcode_shlibpath_var_GCJ=no
18544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18545 export_dynamic_flag_spec_GCJ='${wl}-E'
18546 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18547 # Instead, shared libraries are loaded at an image base (0x10000000 by
18548 # default) and relocated if they conflict, which is a slow very memory
18549 # consuming and fragmenting process. To avoid this, we pick a random,
18550 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18551 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18552 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'
18553 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'
18556 linux* | k*bsd*-gnu)
18557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18559 case $cc_basename,$host_cpu in
18560 pgcc*) # Portland Group C compiler
18561 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'
18562 tmp_addflag=' $pic_flag'
18564 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18565 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'
18566 tmp_addflag=' $pic_flag -Mnomain' ;;
18567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18568 tmp_addflag=' -i_dynamic' ;;
18569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18570 tmp_addflag=' -i_dynamic -nofor_main' ;;
18571 ifc* | ifort*) # Intel Fortran compiler
18572 tmp_addflag=' -nofor_main' ;;
18574 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 if test $supports_anon_versioning = yes; then
18577 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18579 $echo "local: *; };" >> $output_objdir/$libname.ver~
18580 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18582 link_all_deplibs_GCJ=no
18588 netbsd* | netbsdelf*-gnu)
18589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18590 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18594 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18599 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18604 *** create shared libraries on Solaris systems. Therefore, libtool
18605 *** is disabling shared libraries support. We urge you to upgrade GNU
18606 *** binutils to release 2.9.1 or newer. Another option is to modify
18607 *** your PATH or compiler configuration so that the native linker is
18608 *** used, and then restart.
18611 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18620 case `$LD -v 2>&1` in
18621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18626 *** reliably create shared libraries on SCO systems. Therefore, libtool
18627 *** is disabling shared libraries support. We urge you to upgrade GNU
18628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18629 *** your PATH or compiler configuration so that the native linker is
18630 *** used, and then restart.
18635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18637 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18638 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18647 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18649 hardcode_direct_GCJ=yes
18650 hardcode_shlibpath_var_GCJ=no
18654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18655 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18663 if test "$ld_shlibs_GCJ" = no; then
18665 hardcode_libdir_flag_spec_GCJ=
18666 export_dynamic_flag_spec_GCJ=
18667 whole_archive_flag_spec_GCJ=
18670 # PORTME fill in a description of your system's linker (not GNU ld)
18673 allow_undefined_flag_GCJ=unsupported
18674 always_export_symbols_GCJ=yes
18675 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'
18676 # Note: this linker hardcodes the directories in LIBPATH if there
18677 # are no directories specified by -L.
18678 hardcode_minus_L_GCJ=yes
18679 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18680 # Neither direct hardcoding nor static linking is supported with a
18682 hardcode_direct_GCJ=unsupported
18687 if test "$host_cpu" = ia64; then
18688 # On IA64, the linker does run time linking by default, so we don't
18689 # have to do anything special.
18690 aix_use_runtimelinking=no
18691 exp_sym_flag='-Bexport'
18694 # If we're using GNU nm, then we don't want the "-C" option.
18695 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18696 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18697 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'
18699 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'
18701 aix_use_runtimelinking=no
18703 # Test if we are trying to use run time linking or normal
18704 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18705 # need to do runtime linking.
18706 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18707 for ld_flag in $LDFLAGS; do
18708 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18709 aix_use_runtimelinking=yes
18716 exp_sym_flag='-bexport'
18717 no_entry_flag='-bnoentry'
18720 # When large executables or shared objects are built, AIX ld can
18721 # have problems creating the table of contents. If linking a library
18722 # or program results in "error TOC overflow" add -mminimal-toc to
18723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18726 archive_cmds_GCJ=''
18727 hardcode_direct_GCJ=yes
18728 hardcode_libdir_separator_GCJ=':'
18729 link_all_deplibs_GCJ=yes
18731 if test "$GCC" = yes; then
18732 case $host_os in aix4.[012]|aix4.[012].*)
18733 # We only want to do this on AIX 4.2 and lower, the check
18734 # below for broken collect2 doesn't work under 4.3+
18735 collect2name=`${CC} -print-prog-name=collect2`
18736 if test -f "$collect2name" && \
18737 strings "$collect2name" | grep resolve_lib_name >/dev/null
18739 # We have reworked collect2
18740 hardcode_direct_GCJ=yes
18742 # We have old collect2
18743 hardcode_direct_GCJ=unsupported
18744 # It fails to find uninstalled libraries when the uninstalled
18745 # path is not listed in the libpath. Setting hardcode_minus_L
18746 # to unsupported forces relinking
18747 hardcode_minus_L_GCJ=yes
18748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18749 hardcode_libdir_separator_GCJ=
18753 shared_flag='-shared'
18754 if test "$aix_use_runtimelinking" = yes; then
18755 shared_flag="$shared_flag "'${wl}-G'
18759 if test "$host_cpu" = ia64; then
18760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18761 # chokes on -Wl,-G. The following line is correct:
18764 if test "$aix_use_runtimelinking" = yes; then
18765 shared_flag='${wl}-G'
18767 shared_flag='${wl}-bM:SRE'
18772 # It seems that -bexpall does not export symbols beginning with
18773 # underscore (_), so it is better to generate a list of symbols to export.
18774 always_export_symbols_GCJ=yes
18775 if test "$aix_use_runtimelinking" = yes; then
18776 # Warning - without using the other runtime loading flags (-brtl),
18777 # -berok will link without error, but may produce a broken library.
18778 allow_undefined_flag_GCJ='-berok'
18779 # Determine the default libpath from the value encoded in an empty executable.
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
18809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810 { (case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest$ac_exeext'
18820 { (case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_try") 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18832 # Check for a 64-bit object if we didn't find anything.
18833 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; }
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18842 rm -f conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18846 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18847 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"
18849 if test "$host_cpu" = ia64; then
18850 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18851 allow_undefined_flag_GCJ="-z nodefs"
18852 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"
18854 # Determine the default libpath from the value encoded in an empty executable.
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18879 grep -v '^ *+' conftest.er1 >conftest.err
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18907 # Check for a 64-bit object if we didn't find anything.
18908 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; }
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18917 rm -f conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18922 # Warning - without using the other run time loading flags,
18923 # -berok will link without error, but may produce a broken library.
18924 no_undefined_flag_GCJ=' ${wl}-bernotok'
18925 allow_undefined_flag_GCJ=' ${wl}-berok'
18926 # Exported symbols can be pulled into shared objects from archives
18927 whole_archive_flag_spec_GCJ='$convenience'
18928 archive_cmds_need_lc_GCJ=yes
18929 # This is similar to how AIX traditionally builds its shared libraries.
18930 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'
18936 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)'
18937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18938 hardcode_minus_L_GCJ=yes
18939 # see comment about different semantics on the GNU ld section
18944 export_dynamic_flag_spec_GCJ=-rdynamic
18947 cygwin* | mingw* | pw32*)
18948 # When not using gcc, we currently assume that we are using
18949 # Microsoft Visual C++.
18950 # hardcode_libdir_flag_spec is actually meaningless, as there is
18951 # no search path for DLLs.
18952 hardcode_libdir_flag_spec_GCJ=' '
18953 allow_undefined_flag_GCJ=unsupported
18954 # Tell ltmain to make .lib files, not .a files.
18956 # Tell ltmain to make .dll files, not .so files.
18958 # FIXME: Setting linknames here is a bad hack.
18959 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18960 # The linker will automatically build a .lib file if we build a DLL.
18961 old_archive_From_new_cmds_GCJ='true'
18962 # FIXME: Should let the user specify the lib program.
18963 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18964 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18965 enable_shared_with_static_runtimes_GCJ=yes
18968 darwin* | rhapsody*)
18970 rhapsody* | darwin1.[012])
18971 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18974 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18975 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18977 case ${MACOSX_DEPLOYMENT_TARGET} in
18979 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18988 archive_cmds_need_lc_GCJ=no
18989 hardcode_direct_GCJ=no
18990 hardcode_automatic_GCJ=yes
18991 hardcode_shlibpath_var_GCJ=unsupported
18992 whole_archive_flag_spec_GCJ=''
18993 link_all_deplibs_GCJ=yes
18994 if test "$GCC" = yes ; then
18995 output_verbose_link_cmd='echo'
18996 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18997 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18999 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}'
19000 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}'
19002 case $cc_basename in
19004 output_verbose_link_cmd='echo'
19005 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19006 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19008 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}'
19009 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}'
19019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19021 hardcode_shlibpath_var_GCJ=no
19028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19029 # support. Future versions do this automatically, but an explicit c++rt0.o
19030 # does not break anything, and helps significantly (at the cost of a little
19033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19035 hardcode_direct_GCJ=yes
19036 hardcode_shlibpath_var_GCJ=no
19039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19042 hardcode_direct_GCJ=yes
19043 hardcode_minus_L_GCJ=yes
19044 hardcode_shlibpath_var_GCJ=no
19047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19048 freebsd* | dragonfly*)
19049 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19051 hardcode_direct_GCJ=yes
19052 hardcode_shlibpath_var_GCJ=no
19056 if test "$GCC" = yes; then
19057 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'
19059 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'
19061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19062 hardcode_libdir_separator_GCJ=:
19063 hardcode_direct_GCJ=yes
19065 # hardcode_minus_L: Not really in the search PATH,
19066 # but as the default location of the library.
19067 hardcode_minus_L_GCJ=yes
19068 export_dynamic_flag_spec_GCJ='${wl}-E'
19072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19073 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19075 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19077 if test "$with_gnu_ld" = no; then
19078 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19079 hardcode_libdir_separator_GCJ=:
19081 hardcode_direct_GCJ=yes
19082 export_dynamic_flag_spec_GCJ='${wl}-E'
19084 # hardcode_minus_L: Not really in the search PATH,
19085 # but as the default location of the library.
19086 hardcode_minus_L_GCJ=yes
19091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19094 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19097 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19100 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19106 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19109 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19112 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19116 if test "$with_gnu_ld" = no; then
19117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19118 hardcode_libdir_separator_GCJ=:
19122 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19123 hardcode_direct_GCJ=no
19124 hardcode_shlibpath_var_GCJ=no
19127 hardcode_direct_GCJ=yes
19128 export_dynamic_flag_spec_GCJ='${wl}-E'
19130 # hardcode_minus_L: Not really in the search PATH,
19131 # but as the default location of the library.
19132 hardcode_minus_L_GCJ=yes
19138 irix5* | irix6* | nonstopux*)
19139 if test "$GCC" = yes; then
19140 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'
19142 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'
19143 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19146 hardcode_libdir_separator_GCJ=:
19147 link_all_deplibs_GCJ=yes
19150 netbsd* | netbsdelf*-gnu)
19151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19154 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19157 hardcode_direct_GCJ=yes
19158 hardcode_shlibpath_var_GCJ=no
19162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19163 hardcode_direct_GCJ=yes
19164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19165 hardcode_libdir_separator_GCJ=:
19166 hardcode_shlibpath_var_GCJ=no
19170 hardcode_direct_GCJ=yes
19171 hardcode_shlibpath_var_GCJ=no
19172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19173 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19174 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19176 export_dynamic_flag_spec_GCJ='${wl}-E'
19179 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19192 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19193 hardcode_minus_L_GCJ=yes
19194 allow_undefined_flag_GCJ=unsupported
19195 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'
19196 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19200 if test "$GCC" = yes; then
19201 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19202 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'
19204 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19205 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'
19207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19208 hardcode_libdir_separator_GCJ=:
19211 osf4* | osf5*) # as osf3* with the addition of -msym flag
19212 if test "$GCC" = yes; then
19213 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19214 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'
19215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19217 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19218 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'
19219 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~
19220 $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'
19222 # Both c and cxx compiler support -rpath directly
19223 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19225 hardcode_libdir_separator_GCJ=:
19229 no_undefined_flag_GCJ=' -z text'
19230 if test "$GCC" = yes; then
19232 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19234 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19237 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19238 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19241 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19242 hardcode_shlibpath_var_GCJ=no
19244 solaris2.[0-5] | solaris2.[0-5].*) ;;
19246 # The compiler driver will combine linker options so we
19247 # cannot just pass the convience library names through
19248 # without $wl, iff we do not link with $LD.
19249 # Luckily, gcc supports the same syntax we need for Sun Studio.
19250 # Supported since Solaris 2.6 (maybe 2.5.1?)
19253 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19255 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' ;;
19258 link_all_deplibs_GCJ=yes
19262 if test "x$host_vendor" = xsequent; then
19263 # Use $CC to link under sequent, because it throws in some extra .o
19264 # files that make .init and .fini sections work.
19265 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19267 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19269 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19270 hardcode_direct_GCJ=yes
19271 hardcode_minus_L_GCJ=yes
19272 hardcode_shlibpath_var_GCJ=no
19276 case $host_vendor in
19278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19279 hardcode_direct_GCJ=yes # is this really true???
19282 ## LD is ld it makes a PLAMLIB
19283 ## CC just makes a GrossModule.
19284 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19285 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19286 hardcode_direct_GCJ=no
19289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19293 runpath_var='LD_RUN_PATH'
19294 hardcode_shlibpath_var_GCJ=no
19298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19299 hardcode_shlibpath_var_GCJ=no
19300 export_dynamic_flag_spec_GCJ='-Bexport'
19304 if test -d /usr/nec; then
19305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19306 hardcode_shlibpath_var_GCJ=no
19307 runpath_var=LD_RUN_PATH
19308 hardcode_runpath_var=yes
19313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19314 no_undefined_flag_GCJ='${wl}-z,text'
19315 archive_cmds_need_lc_GCJ=no
19316 hardcode_shlibpath_var_GCJ=no
19317 runpath_var='LD_RUN_PATH'
19319 if test "$GCC" = yes; then
19320 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 sysv5* | sco3.2v5* | sco5v6*)
19329 # Note: We can NOT use -z defs as we might desire, because we do not
19330 # link with -lc, and that would cause any symbols used from libc to
19331 # always be unresolved, which means just about no library would
19332 # ever link correctly. If we're not using GNU ld we use -z text
19333 # though, which does catch some bad symbols but isn't as heavy-handed
19335 no_undefined_flag_GCJ='${wl}-z,text'
19336 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19337 archive_cmds_need_lc_GCJ=no
19338 hardcode_shlibpath_var_GCJ=no
19339 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19340 hardcode_libdir_separator_GCJ=':'
19341 link_all_deplibs_GCJ=yes
19342 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19343 runpath_var='LD_RUN_PATH'
19345 if test "$GCC" = yes; then
19346 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19347 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19349 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19350 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19357 hardcode_shlibpath_var_GCJ=no
19366 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19367 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19368 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19371 # Do we need to explicitly link libc?
19373 case "x$archive_cmds_need_lc_GCJ" in
19375 # Assume -lc should be added
19376 archive_cmds_need_lc_GCJ=yes
19378 if test "$enable_shared" = yes && test "$GCC" = yes; then
19379 case $archive_cmds_GCJ in
19381 # FIXME: we may have to deal with multi-command sequences.
19384 # Test whether the compiler implicitly links with -lc since on some
19385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19386 # to ld, don't add -lc before -lgcc.
19387 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } 2>conftest.err; then
19399 libobjs=conftest.$ac_objext
19401 wl=$lt_prog_compiler_wl_GCJ
19402 pic_flag=$lt_prog_compiler_pic_GCJ
19408 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19409 allow_undefined_flag_GCJ=
19410 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19411 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }
19416 archive_cmds_need_lc_GCJ=no
19418 archive_cmds_need_lc_GCJ=yes
19420 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19422 cat conftest.err 1>&5
19425 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19426 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19433 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19435 library_names_spec=
19436 libname_spec='lib$name'
19440 postuninstall_cmds=
19444 shlibpath_overrides_runpath=unknown
19446 dynamic_linker="$host_os ld.so"
19447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19448 if test "$GCC" = yes; then
19449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19450 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19451 # if the path contains ";" then we assume it to be the separator
19452 # otherwise default to the standard path separator (i.e. ":") - it is
19453 # assumed that no part of a normal pathname contains ";" but that should
19454 # okay in the real world where ";" in dirpaths is itself problematic.
19455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19462 need_lib_prefix=unknown
19463 hardcode_into_libs=no
19465 # when you set need_version to no, make sure it does not cause -set_version
19466 # flags to be left without arguments
19467 need_version=unknown
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19473 shlibpath_var=LIBPATH
19475 # AIX 3 has no versioning support, so we append a major version to the name.
19476 soname_spec='${libname}${release}${shared_ext}$major'
19483 hardcode_into_libs=yes
19484 if test "$host_cpu" = ia64; then
19485 # AIX 5 supports IA64
19486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19487 shlibpath_var=LD_LIBRARY_PATH
19489 # With GCC up to 2.95.x, collect2 would create an import file
19490 # for dependence libraries. The import file would start with
19491 # the line `#! .'. This would cause the generated library to
19492 # depend on `.', always an invalid library. This was fixed in
19493 # development snapshots of GCC prior to 3.0.
19495 aix4 | aix4.[01] | aix4.[01].*)
19496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19501 can_build_shared=no
19505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19506 # soname into executable. Probably we can add versioning support to
19507 # collect2, so additional links can be useful in future.
19508 if test "$aix_use_runtimelinking" = yes; then
19509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19510 # instead of lib<name>.a to let people know that these are not
19511 # typical AIX shared libraries.
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19514 # We preserve .a as extension for shared libraries through AIX4.2
19515 # and later when we are not doing run time linking.
19516 library_names_spec='${libname}${release}.a $libname.a'
19517 soname_spec='${libname}${release}${shared_ext}$major'
19519 shlibpath_var=LIBPATH
19524 library_names_spec='$libname.ixlibrary $libname.a'
19525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19526 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'
19530 library_names_spec='${libname}${shared_ext}'
19531 dynamic_linker="$host_os ld.so"
19532 shlibpath_var=LIBRARY_PATH
19538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19539 soname_spec='${libname}${release}${shared_ext}$major'
19540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19541 shlibpath_var=LD_LIBRARY_PATH
19542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19544 # the default ld.so.conf also contains /usr/contrib/lib and
19545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19546 # libtool to hard-code these into programs
19549 cygwin* | mingw* | pw32*)
19550 version_type=windows
19555 case $GCC,$host_os in
19556 yes,cygwin* | yes,mingw* | yes,pw32*)
19557 library_names_spec='$libname.dll.a'
19558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19559 postinstall_cmds='base_file=`basename \${file}`~
19560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19561 dldir=$destdir/`dirname \$dlpath`~
19562 test -d \$dldir || mkdir -p \$dldir~
19563 $install_prog $dir/$dlname \$dldir/$dlname~
19564 chmod a+x \$dldir/$dlname'
19565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19566 dlpath=$dir/\$dldll~
19568 shlibpath_overrides_runpath=yes
19572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19574 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19577 # MinGW DLLs use traditional 'lib' prefix
19578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19580 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19581 # It is most probably a Windows format PATH printed by
19582 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19583 # path with ; separators, and with drive letters. We can handle the
19584 # drive letters (cygwin fileutils understands them), so leave them,
19585 # especially as we might pass files found there to a mingw objdump,
19586 # which wouldn't understand a cygwinified path. Ahh.
19587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19593 # pw32 DLLs use 'pw' prefix rather than 'lib'
19594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19603 dynamic_linker='Win32 ld.exe'
19604 # FIXME: first we should search . and the directory the executable is in
19608 darwin* | rhapsody*)
19609 dynamic_linker="$host_os dyld"
19610 version_type=darwin
19613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19614 soname_spec='${libname}${release}${major}$shared_ext'
19615 shlibpath_overrides_runpath=yes
19616 shlibpath_var=DYLD_LIBRARY_PATH
19617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19618 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19619 if test "$GCC" = yes; then
19620 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"`
19622 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19632 soname_spec='${libname}${release}${shared_ext}$major'
19633 shlibpath_var=LD_LIBRARY_PATH
19640 freebsd* | dragonfly*)
19641 # DragonFly does not have aout. When/if they implement a new
19642 # versioning mechanism, adjust this.
19643 if test -x /usr/bin/objformat; then
19644 objformat=`/usr/bin/objformat`
19647 freebsd[123]*) objformat=aout ;;
19648 *) objformat=elf ;;
19651 version_type=freebsd-$objformat
19652 case $version_type in
19654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19663 shlibpath_var=LD_LIBRARY_PATH
19666 shlibpath_overrides_runpath=yes
19668 freebsd3.[01]* | freebsdelf3.[01]*)
19669 shlibpath_overrides_runpath=yes
19670 hardcode_into_libs=yes
19672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19674 shlibpath_overrides_runpath=no
19675 hardcode_into_libs=yes
19677 freebsd*) # from 4.6 on
19678 shlibpath_overrides_runpath=yes
19679 hardcode_into_libs=yes
19688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19689 soname_spec='${libname}${release}${shared_ext}$major'
19690 shlibpath_var=LD_LIBRARY_PATH
19691 hardcode_into_libs=yes
19694 hpux9* | hpux10* | hpux11*)
19695 # Give a soname corresponding to the major version so that dld.sl refuses to
19696 # link against other versions.
19703 hardcode_into_libs=yes
19704 dynamic_linker="$host_os dld.so"
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19708 soname_spec='${libname}${release}${shared_ext}$major'
19709 if test "X$HPUX_IA64_MODE" = X32; then
19710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19718 hardcode_into_libs=yes
19719 dynamic_linker="$host_os dld.sl"
19720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19723 soname_spec='${libname}${release}${shared_ext}$major'
19724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19729 dynamic_linker="$host_os dld.sl"
19730 shlibpath_var=SHLIB_PATH
19731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19733 soname_spec='${libname}${release}${shared_ext}$major'
19736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19737 postinstall_cmds='chmod 555 $lib'
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19745 soname_spec='${libname}${release}${shared_ext}$major'
19746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19747 shlibpath_var=LD_LIBRARY_PATH
19748 shlibpath_overrides_runpath=no
19749 hardcode_into_libs=yes
19752 irix5* | irix6* | nonstopux*)
19754 nonstopux*) version_type=nonstopux ;;
19756 if test "$lt_cv_prog_gnu_ld" = yes; then
19764 soname_spec='${libname}${release}${shared_ext}$major'
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19767 irix5* | nonstopux*)
19768 libsuff= shlibsuff=
19771 case $LD in # libtool.m4 will add one of these switches to LD
19772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19773 libsuff= shlibsuff= libmagic=32-bit;;
19774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19775 libsuff=32 shlibsuff=N32 libmagic=N32;;
19776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19778 *) libsuff= shlibsuff= libmagic=never-match;;
19782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19783 shlibpath_overrides_runpath=no
19784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19786 hardcode_into_libs=yes
19789 # No shared lib support for Linux oldld, aout, or coff.
19790 linux*oldld* | linux*aout* | linux*coff*)
19794 # This must be Linux ELF.
19795 linux* | k*bsd*-gnu)
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800 soname_spec='${libname}${release}${shared_ext}$major'
19801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19802 shlibpath_var=LD_LIBRARY_PATH
19803 shlibpath_overrides_runpath=no
19804 # This implies no fast_install, which is unacceptable.
19805 # Some rework will be needed to allow for fast_install
19806 # before this can be enabled.
19807 hardcode_into_libs=yes
19809 # Append ld.so.conf contents to the search path
19810 if test -f /etc/ld.so.conf; then
19811 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' ' '`
19812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19815 # We used to test for /lib/ld.so.1 and disable shared libraries on
19816 # powerpc, because MkLinux only supported shared libraries with the
19817 # GNU dynamic linker. Since this was broken with cross compilers,
19818 # most powerpc-linux boxes support dynamic linking these days and
19819 # people can always --disable-shared, the test was removed, and we
19820 # assume the GNU/Linux dynamic linker is in use.
19821 dynamic_linker='GNU/Linux ld.so'
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 shlibpath_overrides_runpath=no
19832 hardcode_into_libs=yes
19833 dynamic_linker='NetBSD ld.elf_so'
19840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19843 dynamic_linker='NetBSD (a.out) ld.so'
19845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19846 soname_spec='${libname}${release}${shared_ext}$major'
19847 dynamic_linker='NetBSD ld.elf_so'
19849 shlibpath_var=LD_LIBRARY_PATH
19850 shlibpath_overrides_runpath=yes
19851 hardcode_into_libs=yes
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857 shlibpath_var=LD_LIBRARY_PATH
19858 shlibpath_overrides_runpath=yes
19865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19866 soname_spec='${libname}${release}${shared_ext}$major'
19867 shlibpath_var=LD_LIBRARY_PATH
19868 shlibpath_overrides_runpath=yes
19873 sys_lib_dlsearch_path_spec="/usr/lib"
19875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19878 *) need_version=no ;;
19880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885 openbsd2.[89] | openbsd2.[89].*)
19886 shlibpath_overrides_runpath=no
19889 shlibpath_overrides_runpath=yes
19893 shlibpath_overrides_runpath=yes
19898 libname_spec='$name'
19901 library_names_spec='$libname${shared_ext} $libname.a'
19902 dynamic_linker='OS/2 ld.exe'
19903 shlibpath_var=LIBPATH
19906 osf3* | osf4* | osf5*)
19910 soname_spec='${libname}${release}${shared_ext}$major'
19911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912 shlibpath_var=LD_LIBRARY_PATH
19913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19922 soname_spec='${libname}${release}${shared_ext}$major'
19923 shlibpath_var=LD_LIBRARY_PATH
19924 shlibpath_overrides_runpath=yes
19925 hardcode_into_libs=yes
19926 # ldd complains unless libraries are executable
19927 postinstall_cmds='chmod +x $lib'
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 shlibpath_overrides_runpath=yes
19936 if test "$with_gnu_ld" = yes; then
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19945 soname_spec='${libname}${release}${shared_ext}$major'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 case $host_vendor in
19949 shlibpath_overrides_runpath=no
19951 export_dynamic_flag_spec='${wl}-Blargedynsym'
19952 runpath_var=LD_RUN_PATH
19960 shlibpath_overrides_runpath=no
19961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19967 if test -d /usr/nec ;then
19969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19970 soname_spec='$libname${shared_ext}.$major'
19971 shlibpath_var=LD_LIBRARY_PATH
19975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19976 version_type=freebsd-elf
19979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19980 soname_spec='${libname}${release}${shared_ext}$major'
19981 shlibpath_var=LD_LIBRARY_PATH
19982 hardcode_into_libs=yes
19983 if test "$with_gnu_ld" = yes; then
19984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19985 shlibpath_overrides_runpath=no
19987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19988 shlibpath_overrides_runpath=yes
19991 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19995 sys_lib_dlsearch_path_spec='/usr/lib'
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LD_LIBRARY_PATH
20009 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20010 echo "${ECHO_T}$dynamic_linker" >&6; }
20011 test "$dynamic_linker" = no && can_build_shared=no
20013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20014 if test "$GCC" = yes; then
20015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20020 hardcode_action_GCJ=
20021 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20022 test -n "$runpath_var_GCJ" || \
20023 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20025 # We can hardcode non-existant directories.
20026 if test "$hardcode_direct_GCJ" != no &&
20027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20028 # have to relink, otherwise we might link with an installed library
20029 # when we should be linking with a yet-to-be-installed one
20030 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20031 test "$hardcode_minus_L_GCJ" != no; then
20032 # Linking always hardcodes the temporary library directory.
20033 hardcode_action_GCJ=relink
20035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20036 hardcode_action_GCJ=immediate
20039 # We cannot hardcode anything, or else we can only hardcode existing
20041 hardcode_action_GCJ=unsupported
20043 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20044 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20046 if test "$hardcode_action_GCJ" = relink; then
20047 # Fast installation is not supported
20048 enable_fast_install=no
20049 elif test "$shlibpath_overrides_runpath" = yes ||
20050 test "$enable_shared" = no; then
20051 # Fast installation is not necessary
20052 enable_fast_install=needless
20056 # The else clause should only fire when bootstrapping the
20057 # libtool distribution, otherwise you forgot to ship ltmain.sh
20058 # with your package, and you will get complaints that there are
20059 # no rules to generate ltmain.sh.
20060 if test -f "$ltmain"; then
20061 # See if we are running on zsh, and set the options which allow our commands through
20062 # without removal of \ escapes.
20063 if test -n "${ZSH_VERSION+set}" ; then
20064 setopt NO_GLOB_SUBST
20066 # Now quote all the things that may contain metacharacters while being
20067 # careful not to overquote the AC_SUBSTed values. We take copies of the
20068 # variables and quote the copies for generation of the libtool script.
20069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20073 deplibs_check_method reload_flag reload_cmds need_locks \
20074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20075 lt_cv_sys_global_symbol_to_c_name_address \
20076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20077 old_postinstall_cmds old_postuninstall_cmds \
20081 lt_prog_compiler_wl_GCJ \
20082 lt_prog_compiler_pic_GCJ \
20083 lt_prog_compiler_static_GCJ \
20084 lt_prog_compiler_no_builtin_flag_GCJ \
20085 export_dynamic_flag_spec_GCJ \
20086 thread_safe_flag_spec_GCJ \
20087 whole_archive_flag_spec_GCJ \
20088 enable_shared_with_static_runtimes_GCJ \
20089 old_archive_cmds_GCJ \
20090 old_archive_from_new_cmds_GCJ \
20091 predep_objects_GCJ \
20092 postdep_objects_GCJ \
20095 compiler_lib_search_path_GCJ \
20097 archive_expsym_cmds_GCJ \
20098 postinstall_cmds_GCJ \
20099 postuninstall_cmds_GCJ \
20100 old_archive_from_expsyms_cmds_GCJ \
20101 allow_undefined_flag_GCJ \
20102 no_undefined_flag_GCJ \
20103 export_symbols_cmds_GCJ \
20104 hardcode_libdir_flag_spec_GCJ \
20105 hardcode_libdir_flag_spec_ld_GCJ \
20106 hardcode_libdir_separator_GCJ \
20107 hardcode_automatic_GCJ \
20109 module_expsym_cmds_GCJ \
20110 lt_cv_prog_compiler_c_o_GCJ \
20111 exclude_expsyms_GCJ \
20112 include_expsyms_GCJ; do
20115 old_archive_cmds_GCJ | \
20116 old_archive_from_new_cmds_GCJ | \
20117 archive_cmds_GCJ | \
20118 archive_expsym_cmds_GCJ | \
20119 module_cmds_GCJ | \
20120 module_expsym_cmds_GCJ | \
20121 old_archive_from_expsyms_cmds_GCJ | \
20122 export_symbols_cmds_GCJ | \
20123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20124 postinstall_cmds | postuninstall_cmds | \
20125 old_postinstall_cmds | old_postuninstall_cmds | \
20126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20127 # Double-quote double-evaled strings.
20128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20137 *'\$0 --fallback-echo"')
20138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20144 cat <<__EOF__ >> "$cfgfile"
20145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149 # Shell to use when invoking shell scripts.
20152 # Whether or not to build shared libraries.
20153 build_libtool_libs=$enable_shared
20155 # Whether or not to build static libraries.
20156 build_old_libs=$enable_static
20158 # Whether or not to add -lc for building shared libraries.
20159 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20161 # Whether or not to disallow shared libs when runtime libs are static
20162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20164 # Whether or not to optimize for fast installation.
20165 fast_install=$enable_fast_install
20168 host_alias=$host_alias
20172 # The build system.
20173 build_alias=$build_alias
20177 # An echo program that does not interpret backslashes.
20182 AR_FLAGS=$lt_AR_FLAGS
20187 # LTCC compiler flags.
20188 LTCFLAGS=$lt_LTCFLAGS
20190 # A language-specific compiler.
20191 CC=$lt_compiler_GCJ
20193 # Is the compiler the GNU C compiler?
20199 # The linker used to build libraries.
20202 # Whether we need hard or soft links.
20205 # A BSD-compatible nm program.
20208 # A symbol stripping program
20211 # Used to examine libraries when file_magic_cmd begins "file"
20212 MAGIC_CMD=$MAGIC_CMD
20214 # Used on cygwin: DLL creation program.
20217 # Used on cygwin: object dumper.
20220 # Used on cygwin: assembler.
20223 # The name of the directory that contains temporary libtool files.
20226 # How to create reloadable object files.
20227 reload_flag=$lt_reload_flag
20228 reload_cmds=$lt_reload_cmds
20230 # How to pass a linker flag through the compiler.
20231 wl=$lt_lt_prog_compiler_wl_GCJ
20233 # Object file suffix (normally "o").
20234 objext="$ac_objext"
20236 # Old archive suffix (normally "a").
20239 # Shared library suffix (normally ".so").
20240 shrext_cmds='$shrext_cmds'
20242 # Executable file suffix (normally "").
20245 # Additional compiler flags for building library objects.
20246 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20249 # What is the maximum length of a command?
20250 max_cmd_len=$lt_cv_sys_max_cmd_len
20252 # Does compiler simultaneously support -c and -o options?
20253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20255 # Must we lock files when doing compilation?
20256 need_locks=$lt_need_locks
20258 # Do we need the lib prefix for modules?
20259 need_lib_prefix=$need_lib_prefix
20261 # Do we need a version for libraries?
20262 need_version=$need_version
20264 # Whether dlopen is supported.
20265 dlopen_support=$enable_dlopen
20267 # Whether dlopen of programs is supported.
20268 dlopen_self=$enable_dlopen_self
20270 # Whether dlopen of statically linked programs is supported.
20271 dlopen_self_static=$enable_dlopen_self_static
20273 # Compiler flag to prevent dynamic linking.
20274 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20276 # Compiler flag to turn off builtin functions.
20277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20279 # Compiler flag to allow reflexive dlopens.
20280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20282 # Compiler flag to generate shared objects directly from archives.
20283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20285 # Compiler flag to generate thread-safe objects.
20286 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20288 # Library versioning type.
20289 version_type=$version_type
20291 # Format of library name prefix.
20292 libname_spec=$lt_libname_spec
20294 # List of archive names. First name is the real one, the rest are links.
20295 # The last name is the one that the linker finds with -lNAME.
20296 library_names_spec=$lt_library_names_spec
20298 # The coded name of the library, if different from the real name.
20299 soname_spec=$lt_soname_spec
20301 # Commands used to build and install an old-style archive.
20303 old_archive_cmds=$lt_old_archive_cmds_GCJ
20304 old_postinstall_cmds=$lt_old_postinstall_cmds
20305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20307 # Create an old-style archive from a shared archive.
20308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20310 # Create a temporary old-style archive to link instead of a shared archive.
20311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20313 # Commands used to build and install a shared archive.
20314 archive_cmds=$lt_archive_cmds_GCJ
20315 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20316 postinstall_cmds=$lt_postinstall_cmds
20317 postuninstall_cmds=$lt_postuninstall_cmds
20319 # Commands used to build a loadable module (assumed same as above if empty)
20320 module_cmds=$lt_module_cmds_GCJ
20321 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20323 # Commands to strip libraries.
20324 old_striplib=$lt_old_striplib
20325 striplib=$lt_striplib
20327 # Dependencies to place before the objects being linked to create a
20329 predep_objects=$lt_predep_objects_GCJ
20331 # Dependencies to place after the objects being linked to create a
20333 postdep_objects=$lt_postdep_objects_GCJ
20335 # Dependencies to place before the objects being linked to create a
20337 predeps=$lt_predeps_GCJ
20339 # Dependencies to place after the objects being linked to create a
20341 postdeps=$lt_postdeps_GCJ
20343 # The library search path used internally by the compiler when linking
20344 # a shared library.
20345 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20347 # Method to check whether dependent libraries are shared objects.
20348 deplibs_check_method=$lt_deplibs_check_method
20350 # Command to use when deplibs_check_method == file_magic.
20351 file_magic_cmd=$lt_file_magic_cmd
20353 # Flag that allows shared libraries with undefined symbols to be built.
20354 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20356 # Flag that forces no undefined symbols.
20357 no_undefined_flag=$lt_no_undefined_flag_GCJ
20359 # Commands used to finish a libtool library installation in a directory.
20360 finish_cmds=$lt_finish_cmds
20362 # Same as above, but a single script fragment to be evaled but not shown.
20363 finish_eval=$lt_finish_eval
20365 # Take the output of nm and produce a listing of raw symbols and C names.
20366 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20368 # Transform the output of nm in a proper C declaration
20369 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20371 # Transform the output of nm in a C name address pair
20372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20374 # This is the shared library runtime path variable.
20375 runpath_var=$runpath_var
20377 # This is the shared library path variable.
20378 shlibpath_var=$shlibpath_var
20380 # Is shlibpath searched before the hard-coded library search path?
20381 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20383 # How to hardcode a shared library path into an executable.
20384 hardcode_action=$hardcode_action_GCJ
20386 # Whether we should hardcode library paths into libraries.
20387 hardcode_into_libs=$hardcode_into_libs
20389 # Flag to hardcode \$libdir into a binary during linking.
20390 # This must work even if \$libdir does not exist.
20391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20393 # If ld is used when linking, flag to hardcode \$libdir into
20394 # a binary during linking. This must work even if \$libdir does
20396 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20398 # Whether we need a single -rpath flag with a separated argument.
20399 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20401 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20402 # resulting binary.
20403 hardcode_direct=$hardcode_direct_GCJ
20405 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20406 # resulting binary.
20407 hardcode_minus_L=$hardcode_minus_L_GCJ
20409 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20410 # the resulting binary.
20411 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20413 # Set to yes if building a shared library automatically hardcodes DIR into the library
20414 # and all subsequent libraries and executables linked against it.
20415 hardcode_automatic=$hardcode_automatic_GCJ
20417 # Variables whose values should be saved in libtool wrapper scripts and
20418 # restored at relink time.
20419 variables_saved_for_relink="$variables_saved_for_relink"
20421 # Whether libtool must link a program against all its dependency libraries.
20422 link_all_deplibs=$link_all_deplibs_GCJ
20424 # Compile-time system search path for libraries
20425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20427 # Run-time system search path for libraries
20428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20430 # Fix the shell variable \$srcfile for the compiler.
20431 fix_srcfile_path="$fix_srcfile_path_GCJ"
20433 # Set to yes if exported symbols are required.
20434 always_export_symbols=$always_export_symbols_GCJ
20436 # The commands to list exported symbols.
20437 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20439 # The commands to extract the exported symbol list from a shared archive.
20440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20442 # Symbols that should not be listed in the preloaded symbols.
20443 exclude_expsyms=$lt_exclude_expsyms_GCJ
20445 # Symbols that must always be exported.
20446 include_expsyms=$lt_include_expsyms_GCJ
20448 # ### END LIBTOOL TAG CONFIG: $tagname
20454 # If there is no Makefile yet, we rely on a make rule to execute
20455 # `config.status --recheck' to rerun these tests and create the
20456 # libtool script then.
20457 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20458 if test -f "$ltmain_in"; then
20459 test -f Makefile && make "$ltmain"
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480 # Source file extension for RC test sources.
20483 # Object file extension for compiled RC test sources.
20487 # Code to be used in simple compile tests
20488 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20490 # Code to be used in simple link tests
20491 lt_simple_link_test_code="$lt_simple_compile_test_code"
20493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20495 # If no C compiler was specified, use CC.
20498 # If no C compiler flags were specified, use CFLAGS.
20499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20501 # Allow CC to be a program name with arguments.
20505 # save warnings/boilerplate of simple test code
20506 ac_outfile=conftest.$ac_objext
20507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20509 _lt_compiler_boilerplate=`cat conftest.err`
20512 ac_outfile=conftest.$ac_objext
20513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20515 _lt_linker_boilerplate=`cat conftest.err`
20519 # Allow CC to be a program name with arguments.
20524 for cc_temp in $compiler""; do
20526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20534 lt_cv_prog_compiler_c_o_RC=yes
20536 # The else clause should only fire when bootstrapping the
20537 # libtool distribution, otherwise you forgot to ship ltmain.sh
20538 # with your package, and you will get complaints that there are
20539 # no rules to generate ltmain.sh.
20540 if test -f "$ltmain"; then
20541 # See if we are running on zsh, and set the options which allow our commands through
20542 # without removal of \ escapes.
20543 if test -n "${ZSH_VERSION+set}" ; then
20544 setopt NO_GLOB_SUBST
20546 # Now quote all the things that may contain metacharacters while being
20547 # careful not to overquote the AC_SUBSTed values. We take copies of the
20548 # variables and quote the copies for generation of the libtool script.
20549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20553 deplibs_check_method reload_flag reload_cmds need_locks \
20554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20555 lt_cv_sys_global_symbol_to_c_name_address \
20556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20557 old_postinstall_cmds old_postuninstall_cmds \
20561 lt_prog_compiler_wl_RC \
20562 lt_prog_compiler_pic_RC \
20563 lt_prog_compiler_static_RC \
20564 lt_prog_compiler_no_builtin_flag_RC \
20565 export_dynamic_flag_spec_RC \
20566 thread_safe_flag_spec_RC \
20567 whole_archive_flag_spec_RC \
20568 enable_shared_with_static_runtimes_RC \
20569 old_archive_cmds_RC \
20570 old_archive_from_new_cmds_RC \
20571 predep_objects_RC \
20572 postdep_objects_RC \
20575 compiler_lib_search_path_RC \
20577 archive_expsym_cmds_RC \
20578 postinstall_cmds_RC \
20579 postuninstall_cmds_RC \
20580 old_archive_from_expsyms_cmds_RC \
20581 allow_undefined_flag_RC \
20582 no_undefined_flag_RC \
20583 export_symbols_cmds_RC \
20584 hardcode_libdir_flag_spec_RC \
20585 hardcode_libdir_flag_spec_ld_RC \
20586 hardcode_libdir_separator_RC \
20587 hardcode_automatic_RC \
20589 module_expsym_cmds_RC \
20590 lt_cv_prog_compiler_c_o_RC \
20591 exclude_expsyms_RC \
20592 include_expsyms_RC; do
20595 old_archive_cmds_RC | \
20596 old_archive_from_new_cmds_RC | \
20597 archive_cmds_RC | \
20598 archive_expsym_cmds_RC | \
20600 module_expsym_cmds_RC | \
20601 old_archive_from_expsyms_cmds_RC | \
20602 export_symbols_cmds_RC | \
20603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20604 postinstall_cmds | postuninstall_cmds | \
20605 old_postinstall_cmds | old_postuninstall_cmds | \
20606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20607 # Double-quote double-evaled strings.
20608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20617 *'\$0 --fallback-echo"')
20618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20624 cat <<__EOF__ >> "$cfgfile"
20625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20629 # Shell to use when invoking shell scripts.
20632 # Whether or not to build shared libraries.
20633 build_libtool_libs=$enable_shared
20635 # Whether or not to build static libraries.
20636 build_old_libs=$enable_static
20638 # Whether or not to add -lc for building shared libraries.
20639 build_libtool_need_lc=$archive_cmds_need_lc_RC
20641 # Whether or not to disallow shared libs when runtime libs are static
20642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20644 # Whether or not to optimize for fast installation.
20645 fast_install=$enable_fast_install
20648 host_alias=$host_alias
20652 # The build system.
20653 build_alias=$build_alias
20657 # An echo program that does not interpret backslashes.
20662 AR_FLAGS=$lt_AR_FLAGS
20667 # LTCC compiler flags.
20668 LTCFLAGS=$lt_LTCFLAGS
20670 # A language-specific compiler.
20673 # Is the compiler the GNU C compiler?
20679 # The linker used to build libraries.
20682 # Whether we need hard or soft links.
20685 # A BSD-compatible nm program.
20688 # A symbol stripping program
20691 # Used to examine libraries when file_magic_cmd begins "file"
20692 MAGIC_CMD=$MAGIC_CMD
20694 # Used on cygwin: DLL creation program.
20697 # Used on cygwin: object dumper.
20700 # Used on cygwin: assembler.
20703 # The name of the directory that contains temporary libtool files.
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag
20708 reload_cmds=$lt_reload_cmds
20710 # How to pass a linker flag through the compiler.
20711 wl=$lt_lt_prog_compiler_wl_RC
20713 # Object file suffix (normally "o").
20714 objext="$ac_objext"
20716 # Old archive suffix (normally "a").
20719 # Shared library suffix (normally ".so").
20720 shrext_cmds='$shrext_cmds'
20722 # Executable file suffix (normally "").
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic_RC
20729 # What is the maximum length of a command?
20730 max_cmd_len=$lt_cv_sys_max_cmd_len
20732 # Does compiler simultaneously support -c and -o options?
20733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20735 # Must we lock files when doing compilation?
20736 need_locks=$lt_need_locks
20738 # Do we need the lib prefix for modules?
20739 need_lib_prefix=$need_lib_prefix
20741 # Do we need a version for libraries?
20742 need_version=$need_version
20744 # Whether dlopen is supported.
20745 dlopen_support=$enable_dlopen
20747 # Whether dlopen of programs is supported.
20748 dlopen_self=$enable_dlopen_self
20750 # Whether dlopen of statically linked programs is supported.
20751 dlopen_self_static=$enable_dlopen_self_static
20753 # Compiler flag to prevent dynamic linking.
20754 link_static_flag=$lt_lt_prog_compiler_static_RC
20756 # Compiler flag to turn off builtin functions.
20757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20759 # Compiler flag to allow reflexive dlopens.
20760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20762 # Compiler flag to generate shared objects directly from archives.
20763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20765 # Compiler flag to generate thread-safe objects.
20766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20768 # Library versioning type.
20769 version_type=$version_type
20771 # Format of library name prefix.
20772 libname_spec=$lt_libname_spec
20774 # List of archive names. First name is the real one, the rest are links.
20775 # The last name is the one that the linker finds with -lNAME.
20776 library_names_spec=$lt_library_names_spec
20778 # The coded name of the library, if different from the real name.
20779 soname_spec=$lt_soname_spec
20781 # Commands used to build and install an old-style archive.
20783 old_archive_cmds=$lt_old_archive_cmds_RC
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20787 # Create an old-style archive from a shared archive.
20788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20790 # Create a temporary old-style archive to link instead of a shared archive.
20791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20793 # Commands used to build and install a shared archive.
20794 archive_cmds=$lt_archive_cmds_RC
20795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20796 postinstall_cmds=$lt_postinstall_cmds
20797 postuninstall_cmds=$lt_postuninstall_cmds
20799 # Commands used to build a loadable module (assumed same as above if empty)
20800 module_cmds=$lt_module_cmds_RC
20801 module_expsym_cmds=$lt_module_expsym_cmds_RC
20803 # Commands to strip libraries.
20804 old_striplib=$lt_old_striplib
20805 striplib=$lt_striplib
20807 # Dependencies to place before the objects being linked to create a
20809 predep_objects=$lt_predep_objects_RC
20811 # Dependencies to place after the objects being linked to create a
20813 postdep_objects=$lt_postdep_objects_RC
20815 # Dependencies to place before the objects being linked to create a
20817 predeps=$lt_predeps_RC
20819 # Dependencies to place after the objects being linked to create a
20821 postdeps=$lt_postdeps_RC
20823 # The library search path used internally by the compiler when linking
20824 # a shared library.
20825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20827 # Method to check whether dependent libraries are shared objects.
20828 deplibs_check_method=$lt_deplibs_check_method
20830 # Command to use when deplibs_check_method == file_magic.
20831 file_magic_cmd=$lt_file_magic_cmd
20833 # Flag that allows shared libraries with undefined symbols to be built.
20834 allow_undefined_flag=$lt_allow_undefined_flag_RC
20836 # Flag that forces no undefined symbols.
20837 no_undefined_flag=$lt_no_undefined_flag_RC
20839 # Commands used to finish a libtool library installation in a directory.
20840 finish_cmds=$lt_finish_cmds
20842 # Same as above, but a single script fragment to be evaled but not shown.
20843 finish_eval=$lt_finish_eval
20845 # Take the output of nm and produce a listing of raw symbols and C names.
20846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20848 # Transform the output of nm in a proper C declaration
20849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20851 # Transform the output of nm in a C name address pair
20852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20854 # This is the shared library runtime path variable.
20855 runpath_var=$runpath_var
20857 # This is the shared library path variable.
20858 shlibpath_var=$shlibpath_var
20860 # Is shlibpath searched before the hard-coded library search path?
20861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20863 # How to hardcode a shared library path into an executable.
20864 hardcode_action=$hardcode_action_RC
20866 # Whether we should hardcode library paths into libraries.
20867 hardcode_into_libs=$hardcode_into_libs
20869 # Flag to hardcode \$libdir into a binary during linking.
20870 # This must work even if \$libdir does not exist.
20871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20873 # If ld is used when linking, flag to hardcode \$libdir into
20874 # a binary during linking. This must work even if \$libdir does
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20878 # Whether we need a single -rpath flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20882 # resulting binary.
20883 hardcode_direct=$hardcode_direct_RC
20885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_minus_L=$hardcode_minus_L_RC
20889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20890 # the resulting binary.
20891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20893 # Set to yes if building a shared library automatically hardcodes DIR into the library
20894 # and all subsequent libraries and executables linked against it.
20895 hardcode_automatic=$hardcode_automatic_RC
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at relink time.
20899 variables_saved_for_relink="$variables_saved_for_relink"
20901 # Whether libtool must link a program against all its dependency libraries.
20902 link_all_deplibs=$link_all_deplibs_RC
20904 # Compile-time system search path for libraries
20905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20907 # Run-time system search path for libraries
20908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20910 # Fix the shell variable \$srcfile for the compiler.
20911 fix_srcfile_path="$fix_srcfile_path_RC"
20913 # Set to yes if exported symbols are required.
20914 always_export_symbols=$always_export_symbols_RC
20916 # The commands to list exported symbols.
20917 export_symbols_cmds=$lt_export_symbols_cmds_RC
20919 # The commands to extract the exported symbol list from a shared archive.
20920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20922 # Symbols that should not be listed in the preloaded symbols.
20923 exclude_expsyms=$lt_exclude_expsyms_RC
20925 # Symbols that must always be exported.
20926 include_expsyms=$lt_include_expsyms_RC
20928 # ### END LIBTOOL TAG CONFIG: $tagname
20934 # If there is no Makefile yet, we rely on a make rule to execute
20935 # `config.status --recheck' to rerun these tests and create the
20936 # libtool script then.
20937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20938 if test -f "$ltmain_in"; then
20939 test -f Makefile && make "$ltmain"
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20955 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20957 { (exit 1); exit 1; }; }
20961 # Append the new tag name to the list of available tags.
20962 if test -n "$tagname" ; then
20963 available_tags="$available_tags $tagname"
20969 # Now substitute the updated list of available tags.
20970 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20971 mv "${ofile}T" "$ofile"
20975 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20977 { (exit 1); exit 1; }; }
20983 # This can be used to rebuild libtool when needed
20984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20986 # Always use our own libtool.
20987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20989 # Prevent multiple expansion
21011 if test "x$cross_compiling" = "xno"; then
21012 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21014 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21019 if test -n "$ac_tool_prefix"; then
21020 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21021 set dummy ${ac_tool_prefix}ar; ac_word=$2
21022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21024 if test "${ac_cv_prog_AR+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 if test -n "$AR"; then
21028 ac_cv_prog_AR="$AR" # Let the user override the test.
21030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21031 for as_dir in $PATH
21034 test -z "$as_dir" && as_dir=.
21035 for ac_exec_ext in '' $ac_executable_extensions; do
21036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21037 ac_cv_prog_AR="${ac_tool_prefix}ar"
21038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21048 if test -n "$AR"; then
21049 { echo "$as_me:$LINENO: result: $AR" >&5
21050 echo "${ECHO_T}$AR" >&6; }
21052 { echo "$as_me:$LINENO: result: no" >&5
21053 echo "${ECHO_T}no" >&6; }
21058 if test -z "$ac_cv_prog_AR"; then
21060 # Extract the first word of "ar", so it can be a program name with args.
21061 set dummy ar; ac_word=$2
21062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21064 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 if test -n "$ac_ct_AR"; then
21068 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21071 for as_dir in $PATH
21074 test -z "$as_dir" && as_dir=.
21075 for ac_exec_ext in '' $ac_executable_extensions; do
21076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21077 ac_cv_prog_ac_ct_AR="ar"
21078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21088 if test -n "$ac_ct_AR"; then
21089 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21090 echo "${ECHO_T}$ac_ct_AR" >&6; }
21092 { echo "$as_me:$LINENO: result: no" >&5
21093 echo "${ECHO_T}no" >&6; }
21096 if test "x$ac_ct_AR" = x; then
21099 case $cross_compiling:$ac_tool_warned in
21101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21102 whose name does not start with the host triplet. If you think this
21103 configuration is useful to you, please write to autoconf@gnu.org." >&5
21104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21105 whose name does not start with the host triplet. If you think this
21106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21107 ac_tool_warned=yes ;;
21112 AR="$ac_cv_prog_AR"
21115 if test -n "$ac_tool_prefix"; then
21116 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21117 set dummy ${ac_tool_prefix}ld; ac_word=$2
21118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21120 if test "${ac_cv_prog_LD+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 if test -n "$LD"; then
21124 ac_cv_prog_LD="$LD" # Let the user override the test.
21126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $PATH
21130 test -z "$as_dir" && as_dir=.
21131 for ac_exec_ext in '' $ac_executable_extensions; do
21132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21133 ac_cv_prog_LD="${ac_tool_prefix}ld"
21134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21144 if test -n "$LD"; then
21145 { echo "$as_me:$LINENO: result: $LD" >&5
21146 echo "${ECHO_T}$LD" >&6; }
21148 { echo "$as_me:$LINENO: result: no" >&5
21149 echo "${ECHO_T}no" >&6; }
21154 if test -z "$ac_cv_prog_LD"; then
21156 # Extract the first word of "ld", so it can be a program name with args.
21157 set dummy ld; ac_word=$2
21158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21160 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 if test -n "$ac_ct_LD"; then
21164 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $PATH
21170 test -z "$as_dir" && as_dir=.
21171 for ac_exec_ext in '' $ac_executable_extensions; do
21172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21173 ac_cv_prog_ac_ct_LD="ld"
21174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21183 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21184 if test -n "$ac_ct_LD"; then
21185 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21186 echo "${ECHO_T}$ac_ct_LD" >&6; }
21188 { echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6; }
21192 if test "x$ac_ct_LD" = x; then
21195 case $cross_compiling:$ac_tool_warned in
21197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21198 whose name does not start with the host triplet. If you think this
21199 configuration is useful to you, please write to autoconf@gnu.org." >&5
21200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21201 whose name does not start with the host triplet. If you think this
21202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21203 ac_tool_warned=yes ;;
21208 LD="$ac_cv_prog_LD"
21212 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21213 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21214 if test "${ac_cv_header_stdc+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <stdlib.h>
21224 #include <stdarg.h>
21225 #include <string.h>
21236 rm -f conftest.$ac_objext
21237 if { (ac_try="$ac_compile"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21245 grep -v '^ *+' conftest.er1 >conftest.err
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
21250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21251 { (case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_try") 2>&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; } &&
21260 { ac_try='test -s conftest.$ac_objext'
21261 { (case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_try") 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }; then
21270 ac_cv_header_stdc=yes
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_cv_header_stdc=no
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21280 if test $ac_cv_header_stdc = yes; then
21281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 #include <string.h>
21291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21292 $EGREP "memchr" >/dev/null 2>&1; then
21295 ac_cv_header_stdc=no
21301 if test $ac_cv_header_stdc = yes; then
21302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <stdlib.h>
21312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21313 $EGREP "free" >/dev/null 2>&1; then
21316 ac_cv_header_stdc=no
21322 if test $ac_cv_header_stdc = yes; then
21323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21324 if test "$cross_compiling" = yes; then
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21334 #include <stdlib.h>
21335 #if ((' ' & 0x0FF) == 0x020)
21336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21339 # define ISLOWER(c) \
21340 (('a' <= (c) && (c) <= 'i') \
21341 || ('j' <= (c) && (c) <= 'r') \
21342 || ('s' <= (c) && (c) <= 'z'))
21343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21351 for (i = 0; i < 256; i++)
21352 if (XOR (islower (i), ISLOWER (i))
21353 || toupper (i) != TOUPPER (i))
21358 rm -f conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_link") 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21369 { (case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_try") 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21380 echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ( exit $ac_status )
21385 ac_cv_header_stdc=no
21387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21395 if test $ac_cv_header_stdc = yes; then
21397 cat >>confdefs.h <<\_ACEOF
21398 #define STDC_HEADERS 1
21404 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21405 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21406 if test "${knfsd_cv_glibc2+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21416 #include <features.h>
21417 #if !defined(__GLIBC__)
21422 if { (ac_try="$ac_cpp conftest.$ac_ext"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } >/dev/null; then
21435 if test -s conftest.err; then
21436 ac_cpp_err=$ac_c_preproc_warn_flag
21437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21444 if test -z "$ac_cpp_err"; then
21445 knfsd_cv_glibc2=yes
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21453 rm -f conftest.err conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21457 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21458 if test $knfsd_cv_glibc2 = yes; then
21459 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21460 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21464 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21465 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21466 if test "${knfsd_cv_bsd_signals+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 if test "$cross_compiling" = yes; then
21470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21471 See \`config.log' for more details." >&5
21472 echo "$as_me: error: cannot run test program while cross compiling
21473 See \`config.log' for more details." >&2;}
21474 { (exit 1); exit 1; }; }
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21483 #include <signal.h>
21484 #include <unistd.h>
21485 #include <sys/wait.h>
21487 static int counter = 0;
21488 static RETSIGTYPE handler(int num) { counter++; }
21493 if ((s = fork()) < 0) return 1;
21495 if (wait(&s) < 0) return 1;
21496 return WIFSIGNALED(s)? 1 : 0;
21499 signal(SIGHUP, handler);
21500 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21501 return (counter == 2)? 0 : 1;
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_link") 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 knfsd_cv_bsd_signals=yes
21527 echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ( exit $ac_status )
21532 knfsd_cv_bsd_signals=no
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21539 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21540 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21541 test $knfsd_cv_bsd_signals = yes &&
21542 cat >>confdefs.h <<\_ACEOF
21543 #define HAVE_BSD_SIGNALS 1
21548 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21549 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_socket_main+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 ac_check_lib_save_LIBS=$LIBS
21554 LIBS="-lsocket $LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21571 rm -f conftest.$ac_objext conftest$ac_exeext
21572 if { (ac_try="$ac_link"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_link") 2>conftest.er1
21580 grep -v '^ *+' conftest.er1 >conftest.err
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
21585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21586 { (case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_try") 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; } &&
21595 { ac_try='test -s conftest$ac_exeext'
21596 { (case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_try") 2>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ac_cv_lib_socket_main=yes
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_cv_lib_socket_main=no
21613 rm -f conftest.err conftest.$ac_objext \
21614 conftest$ac_exeext conftest.$ac_ext
21615 LIBS=$ac_check_lib_save_LIBS
21617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21618 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21619 if test $ac_cv_lib_socket_main = yes; then
21623 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21624 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21625 if test "${ac_cv_lib_nsl_main+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 ac_check_lib_save_LIBS=$LIBS
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_link") 2>conftest.er1
21655 grep -v '^ *+' conftest.er1 >conftest.err
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } &&
21660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21661 { (case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_try") 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest$ac_exeext'
21671 { (case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_try") 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_lib_nsl_main=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_lib_nsl_main=no
21688 rm -f conftest.err conftest.$ac_objext \
21689 conftest$ac_exeext conftest.$ac_ext
21690 LIBS=$ac_check_lib_save_LIBS
21692 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21693 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21694 if test $ac_cv_lib_nsl_main = yes; then
21698 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21699 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21700 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 ac_check_lib_save_LIBS=$LIBS
21704 LIBS="-lcrypt $LIBS"
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21712 /* Override any GCC internal prototype to avoid an error.
21713 Use char because int might match the return type of a GCC
21714 builtin and then its argument prototype would still apply. */
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731 *) ac_try_echo=$ac_try;;
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734 (eval "$ac_link") 2>conftest.er1
21736 grep -v '^ *+' conftest.er1 >conftest.err
21738 cat conftest.err >&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21742 { (case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_try") 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest$ac_exeext'
21752 { (case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_try") 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 ac_cv_lib_crypt_crypt=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_cv_lib_crypt_crypt=no
21769 rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21771 LIBS=$ac_check_lib_save_LIBS
21773 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21774 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21775 if test $ac_cv_lib_crypt_crypt = yes; then
21779 if test "$enable_nfsv4" = yes; then
21780 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21781 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21782 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-levent $LIBS"
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 /* Override any GCC internal prototype to avoid an error.
21795 Use char because int might match the return type of a GCC
21796 builtin and then its argument prototype would still apply. */
21800 char event_dispatch ();
21804 return event_dispatch ();
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_link") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21824 { (case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_try") 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest$ac_exeext'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_try") 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; }; then
21843 ac_cv_lib_event_event_dispatch=yes
21845 echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848 ac_cv_lib_event_event_dispatch=no
21851 rm -f conftest.err conftest.$ac_objext \
21852 conftest$ac_exeext conftest.$ac_ext
21853 LIBS=$ac_check_lib_save_LIBS
21855 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21856 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21857 if test $ac_cv_lib_event_event_dispatch = yes; then
21860 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21861 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21862 { (exit 1); exit 1; }; }
21865 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21866 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21867 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21870 ac_check_lib_save_LIBS=$LIBS
21871 LIBS="-lnfsidmap $LIBS"
21872 cat >conftest.$ac_ext <<_ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21879 /* Override any GCC internal prototype to avoid an error.
21880 Use char because int might match the return type of a GCC
21881 builtin and then its argument prototype would still apply. */
21885 char nfs4_init_name_mapping ();
21889 return nfs4_init_name_mapping ();
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_link") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } &&
21908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21909 { (case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_try") 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; } &&
21918 { ac_try='test -s conftest$ac_exeext'
21919 { (case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_try") 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21936 rm -f conftest.err conftest.$ac_objext \
21937 conftest$ac_exeext conftest.$ac_ext
21938 LIBS=$ac_check_lib_save_LIBS
21940 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21941 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21942 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21945 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21946 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21947 { (exit 1); exit 1; }; }
21951 for ac_header in event.h
21953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 ac_res=`eval echo '${'$as_ac_Header'}'`
21961 { echo "$as_me:$LINENO: result: $ac_res" >&5
21962 echo "${ECHO_T}$ac_res" >&6; }
21964 # Is the header compilable?
21965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 $ac_includes_default
21974 #include <$ac_header>
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_header_compiler=yes
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_header_compiler=no
22018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22020 echo "${ECHO_T}$ac_header_compiler" >&6; }
22022 # Is the header present?
22023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031 #include <$ac_header>
22033 if { (ac_try="$ac_cpp conftest.$ac_ext"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } >/dev/null; then
22046 if test -s conftest.err; then
22047 ac_cpp_err=$ac_c_preproc_warn_flag
22048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22055 if test -z "$ac_cpp_err"; then
22056 ac_header_preproc=yes
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_header_preproc=no
22064 rm -f conftest.err conftest.$ac_ext
22065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 echo "${ECHO_T}$ac_header_preproc" >&6; }
22068 # So? What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22075 ac_header_preproc=yes
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22091 ## ------------------------------- ##
22092 ## Report this to nfs@lists.sf.net ##
22093 ## ------------------------------- ##
22095 ) | sed "s/^/$as_me: WARNING: /" >&2
22098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 eval "$as_ac_Header=\$ac_header_preproc"
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106 { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22111 cat >>confdefs.h <<_ACEOF
22112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22116 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22117 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22118 { (exit 1); exit 1; }; }
22124 for ac_header in nfsidmap.h
22126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 ac_res=`eval echo '${'$as_ac_Header'}'`
22134 { echo "$as_me:$LINENO: result: $ac_res" >&5
22135 echo "${ECHO_T}$ac_res" >&6; }
22137 # Is the header compilable?
22138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 $ac_includes_default
22147 #include <$ac_header>
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22158 grep -v '^ *+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
22163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22164 { (case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_try") 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; } &&
22173 { ac_try='test -s conftest.$ac_objext'
22174 { (case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_try") 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_header_compiler=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_header_compiler=no
22191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22193 echo "${ECHO_T}$ac_header_compiler" >&6; }
22195 # Is the header present?
22196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 #include <$ac_header>
22206 if { (ac_try="$ac_cpp conftest.$ac_ext"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22214 grep -v '^ *+' conftest.er1 >conftest.err
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } >/dev/null; then
22219 if test -s conftest.err; then
22220 ac_cpp_err=$ac_c_preproc_warn_flag
22221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22228 if test -z "$ac_cpp_err"; then
22229 ac_header_preproc=yes
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22234 ac_header_preproc=no
22237 rm -f conftest.err conftest.$ac_ext
22238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22239 echo "${ECHO_T}$ac_header_preproc" >&6; }
22241 # So? What about this header?
22242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22248 ac_header_preproc=yes
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22264 ## ------------------------------- ##
22265 ## Report this to nfs@lists.sf.net ##
22266 ## ------------------------------- ##
22268 ) | sed "s/^/$as_me: WARNING: /" >&2
22271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 eval "$as_ac_Header=\$ac_header_preproc"
22278 ac_res=`eval echo '${'$as_ac_Header'}'`
22279 { echo "$as_me:$LINENO: result: $ac_res" >&5
22280 echo "${ECHO_T}$ac_res" >&6; }
22283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22284 cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22289 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22290 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22291 { (exit 1); exit 1; }; }
22296 if test "$enable_gss" = yes; then
22299 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22300 if test -n "$ac_tool_prefix"; then
22301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 case $PKG_CONFIG in
22310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22314 for as_dir in $PATH
22317 test -z "$as_dir" && as_dir=.
22318 for ac_exec_ext in '' $ac_executable_extensions; do
22319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22332 if test -n "$PKG_CONFIG"; then
22333 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22334 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22336 { echo "$as_me:$LINENO: result: no" >&5
22337 echo "${ECHO_T}no" >&6; }
22342 if test -z "$ac_cv_path_PKG_CONFIG"; then
22343 ac_pt_PKG_CONFIG=$PKG_CONFIG
22344 # Extract the first word of "pkg-config", so it can be a program name with args.
22345 set dummy pkg-config; ac_word=$2
22346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22348 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 case $ac_pt_PKG_CONFIG in
22353 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22360 test -z "$as_dir" && as_dir=.
22361 for ac_exec_ext in '' $ac_executable_extensions; do
22362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22363 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22374 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22375 if test -n "$ac_pt_PKG_CONFIG"; then
22376 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22377 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22379 { echo "$as_me:$LINENO: result: no" >&5
22380 echo "${ECHO_T}no" >&6; }
22383 if test "x$ac_pt_PKG_CONFIG" = x; then
22386 case $cross_compiling:$ac_tool_warned in
22388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22389 whose name does not start with the host triplet. If you think this
22390 configuration is useful to you, please write to autoconf@gnu.org." >&5
22391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22392 whose name does not start with the host triplet. If you think this
22393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22394 ac_tool_warned=yes ;;
22396 PKG_CONFIG=$ac_pt_PKG_CONFIG
22399 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22403 if test -n "$PKG_CONFIG"; then
22404 _pkg_min_version=0.9.0
22405 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22406 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22407 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22408 { echo "$as_me:$LINENO: result: yes" >&5
22409 echo "${ECHO_T}yes" >&6; }
22411 { echo "$as_me:$LINENO: result: no" >&5
22412 echo "${ECHO_T}no" >&6; }
22419 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22420 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22422 if test -n "$PKG_CONFIG"; then
22423 if test -n "$RPCSECGSS_CFLAGS"; then
22424 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22426 if test -n "$PKG_CONFIG" && \
22427 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22428 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; then
22432 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22440 if test -n "$PKG_CONFIG"; then
22441 if test -n "$RPCSECGSS_LIBS"; then
22442 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22444 if test -n "$PKG_CONFIG" && \
22445 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22446 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; then
22450 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22461 if test $pkg_failed = yes; then
22463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22464 _pkg_short_errors_supported=yes
22466 _pkg_short_errors_supported=no
22468 if test $_pkg_short_errors_supported = yes; then
22469 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22471 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22473 # Put the nasty error message in config.log where it belongs
22474 echo "$RPCSECGSS_PKG_ERRORS" >&5
22476 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22477 If you have pkgconfig installed, you might try setting environment
22478 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22479 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22480 If you have pkgconfig installed, you might try setting environment
22481 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22482 { (exit 1); exit 1; }; }
22485 elif test $pkg_failed = untried; then
22486 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22487 If you have pkgconfig installed, you might try setting environment
22488 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22489 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22490 If you have pkgconfig installed, you might try setting environment
22491 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22492 { (exit 1); exit 1; }; }
22496 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22497 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22498 { echo "$as_me:$LINENO: result: yes" >&5
22499 echo "${ECHO_T}yes" >&6; }
22504 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22505 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22507 if test -n "$PKG_CONFIG"; then
22508 if test -n "$GSSAPI_CFLAGS"; then
22509 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22511 if test -n "$PKG_CONFIG" && \
22512 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22513 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; then
22517 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22525 if test -n "$PKG_CONFIG"; then
22526 if test -n "$GSSAPI_LIBS"; then
22527 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22529 if test -n "$PKG_CONFIG" && \
22530 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22531 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; then
22535 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22546 if test $pkg_failed = yes; then
22548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22549 _pkg_short_errors_supported=yes
22551 _pkg_short_errors_supported=no
22553 if test $_pkg_short_errors_supported = yes; then
22554 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22556 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22558 # Put the nasty error message in config.log where it belongs
22559 echo "$GSSAPI_PKG_ERRORS" >&5
22561 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22565 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22566 installed software in a non-standard prefix.
22568 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22569 and GSSAPI_LIBS to avoid the need to call pkg-config.
22570 See the pkg-config man page for more details.
22572 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22576 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22577 installed software in a non-standard prefix.
22579 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22580 and GSSAPI_LIBS to avoid the need to call pkg-config.
22581 See the pkg-config man page for more details.
22583 { (exit 1); exit 1; }; }
22584 elif test $pkg_failed = untried; then
22585 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22586 is in your PATH or set the PKG_CONFIG environment variable to the full
22587 path to pkg-config.
22589 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22590 and GSSAPI_LIBS to avoid the need to call pkg-config.
22591 See the pkg-config man page for more details.
22593 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22594 See \`config.log' for more details." >&5
22595 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22596 is in your PATH or set the PKG_CONFIG environment variable to the full
22597 path to pkg-config.
22599 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22600 and GSSAPI_LIBS to avoid the need to call pkg-config.
22601 See the pkg-config man page for more details.
22603 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22604 See \`config.log' for more details." >&2;}
22605 { (exit 1); exit 1; }; }
22607 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22608 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22609 { echo "$as_me:$LINENO: result: yes" >&5
22610 echo "${ECHO_T}yes" >&6; }
22616 if test "$knfsd_cv_glibc2" = no; then
22617 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22618 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22619 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 ac_check_lib_save_LIBS=$LIBS
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_link") 2>conftest.er1
22655 grep -v '^ *+' conftest.er1 >conftest.err
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } &&
22660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22661 { (case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666 (eval "$ac_try") 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } &&
22670 { ac_try='test -s conftest$ac_exeext'
22671 { (case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_try") 2>&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; }; then
22680 ac_cv_lib_bsd_daemon=yes
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_bsd_daemon=no
22688 rm -f conftest.err conftest.$ac_objext \
22689 conftest$ac_exeext conftest.$ac_ext
22690 LIBS=$ac_check_lib_save_LIBS
22692 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22693 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22694 if test $ac_cv_lib_bsd_daemon = yes; then
22704 if test "$enable_gss" = yes; then
22706 for ac_header in nfsidmap.h
22708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 ac_res=`eval echo '${'$as_ac_Header'}'`
22716 { echo "$as_me:$LINENO: result: $ac_res" >&5
22717 echo "${ECHO_T}$ac_res" >&6; }
22719 # Is the header compilable?
22720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 $ac_includes_default
22729 #include <$ac_header>
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
22745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22746 { (case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_try") 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; } &&
22755 { ac_try='test -s conftest.$ac_objext'
22756 { (case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761 (eval "$ac_try") 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ac_header_compiler=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ac_header_compiler=no
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22775 echo "${ECHO_T}$ac_header_compiler" >&6; }
22777 # Is the header present?
22778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 #include <$ac_header>
22788 if { (ac_try="$ac_cpp conftest.$ac_ext"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } >/dev/null; then
22801 if test -s conftest.err; then
22802 ac_cpp_err=$ac_c_preproc_warn_flag
22803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22810 if test -z "$ac_cpp_err"; then
22811 ac_header_preproc=yes
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22816 ac_header_preproc=no
22819 rm -f conftest.err conftest.$ac_ext
22820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22821 echo "${ECHO_T}$ac_header_preproc" >&6; }
22823 # So? What about this header?
22824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22830 ac_header_preproc=yes
22833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22846 ## ------------------------------- ##
22847 ## Report this to nfs@lists.sf.net ##
22848 ## ------------------------------- ##
22850 ) | sed "s/^/$as_me: WARNING: /" >&2
22853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22858 eval "$as_ac_Header=\$ac_header_preproc"
22860 ac_res=`eval echo '${'$as_ac_Header'}'`
22861 { echo "$as_me:$LINENO: result: $ac_res" >&5
22862 echo "${ECHO_T}$ac_res" >&6; }
22865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22866 cat >>confdefs.h <<_ACEOF
22867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22871 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22872 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22873 { (exit 1); exit 1; }; }
22879 for ac_header in spkm3.h
22881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 ac_res=`eval echo '${'$as_ac_Header'}'`
22889 { echo "$as_me:$LINENO: result: $ac_res" >&5
22890 echo "${ECHO_T}$ac_res" >&6; }
22892 # Is the header compilable?
22893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 $ac_includes_default
22902 #include <$ac_header>
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22913 grep -v '^ *+' conftest.er1 >conftest.err
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
22918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22919 { (case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_try") 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
22929 { (case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_try") 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 ac_header_compiler=yes
22940 echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 ac_header_compiler=no
22946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22948 echo "${ECHO_T}$ac_header_compiler" >&6; }
22950 # Is the header present?
22951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 #include <$ac_header>
22961 if { (ac_try="$ac_cpp conftest.$ac_ext"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } >/dev/null; then
22974 if test -s conftest.err; then
22975 ac_cpp_err=$ac_c_preproc_warn_flag
22976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22983 if test -z "$ac_cpp_err"; then
22984 ac_header_preproc=yes
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22989 ac_header_preproc=no
22992 rm -f conftest.err conftest.$ac_ext
22993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22994 echo "${ECHO_T}$ac_header_preproc" >&6; }
22996 # So? What about this header?
22997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23003 ac_header_preproc=yes
23006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23019 ## ------------------------------- ##
23020 ## Report this to nfs@lists.sf.net ##
23021 ## ------------------------------- ##
23023 ) | sed "s/^/$as_me: WARNING: /" >&2
23026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23031 eval "$as_ac_Header=\$ac_header_preproc"
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034 { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23039 cat >>confdefs.h <<_ACEOF
23040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23044 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23045 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23052 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23053 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23055 # Check whether --with-krb5 was given.
23056 if test "${with_krb5+set}" = set; then
23057 withval=$with_krb5; case "$withval" in
23062 krb5_with="$withval"
23069 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23070 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23072 if test -f $dir/bin/krb5-config; then
23073 K5CONFIG=$dir/bin/krb5-config
23074 elif test -f "/usr/kerberos/bin/krb5-config"; then
23075 K5CONFIG="/usr/kerberos/bin/krb5-config"
23076 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23077 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23079 if test "$K5CONFIG" != ""; then
23080 KRBCFLAGS=`$K5CONFIG --cflags`
23081 KRBLIBS=`$K5CONFIG --libs gssapi`
23082 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23084 cat >>confdefs.h <<_ACEOF
23085 #define KRB5_VERSION $K5VERS
23088 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23089 \( -f $dir/lib/libgssapi_krb5.a -o \
23090 -f $dir/lib/libgssapi_krb5.so \) ; then
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_KRB5 1
23097 if test $K5VERS -le 131; then
23099 cat >>confdefs.h <<\_ACEOF
23100 #define USE_GSS_KRB5_CCACHE_NAME 1
23104 gssapi_lib=gssapi_krb5
23106 elif test \( -f $dir/include/heim_err.h -o\
23107 -f $dir/include/heimdal/heim_err.h \) -a \
23108 -f $dir/lib/libroken.a; then
23110 cat >>confdefs.h <<\_ACEOF
23111 #define HAVE_HEIMDAL 1
23120 if test "x$KRBDIR" = "x"; then
23121 if test "x$krb5_with" = "x"; then
23122 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23123 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23124 { (exit 1); exit 1; }; }
23126 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23127 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23128 { (exit 1); exit 1; }; }
23131 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23132 echo "${ECHO_T}$KRBDIR" >&6; }
23134 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23135 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23136 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23137 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 ac_check_lib_save_LIBS=$LIBS
23141 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23142 cat >conftest.$ac_ext <<_ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23149 /* Override any GCC internal prototype to avoid an error.
23150 Use char because int might match the return type of a GCC
23151 builtin and then its argument prototype would still apply. */
23155 char gss_krb5_export_lucid_sec_context ();
23159 return gss_krb5_export_lucid_sec_context ();
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_link") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23179 { (case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_try") 2>&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; } &&
23188 { ac_try='test -s conftest$ac_exeext'
23189 { (case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_try") 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 eval "$as_ac_Lib=yes"
23200 echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23203 eval "$as_ac_Lib=no"
23206 rm -f conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23210 ac_res=`eval echo '${'$as_ac_Lib'}'`
23211 { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23213 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23221 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23222 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23223 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23224 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 ac_check_lib_save_LIBS=$LIBS
23228 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23236 /* Override any GCC internal prototype to avoid an error.
23237 Use char because int might match the return type of a GCC
23238 builtin and then its argument prototype would still apply. */
23242 char gss_krb5_set_allowable_enctypes ();
23246 return gss_krb5_set_allowable_enctypes ();
23251 rm -f conftest.$ac_objext conftest$ac_exeext
23252 if { (ac_try="$ac_link"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23258 (eval "$ac_link") 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23266 { (case "(($ac_try" in
23267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268 *) ac_try_echo=$ac_try;;
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271 (eval "$ac_try") 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 eval "$as_ac_Lib=yes"
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 eval "$as_ac_Lib=no"
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 ac_res=`eval echo '${'$as_ac_Lib'}'`
23298 { echo "$as_me:$LINENO: result: $ac_res" >&5
23299 echo "${ECHO_T}$ac_res" >&6; }
23300 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23308 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23309 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23310 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23323 /* Override any GCC internal prototype to avoid an error.
23324 Use char because int might match the return type of a GCC
23325 builtin and then its argument prototype would still apply. */
23329 char gss_krb5_ccache_name ();
23333 return gss_krb5_ccache_name ();
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (ac_try="$ac_link"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_link") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 eval "$as_ac_Lib=yes"
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 eval "$as_ac_Lib=no"
23380 rm -f conftest.err conftest.$ac_objext \
23381 conftest$ac_exeext conftest.$ac_ext
23382 LIBS=$ac_check_lib_save_LIBS
23384 ac_res=`eval echo '${'$as_ac_Lib'}'`
23385 { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23387 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23396 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23397 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23398 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23408 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23409 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23410 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23413 ac_check_lib_save_LIBS=$LIBS
23414 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23415 cat >conftest.$ac_ext <<_ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23422 /* Override any GCC internal prototype to avoid an error.
23423 Use char because int might match the return type of a GCC
23424 builtin and then its argument prototype would still apply. */
23428 char authgss_create_default ();
23432 return authgss_create_default ();
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_link") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452 { (case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_lib_rpcsecgss_authgss_create_default=no
23479 rm -f conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23483 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23484 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23485 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23488 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23489 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23490 { (exit 1); exit 1; }; }
23493 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23494 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23495 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23507 /* Override any GCC internal prototype to avoid an error.
23508 Use char because int might match the return type of a GCC
23509 builtin and then its argument prototype would still apply. */
23513 char authgss_set_debug_level ();
23517 return authgss_set_debug_level ();
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_link") 2>conftest.er1
23531 grep -v '^ *+' conftest.er1 >conftest.err
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } &&
23536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23537 { (case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_try") 2>&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; } &&
23546 { ac_try='test -s conftest$ac_exeext'
23547 { (case "(($ac_try" in
23548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549 *) ac_try_echo=$ac_try;;
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552 (eval "$ac_try") 2>&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23564 rm -f conftest.err conftest.$ac_objext \
23565 conftest$ac_exeext conftest.$ac_ext
23566 LIBS=$ac_check_lib_save_LIBS
23568 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23569 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23570 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23572 cat >>confdefs.h <<\_ACEOF
23573 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23604 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23605 malloc.h memory.h netdb.h netinet/in.h paths.h \
23606 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23607 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23608 syslog.h unistd.h com_err.h et/com_err.h \
23611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 ac_res=`eval echo '${'$as_ac_Header'}'`
23619 { echo "$as_me:$LINENO: result: $ac_res" >&5
23620 echo "${ECHO_T}$ac_res" >&6; }
23622 # Is the header compilable?
23623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 $ac_includes_default
23632 #include <$ac_header>
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_compile") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } &&
23648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23649 { (case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654 (eval "$ac_try") 2>&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (case "(($ac_try" in
23660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661 *) ac_try_echo=$ac_try;;
23663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664 (eval "$ac_try") 2>&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; }; then
23668 ac_header_compiler=yes
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_header_compiler=no
23676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23678 echo "${ECHO_T}$ac_header_compiler" >&6; }
23680 # Is the header present?
23681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 #include <$ac_header>
23691 if { (ac_try="$ac_cpp conftest.$ac_ext"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23699 grep -v '^ *+' conftest.er1 >conftest.err
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } >/dev/null; then
23704 if test -s conftest.err; then
23705 ac_cpp_err=$ac_c_preproc_warn_flag
23706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23713 if test -z "$ac_cpp_err"; then
23714 ac_header_preproc=yes
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_header_preproc=no
23722 rm -f conftest.err conftest.$ac_ext
23723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23724 echo "${ECHO_T}$ac_header_preproc" >&6; }
23726 # So? What about this header?
23727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23733 ac_header_preproc=yes
23736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23749 ## ------------------------------- ##
23750 ## Report this to nfs@lists.sf.net ##
23751 ## ------------------------------- ##
23753 ) | sed "s/^/$as_me: WARNING: /" >&2
23756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23759 echo $ECHO_N "(cached) $ECHO_C" >&6
23761 eval "$as_ac_Header=\$ac_header_preproc"
23763 ac_res=`eval echo '${'$as_ac_Header'}'`
23764 { echo "$as_me:$LINENO: result: $ac_res" >&5
23765 echo "${ECHO_T}$ac_res" >&6; }
23768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23769 cat >>confdefs.h <<_ACEOF
23770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23780 if test "${ac_cv_c_const+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 cat >conftest.$ac_ext <<_ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23793 /* FIXME: Include the comments suggested by Paul. */
23794 #ifndef __cplusplus
23795 /* Ultrix mips cc rejects this. */
23796 typedef int charset[2];
23798 /* SunOS 4.1.1 cc rejects this. */
23799 char const *const *ccp;
23801 /* NEC SVR4.0.2 mips cc rejects this. */
23802 struct point {int x, y;};
23803 static struct point const zero = {0,0};
23804 /* AIX XL C 1.02.0.0 rejects this.
23805 It does not let you subtract one const X* pointer from another in
23806 an arm of an if-expression whose if-part is not a constant
23808 const char *g = "string";
23809 ccp = &g + (g ? g-g : 0);
23810 /* HPUX 7.0 cc rejects these. */
23813 ccp = (char const *const *) p;
23814 { /* SCO 3.2v4 cc rejects this. */
23816 char const *s = 0 ? (char *) 0 : (char const *) 0;
23821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23822 int x[] = {25, 17};
23823 const int *foo = &x[0];
23826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23827 typedef const int *iptr;
23831 { /* AIX XL C 1.02.0.0 rejects this saying
23832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23833 struct s { int j; const int *ap[3]; };
23834 struct s *b; b->j = 5;
23836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23837 const int foo = 10;
23838 if (!foo) return 0;
23840 return !x[0] && !zero.x;
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23856 grep -v '^ *+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } &&
23861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23862 { (case "(($ac_try" in
23863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864 *) ac_try_echo=$ac_try;;
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867 (eval "$ac_try") 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest.$ac_objext'
23872 { (case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877 (eval "$ac_try") 2>&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23892 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23893 if test $ac_cv_c_const = no; then
23895 cat >>confdefs.h <<\_ACEOF
23901 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23902 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23903 if test "${ac_cv_type_uid_t+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 cat >conftest.$ac_ext <<_ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 #include <sys/types.h>
23915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23916 $EGREP "uid_t" >/dev/null 2>&1; then
23917 ac_cv_type_uid_t=yes
23919 ac_cv_type_uid_t=no
23924 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23925 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23926 if test $ac_cv_type_uid_t = no; then
23928 cat >>confdefs.h <<\_ACEOF
23933 cat >>confdefs.h <<\_ACEOF
23939 { echo "$as_me:$LINENO: checking for inline" >&5
23940 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23941 if test "${ac_cv_c_inline+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 for ac_kw in inline __inline__ __inline; do
23946 cat >conftest.$ac_ext <<_ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h. */
23952 #ifndef __cplusplus
23954 static $ac_kw foo_t static_foo () {return 0; }
23955 $ac_kw foo_t foo () {return 0; }
23959 rm -f conftest.$ac_objext
23960 if { (ac_try="$ac_compile"
23961 case "(($ac_try" in
23962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963 *) ac_try_echo=$ac_try;;
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966 (eval "$ac_compile") 2>conftest.er1
23968 grep -v '^ *+' conftest.er1 >conftest.err
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23974 { (case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979 (eval "$ac_try") 2>&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; } &&
23983 { ac_try='test -s conftest.$ac_objext'
23984 { (case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989 (eval "$ac_try") 2>&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 ac_cv_c_inline=$ac_kw
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
24001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24002 test "$ac_cv_c_inline" != no && break
24006 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24007 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24010 case $ac_cv_c_inline in
24013 case $ac_cv_c_inline in
24015 *) ac_val=$ac_cv_c_inline;;
24017 cat >>confdefs.h <<_ACEOF
24018 #ifndef __cplusplus
24019 #define inline $ac_val
24025 { echo "$as_me:$LINENO: checking for off_t" >&5
24026 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24027 if test "${ac_cv_type_off_t+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 $ac_includes_default
24037 typedef off_t ac__type_new_;
24041 if ((ac__type_new_ *) 0)
24043 if (sizeof (ac__type_new_))
24049 rm -f conftest.$ac_objext
24050 if { (ac_try="$ac_compile"
24051 case "(($ac_try" in
24052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056 (eval "$ac_compile") 2>conftest.er1
24058 grep -v '^ *+' conftest.er1 >conftest.err
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } &&
24063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24064 { (case "(($ac_try" in
24065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24066 *) ac_try_echo=$ac_try;;
24068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24069 (eval "$ac_try") 2>&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); }; } &&
24073 { ac_try='test -s conftest.$ac_objext'
24074 { (case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_try") 2>&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 ac_cv_type_off_t=yes
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24088 ac_cv_type_off_t=no
24091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24093 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24094 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24095 if test $ac_cv_type_off_t = yes; then
24099 cat >>confdefs.h <<_ACEOF
24100 #define off_t long int
24105 { echo "$as_me:$LINENO: checking for pid_t" >&5
24106 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24107 if test "${ac_cv_type_pid_t+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 $ac_includes_default
24117 typedef pid_t ac__type_new_;
24121 if ((ac__type_new_ *) 0)
24123 if (sizeof (ac__type_new_))
24129 rm -f conftest.$ac_objext
24130 if { (ac_try="$ac_compile"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_compile") 2>conftest.er1
24138 grep -v '^ *+' conftest.er1 >conftest.err
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
24143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24144 { (case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_try") 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; } &&
24153 { ac_try='test -s conftest.$ac_objext'
24154 { (case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159 (eval "$ac_try") 2>&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_cv_type_pid_t=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_cv_type_pid_t=no
24171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24173 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24174 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24175 if test $ac_cv_type_pid_t = yes; then
24179 cat >>confdefs.h <<_ACEOF
24185 { echo "$as_me:$LINENO: checking for size_t" >&5
24186 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24187 if test "${ac_cv_type_size_t+set}" = set; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24190 cat >conftest.$ac_ext <<_ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24196 $ac_includes_default
24197 typedef size_t ac__type_new_;
24201 if ((ac__type_new_ *) 0)
24203 if (sizeof (ac__type_new_))
24209 rm -f conftest.$ac_objext
24210 if { (ac_try="$ac_compile"
24211 case "(($ac_try" in
24212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213 *) ac_try_echo=$ac_try;;
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_compile") 2>conftest.er1
24218 grep -v '^ *+' conftest.er1 >conftest.err
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24224 { (case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_try") 2>&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; } &&
24233 { ac_try='test -s conftest.$ac_objext'
24234 { (case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_try") 2>&5
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); }; }; then
24243 ac_cv_type_size_t=yes
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ac_cv_type_size_t=no
24251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24253 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24254 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24255 if test $ac_cv_type_size_t = yes; then
24259 cat >>confdefs.h <<_ACEOF
24260 #define size_t unsigned int
24265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24267 if test "${ac_cv_header_time+set}" = set; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 cat >conftest.$ac_ext <<_ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h. */
24276 #include <sys/types.h>
24277 #include <sys/time.h>
24283 if ((struct tm *) 0)
24289 rm -f conftest.$ac_objext
24290 if { (ac_try="$ac_compile"
24291 case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296 (eval "$ac_compile") 2>conftest.er1
24298 grep -v '^ *+' conftest.er1 >conftest.err
24300 cat conftest.err >&5
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); } &&
24303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24304 { (case "(($ac_try" in
24305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306 *) ac_try_echo=$ac_try;;
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309 (eval "$ac_try") 2>&5
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; } &&
24313 { ac_try='test -s conftest.$ac_objext'
24314 { (case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_try") 2>&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_header_time=yes
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 ac_cv_header_time=no
24331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24333 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24334 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24335 if test $ac_cv_header_time = yes; then
24337 cat >>confdefs.h <<\_ACEOF
24338 #define TIME_WITH_SYS_TIME 1
24343 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24344 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24345 if test "${ac_cv_struct_tm+set}" = set; then
24346 echo $ECHO_N "(cached) $ECHO_C" >&6
24348 cat >conftest.$ac_ext <<_ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 #include <sys/types.h>
24360 struct tm *tp; tp->tm_sec;
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
24379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_try") 2>&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest.$ac_objext'
24390 { (case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_try") 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 ac_cv_struct_tm=time.h
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24404 ac_cv_struct_tm=sys/time.h
24407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24409 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24410 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24411 if test $ac_cv_struct_tm = sys/time.h; then
24413 cat >>confdefs.h <<\_ACEOF
24414 #define TM_IN_SYS_TIME 1
24420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24421 # for constant arguments. Useless!
24422 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24423 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24424 if test "${ac_cv_working_alloca_h+set}" = set; then
24425 echo $ECHO_N "(cached) $ECHO_C" >&6
24427 cat >conftest.$ac_ext <<_ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 #include <alloca.h>
24437 char *p = (char *) alloca (2 * sizeof (int));
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_link") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } &&
24456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24457 { (case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_try") 2>&5
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; } &&
24466 { ac_try='test -s conftest$ac_exeext'
24467 { (case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472 (eval "$ac_try") 2>&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 ac_cv_working_alloca_h=yes
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24481 ac_cv_working_alloca_h=no
24484 rm -f conftest.err conftest.$ac_objext \
24485 conftest$ac_exeext conftest.$ac_ext
24487 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24488 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24489 if test $ac_cv_working_alloca_h = yes; then
24491 cat >>confdefs.h <<\_ACEOF
24492 #define HAVE_ALLOCA_H 1
24497 { echo "$as_me:$LINENO: checking for alloca" >&5
24498 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24499 if test "${ac_cv_func_alloca_works+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24509 # define alloca __builtin_alloca
24512 # include <malloc.h>
24513 # define alloca _alloca
24516 # include <alloca.h>
24521 # ifndef alloca /* predefined by HP cc +Olibcalls */
24532 char *p = (char *) alloca (1);
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } &&
24551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try='test -s conftest$ac_exeext'
24562 { (case "(($ac_try" in
24563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_try") 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 ac_cv_func_alloca_works=yes
24573 echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24576 ac_cv_func_alloca_works=no
24579 rm -f conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
24582 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24583 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24585 if test $ac_cv_func_alloca_works = yes; then
24587 cat >>confdefs.h <<\_ACEOF
24588 #define HAVE_ALLOCA 1
24592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24593 # that cause trouble. Some versions do not even contain alloca or
24594 # contain a buggy version. If you still want to use their alloca,
24595 # use ar to extract alloca.o from them instead of compiling alloca.c.
24597 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24599 cat >>confdefs.h <<\_ACEOF
24604 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24605 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24606 if test "${ac_cv_os_cray+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 cat >conftest.$ac_ext <<_ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 #if defined CRAY && ! defined CRAY2
24622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24623 $EGREP "webecray" >/dev/null 2>&1; then
24631 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24632 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24633 if test $ac_cv_os_cray = yes; then
24634 for ac_func in _getb67 GETB67 getb67; do
24635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 cat >conftest.$ac_ext <<_ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24649 #define $ac_func innocuous_$ac_func
24651 /* System header to define __stub macros and hopefully few prototypes,
24652 which can conflict with char $ac_func (); below.
24653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24654 <limits.h> exists even on freestanding compilers. */
24657 # include <limits.h>
24659 # include <assert.h>
24664 /* Override any GCC internal prototype to avoid an error.
24665 Use char because int might match the return type of a GCC
24666 builtin and then its argument prototype would still apply. */
24671 /* The GNU C library defines this for functions which it implements
24672 to always fail with ENOSYS. Some functions are actually named
24673 something starting with __ and the normal name is an alias. */
24674 #if defined __stub_$ac_func || defined __stub___$ac_func
24681 return $ac_func ();
24686 rm -f conftest.$ac_objext conftest$ac_exeext
24687 if { (ac_try="$ac_link"
24688 case "(($ac_try" in
24689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_link") 2>conftest.er1
24695 grep -v '^ *+' conftest.er1 >conftest.err
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } &&
24700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24701 { (case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_try") 2>&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); }; } &&
24710 { ac_try='test -s conftest$ac_exeext'
24711 { (case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716 (eval "$ac_try") 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 eval "$as_ac_var=yes"
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 eval "$as_ac_var=no"
24728 rm -f conftest.err conftest.$ac_objext \
24729 conftest$ac_exeext conftest.$ac_ext
24731 ac_res=`eval echo '${'$as_ac_var'}'`
24732 { echo "$as_me:$LINENO: result: $ac_res" >&5
24733 echo "${ECHO_T}$ac_res" >&6; }
24734 if test `eval echo '${'$as_ac_var'}'` = yes; then
24736 cat >>confdefs.h <<_ACEOF
24737 #define CRAY_STACKSEG_END $ac_func
24746 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24748 if test "${ac_cv_c_stack_direction+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 if test "$cross_compiling" = yes; then
24752 ac_cv_c_stack_direction=0
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 $ac_includes_default
24762 find_stack_direction ()
24764 static char *addr = 0;
24769 return find_stack_direction ();
24772 return (&dummy > addr) ? 1 : -1;
24778 return find_stack_direction () < 0;
24781 rm -f conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 (eval "$ac_link") 2>&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792 { (case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_try") 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_c_stack_direction=1
24803 echo "$as_me: program exited with status $ac_status" >&5
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ( exit $ac_status )
24808 ac_cv_c_stack_direction=-1
24810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24818 cat >>confdefs.h <<_ACEOF
24819 #define STACK_DIRECTION $ac_cv_c_stack_direction
24830 ac_header_dirent=no
24831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24833 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 #include <sys/types.h>
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24865 grep -v '^ *+' conftest.er1 >conftest.err
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
24870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24871 { (case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_try") 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; } &&
24880 { ac_try='test -s conftest.$ac_objext'
24881 { (case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_try") 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 eval "$as_ac_Header=yes"
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 eval "$as_ac_Header=no"
24898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24900 ac_res=`eval echo '${'$as_ac_Header'}'`
24901 { echo "$as_me:$LINENO: result: $ac_res" >&5
24902 echo "${ECHO_T}$ac_res" >&6; }
24903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24904 cat >>confdefs.h <<_ACEOF
24905 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24908 ac_header_dirent=$ac_hdr; break
24912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24913 if test $ac_header_dirent = dirent.h; then
24914 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24916 if test "${ac_cv_search_opendir+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24919 ac_func_search_save_LIBS=$LIBS
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24927 /* Override any GCC internal prototype to avoid an error.
24928 Use char because int might match the return type of a GCC
24929 builtin and then its argument prototype would still apply. */
24942 for ac_lib in '' dir; do
24943 if test -z "$ac_lib"; then
24944 ac_res="none required"
24947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24949 rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953 *) ac_try_echo=$ac_try;;
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956 (eval "$ac_link") 2>conftest.er1
24958 grep -v '^ *+' conftest.er1 >conftest.err
24960 cat conftest.err >&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } &&
24963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24964 { (case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_try") 2>&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; } &&
24973 { ac_try='test -s conftest$ac_exeext'
24974 { (case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979 (eval "$ac_try") 2>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24983 ac_cv_search_opendir=$ac_res
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24991 rm -f conftest.err conftest.$ac_objext \
24993 if test "${ac_cv_search_opendir+set}" = set; then
24997 if test "${ac_cv_search_opendir+set}" = set; then
25000 ac_cv_search_opendir=no
25002 rm conftest.$ac_ext
25003 LIBS=$ac_func_search_save_LIBS
25005 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25006 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25007 ac_res=$ac_cv_search_opendir
25008 if test "$ac_res" != no; then
25009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25014 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25015 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25016 if test "${ac_cv_search_opendir+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 ac_func_search_save_LIBS=$LIBS
25020 cat >conftest.$ac_ext <<_ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h. */
25027 /* Override any GCC internal prototype to avoid an error.
25028 Use char because int might match the return type of a GCC
25029 builtin and then its argument prototype would still apply. */
25042 for ac_lib in '' x; do
25043 if test -z "$ac_lib"; then
25044 ac_res="none required"
25047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (ac_try="$ac_link"
25051 case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_link") 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } &&
25063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_try") 2>&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); }; }; then
25083 ac_cv_search_opendir=$ac_res
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25091 rm -f conftest.err conftest.$ac_objext \
25093 if test "${ac_cv_search_opendir+set}" = set; then
25097 if test "${ac_cv_search_opendir+set}" = set; then
25100 ac_cv_search_opendir=no
25102 rm conftest.$ac_ext
25103 LIBS=$ac_func_search_save_LIBS
25105 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25106 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25107 ac_res=$ac_cv_search_opendir
25108 if test "$ac_res" != no; then
25109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25115 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25116 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25117 if test "${ac_cv_func_closedir_void+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25120 if test "$cross_compiling" = yes; then
25121 ac_cv_func_closedir_void=yes
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25129 $ac_includes_default
25130 #include <$ac_header_dirent>
25131 #ifndef __cplusplus
25138 return closedir (opendir (".")) != 0;
25143 rm -f conftest$ac_exeext
25144 if { (ac_try="$ac_link"
25145 case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_link") 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25154 { (case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_try") 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_func_closedir_void=no
25165 echo "$as_me: program exited with status $ac_status" >&5
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ( exit $ac_status )
25170 ac_cv_func_closedir_void=yes
25172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25178 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25179 if test $ac_cv_func_closedir_void = yes; then
25181 cat >>confdefs.h <<\_ACEOF
25182 #define CLOSEDIR_VOID 1
25187 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25188 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25189 if test "${ac_cv_lib_error_at_line+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 $ac_includes_default
25202 error_at_line (0, 0, "", 0, "");
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>conftest.er1
25216 grep -v '^ *+' conftest.er1 >conftest.err
25218 cat conftest.err >&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } &&
25221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25222 { (case "(($ac_try" in
25223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224 *) ac_try_echo=$ac_try;;
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227 (eval "$ac_try") 2>&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; } &&
25231 { ac_try='test -s conftest$ac_exeext'
25232 { (case "(($ac_try" in
25233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25234 *) ac_try_echo=$ac_try;;
25236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25237 (eval "$ac_try") 2>&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 ac_cv_lib_error_at_line=yes
25243 echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ac_cv_lib_error_at_line=no
25249 rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25252 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25253 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25254 if test $ac_cv_lib_error_at_line = no; then
25255 case " $LIBOBJS " in
25256 *" error.$ac_objext "* ) ;;
25257 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25264 for ac_header in vfork.h
25266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 ac_res=`eval echo '${'$as_ac_Header'}'`
25274 { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25277 # Is the header compilable?
25278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 $ac_includes_default
25287 #include <$ac_header>
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25304 { (case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_try") 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; } &&
25313 { ac_try='test -s conftest.$ac_objext'
25314 { (case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_try") 2>&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); }; }; then
25323 ac_header_compiler=yes
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ac_header_compiler=no
25331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h. */
25344 #include <$ac_header>
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25354 grep -v '^ *+' conftest.er1 >conftest.err
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } >/dev/null; then
25359 if test -s conftest.err; then
25360 ac_cpp_err=$ac_c_preproc_warn_flag
25361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25368 if test -z "$ac_cpp_err"; then
25369 ac_header_preproc=yes
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_header_preproc=no
25377 rm -f conftest.err conftest.$ac_ext
25378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 echo "${ECHO_T}$ac_header_preproc" >&6; }
25381 # So? What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25388 ac_header_preproc=yes
25391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25404 ## ------------------------------- ##
25405 ## Report this to nfs@lists.sf.net ##
25406 ## ------------------------------- ##
25408 ) | sed "s/^/$as_me: WARNING: /" >&2
25411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 eval "$as_ac_Header=\$ac_header_preproc"
25418 ac_res=`eval echo '${'$as_ac_Header'}'`
25419 { echo "$as_me:$LINENO: result: $ac_res" >&5
25420 echo "${ECHO_T}$ac_res" >&6; }
25423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25424 cat >>confdefs.h <<_ACEOF
25425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25434 for ac_func in fork vfork
25436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25450 #define $ac_func innocuous_$ac_func
25452 /* System header to define __stub macros and hopefully few prototypes,
25453 which can conflict with char $ac_func (); below.
25454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25455 <limits.h> exists even on freestanding compilers. */
25458 # include <limits.h>
25460 # include <assert.h>
25465 /* Override any GCC internal prototype to avoid an error.
25466 Use char because int might match the return type of a GCC
25467 builtin and then its argument prototype would still apply. */
25472 /* The GNU C library defines this for functions which it implements
25473 to always fail with ENOSYS. Some functions are actually named
25474 something starting with __ and the normal name is an alias. */
25475 #if defined __stub_$ac_func || defined __stub___$ac_func
25482 return $ac_func ();
25487 rm -f conftest.$ac_objext conftest$ac_exeext
25488 if { (ac_try="$ac_link"
25489 case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_link") 2>conftest.er1
25496 grep -v '^ *+' conftest.er1 >conftest.err
25498 cat conftest.err >&5
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } &&
25501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25502 { (case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_try") 2>&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; } &&
25511 { ac_try='test -s conftest$ac_exeext'
25512 { (case "(($ac_try" in
25513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514 *) ac_try_echo=$ac_try;;
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517 (eval "$ac_try") 2>&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; }; then
25521 eval "$as_ac_var=yes"
25523 echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25526 eval "$as_ac_var=no"
25529 rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25532 ac_res=`eval echo '${'$as_ac_var'}'`
25533 { echo "$as_me:$LINENO: result: $ac_res" >&5
25534 echo "${ECHO_T}$ac_res" >&6; }
25535 if test `eval echo '${'$as_ac_var'}'` = yes; then
25536 cat >>confdefs.h <<_ACEOF
25537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25543 if test "x$ac_cv_func_fork" = xyes; then
25544 { echo "$as_me:$LINENO: checking for working fork" >&5
25545 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25546 if test "${ac_cv_func_fork_works+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 if test "$cross_compiling" = yes; then
25550 ac_cv_func_fork_works=cross
25552 cat >conftest.$ac_ext <<_ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25558 $ac_includes_default
25563 /* By Ruediger Kuhlmann. */
25564 return fork () < 0;
25570 rm -f conftest$ac_exeext
25571 if { (ac_try="$ac_link"
25572 case "(($ac_try" in
25573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25574 *) ac_try_echo=$ac_try;;
25576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25577 (eval "$ac_link") 2>&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25581 { (case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_try") 2>&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; }; then
25590 ac_cv_func_fork_works=yes
25592 echo "$as_me: program exited with status $ac_status" >&5
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 ( exit $ac_status )
25597 ac_cv_func_fork_works=no
25599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25604 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25605 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25608 ac_cv_func_fork_works=$ac_cv_func_fork
25610 if test "x$ac_cv_func_fork_works" = xcross; then
25612 *-*-amigaos* | *-*-msdosdjgpp*)
25613 # Override, as these systems have only a dummy fork() stub
25614 ac_cv_func_fork_works=no
25617 ac_cv_func_fork_works=yes
25620 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25621 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25623 ac_cv_func_vfork_works=$ac_cv_func_vfork
25624 if test "x$ac_cv_func_vfork" = xyes; then
25625 { echo "$as_me:$LINENO: checking for working vfork" >&5
25626 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25627 if test "${ac_cv_func_vfork_works+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 if test "$cross_compiling" = yes; then
25631 ac_cv_func_vfork_works=cross
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 /* Thanks to Paul Eggert for this test. */
25640 $ac_includes_default
25641 #include <sys/wait.h>
25643 # include <vfork.h>
25645 /* On some sparc systems, changes by the child to local and incoming
25646 argument registers are propagated back to the parent. The compiler
25647 is told about this with #include <vfork.h>, but some compilers
25648 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25649 static variable whose address is put into a register that is
25650 clobbered by the vfork. */
25653 sparc_address_test (int arg)
25655 sparc_address_test (arg) int arg;
25658 static pid_t child;
25676 pid_t parent = getpid ();
25679 sparc_address_test (0);
25684 /* Here is another test for sparc vfork register problems. This
25685 test uses lots of local variables, at least as many local
25686 variables as main has allocated so far including compiler
25687 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25688 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25689 reuse the register of parent for one of the local variables,
25690 since it will think that parent can't possibly be used any more
25691 in this routine. Assigning to the local variable will thus
25692 munge parent in the parent process. */
25694 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25695 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25696 /* Convince the compiler that p..p7 are live; otherwise, it might
25697 use the same hardware register for all 8 local variables. */
25698 if (p != p1 || p != p2 || p != p3 || p != p4
25699 || p != p5 || p != p6 || p != p7)
25702 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25703 from child file descriptors. If the child closes a descriptor
25704 before it execs or exits, this munges the parent's descriptor
25705 as well. Test for this by closing stdout in the child. */
25706 _exit(close(fileno(stdout)) != 0);
25711 while (wait(&status) != child)
25714 /* Was there some problem with vforking? */
25717 /* Did the child fail? (This shouldn't happen.) */
25720 /* Did the vfork/compiler bug occur? */
25721 || parent != getpid()
25723 /* Did the file descriptor bug occur? */
25724 || fstat(fileno(stdout), &st) != 0
25729 rm -f conftest$ac_exeext
25730 if { (ac_try="$ac_link"
25731 case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_link") 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25740 { (case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_try") 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_func_vfork_works=yes
25751 echo "$as_me: program exited with status $ac_status" >&5
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 ( exit $ac_status )
25756 ac_cv_func_vfork_works=no
25758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25763 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25764 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25767 if test "x$ac_cv_func_fork_works" = xcross; then
25768 ac_cv_func_vfork_works=$ac_cv_func_vfork
25769 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25770 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25773 if test "x$ac_cv_func_vfork_works" = xyes; then
25775 cat >>confdefs.h <<\_ACEOF
25776 #define HAVE_WORKING_VFORK 1
25781 cat >>confdefs.h <<\_ACEOF
25786 if test "x$ac_cv_func_fork_works" = xyes; then
25788 cat >>confdefs.h <<\_ACEOF
25789 #define HAVE_WORKING_FORK 1
25794 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25795 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25796 if test "${ac_cv_type_getgroups+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25799 if test "$cross_compiling" = yes; then
25800 ac_cv_type_getgroups=cross
25802 cat >conftest.$ac_ext <<_ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h. */
25808 /* Thanks to Mike Rendell for this test. */
25809 $ac_includes_default
25812 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25817 gid_t gidset[NGID];
25819 union { gid_t gval; long int lval; } val;
25822 for (i = 0; i < NGID; i++)
25823 gidset[i] = val.gval;
25824 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25826 /* Exit non-zero if getgroups seems to require an array of ints. This
25827 happens when gid_t is short int but getgroups modifies an array
25829 return n > 0 && gidset[n] != val.gval;
25832 rm -f conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836 *) ac_try_echo=$ac_try;;
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839 (eval "$ac_link") 2>&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843 { (case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_try") 2>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_type_getgroups=gid_t
25854 echo "$as_me: program exited with status $ac_status" >&5
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ( exit $ac_status )
25859 ac_cv_type_getgroups=int
25861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25865 if test $ac_cv_type_getgroups = cross; then
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25872 #include <unistd.h>
25875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25876 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25877 ac_cv_type_getgroups=gid_t
25879 ac_cv_type_getgroups=int
25885 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25886 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25888 cat >>confdefs.h <<_ACEOF
25889 #define GETGROUPS_T $ac_cv_type_getgroups
25893 { echo "$as_me:$LINENO: checking for getgroups" >&5
25894 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25895 if test "${ac_cv_func_getgroups+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25898 cat >conftest.$ac_ext <<_ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25904 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25906 #define getgroups innocuous_getgroups
25908 /* System header to define __stub macros and hopefully few prototypes,
25909 which can conflict with char getgroups (); below.
25910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25911 <limits.h> exists even on freestanding compilers. */
25914 # include <limits.h>
25916 # include <assert.h>
25921 /* Override any GCC internal prototype to avoid an error.
25922 Use char because int might match the return type of a GCC
25923 builtin and then its argument prototype would still apply. */
25928 /* The GNU C library defines this for functions which it implements
25929 to always fail with ENOSYS. Some functions are actually named
25930 something starting with __ and the normal name is an alias. */
25931 #if defined __stub_getgroups || defined __stub___getgroups
25938 return getgroups ();
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_link") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25958 { (case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_try") 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; } &&
25967 { ac_try='test -s conftest$ac_exeext'
25968 { (case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_try") 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 ac_cv_func_getgroups=yes
25979 echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25982 ac_cv_func_getgroups=no
25985 rm -f conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
25988 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25989 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25992 # If we don't yet have getgroups, see if it's in -lbsd.
25993 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25995 if test $ac_cv_func_getgroups = no; then
25996 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25997 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25998 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 ac_check_lib_save_LIBS=$LIBS
26003 cat >conftest.$ac_ext <<_ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26010 /* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26020 return getgroups ();
26025 rm -f conftest.$ac_objext conftest$ac_exeext
26026 if { (ac_try="$ac_link"
26027 case "(($ac_try" in
26028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029 *) ac_try_echo=$ac_try;;
26031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032 (eval "$ac_link") 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26040 { (case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045 (eval "$ac_try") 2>&5
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
26049 { ac_try='test -s conftest$ac_exeext'
26050 { (case "(($ac_try" in
26051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052 *) ac_try_echo=$ac_try;;
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055 (eval "$ac_try") 2>&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_cv_lib_bsd_getgroups=yes
26061 echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26064 ac_cv_lib_bsd_getgroups=no
26067 rm -f conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
26069 LIBS=$ac_check_lib_save_LIBS
26071 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26072 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26073 if test $ac_cv_lib_bsd_getgroups = yes; then
26074 GETGROUPS_LIB=-lbsd
26079 # Run the program to test the functionality of the system-supplied
26080 # getgroups function only if there is such a function.
26081 if test $ac_cv_func_getgroups = yes; then
26082 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26083 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26084 if test "${ac_cv_func_getgroups_works+set}" = set; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 if test "$cross_compiling" = yes; then
26088 ac_cv_func_getgroups_works=no
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 $ac_includes_default
26100 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26101 return getgroups (0, 0) == -1;
26106 rm -f conftest$ac_exeext
26107 if { (ac_try="$ac_link"
26108 case "(($ac_try" in
26109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110 *) ac_try_echo=$ac_try;;
26112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113 (eval "$ac_link") 2>&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26117 { (case "(($ac_try" in
26118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119 *) ac_try_echo=$ac_try;;
26121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26122 (eval "$ac_try") 2>&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 ac_cv_func_getgroups_works=yes
26128 echo "$as_me: program exited with status $ac_status" >&5
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 ( exit $ac_status )
26133 ac_cv_func_getgroups_works=no
26135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26141 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26142 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26143 if test $ac_cv_func_getgroups_works = yes; then
26145 cat >>confdefs.h <<\_ACEOF
26146 #define HAVE_GETGROUPS 1
26153 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26154 # -lseq on Dynix/PTX, -lgen on Unixware.
26155 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26156 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26157 if test "${ac_cv_search_getmntent+set}" = set; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26160 ac_func_search_save_LIBS=$LIBS
26161 cat >conftest.$ac_ext <<_ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h. */
26168 /* Override any GCC internal prototype to avoid an error.
26169 Use char because int might match the return type of a GCC
26170 builtin and then its argument prototype would still apply. */
26178 return getmntent ();
26183 for ac_lib in '' sun seq gen; do
26184 if test -z "$ac_lib"; then
26185 ac_res="none required"
26188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1 >conftest.err
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } &&
26204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26205 { (case "(($ac_try" in
26206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26207 *) ac_try_echo=$ac_try;;
26209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26210 (eval "$ac_try") 2>&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); }; } &&
26214 { ac_try='test -s conftest$ac_exeext'
26215 { (case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220 (eval "$ac_try") 2>&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); }; }; then
26224 ac_cv_search_getmntent=$ac_res
26226 echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26232 rm -f conftest.err conftest.$ac_objext \
26234 if test "${ac_cv_search_getmntent+set}" = set; then
26238 if test "${ac_cv_search_getmntent+set}" = set; then
26241 ac_cv_search_getmntent=no
26243 rm conftest.$ac_ext
26244 LIBS=$ac_func_search_save_LIBS
26246 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26247 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26248 ac_res=$ac_cv_search_getmntent
26249 if test "$ac_res" != no; then
26250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26255 for ac_func in getmntent
26257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26261 echo $ECHO_N "(cached) $ECHO_C" >&6
26263 cat >conftest.$ac_ext <<_ACEOF
26266 cat confdefs.h >>conftest.$ac_ext
26267 cat >>conftest.$ac_ext <<_ACEOF
26268 /* end confdefs.h. */
26269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26271 #define $ac_func innocuous_$ac_func
26273 /* System header to define __stub macros and hopefully few prototypes,
26274 which can conflict with char $ac_func (); below.
26275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26276 <limits.h> exists even on freestanding compilers. */
26279 # include <limits.h>
26281 # include <assert.h>
26286 /* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26293 /* The GNU C library defines this for functions which it implements
26294 to always fail with ENOSYS. Some functions are actually named
26295 something starting with __ and the normal name is an alias. */
26296 #if defined __stub_$ac_func || defined __stub___$ac_func
26303 return $ac_func ();
26308 rm -f conftest.$ac_objext conftest$ac_exeext
26309 if { (ac_try="$ac_link"
26310 case "(($ac_try" in
26311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312 *) ac_try_echo=$ac_try;;
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315 (eval "$ac_link") 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
26322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26323 { (case "(($ac_try" in
26324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325 *) ac_try_echo=$ac_try;;
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328 (eval "$ac_try") 2>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; } &&
26332 { ac_try='test -s conftest$ac_exeext'
26333 { (case "(($ac_try" in
26334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338 (eval "$ac_try") 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; }; then
26342 eval "$as_ac_var=yes"
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 eval "$as_ac_var=no"
26350 rm -f conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354 { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357 cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26365 if test $ac_cv_c_compiler_gnu = yes; then
26366 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26367 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26368 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26371 ac_pattern="Autoconf.*'x'"
26372 cat >conftest.$ac_ext <<_ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h. */
26381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26382 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26383 ac_cv_prog_gcc_traditional=yes
26385 ac_cv_prog_gcc_traditional=no
26390 if test $ac_cv_prog_gcc_traditional = no; then
26391 cat >conftest.$ac_ext <<_ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 #include <termio.h>
26400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26401 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26402 ac_cv_prog_gcc_traditional=yes
26408 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26409 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26410 if test $ac_cv_prog_gcc_traditional = yes; then
26411 CC="$CC -traditional"
26415 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26416 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26417 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 rm -f conftest.sym conftest.file
26421 echo >conftest.file
26422 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26423 if test "$cross_compiling" = yes; then
26424 ac_cv_func_lstat_dereferences_slashed_symlink=no
26426 cat >conftest.$ac_ext <<_ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26432 $ac_includes_default
26437 /* Linux will dereference the symlink and fail.
26438 That is better in the sense that it means we will not
26439 have to compile and use the lstat wrapper. */
26440 return lstat ("conftest.sym/", &sbuf) == 0;
26445 rm -f conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_link") 2>&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26456 { (case "(($ac_try" in
26457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461 (eval "$ac_try") 2>&5
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26467 echo "$as_me: program exited with status $ac_status" >&5
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26471 ( exit $ac_status )
26472 ac_cv_func_lstat_dereferences_slashed_symlink=no
26474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26479 # If the `ln -s' command failed, then we probably don't even
26480 # have an lstat function.
26481 ac_cv_func_lstat_dereferences_slashed_symlink=no
26483 rm -f conftest.sym conftest.file
26486 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26487 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26489 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26491 cat >>confdefs.h <<_ACEOF
26492 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26496 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26497 case " $LIBOBJS " in
26498 *" lstat.$ac_objext "* ) ;;
26499 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26505 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26506 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26507 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 if test "$cross_compiling" = yes; then
26511 ac_cv_func_lstat_empty_string_bug=yes
26513 cat >conftest.$ac_ext <<_ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h. */
26519 $ac_includes_default
26524 return lstat ("", &sbuf) == 0;
26529 rm -f conftest$ac_exeext
26530 if { (ac_try="$ac_link"
26531 case "(($ac_try" in
26532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26533 *) ac_try_echo=$ac_try;;
26535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26536 (eval "$ac_link") 2>&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26540 { (case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_try") 2>&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; }; then
26549 ac_cv_func_lstat_empty_string_bug=no
26551 echo "$as_me: program exited with status $ac_status" >&5
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ( exit $ac_status )
26556 ac_cv_func_lstat_empty_string_bug=yes
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26563 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26564 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26565 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26566 case " $LIBOBJS " in
26567 *" lstat.$ac_objext "* ) ;;
26568 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26573 cat >>confdefs.h <<_ACEOF
26574 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26579 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26580 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26581 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 rm -f conftest.sym conftest.file
26585 echo >conftest.file
26586 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26587 if test "$cross_compiling" = yes; then
26588 ac_cv_func_lstat_dereferences_slashed_symlink=no
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 $ac_includes_default
26601 /* Linux will dereference the symlink and fail.
26602 That is better in the sense that it means we will not
26603 have to compile and use the lstat wrapper. */
26604 return lstat ("conftest.sym/", &sbuf) == 0;
26609 rm -f conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613 *) ac_try_echo=$ac_try;;
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616 (eval "$ac_link") 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26620 { (case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625 (eval "$ac_try") 2>&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; }; then
26629 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26631 echo "$as_me: program exited with status $ac_status" >&5
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 ( exit $ac_status )
26636 ac_cv_func_lstat_dereferences_slashed_symlink=no
26638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26643 # If the `ln -s' command failed, then we probably don't even
26644 # have an lstat function.
26645 ac_cv_func_lstat_dereferences_slashed_symlink=no
26647 rm -f conftest.sym conftest.file
26650 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26651 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26653 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26655 cat >>confdefs.h <<_ACEOF
26656 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26660 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26661 case " $LIBOBJS " in
26662 *" lstat.$ac_objext "* ) ;;
26663 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26669 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26670 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26671 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 cat >conftest.$ac_ext <<_ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26680 #include <sys/types.h>
26684 return makedev(0, 0);
26689 rm -f conftest.$ac_objext conftest$ac_exeext
26690 if { (ac_try="$ac_link"
26691 case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696 (eval "$ac_link") 2>conftest.er1
26698 grep -v '^ *+' conftest.er1 >conftest.err
26700 cat conftest.err >&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); } &&
26703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26704 { (case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_try") 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest$ac_exeext'
26714 { (case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_try") 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ac_cv_header_sys_types_h_makedev=yes
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26728 ac_cv_header_sys_types_h_makedev=no
26731 rm -f conftest.err conftest.$ac_objext \
26732 conftest$ac_exeext conftest.$ac_ext
26735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26736 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26738 if test $ac_cv_header_sys_types_h_makedev = no; then
26739 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26740 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26741 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26742 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26746 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26748 # Is the header compilable?
26749 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26750 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 $ac_includes_default
26758 #include <sys/mkdev.h>
26760 rm -f conftest.$ac_objext
26761 if { (ac_try="$ac_compile"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_compile") 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } &&
26774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26775 { (case "(($ac_try" in
26776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777 *) ac_try_echo=$ac_try;;
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780 (eval "$ac_try") 2>&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } &&
26784 { ac_try='test -s conftest.$ac_objext'
26785 { (case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_try") 2>&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794 ac_header_compiler=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_header_compiler=no
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6; }
26806 # Is the header present?
26807 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26808 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <sys/mkdev.h>
26817 if { (ac_try="$ac_cpp conftest.$ac_ext"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } >/dev/null; then
26830 if test -s conftest.err; then
26831 ac_cpp_err=$ac_c_preproc_warn_flag
26832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26839 if test -z "$ac_cpp_err"; then
26840 ac_header_preproc=yes
26842 echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 ac_header_preproc=no
26848 rm -f conftest.err conftest.$ac_ext
26849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26850 echo "${ECHO_T}$ac_header_preproc" >&6; }
26852 # So? What about this header?
26853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26855 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26856 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26857 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26858 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26859 ac_header_preproc=yes
26862 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26863 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26865 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26867 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26868 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26869 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26870 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26871 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26872 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26873 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26875 ## ------------------------------- ##
26876 ## Report this to nfs@lists.sf.net ##
26877 ## ------------------------------- ##
26879 ) | sed "s/^/$as_me: WARNING: /" >&2
26882 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26883 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26884 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26885 echo $ECHO_N "(cached) $ECHO_C" >&6
26887 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26889 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26890 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26893 if test $ac_cv_header_sys_mkdev_h = yes; then
26895 cat >>confdefs.h <<\_ACEOF
26896 #define MAJOR_IN_MKDEV 1
26903 if test $ac_cv_header_sys_mkdev_h = no; then
26904 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26905 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26906 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26907 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26908 echo $ECHO_N "(cached) $ECHO_C" >&6
26910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26911 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26913 # Is the header compilable?
26914 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26915 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 $ac_includes_default
26923 #include <sys/sysmacros.h>
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940 { (case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_try") 2>&5
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_try") 2>&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_header_compiler=yes
26961 echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26964 ac_header_compiler=no
26967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26969 echo "${ECHO_T}$ac_header_compiler" >&6; }
26971 # Is the header present?
26972 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26973 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26974 cat >conftest.$ac_ext <<_ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980 #include <sys/sysmacros.h>
26982 if { (ac_try="$ac_cpp conftest.$ac_ext"
26983 case "(($ac_try" in
26984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985 *) ac_try_echo=$ac_try;;
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26990 grep -v '^ *+' conftest.er1 >conftest.err
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } >/dev/null; then
26995 if test -s conftest.err; then
26996 ac_cpp_err=$ac_c_preproc_warn_flag
26997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27004 if test -z "$ac_cpp_err"; then
27005 ac_header_preproc=yes
27007 echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27010 ac_header_preproc=no
27013 rm -f conftest.err conftest.$ac_ext
27014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27015 echo "${ECHO_T}$ac_header_preproc" >&6; }
27017 # So? What about this header?
27018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27020 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27021 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27023 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27024 ac_header_preproc=yes
27027 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27028 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27030 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27031 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27032 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27033 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27034 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27035 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27036 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27037 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27038 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27040 ## ------------------------------- ##
27041 ## Report this to nfs@lists.sf.net ##
27042 ## ------------------------------- ##
27044 ) | sed "s/^/$as_me: WARNING: /" >&2
27047 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27048 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27049 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27050 echo $ECHO_N "(cached) $ECHO_C" >&6
27052 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27055 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27058 if test $ac_cv_header_sys_sysmacros_h = yes; then
27060 cat >>confdefs.h <<\_ACEOF
27061 #define MAJOR_IN_SYSMACROS 1
27071 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27072 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27073 if test "${ac_cv_func_memcmp_working+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 if test "$cross_compiling" = yes; then
27077 ac_cv_func_memcmp_working=no
27079 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27085 $ac_includes_default
27090 /* Some versions of memcmp are not 8-bit clean. */
27091 char c0 = '\100', c1 = '\200', c2 = '\201';
27092 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27095 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27096 or more and with at least one buffer not starting on a 4-byte boundary.
27097 William Lewis provided this test program. */
27102 for (i = 0; i < 4; i++)
27106 strcpy (a, "--------01111111");
27107 strcpy (b, "--------10000000");
27108 if (memcmp (a, b, 16) >= 0)
27118 rm -f conftest$ac_exeext
27119 if { (ac_try="$ac_link"
27120 case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_link") 2>&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; }; then
27138 ac_cv_func_memcmp_working=yes
27140 echo "$as_me: program exited with status $ac_status" >&5
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 ( exit $ac_status )
27145 ac_cv_func_memcmp_working=no
27147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27152 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27153 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27154 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27155 *" memcmp.$ac_objext "* ) ;;
27156 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27164 for ac_header in sys/select.h sys/socket.h
27166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27171 echo $ECHO_N "(cached) $ECHO_C" >&6
27173 ac_res=`eval echo '${'$as_ac_Header'}'`
27174 { echo "$as_me:$LINENO: result: $ac_res" >&5
27175 echo "${ECHO_T}$ac_res" >&6; }
27177 # Is the header compilable?
27178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27180 cat >conftest.$ac_ext <<_ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27186 $ac_includes_default
27187 #include <$ac_header>
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27204 { (case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_try") 2>&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; } &&
27213 { ac_try='test -s conftest.$ac_objext'
27214 { (case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; }; then
27223 ac_header_compiler=yes
27225 echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27228 ac_header_compiler=no
27231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27233 echo "${ECHO_T}$ac_header_compiler" >&6; }
27235 # Is the header present?
27236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27238 cat >conftest.$ac_ext <<_ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h. */
27244 #include <$ac_header>
27246 if { (ac_try="$ac_cpp conftest.$ac_ext"
27247 case "(($ac_try" in
27248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249 *) ac_try_echo=$ac_try;;
27251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27254 grep -v '^ *+' conftest.er1 >conftest.err
27256 cat conftest.err >&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } >/dev/null; then
27259 if test -s conftest.err; then
27260 ac_cpp_err=$ac_c_preproc_warn_flag
27261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27268 if test -z "$ac_cpp_err"; then
27269 ac_header_preproc=yes
27271 echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27274 ac_header_preproc=no
27277 rm -f conftest.err conftest.$ac_ext
27278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27279 echo "${ECHO_T}$ac_header_preproc" >&6; }
27281 # So? What about this header?
27282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27288 ac_header_preproc=yes
27291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27304 ## ------------------------------- ##
27305 ## Report this to nfs@lists.sf.net ##
27306 ## ------------------------------- ##
27308 ) | sed "s/^/$as_me: WARNING: /" >&2
27311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 eval "$as_ac_Header=\$ac_header_preproc"
27318 ac_res=`eval echo '${'$as_ac_Header'}'`
27319 { echo "$as_me:$LINENO: result: $ac_res" >&5
27320 echo "${ECHO_T}$ac_res" >&6; }
27323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27332 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27333 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27334 if test "${ac_cv_func_select_args+set}" = set; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27337 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27338 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27339 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27346 $ac_includes_default
27347 #if HAVE_SYS_SELECT_H
27348 # include <sys/select.h>
27350 #if HAVE_SYS_SOCKET_H
27351 # include <sys/socket.h>
27357 extern int select ($ac_arg1,
27358 $ac_arg234, $ac_arg234, $ac_arg234,
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_compile") 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379 { (case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384 (eval "$ac_try") 2>&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest.$ac_objext'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
27398 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27400 echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27410 # Provide a safe default value.
27411 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27414 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27415 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27416 ac_save_IFS=$IFS; IFS=','
27417 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27421 cat >>confdefs.h <<_ACEOF
27422 #define SELECT_TYPE_ARG1 $1
27426 cat >>confdefs.h <<_ACEOF
27427 #define SELECT_TYPE_ARG234 ($2)
27431 cat >>confdefs.h <<_ACEOF
27432 #define SELECT_TYPE_ARG5 ($3)
27437 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27438 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27439 if test "${ac_cv_type_signal+set}" = set; then
27440 echo $ECHO_N "(cached) $ECHO_C" >&6
27442 cat >conftest.$ac_ext <<_ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h. */
27448 #include <sys/types.h>
27449 #include <signal.h>
27454 return *(signal (0, 0)) (0) == 1;
27459 rm -f conftest.$ac_objext
27460 if { (ac_try="$ac_compile"
27461 case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_compile") 2>conftest.er1
27468 grep -v '^ *+' conftest.er1 >conftest.err
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
27473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; } &&
27483 { ac_try='test -s conftest.$ac_objext'
27484 { (case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489 (eval "$ac_try") 2>&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); }; }; then
27493 ac_cv_type_signal=int
27495 echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27498 ac_cv_type_signal=void
27501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27503 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27504 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27506 cat >>confdefs.h <<_ACEOF
27507 #define RETSIGTYPE $ac_cv_type_signal
27511 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27512 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27513 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 if test "$cross_compiling" = yes; then
27517 ac_cv_func_stat_empty_string_bug=yes
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 $ac_includes_default
27530 return stat ("", &sbuf) == 0;
27535 rm -f conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_link") 2>&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27546 { (case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551 (eval "$ac_try") 2>&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 ac_cv_func_stat_empty_string_bug=no
27557 echo "$as_me: program exited with status $ac_status" >&5
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27561 ( exit $ac_status )
27562 ac_cv_func_stat_empty_string_bug=yes
27564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27569 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27570 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27571 if test $ac_cv_func_stat_empty_string_bug = yes; then
27572 case " $LIBOBJS " in
27573 *" stat.$ac_objext "* ) ;;
27574 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27579 cat >>confdefs.h <<_ACEOF
27580 #define HAVE_STAT_EMPTY_STRING_BUG 1
27586 for ac_func in vprintf
27588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27594 cat >conftest.$ac_ext <<_ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h. */
27600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27602 #define $ac_func innocuous_$ac_func
27604 /* System header to define __stub macros and hopefully few prototypes,
27605 which can conflict with char $ac_func (); below.
27606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27607 <limits.h> exists even on freestanding compilers. */
27610 # include <limits.h>
27612 # include <assert.h>
27617 /* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27624 /* The GNU C library defines this for functions which it implements
27625 to always fail with ENOSYS. Some functions are actually named
27626 something starting with __ and the normal name is an alias. */
27627 #if defined __stub_$ac_func || defined __stub___$ac_func
27634 return $ac_func ();
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640 if { (ac_try="$ac_link"
27641 case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_link") 2>conftest.er1
27648 grep -v '^ *+' conftest.er1 >conftest.err
27650 cat conftest.err >&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); } &&
27653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654 { (case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_try") 2>&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest$ac_exeext'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27673 eval "$as_ac_var=yes"
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 eval "$as_ac_var=no"
27681 rm -f conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
27684 ac_res=`eval echo '${'$as_ac_var'}'`
27685 { echo "$as_me:$LINENO: result: $ac_res" >&5
27686 echo "${ECHO_T}$ac_res" >&6; }
27687 if test `eval echo '${'$as_ac_var'}'` = yes; then
27688 cat >>confdefs.h <<_ACEOF
27689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27692 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27693 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27694 if test "${ac_cv_func__doprnt+set}" = set; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27697 cat >conftest.$ac_ext <<_ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27705 #define _doprnt innocuous__doprnt
27707 /* System header to define __stub macros and hopefully few prototypes,
27708 which can conflict with char _doprnt (); below.
27709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710 <limits.h> exists even on freestanding compilers. */
27713 # include <limits.h>
27715 # include <assert.h>
27720 /* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
27727 /* The GNU C library defines this for functions which it implements
27728 to always fail with ENOSYS. Some functions are actually named
27729 something starting with __ and the normal name is an alias. */
27730 #if defined __stub__doprnt || defined __stub____doprnt
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (ac_try="$ac_link"
27744 case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_link") 2>conftest.er1
27751 grep -v '^ *+' conftest.er1 >conftest.err
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757 { (case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_try") 2>&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27776 ac_cv_func__doprnt=yes
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_cv_func__doprnt=no
27784 rm -f conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext conftest.$ac_ext
27787 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27788 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27789 if test $ac_cv_func__doprnt = yes; then
27791 cat >>confdefs.h <<\_ACEOF
27792 #define HAVE_DOPRNT 1
27829 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27830 gethostbyaddr gethostbyname gethostname getmntent \
27831 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27832 realpath rmdir select socket strcasecmp strchr strdup \
27833 strerror strrchr strtol strtoul
27835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 cat >conftest.$ac_ext <<_ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h. */
27847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27849 #define $ac_func innocuous_$ac_func
27851 /* System header to define __stub macros and hopefully few prototypes,
27852 which can conflict with char $ac_func (); below.
27853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27854 <limits.h> exists even on freestanding compilers. */
27857 # include <limits.h>
27859 # include <assert.h>
27864 /* Override any GCC internal prototype to avoid an error.
27865 Use char because int might match the return type of a GCC
27866 builtin and then its argument prototype would still apply. */
27871 /* The GNU C library defines this for functions which it implements
27872 to always fail with ENOSYS. Some functions are actually named
27873 something starting with __ and the normal name is an alias. */
27874 #if defined __stub_$ac_func || defined __stub___$ac_func
27881 return $ac_func ();
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (ac_try="$ac_link"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_link") 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
27900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27901 { (case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_try") 2>&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; } &&
27910 { ac_try='test -s conftest$ac_exeext'
27911 { (case "(($ac_try" in
27912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27913 *) ac_try_echo=$ac_try;;
27915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27916 (eval "$ac_try") 2>&5
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; }; then
27920 eval "$as_ac_var=yes"
27922 echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27925 eval "$as_ac_var=no"
27928 rm -f conftest.err conftest.$ac_objext \
27929 conftest$ac_exeext conftest.$ac_ext
27931 ac_res=`eval echo '${'$as_ac_var'}'`
27932 { echo "$as_me:$LINENO: result: $ac_res" >&5
27933 echo "${ECHO_T}$ac_res" >&6; }
27934 if test `eval echo '${'$as_ac_var'}'` = yes; then
27935 cat >>confdefs.h <<_ACEOF
27936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27944 { echo "$as_me:$LINENO: checking for short" >&5
27945 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27946 if test "${ac_cv_type_short+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27949 cat >conftest.$ac_ext <<_ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27955 $ac_includes_default
27956 typedef short ac__type_new_;
27960 if ((ac__type_new_ *) 0)
27962 if (sizeof (ac__type_new_))
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_compile") 2>conftest.er1
27977 grep -v '^ *+' conftest.er1 >conftest.err
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest.$ac_objext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 ac_cv_type_short=yes
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 ac_cv_type_short=no
28010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28012 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28013 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28015 { echo "$as_me:$LINENO: checking size of short" >&5
28016 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28017 if test "${ac_cv_sizeof_short+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 if test "$ac_cv_type_short" = yes; then
28021 # The cast to long int works around a bug in the HP C Compiler
28022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28024 # This bug is HP SR number 8606223364.
28025 if test "$cross_compiling" = yes; then
28026 # Depending upon the size, compute the lo and hi bounds.
28027 cat >conftest.$ac_ext <<_ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28033 $ac_includes_default
28034 typedef short ac__type_sizeof_;
28038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28045 rm -f conftest.$ac_objext
28046 if { (ac_try="$ac_compile"
28047 case "(($ac_try" in
28048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28049 *) ac_try_echo=$ac_try;;
28051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28052 (eval "$ac_compile") 2>conftest.er1
28054 grep -v '^ *+' conftest.er1 >conftest.err
28056 cat conftest.err >&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } &&
28059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28060 { (case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_try") 2>&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; } &&
28069 { ac_try='test -s conftest.$ac_objext'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28081 cat >conftest.$ac_ext <<_ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h. */
28087 $ac_includes_default
28088 typedef short ac__type_sizeof_;
28092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28099 rm -f conftest.$ac_objext
28100 if { (ac_try="$ac_compile"
28101 case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_compile") 2>conftest.er1
28108 grep -v '^ *+' conftest.er1 >conftest.err
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28114 { (case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_try") 2>&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; } &&
28123 { ac_try='test -s conftest.$ac_objext'
28124 { (case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_try") 2>&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
28133 ac_hi=$ac_mid; break
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 ac_lo=`expr $ac_mid + 1`
28139 if test $ac_lo -le $ac_mid; then
28143 ac_mid=`expr 2 '*' $ac_mid + 1`
28146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28149 echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28152 cat >conftest.$ac_ext <<_ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 $ac_includes_default
28159 typedef short ac__type_sizeof_;
28163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28170 rm -f conftest.$ac_objext
28171 if { (ac_try="$ac_compile"
28172 case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177 (eval "$ac_compile") 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185 { (case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190 (eval "$ac_try") 2>&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest.$ac_objext'
28195 { (case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_try") 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 $ac_includes_default
28213 typedef short ac__type_sizeof_;
28217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28224 rm -f conftest.$ac_objext
28225 if { (ac_try="$ac_compile"
28226 case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_compile") 2>conftest.er1
28233 grep -v '^ *+' conftest.er1 >conftest.err
28235 cat conftest.err >&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } &&
28238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; } &&
28248 { ac_try='test -s conftest.$ac_objext'
28249 { (case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_try") 2>&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 ac_lo=$ac_mid; break
28260 echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28263 ac_hi=`expr '(' $ac_mid ')' - 1`
28264 if test $ac_mid -le $ac_hi; then
28268 ac_mid=`expr 2 '*' $ac_mid`
28271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28284 # Binary search between lo and hi bounds.
28285 while test "x$ac_lo" != "x$ac_hi"; do
28286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28287 cat >conftest.$ac_ext <<_ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h. */
28293 $ac_includes_default
28294 typedef short ac__type_sizeof_;
28298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28305 rm -f conftest.$ac_objext
28306 if { (ac_try="$ac_compile"
28307 case "(($ac_try" in
28308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309 *) ac_try_echo=$ac_try;;
28311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312 (eval "$ac_compile") 2>conftest.er1
28314 grep -v '^ *+' conftest.er1 >conftest.err
28316 cat conftest.err >&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); } &&
28319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28320 { (case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_try") 2>&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); }; } &&
28329 { ac_try='test -s conftest.$ac_objext'
28330 { (case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_try") 2>&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
28341 echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28344 ac_lo=`expr '(' $ac_mid ')' + 1`
28347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28350 ?*) ac_cv_sizeof_short=$ac_lo;;
28351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28352 See \`config.log' for more details." >&5
28353 echo "$as_me: error: cannot compute sizeof (short)
28354 See \`config.log' for more details." >&2;}
28355 { (exit 77); exit 77; }; } ;;
28358 cat >conftest.$ac_ext <<_ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28364 $ac_includes_default
28365 typedef short ac__type_sizeof_;
28366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28369 #include <stdlib.h>
28374 FILE *f = fopen ("conftest.val", "w");
28377 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28379 long int i = longval ();
28380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28382 fprintf (f, "%ld\n", i);
28386 unsigned long int i = ulongval ();
28387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28389 fprintf (f, "%lu\n", i);
28391 return ferror (f) || fclose (f) != 0;
28397 rm -f conftest$ac_exeext
28398 if { (ac_try="$ac_link"
28399 case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_link") 2>&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28408 { (case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_try") 2>&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; }; then
28417 ac_cv_sizeof_short=`cat conftest.val`
28419 echo "$as_me: program exited with status $ac_status" >&5
28420 echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28423 ( exit $ac_status )
28424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28425 See \`config.log' for more details." >&5
28426 echo "$as_me: error: cannot compute sizeof (short)
28427 See \`config.log' for more details." >&2;}
28428 { (exit 77); exit 77; }; }
28430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28434 ac_cv_sizeof_short=0
28437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28438 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28439 cat >>confdefs.h <<_ACEOF
28440 #define SIZEOF_SHORT $ac_cv_sizeof_short
28444 { echo "$as_me:$LINENO: checking for int" >&5
28445 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28446 if test "${ac_cv_type_int+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28449 cat >conftest.$ac_ext <<_ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28455 $ac_includes_default
28456 typedef int ac__type_new_;
28460 if ((ac__type_new_ *) 0)
28462 if (sizeof (ac__type_new_))
28468 rm -f conftest.$ac_objext
28469 if { (ac_try="$ac_compile"
28470 case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_compile") 2>conftest.er1
28477 grep -v '^ *+' conftest.er1 >conftest.err
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } &&
28482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28483 { (case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_try") 2>&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
28493 { (case "(($ac_try" in
28494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495 *) ac_try_echo=$ac_try;;
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498 (eval "$ac_try") 2>&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; }; then
28504 echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28512 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28513 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28515 { echo "$as_me:$LINENO: checking size of int" >&5
28516 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28517 if test "${ac_cv_sizeof_int+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 if test "$ac_cv_type_int" = yes; then
28521 # The cast to long int works around a bug in the HP C Compiler
28522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28524 # This bug is HP SR number 8606223364.
28525 if test "$cross_compiling" = yes; then
28526 # Depending upon the size, compute the lo and hi bounds.
28527 cat >conftest.$ac_ext <<_ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 $ac_includes_default
28534 typedef int ac__type_sizeof_;
28538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28545 rm -f conftest.$ac_objext
28546 if { (ac_try="$ac_compile"
28547 case "(($ac_try" in
28548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28549 *) ac_try_echo=$ac_try;;
28551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28552 (eval "$ac_compile") 2>conftest.er1
28554 grep -v '^ *+' conftest.er1 >conftest.err
28556 cat conftest.err >&5
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } &&
28559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28560 { (case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565 (eval "$ac_try") 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; } &&
28569 { ac_try='test -s conftest.$ac_objext'
28570 { (case "(($ac_try" in
28571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572 *) ac_try_echo=$ac_try;;
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_try") 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28581 cat >conftest.$ac_ext <<_ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h. */
28587 $ac_includes_default
28588 typedef int ac__type_sizeof_;
28592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28599 rm -f conftest.$ac_objext
28600 if { (ac_try="$ac_compile"
28601 case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_compile") 2>conftest.er1
28608 grep -v '^ *+' conftest.er1 >conftest.err
28610 cat conftest.err >&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
28613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28614 { (case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_try") 2>&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; } &&
28623 { ac_try='test -s conftest.$ac_objext'
28624 { (case "(($ac_try" in
28625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626 *) ac_try_echo=$ac_try;;
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629 (eval "$ac_try") 2>&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 ac_hi=$ac_mid; break
28635 echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28638 ac_lo=`expr $ac_mid + 1`
28639 if test $ac_lo -le $ac_mid; then
28643 ac_mid=`expr 2 '*' $ac_mid + 1`
28646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28652 cat >conftest.$ac_ext <<_ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h. */
28658 $ac_includes_default
28659 typedef int ac__type_sizeof_;
28663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28670 rm -f conftest.$ac_objext
28671 if { (ac_try="$ac_compile"
28672 case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
28679 grep -v '^ *+' conftest.er1 >conftest.err
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685 { (case "(($ac_try" in
28686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687 *) ac_try_echo=$ac_try;;
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690 (eval "$ac_try") 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest.$ac_objext'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28706 cat >conftest.$ac_ext <<_ACEOF
28709 cat confdefs.h >>conftest.$ac_ext
28710 cat >>conftest.$ac_ext <<_ACEOF
28711 /* end confdefs.h. */
28712 $ac_includes_default
28713 typedef int ac__type_sizeof_;
28717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28724 rm -f conftest.$ac_objext
28725 if { (ac_try="$ac_compile"
28726 case "(($ac_try" in
28727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728 *) ac_try_echo=$ac_try;;
28730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731 (eval "$ac_compile") 2>conftest.er1
28733 grep -v '^ *+' conftest.er1 >conftest.err
28735 cat conftest.err >&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); } &&
28738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest.$ac_objext'
28749 { (case "(($ac_try" in
28750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751 *) ac_try_echo=$ac_try;;
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754 (eval "$ac_try") 2>&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; }; then
28758 ac_lo=$ac_mid; break
28760 echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28763 ac_hi=`expr '(' $ac_mid ')' - 1`
28764 if test $ac_mid -le $ac_hi; then
28768 ac_mid=`expr 2 '*' $ac_mid`
28771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28774 echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28784 # Binary search between lo and hi bounds.
28785 while test "x$ac_lo" != "x$ac_hi"; do
28786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 $ac_includes_default
28794 typedef int ac__type_sizeof_;
28798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28805 rm -f conftest.$ac_objext
28806 if { (ac_try="$ac_compile"
28807 case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_compile") 2>conftest.er1
28814 grep -v '^ *+' conftest.er1 >conftest.err
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } &&
28819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28820 { (case "(($ac_try" in
28821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822 *) ac_try_echo=$ac_try;;
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825 (eval "$ac_try") 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest.$ac_objext'
28830 { (case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_try") 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; }; then
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28844 ac_lo=`expr '(' $ac_mid ')' + 1`
28847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28850 ?*) ac_cv_sizeof_int=$ac_lo;;
28851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28852 See \`config.log' for more details." >&5
28853 echo "$as_me: error: cannot compute sizeof (int)
28854 See \`config.log' for more details." >&2;}
28855 { (exit 77); exit 77; }; } ;;
28858 cat >conftest.$ac_ext <<_ACEOF
28861 cat confdefs.h >>conftest.$ac_ext
28862 cat >>conftest.$ac_ext <<_ACEOF
28863 /* end confdefs.h. */
28864 $ac_includes_default
28865 typedef int ac__type_sizeof_;
28866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28869 #include <stdlib.h>
28874 FILE *f = fopen ("conftest.val", "w");
28877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28879 long int i = longval ();
28880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28882 fprintf (f, "%ld\n", i);
28886 unsigned long int i = ulongval ();
28887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28889 fprintf (f, "%lu\n", i);
28891 return ferror (f) || fclose (f) != 0;
28897 rm -f conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_link") 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28908 { (case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_try") 2>&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; }; then
28917 ac_cv_sizeof_int=`cat conftest.val`
28919 echo "$as_me: program exited with status $ac_status" >&5
28920 echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 ( exit $ac_status )
28924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28925 See \`config.log' for more details." >&5
28926 echo "$as_me: error: cannot compute sizeof (int)
28927 See \`config.log' for more details." >&2;}
28928 { (exit 77); exit 77; }; }
28930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28938 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28939 cat >>confdefs.h <<_ACEOF
28940 #define SIZEOF_INT $ac_cv_sizeof_int
28944 { echo "$as_me:$LINENO: checking for long" >&5
28945 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28946 if test "${ac_cv_type_long+set}" = set; then
28947 echo $ECHO_N "(cached) $ECHO_C" >&6
28949 cat >conftest.$ac_ext <<_ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h. */
28955 $ac_includes_default
28956 typedef long ac__type_new_;
28960 if ((ac__type_new_ *) 0)
28962 if (sizeof (ac__type_new_))
28968 rm -f conftest.$ac_objext
28969 if { (ac_try="$ac_compile"
28970 case "(($ac_try" in
28971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972 *) ac_try_echo=$ac_try;;
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975 (eval "$ac_compile") 2>conftest.er1
28977 grep -v '^ *+' conftest.er1 >conftest.err
28979 cat conftest.err >&5
28980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981 (exit $ac_status); } &&
28982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28983 { (case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_try") 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; } &&
28992 { ac_try='test -s conftest.$ac_objext'
28993 { (case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_try") 2>&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); }; }; then
29002 ac_cv_type_long=yes
29004 echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29012 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29013 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29015 { echo "$as_me:$LINENO: checking size of long" >&5
29016 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29017 if test "${ac_cv_sizeof_long+set}" = set; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29020 if test "$ac_cv_type_long" = yes; then
29021 # The cast to long int works around a bug in the HP C Compiler
29022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29024 # This bug is HP SR number 8606223364.
29025 if test "$cross_compiling" = yes; then
29026 # Depending upon the size, compute the lo and hi bounds.
29027 cat >conftest.$ac_ext <<_ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h. */
29033 $ac_includes_default
29034 typedef long ac__type_sizeof_;
29038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_compile") 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
29059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; } &&
29069 { ac_try='test -s conftest.$ac_objext'
29070 { (case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_try") 2>&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29081 cat >conftest.$ac_ext <<_ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29087 $ac_includes_default
29088 typedef long ac__type_sizeof_;
29092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 ac_hi=$ac_mid; break
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29138 ac_lo=`expr $ac_mid + 1`
29139 if test $ac_lo -le $ac_mid; then
29143 ac_mid=`expr 2 '*' $ac_mid + 1`
29146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29152 cat >conftest.$ac_ext <<_ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29158 $ac_includes_default
29159 typedef long ac__type_sizeof_;
29163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29170 rm -f conftest.$ac_objext
29171 if { (ac_try="$ac_compile"
29172 case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_compile") 2>conftest.er1
29179 grep -v '^ *+' conftest.er1 >conftest.err
29181 cat conftest.err >&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } &&
29184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29185 { (case "(($ac_try" in
29186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187 *) ac_try_echo=$ac_try;;
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190 (eval "$ac_try") 2>&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; } &&
29194 { ac_try='test -s conftest.$ac_objext'
29195 { (case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200 (eval "$ac_try") 2>&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
29206 cat >conftest.$ac_ext <<_ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h. */
29212 $ac_includes_default
29213 typedef long ac__type_sizeof_;
29217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29224 rm -f conftest.$ac_objext
29225 if { (ac_try="$ac_compile"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_compile") 2>conftest.er1
29233 grep -v '^ *+' conftest.er1 >conftest.err
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } &&
29238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29239 { (case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_try") 2>&5
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest.$ac_objext'
29249 { (case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_try") 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 ac_lo=$ac_mid; break
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 ac_hi=`expr '(' $ac_mid ')' - 1`
29264 if test $ac_mid -le $ac_hi; then
29268 ac_mid=`expr 2 '*' $ac_mid`
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29274 echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29284 # Binary search between lo and hi bounds.
29285 while test "x$ac_lo" != "x$ac_hi"; do
29286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29287 cat >conftest.$ac_ext <<_ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29293 $ac_includes_default
29294 typedef long ac__type_sizeof_;
29298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_compile") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } &&
29319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; } &&
29329 { ac_try='test -s conftest.$ac_objext'
29330 { (case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_try") 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29341 echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29344 ac_lo=`expr '(' $ac_mid ')' + 1`
29347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29350 ?*) ac_cv_sizeof_long=$ac_lo;;
29351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29352 See \`config.log' for more details." >&5
29353 echo "$as_me: error: cannot compute sizeof (long)
29354 See \`config.log' for more details." >&2;}
29355 { (exit 77); exit 77; }; } ;;
29358 cat >conftest.$ac_ext <<_ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h. */
29364 $ac_includes_default
29365 typedef long ac__type_sizeof_;
29366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29369 #include <stdlib.h>
29374 FILE *f = fopen ("conftest.val", "w");
29377 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29379 long int i = longval ();
29380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29382 fprintf (f, "%ld\n", i);
29386 unsigned long int i = ulongval ();
29387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29389 fprintf (f, "%lu\n", i);
29391 return ferror (f) || fclose (f) != 0;
29397 rm -f conftest$ac_exeext
29398 if { (ac_try="$ac_link"
29399 case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_link") 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 ac_cv_sizeof_long=`cat conftest.val`
29419 echo "$as_me: program exited with status $ac_status" >&5
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29423 ( exit $ac_status )
29424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29425 See \`config.log' for more details." >&5
29426 echo "$as_me: error: cannot compute sizeof (long)
29427 See \`config.log' for more details." >&2;}
29428 { (exit 77); exit 77; }; }
29430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29434 ac_cv_sizeof_long=0
29437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29438 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29439 cat >>confdefs.h <<_ACEOF
29440 #define SIZEOF_LONG $ac_cv_sizeof_long
29444 { echo "$as_me:$LINENO: checking for size_t" >&5
29445 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29446 if test "${ac_cv_type_size_t+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 $ac_includes_default
29456 typedef size_t ac__type_new_;
29460 if ((ac__type_new_ *) 0)
29462 if (sizeof (ac__type_new_))
29468 rm -f conftest.$ac_objext
29469 if { (ac_try="$ac_compile"
29470 case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_compile") 2>conftest.er1
29477 grep -v '^ *+' conftest.er1 >conftest.err
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
29482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483 { (case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_try") 2>&5
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } &&
29492 { ac_try='test -s conftest.$ac_objext'
29493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_type_size_t=yes
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29507 ac_cv_type_size_t=no
29510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29512 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29513 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29515 { echo "$as_me:$LINENO: checking size of size_t" >&5
29516 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29517 if test "${ac_cv_sizeof_size_t+set}" = set; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 if test "$ac_cv_type_size_t" = yes; then
29521 # The cast to long int works around a bug in the HP C Compiler
29522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29524 # This bug is HP SR number 8606223364.
29525 if test "$cross_compiling" = yes; then
29526 # Depending upon the size, compute the lo and hi bounds.
29527 cat >conftest.$ac_ext <<_ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h. */
29533 $ac_includes_default
29534 typedef size_t ac__type_sizeof_;
29538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29545 rm -f conftest.$ac_objext
29546 if { (ac_try="$ac_compile"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_compile") 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29560 { (case "(($ac_try" in
29561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562 *) ac_try_echo=$ac_try;;
29564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565 (eval "$ac_try") 2>&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; } &&
29569 { ac_try='test -s conftest.$ac_objext'
29570 { (case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_try") 2>&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; }; then
29581 cat >conftest.$ac_ext <<_ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h. */
29587 $ac_includes_default
29588 typedef size_t ac__type_sizeof_;
29592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29599 rm -f conftest.$ac_objext
29600 if { (ac_try="$ac_compile"
29601 case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_compile") 2>conftest.er1
29608 grep -v '^ *+' conftest.er1 >conftest.err
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
29613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29614 { (case "(($ac_try" in
29615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_try") 2>&5
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); }; } &&
29623 { ac_try='test -s conftest.$ac_objext'
29624 { (case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629 (eval "$ac_try") 2>&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ac_hi=$ac_mid; break
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_lo=`expr $ac_mid + 1`
29639 if test $ac_lo -le $ac_mid; then
29643 ac_mid=`expr 2 '*' $ac_mid + 1`
29646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29649 echo "$as_me: failed program was:" >&5
29650 sed 's/^/| /' conftest.$ac_ext >&5
29652 cat >conftest.$ac_ext <<_ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h. */
29658 $ac_includes_default
29659 typedef size_t ac__type_sizeof_;
29663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29679 grep -v '^ *+' conftest.er1 >conftest.err
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29706 cat >conftest.$ac_ext <<_ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h. */
29712 $ac_includes_default
29713 typedef size_t ac__type_sizeof_;
29717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29724 rm -f conftest.$ac_objext
29725 if { (ac_try="$ac_compile"
29726 case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_compile") 2>conftest.er1
29733 grep -v '^ *+' conftest.er1 >conftest.err
29735 cat conftest.err >&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
29738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29739 { (case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_try") 2>&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; } &&
29748 { ac_try='test -s conftest.$ac_objext'
29749 { (case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_try") 2>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29758 ac_lo=$ac_mid; break
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29763 ac_hi=`expr '(' $ac_mid ')' - 1`
29764 if test $ac_mid -le $ac_hi; then
29768 ac_mid=`expr 2 '*' $ac_mid`
29771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784 # Binary search between lo and hi bounds.
29785 while test "x$ac_lo" != "x$ac_hi"; do
29786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29787 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 $ac_includes_default
29794 typedef size_t ac__type_sizeof_;
29798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29805 rm -f conftest.$ac_objext
29806 if { (ac_try="$ac_compile"
29807 case "(($ac_try" in
29808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809 *) ac_try_echo=$ac_try;;
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812 (eval "$ac_compile") 2>conftest.er1
29814 grep -v '^ *+' conftest.er1 >conftest.err
29816 cat conftest.err >&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } &&
29819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29820 { (case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_try") 2>&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; } &&
29829 { ac_try='test -s conftest.$ac_objext'
29830 { (case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_try") 2>&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; }; then
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29844 ac_lo=`expr '(' $ac_mid ')' + 1`
29847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29850 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29852 See \`config.log' for more details." >&5
29853 echo "$as_me: error: cannot compute sizeof (size_t)
29854 See \`config.log' for more details." >&2;}
29855 { (exit 77); exit 77; }; } ;;
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 $ac_includes_default
29865 typedef size_t ac__type_sizeof_;
29866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29869 #include <stdlib.h>
29874 FILE *f = fopen ("conftest.val", "w");
29877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29879 long int i = longval ();
29880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29882 fprintf (f, "%ld\n", i);
29886 unsigned long int i = ulongval ();
29887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29889 fprintf (f, "%lu\n", i);
29891 return ferror (f) || fclose (f) != 0;
29897 rm -f conftest$ac_exeext
29898 if { (ac_try="$ac_link"
29899 case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_link") 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29908 { (case "(($ac_try" in
29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910 *) ac_try_echo=$ac_try;;
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913 (eval "$ac_try") 2>&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; }; then
29917 ac_cv_sizeof_size_t=`cat conftest.val`
29919 echo "$as_me: program exited with status $ac_status" >&5
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ( exit $ac_status )
29924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29925 See \`config.log' for more details." >&5
29926 echo "$as_me: error: cannot compute sizeof (size_t)
29927 See \`config.log' for more details." >&2;}
29928 { (exit 77); exit 77; }; }
29930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29934 ac_cv_sizeof_size_t=0
29937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29938 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29939 cat >>confdefs.h <<_ACEOF
29940 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29946 cat >>confdefs.h <<_ACEOF
29947 #define NFS_STATEDIR "$statedir"
29951 if test "x$cross_compiling" = "xno"; then
29952 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29953 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29954 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29955 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29957 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29958 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29959 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29960 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29975 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29980 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29982 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
29984 AM_CFLAGS="$my_am_cflags"
29987 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29988 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29991 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"
29993 cat >confcache <<\_ACEOF
29994 # This file is a shell script that caches the results of configure
29995 # tests run on this system so they can be shared between configure
29996 # scripts and configure runs, see configure's option --config-cache.
29997 # It is not useful on other systems. If it contains results you don't
29998 # want to keep, you may remove or edit it.
30000 # config.status only pays attention to the cache file if you give it
30001 # the --recheck option to rerun configure.
30003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30005 # following values.
30009 # The following way of writing the cache mishandles newlines in values,
30010 # but we know of no workaround that is simple, portable, and efficient.
30011 # So, we kill variables containing newlines.
30012 # Ultrix sh set writes to stderr and can't be redirected directly,
30013 # and sets the high bit in the cache file unless we assign to the vars.
30015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30016 eval ac_val=\$$ac_var
30020 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30021 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30024 _ | IFS | as_nl) ;; #(
30025 *) $as_unset $ac_var ;;
30031 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30032 *${as_nl}ac_space=\ *)
30033 # `set' does not quote correctly, so add quotes (double-quote
30034 # substitution turns \\\\ into \\, and sed turns \\ into \).
30037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30040 # `set' quotes correctly as required by POSIX, so do not add quotes.
30041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30054 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30055 if test -w "$cache_file"; then
30056 test "x$cache_file" != "x/dev/null" &&
30057 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30058 echo "$as_me: updating cache $cache_file" >&6;}
30059 cat confcache >$cache_file
30061 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30062 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30068 # Let make expand exec_prefix.
30069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30071 DEFS=-DHAVE_CONFIG_H
30075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30076 # 1. Remove the extension, and $U if already installed.
30077 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30078 ac_i=`echo "$ac_i" | sed "$ac_script"`
30079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30080 # will be set to the directory where LIBOBJS objects are built.
30081 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30082 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30084 LIBOBJS=$ac_libobjs
30086 LTLIBOBJS=$ac_ltlibobjs
30089 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30090 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30091 Usually this means the macro was only invoked conditionally." >&5
30092 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&2;}
30094 { (exit 1); exit 1; }; }
30096 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30097 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30098 Usually this means the macro was only invoked conditionally." >&5
30099 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&2;}
30101 { (exit 1); exit 1; }; }
30103 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30104 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30105 Usually this means the macro was only invoked conditionally." >&5
30106 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30107 Usually this means the macro was only invoked conditionally." >&2;}
30108 { (exit 1); exit 1; }; }
30110 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30111 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30112 Usually this means the macro was only invoked conditionally." >&5
30113 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30114 Usually this means the macro was only invoked conditionally." >&2;}
30115 { (exit 1); exit 1; }; }
30117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30118 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30119 Usually this means the macro was only invoked conditionally." >&5
30120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30121 Usually this means the macro was only invoked conditionally." >&2;}
30122 { (exit 1); exit 1; }; }
30124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30126 Usually this means the macro was only invoked conditionally." >&5
30127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30128 Usually this means the macro was only invoked conditionally." >&2;}
30129 { (exit 1); exit 1; }; }
30131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30132 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30133 Usually this means the macro was only invoked conditionally." >&5
30134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30135 Usually this means the macro was only invoked conditionally." >&2;}
30136 { (exit 1); exit 1; }; }
30138 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30139 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30140 Usually this means the macro was only invoked conditionally." >&5
30141 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30142 Usually this means the macro was only invoked conditionally." >&2;}
30143 { (exit 1); exit 1; }; }
30146 : ${CONFIG_STATUS=./config.status}
30147 ac_clean_files_save=$ac_clean_files
30148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30151 cat >$CONFIG_STATUS <<_ACEOF
30153 # Generated by $as_me.
30154 # Run this file to recreate the current configuration.
30155 # Compiler output produced by configure, useful for debugging
30156 # configure, is in config.log if it exists.
30159 ac_cs_recheck=false
30161 SHELL=\${CONFIG_SHELL-$SHELL}
30164 cat >>$CONFIG_STATUS <<\_ACEOF
30165 ## --------------------- ##
30166 ## M4sh Initialization. ##
30167 ## --------------------- ##
30169 # Be Bourne compatible
30170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30174 # is contrary to our usage. Disable this feature.
30175 alias -g '${1+"$@"}'='"$@"'
30176 setopt NO_GLOB_SUBST
30178 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30180 BIN_SH=xpg4; export BIN_SH # for Tru64
30181 DUALCASE=1; export DUALCASE # for MKS sh
30185 # Avoid depending upon Character Ranges.
30186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30189 as_cr_digits='0123456789'
30190 as_cr_alnum=$as_cr_Letters$as_cr_digits
30192 # The user is always right.
30193 if test "${PATH_SEPARATOR+set}" != set; then
30194 echo "#! /bin/sh" >conf$$.sh
30195 echo "exit 0" >>conf$$.sh
30197 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30205 # Support unset when possible.
30206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30214 # We need space, tab and new line, in precisely that order. Quoting is
30215 # there to prevent editors from complaining about space-tab.
30216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30217 # splitting by setting IFS to empty value.)
30222 # Find who we are. Look in the path if we contain no directory separator.
30224 *[\\/]* ) as_myself=$0 ;;
30225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30226 for as_dir in $PATH
30229 test -z "$as_dir" && as_dir=.
30230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30236 # We did not find ourselves, most probably we were run as `sh COMMAND'
30237 # in which case we are not to be found in the path.
30238 if test "x$as_myself" = x; then
30241 if test ! -f "$as_myself"; then
30242 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30243 { (exit 1); exit 1; }
30246 # Work around bugs in pre-3.0 UWIN ksh.
30247 for as_var in ENV MAIL MAILPATH
30248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30258 LC_TELEPHONE LC_TIME
30260 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30261 eval $as_var=C; export $as_var
30263 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30267 # Required to use basename.
30268 if expr a : '\(a\)' >/dev/null 2>&1 &&
30269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30276 as_basename=basename
30282 # Name of the executable.
30283 as_me=`$as_basename -- "$0" ||
30284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30285 X"$0" : 'X\(//\)$' \| \
30286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30288 sed '/^.*\/\([^/][^/]*\)\/*$/{
30307 as_lineno_1=$LINENO
30308 as_lineno_2=$LINENO
30309 test "x$as_lineno_1" != "x$as_lineno_2" &&
30310 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30313 # uniformly replaced by the line number. The first 'sed' inserts a
30314 # line-number line after each line using $LINENO; the second 'sed'
30315 # does the real work. The second script uses 'N' to pair each
30316 # line-number line with the line containing $LINENO, and appends
30317 # trailing '-' during substitution so that $LINENO is not a special
30318 # case at line end.
30319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30320 # scripts with optimization help from Paolo Bonzini. Blame Lee
30321 # E. McMahon (1931-1989) for sed's syntax. :-)
30333 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30336 ' >$as_me.lineno &&
30337 chmod +x "$as_me.lineno" ||
30338 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30339 { (exit 1); exit 1; }; }
30341 # Don't try to exec as it changes $[0], causing all sort of problems
30342 # (the dirname of $[0] is not the place where we might find the
30343 # original and so on. Autoconf is especially sensitive to this).
30344 . "./$as_me.lineno"
30345 # Exit status is that of the last command.
30350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30356 ECHO_C= ECHO_N= ECHO_T=
30357 case `echo -n x` in
30359 case `echo 'x\c'` in
30360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30367 if expr a : '\(a\)' >/dev/null 2>&1 &&
30368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30374 rm -f conf$$ conf$$.exe conf$$.file
30375 if test -d conf$$.dir; then
30376 rm -f conf$$.dir/conf$$.file
30382 if ln -s conf$$.file conf$$ 2>/dev/null; then
30384 # ... but there are two gotchas:
30385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30387 # In both cases, we have to default to `cp -p'.
30388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30390 elif ln conf$$.file conf$$ 2>/dev/null; then
30395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30396 rmdir conf$$.dir 2>/dev/null
30398 if mkdir -p . 2>/dev/null; then
30401 test -d ./-p && rmdir ./-p
30405 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
30406 # systems may use methods other than mode bits to determine executability.
30407 cat >conf$$.file <<_ASEOF
30411 chmod +x conf$$.file
30412 if test -x conf$$.file >/dev/null 2>&1; then
30413 as_executable_p="test -x"
30419 # Sed expression to map a string onto a valid CPP name.
30420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30422 # Sed expression to map a string onto a valid variable name.
30423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30428 # Save the log message, to keep $[0] and so on meaningful, and to
30429 # report actual input values of CONFIG_FILES etc. instead of their
30430 # values after options handling.
30432 This file was extended by linux nfs-utils $as_me 1.0.9-pre1, which was
30433 generated by GNU Autoconf 2.59e. Invocation command line was
30435 CONFIG_FILES = $CONFIG_FILES
30436 CONFIG_HEADERS = $CONFIG_HEADERS
30437 CONFIG_LINKS = $CONFIG_LINKS
30438 CONFIG_COMMANDS = $CONFIG_COMMANDS
30441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30446 cat >>$CONFIG_STATUS <<_ACEOF
30447 # Files that config.status was made for.
30448 config_files="$ac_config_files"
30449 config_headers="$ac_config_headers"
30450 config_commands="$ac_config_commands"
30454 cat >>$CONFIG_STATUS <<\_ACEOF
30456 \`$as_me' instantiates files from templates according to the
30457 current configuration.
30459 Usage: $0 [OPTIONS] [FILE]...
30461 -h, --help print this help, then exit
30462 -V, --version print version number, then exit
30463 -q, --quiet do not print progress messages
30464 -d, --debug don't remove temporary files
30465 --recheck update $as_me by reconfiguring in the same conditions
30466 --file=FILE[:TEMPLATE]
30467 instantiate the configuration file FILE
30468 --header=FILE[:TEMPLATE]
30469 instantiate the configuration header FILE
30471 Configuration files:
30474 Configuration headers:
30477 Configuration commands:
30480 Report bugs to <bug-autoconf@gnu.org>."
30483 cat >>$CONFIG_STATUS <<_ACEOF
30485 linux nfs-utils config.status 1.0.9-pre1
30486 configured by $0, generated by GNU Autoconf 2.59e,
30487 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30489 Copyright (C) 2006 Free Software Foundation, Inc.
30490 This config.status script is free software; the Free Software Foundation
30491 gives unlimited permission to copy, distribute and modify it."
30498 cat >>$CONFIG_STATUS <<\_ACEOF
30499 # If no file are specified by the user, then we need to provide default
30500 # value. By we need to know if files were specified by the user.
30506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30518 # Handling of the options.
30519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30522 echo "$ac_cs_version"; exit ;;
30523 --debug | --debu | --deb | --de | --d | -d )
30525 --file | --fil | --fi | --f )
30527 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30528 ac_need_defaults=false;;
30529 --header | --heade | --head | --hea )
30531 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30532 ac_need_defaults=false;;
30534 # Conflict between --help and --header
30535 { echo "$as_me: error: ambiguous option: $1
30536 Try \`$0 --help' for more information." >&2
30537 { (exit 1); exit 1; }; };;
30538 --help | --hel | -h )
30539 echo "$ac_cs_usage"; exit ;;
30540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30544 # This is an error.
30545 -*) { echo "$as_me: error: unrecognized option: $1
30546 Try \`$0 --help' for more information." >&2
30547 { (exit 1); exit 1; }; } ;;
30549 *) ac_config_targets="$ac_config_targets $1"
30550 ac_need_defaults=false ;;
30556 ac_configure_extra_args=
30558 if $ac_cs_silent; then
30560 ac_configure_extra_args="$ac_configure_extra_args --silent"
30564 cat >>$CONFIG_STATUS <<_ACEOF
30565 if \$ac_cs_recheck; then
30566 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30567 CONFIG_SHELL=$SHELL
30568 export CONFIG_SHELL
30569 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30573 cat >>$CONFIG_STATUS <<\_ACEOF
30577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30578 ## Running $as_me. ##
30584 cat >>$CONFIG_STATUS <<_ACEOF
30588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30592 cat >>$CONFIG_STATUS <<\_ACEOF
30594 # Handling of arguments.
30595 for ac_config_target in $ac_config_targets
30597 case $ac_config_target in
30598 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30599 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30601 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30602 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30603 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30604 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30605 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30606 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30607 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30608 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30609 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30610 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30611 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30612 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
30613 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
30614 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30615 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30616 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30617 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30618 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30619 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30620 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30621 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30622 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
30623 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30624 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30625 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30626 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30627 "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
30628 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30629 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30630 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30634 { (exit 1); exit 1; }; };;
30639 # If the user did not use the arguments to specify the items to instantiate,
30640 # then the envvar interface is used. Set only those that are not.
30641 # We use the long form for the default assignment because of an extremely
30642 # bizarre bug on SunOS 4.1.3.
30643 if $ac_need_defaults; then
30644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30649 # Have a temporary directory for convenience. Make it in the build tree
30650 # simply because there is no reason against having it here, and in addition,
30651 # creating and moving files from /tmp can sometimes cause problems.
30652 # Hook for its removal unless debugging.
30653 # Note that there is a small window in which the directory will not be cleaned:
30654 # after its creation but before its name has been assigned to `$tmp'.
30658 trap 'exit_status=$?
30659 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30661 trap '{ (exit 1); exit 1; }' 1 2 13 15
30663 # Create a (secure) tmp directory for tmp files.
30666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30667 test -n "$tmp" && test -d "$tmp"
30670 tmp=./conf$$-$RANDOM
30671 (umask 077 && mkdir "$tmp")
30674 echo "$me: cannot create a temporary directory in ." >&2
30675 { (exit 1); exit 1; }
30679 # Set up the sed scripts for CONFIG_FILES section.
30682 # No need to generate the scripts if there are no CONFIG_FILES.
30683 # This happens for instance when ./config.status config.h
30684 if test -n "$CONFIG_FILES"; then
30691 for ac_last_try in false false false false false :; do
30692 cat >conf$$subs.sed <<_ACEOF
30693 SHELL!$SHELL$ac_delim
30694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30700 exec_prefix!$exec_prefix$ac_delim
30701 prefix!$prefix$ac_delim
30702 program_transform_name!$program_transform_name$ac_delim
30703 bindir!$bindir$ac_delim
30704 sbindir!$sbindir$ac_delim
30705 libexecdir!$libexecdir$ac_delim
30706 datarootdir!$datarootdir$ac_delim
30707 datadir!$datadir$ac_delim
30708 sysconfdir!$sysconfdir$ac_delim
30709 sharedstatedir!$sharedstatedir$ac_delim
30710 localstatedir!$localstatedir$ac_delim
30711 includedir!$includedir$ac_delim
30712 oldincludedir!$oldincludedir$ac_delim
30713 docdir!$docdir$ac_delim
30714 infodir!$infodir$ac_delim
30715 htmldir!$htmldir$ac_delim
30716 dvidir!$dvidir$ac_delim
30717 pdfdir!$pdfdir$ac_delim
30718 psdir!$psdir$ac_delim
30719 libdir!$libdir$ac_delim
30720 localedir!$localedir$ac_delim
30721 mandir!$mandir$ac_delim
30722 DEFS!$DEFS$ac_delim
30723 ECHO_C!$ECHO_C$ac_delim
30724 ECHO_N!$ECHO_N$ac_delim
30725 ECHO_T!$ECHO_T$ac_delim
30726 LIBS!$LIBS$ac_delim
30727 build_alias!$build_alias$ac_delim
30728 host_alias!$host_alias$ac_delim
30729 target_alias!$target_alias$ac_delim
30730 build!$build$ac_delim
30731 build_cpu!$build_cpu$ac_delim
30732 build_vendor!$build_vendor$ac_delim
30733 build_os!$build_os$ac_delim
30734 host!$host$ac_delim
30735 host_cpu!$host_cpu$ac_delim
30736 host_vendor!$host_vendor$ac_delim
30737 host_os!$host_os$ac_delim
30738 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30739 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30740 INSTALL_DATA!$INSTALL_DATA$ac_delim
30741 CYGPATH_W!$CYGPATH_W$ac_delim
30742 PACKAGE!$PACKAGE$ac_delim
30743 VERSION!$VERSION$ac_delim
30744 ACLOCAL!$ACLOCAL$ac_delim
30745 AUTOCONF!$AUTOCONF$ac_delim
30746 AUTOMAKE!$AUTOMAKE$ac_delim
30747 AUTOHEADER!$AUTOHEADER$ac_delim
30748 MAKEINFO!$MAKEINFO$ac_delim
30749 install_sh!$install_sh$ac_delim
30750 STRIP!$STRIP$ac_delim
30751 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30752 mkdir_p!$mkdir_p$ac_delim
30754 SET_MAKE!$SET_MAKE$ac_delim
30755 am__leading_dot!$am__leading_dot$ac_delim
30756 AMTAR!$AMTAR$ac_delim
30757 am__tar!$am__tar$ac_delim
30758 am__untar!$am__untar$ac_delim
30759 RELEASE!$RELEASE$ac_delim
30760 statedir!$statedir$ac_delim
30761 statduser!$statduser$ac_delim
30762 enable_nfsv3!$enable_nfsv3$ac_delim
30763 IDMAPD!$IDMAPD$ac_delim
30764 enable_nfsv4!$enable_nfsv4$ac_delim
30765 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30766 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30767 GSSD!$GSSD$ac_delim
30768 SVCGSSD!$SVCGSSD$ac_delim
30769 enable_gss!$enable_gss$ac_delim
30770 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30771 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30772 kprefix!$kprefix$ac_delim
30773 secure_statd!$secure_statd$ac_delim
30774 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30775 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30776 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30777 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30779 CFLAGS!$CFLAGS$ac_delim
30780 LDFLAGS!$LDFLAGS$ac_delim
30781 CPPFLAGS!$CPPFLAGS$ac_delim
30782 ac_ct_CC!$ac_ct_CC$ac_delim
30783 EXEEXT!$EXEEXT$ac_delim
30784 OBJEXT!$OBJEXT$ac_delim
30785 DEPDIR!$DEPDIR$ac_delim
30786 am__include!$am__include$ac_delim
30787 am__quote!$am__quote$ac_delim
30788 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30789 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30794 elif $ac_last_try; then
30795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30797 { (exit 1); exit 1; }; }
30799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30804 if test -n "$ac_eof"; then
30805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30806 ac_eof=`expr $ac_eof + 1`
30809 cat >>$CONFIG_STATUS <<_ACEOF
30810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30815 s/^/s,@/; s/!/@,|#_!!_#|/
30818 s/'"$ac_delim"'$/,g/; t
30820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30821 ' >>$CONFIG_STATUS <conf$$subs.sed
30822 rm -f conf$$subs.sed
30823 cat >>$CONFIG_STATUS <<_ACEOF
30829 for ac_last_try in false false false false false :; do
30830 cat >conf$$subs.sed <<_ACEOF
30831 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30832 CCDEPMODE!$CCDEPMODE$ac_delim
30833 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30834 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30835 LIBWRAP!$LIBWRAP$ac_delim
30836 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30837 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30839 CXXFLAGS!$CXXFLAGS$ac_delim
30840 ac_ct_CXX!$ac_ct_CXX$ac_delim
30841 CXXDEPMODE!$CXXDEPMODE$ac_delim
30842 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30843 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30845 LN_S!$LN_S$ac_delim
30846 GREP!$GREP$ac_delim
30847 EGREP!$EGREP$ac_delim
30848 ECHO!$ECHO$ac_delim
30850 RANLIB!$RANLIB$ac_delim
30851 CXXCPP!$CXXCPP$ac_delim
30853 FFLAGS!$FFLAGS$ac_delim
30854 ac_ct_F77!$ac_ct_F77$ac_delim
30855 LIBTOOL!$LIBTOOL$ac_delim
30856 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30858 PKG_CONFIG!$PKG_CONFIG$ac_delim
30859 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30860 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30861 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30862 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30863 LIBSOCKET!$LIBSOCKET$ac_delim
30864 LIBNSL!$LIBNSL$ac_delim
30865 LIBCRYPT!$LIBCRYPT$ac_delim
30866 LIBBSD!$LIBBSD$ac_delim
30867 KRBDIR!$KRBDIR$ac_delim
30868 KRBLIBS!$KRBLIBS$ac_delim
30869 KRBCFLAGS!$KRBCFLAGS$ac_delim
30870 K5VERS!$K5VERS$ac_delim
30871 ALLOCA!$ALLOCA$ac_delim
30872 LIBOBJS!$LIBOBJS$ac_delim
30873 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30874 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30875 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30876 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30877 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30878 AM_CFLAGS!$AM_CFLAGS$ac_delim
30879 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30880 LTLIBOBJS!$LTLIBOBJS$ac_delim
30883 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
30885 elif $ac_last_try; then
30886 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30887 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30888 { (exit 1); exit 1; }; }
30890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30894 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30895 if test -n "$ac_eof"; then
30896 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30897 ac_eof=`expr $ac_eof + 1`
30900 cat >>$CONFIG_STATUS <<_ACEOF
30901 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30905 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30906 s/^/s,@/; s/!/@,|#_!!_#|/
30909 s/'"$ac_delim"'$/,g/; t
30911 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30912 ' >>$CONFIG_STATUS <conf$$subs.sed
30913 rm -f conf$$subs.sed
30914 cat >>$CONFIG_STATUS <<_ACEOF
30921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30923 # trailing colons and then remove the whole line if VPATH becomes empty
30924 # (actually we leave an empty line to preserve line numbers).
30925 if test "x$srcdir" = x.; then
30926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30927 s/:*\$(srcdir):*/:/
30928 s/:*\${srcdir}:*/:/
30930 s/^\([^=]*=[ ]*\):*/\1/
30936 cat >>$CONFIG_STATUS <<\_ACEOF
30937 fi # test -n "$CONFIG_FILES"
30940 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30943 :[FHLC]) ac_mode=$ac_tag; continue;;
30945 case $ac_mode$ac_tag in
30947 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30948 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30949 { (exit 1); exit 1; }; };;
30950 :[FH]-) ac_tag=-:-;;
30951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30968 -) ac_f="$tmp/stdin";;
30969 *) # Look for the file first in the build tree, then in the source tree
30970 # (if the path is not absolute). The absolute path cannot be DOS-style,
30971 # because $ac_f cannot contain `:'.
30975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30977 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30978 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30979 { (exit 1); exit 1; }; };;
30981 ac_file_inputs="$ac_file_inputs $ac_f"
30984 # Let's still pretend it is `configure' which instantiates (i.e., don't
30985 # use $as_me), people would be surprised to read:
30986 # /* config.h. Generated by config.status. */
30987 configure_input="Generated from "`IFS=:
30988 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30989 if test x"$ac_file" != x-; then
30990 configure_input="$ac_file. $configure_input"
30991 { echo "$as_me:$LINENO: creating $ac_file" >&5
30992 echo "$as_me: creating $ac_file" >&6;}
30996 *:-:* | *:-) cat >"$tmp/stdin";;
31001 ac_dir=`$as_dirname -- "$ac_file" ||
31002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31003 X"$ac_file" : 'X\(//\)[^/]' \| \
31004 X"$ac_file" : 'X\(//\)$' \| \
31005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31011 /^X\(\/\/\)[^/].*/{
31026 -*) as_dir=./$as_dir;;
31028 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31032 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31033 *) as_qdir=$as_dir;;
31035 as_dirs="'$as_qdir' $as_dirs"
31036 as_dir=`$as_dirname -- "$as_dir" ||
31037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31038 X"$as_dir" : 'X\(//\)[^/]' \| \
31039 X"$as_dir" : 'X\(//\)$' \| \
31040 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31046 /^X\(\/\/\)[^/].*/{
31059 test -d "$as_dir" && break
31061 test -z "$as_dirs" || eval "mkdir $as_dirs"
31062 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31064 { (exit 1); exit 1; }; }; }
31068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31071 # A ".." for each directory in $ac_dir_suffix.
31072 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31073 case $ac_top_builddir_sub in
31074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31078 ac_abs_top_builddir=$ac_pwd
31079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31080 # for backward compatibility:
31081 ac_top_builddir=$ac_top_build_prefix
31084 .) # We are building in place.
31086 ac_top_srcdir=$ac_top_builddir_sub
31087 ac_abs_top_srcdir=$ac_pwd ;;
31088 [\\/]* | ?:[\\/]* ) # Absolute name.
31089 ac_srcdir=$srcdir$ac_dir_suffix;
31090 ac_top_srcdir=$srcdir
31091 ac_abs_top_srcdir=$srcdir ;;
31092 *) # Relative name.
31093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31094 ac_top_srcdir=$ac_top_build_prefix$srcdir
31095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31112 cat >>$CONFIG_STATUS <<\_ACEOF
31113 # If the template does not know about datarootdir, expand it.
31114 # FIXME: This hack should be removed a few years after 2.60.
31115 ac_datarootdir_hack=; ac_datarootdir_seen=
31117 case `sed -n '/datarootdir/ {
31126 ' $ac_file_inputs` in
31127 *datarootdir*) ac_datarootdir_seen=yes;;
31128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31129 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31130 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31132 cat >>$CONFIG_STATUS <<_ACEOF
31133 ac_datarootdir_hack='
31134 s&@datadir@&$datadir&g
31135 s&@docdir@&$docdir&g
31136 s&@infodir@&$infodir&g
31137 s&@localedir@&$localedir&g
31138 s&@mandir@&$mandir&g
31139 s&\\\${datarootdir}&$datarootdir&g' ;;
31143 # Neutralize VPATH when `$srcdir' = `.'.
31144 # Shell code in configure.ac might set extrasub.
31145 # FIXME: do we really want to maintain this feature?
31146 cat >>$CONFIG_STATUS <<_ACEOF
31150 cat >>$CONFIG_STATUS <<\_ACEOF
31152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31153 s&@configure_input@&$configure_input&;t t
31154 s&@top_builddir@&$ac_top_builddir_sub&;t t
31155 s&@srcdir@&$ac_srcdir&;t t
31156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31157 s&@top_srcdir@&$ac_top_srcdir&;t t
31158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31159 s&@builddir@&$ac_builddir&;t t
31160 s&@abs_builddir@&$ac_abs_builddir&;t t
31161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31162 s&@INSTALL@&$ac_INSTALL&;t t
31163 $ac_datarootdir_hack
31164 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31167 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31168 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31169 which seems to be undefined. Please make sure it is defined." >&5
31170 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31171 which seems to be undefined. Please make sure it is defined." >&2;}
31175 -) cat "$tmp/out"; rm -f "$tmp/out";;
31176 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31185 # Transform confdefs.h into a sed script `conftest.defines', that
31186 # substitutes the proper values into config.h.in to produce config.h.
31187 rm -f conftest.defines conftest.tail
31188 # First, append a space to every undef/define line, to ease matching.
31189 echo 's/$/ /' >conftest.defines
31190 # Then, protect against being on the right side of a sed subst, or in
31191 # an unquoted here document, in config.status. If some macros were
31192 # called several times there might be several #defines for the same
31193 # symbol, which is useless. But do not sort them, since the last
31194 # AC_DEFINE must be honored.
31195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31196 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31197 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31198 # PARAMS is the parameter list in the macro definition--in most cases, it's
31199 # just an empty string.
31200 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31201 ac_dB='\\)[ (].*,\\1define\\2'
31209 s/^[ ]*#[ ]*define[ ][ ]*//
31214 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31215 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31216 ' >>conftest.defines
31218 # Remove the space that was appended to ease matching.
31219 # Then replace #undef with comments. This is necessary, for
31220 # example, in the case of _POSIX_SOURCE, which is predefined and required
31221 # on some systems where configure will not decide to define it.
31222 # (The regexp can be short, since the line contains either #define or #undef.)
31224 s,^[ #]*u.*,/* & */,' >>conftest.defines
31226 # Break up conftest.defines:
31227 ac_max_sed_lines=50
31229 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31230 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31231 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31233 ac_in='$ac_file_inputs'
31234 ac_out='"$tmp/out1"'
31235 ac_nxt='"$tmp/out2"'
31239 # Write a here document:
31240 cat >>$CONFIG_STATUS <<_ACEOF
31241 # First, check the format of the line:
31242 cat >"\$tmp/defines.sed" <<\\CEOF
31243 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31244 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31248 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31250 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31251 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31252 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31253 grep . conftest.tail >/dev/null || break
31254 rm -f conftest.defines
31255 mv conftest.tail conftest.defines
31257 rm -f conftest.defines conftest.tail
31259 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31260 cat >>$CONFIG_STATUS <<\_ACEOF
31261 if test x"$ac_file" != x-; then
31262 echo "/* $configure_input */" >"$tmp/config.h"
31263 cat "$ac_result" >>"$tmp/config.h"
31264 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31265 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31266 echo "$as_me: $ac_file is unchanged" >&6;}
31269 mv "$tmp/config.h" $ac_file
31272 echo "/* $configure_input */"
31276 # Compute $ac_file's index in $config_headers.
31278 for _am_header in $config_headers :; do
31279 case $_am_header in
31280 $ac_file | $ac_file:* )
31283 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31286 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31287 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31288 X$ac_file : 'X\(//\)[^/]' \| \
31289 X$ac_file : 'X\(//\)$' \| \
31290 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31296 /^X\(\/\/\)[^/].*/{
31308 s/.*/./; q'`/stamp-h$_am_stamp_count
31311 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31312 echo "$as_me: executing $ac_file commands" >&6;}
31317 case $ac_file$ac_mode in
31318 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31319 # Strip MF so we end up with the name of the file.
31320 mf=`echo "$mf" | sed -e 's/:.*$//'`
31321 # Check whether this is an Automake generated Makefile or not.
31322 # We used to match only the files named `Makefile.in', but
31323 # some people rename them; so instead we look at the file content.
31324 # Grep'ing the first line is not enough: some people post-process
31325 # each Makefile.in and add a new line on top of each file to say so.
31326 # So let's grep whole file.
31327 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31328 dirpart=`$as_dirname -- "$mf" ||
31329 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31330 X"$mf" : 'X\(//\)[^/]' \| \
31331 X"$mf" : 'X\(//\)$' \| \
31332 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31338 /^X\(\/\/\)[^/].*/{
31354 # Extract the definition of DEPDIR, am__include, and am__quote
31355 # from the Makefile without running `make'.
31356 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31357 test -z "$DEPDIR" && continue
31358 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31359 test -z "am__include" && continue
31360 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31361 # When using ansi2knr, U may be empty or an underscore; expand it
31362 U=`sed -n 's/^U = //p' < "$mf"`
31363 # Find all dependency output files, they are included files with
31364 # $(DEPDIR) in their names. We invoke sed twice because it is the
31365 # simplest approach to changing $(DEPDIR) to its actual value in the
31367 for file in `sed -n "
31368 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31370 # Make sure the directory exists.
31371 test -f "$dirpart/$file" && continue
31372 fdir=`$as_dirname -- "$file" ||
31373 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31374 X"$file" : 'X\(//\)[^/]' \| \
31375 X"$file" : 'X\(//\)$' \| \
31376 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31382 /^X\(\/\/\)[^/].*/{
31395 { as_dir=$dirpart/$fdir
31397 -*) as_dir=./$as_dir;;
31399 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31403 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31404 *) as_qdir=$as_dir;;
31406 as_dirs="'$as_qdir' $as_dirs"
31407 as_dir=`$as_dirname -- "$as_dir" ||
31408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31409 X"$as_dir" : 'X\(//\)[^/]' \| \
31410 X"$as_dir" : 'X\(//\)$' \| \
31411 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31417 /^X\(\/\/\)[^/].*/{
31430 test -d "$as_dir" && break
31432 test -z "$as_dirs" || eval "mkdir $as_dirs"
31433 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31434 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31435 { (exit 1); exit 1; }; }; }
31436 # echo "creating $dirpart/$file"
31437 echo '# dummy' > "$dirpart/$file"
31446 { (exit 0); exit 0; }
31448 chmod +x $CONFIG_STATUS
31449 ac_clean_files=$ac_clean_files_save
31452 # configure is writing to config.log, and then calls config.status.
31453 # config.status does its own redirection, appending to config.log.
31454 # Unfortunately, on DOS this fails, as config.log is still kept open
31455 # by configure, so config.status won't be able to write to it; its
31456 # output is simply discarded. So we exec the FD to /dev/null,
31457 # effectively closing config.log, so it can be properly (re)opened and
31458 # appended to by config.status. When coming back to configure, we
31459 # need to make the FD available again.
31460 if test "$no_create" != yes; then
31462 ac_config_status_args=
31463 test "$silent" = yes &&
31464 ac_config_status_args="$ac_config_status_args --quiet"
31466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31469 # would make configure fail if this is the last instruction.
31470 $ac_cs_success || { (exit 1); exit 1; }