2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59e for linux nfs-utils 1.0.9.
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'
717 PACKAGE_STRING='linux nfs-utils 1.0.9'
718 PACKAGE_BUGREPORT='nfs@lists.sf.net'
720 ac_unique_file="tools/getiversion/getiversion.c"
721 ac_default_prefix=/usr
722 ac_unique_file="support/include/config.h.in"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
817 INSTALL_STRIP_PROGRAM
908 ac_precious_vars='build_alias
929 # Initialize some variables set by options.
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
941 program_transform_name=s,x,x,
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1017 -datadir | --datadir | --datadi | --datad)
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1029 -disable-* | --disable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1036 eval enable_$ac_feature=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055 eval enable_$ac_feature=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1219 -site=* | --site=* | --sit=*)
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package| sed 's/-/_/g'`
1252 eval with_$ac_package=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/-/_/g'`
1261 eval with_$ac_package=no ;;
1264 # Obsolete; use --with-x.
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1312 # Be sure to have absolute directory names.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures linux nfs-utils 1.0.9 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of linux nfs-utils 1.0.9:";;
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-nfsv3 enable support for NFSv3 [default=yes]
1507 --enable-nfsv4 enable support for NFSv4 [default=yes]
1508 --enable-gss enable support for rpcsec_gss [default=yes]
1509 --enable-kprefix install progs as rpc.knfsd etc
1510 --enable-secure-statd Only lockd can use statd (security)
1511 --enable-rquotad enable rquotad [default=yes]
1512 --enable-mount Create mount.nfs and don't use the util-linux
1513 mount(8) functionality. [default=no]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-release=XXX set release to XXX [1]
1526 --with-statedir=/foo use state dir /foo /var/lib/nfs
1527 --with-statduser=rpcuser
1528 statd to run under [rpcuser or nobody]
1529 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1530 (optionally in PATH)
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1532 --with-pic try to use only PIC/non-PIC objects [default=use
1534 --with-tags[=TAGS] include additional configurations [automatic]
1535 --with-krb5=DIR use Kerberos v5 installation in DIR
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1547 CXXCPP C++ preprocessor
1548 F77 Fortran 77 compiler command
1549 FFLAGS Fortran 77 compiler flags
1550 PKG_CONFIG path to pkg-config utility
1552 C compiler flags for RPCSECGSS, overriding pkg-config
1554 linker flags for RPCSECGSS, overriding pkg-config
1556 C compiler flags for GSSAPI, overriding pkg-config
1557 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <nfs@lists.sf.net>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1623 linux nfs-utils configure 1.0.9
1624 generated by GNU Autoconf 2.59e
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by linux nfs-utils $as_me 1.0.9, which was
1638 generated by GNU Autoconf 2.59e. Invocation command line was
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_must_keep_next=false
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1727 -* ) ac_must_keep_next=true ;;
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 echo "$ac_var='\''$ac_val'\''"
1801 if test -n "$ac_subst_files"; then
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 echo "$ac_var='\''$ac_val'\''"
1819 if test -s confdefs.h; then
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933 echo "$as_me: former value: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935 echo "$as_me: current value: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1992 if test -f "$ac_dir/install-sh"; then
1994 ac_install_sh="$ac_aux_dir/install-sh -c"
1996 elif test -f "$ac_dir/install.sh"; then
1998 ac_install_sh="$ac_aux_dir/install.sh -c"
2000 elif test -f "$ac_dir/shtool"; then
2002 ac_install_sh="$ac_aux_dir/shtool install -c"
2006 if test -z "$ac_aux_dir"; then
2007 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2008 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2009 { (exit 1); exit 1; }; }
2012 # These three variables are undocumented and unsupported,
2013 # and are intended to be withdrawn in a future Autoconf release.
2014 # They can cause serious problems if a builder's source tree is in a directory
2015 # whose full name contains unusual characters.
2016 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2017 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2018 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025 { (exit 1); exit 1; }; }
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038 { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051 { (exit 1); exit 1; }; };;
2054 ac_save_IFS=$IFS; IFS='-'
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test "x$host_alias" = x; then
2073 ac_cv_host=$ac_cv_build
2075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088 { (exit 1); exit 1; }; };;
2091 ac_save_IFS=$IFS; IFS='-'
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
2107 *) ac_macro_dir=$srcdir/aclocal ;;
2109 test -d "$ac_macro_dir" ||
2110 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2111 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2112 { (exit 1); exit 1; }; }
2114 am__api_version="1.9"
2115 # Find a good install program. We prefer a C program (faster),
2116 # so one script is as good as another. But avoid the broken or
2117 # incompatible versions:
2118 # SysV /etc/install, /usr/sbin/install
2119 # SunOS /usr/etc/install
2120 # IRIX /sbin/install
2122 # AmigaOS /C/install, which installs bootblocks on floppy discs
2123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126 # OS/2's system install, which has a completely different semantic
2127 # ./install, which can be erroneously created by make from ./install.sh.
2128 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2129 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2130 if test -z "$INSTALL"; then
2131 if test "${ac_cv_path_install+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 # Account for people who put trailing slashes in PATH elements.
2141 ./ | .// | /cC/* | \
2142 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2143 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2146 # OSF1 and SCO ODT 3.0 have their own names for install.
2147 # Don't use installbsd from OSF since it installs stuff as root
2149 for ac_prog in ginstall scoinst install; do
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2152 if test $ac_prog = install &&
2153 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154 # AIX install. It has an incompatible calling convention.
2156 elif test $ac_prog = install &&
2157 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158 # program-specific install script used by HP pwplus--don't use.
2161 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174 if test "${ac_cv_path_install+set}" = set; then
2175 INSTALL=$ac_cv_path_install
2177 # As a last resort, use the slow shell script. Don't cache a
2178 # value for INSTALL within a source directory, because that will
2179 # break other packages using the cache if that directory is
2180 # removed, or if the value is a relative name.
2181 INSTALL=$ac_install_sh
2184 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2185 echo "${ECHO_T}$INSTALL" >&6; }
2187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188 # It thinks the first close brace ends the variable substitution.
2189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2195 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2196 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2199 echo timestamp > conftest.file
2200 # Do `set' in a subshell so we don't clobber the current shell's
2201 # arguments. Must try -L first in case configure is actually a
2202 # symlink; some systems play weird games with the mod time of symlinks
2203 # (eg FreeBSD returns the mod time of the symlink's containing
2206 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2207 if test "$*" = "X"; then
2209 set X `ls -t $srcdir/configure conftest.file`
2212 if test "$*" != "X $srcdir/configure conftest.file" \
2213 && test "$*" != "X conftest.file $srcdir/configure"; then
2215 # If neither matched, then we have a broken ls. This can happen
2216 # if, for instance, CONFIG_SHELL is bash and it inherits a
2217 # broken ls alias from the environment. This has actually
2218 # happened. Such a system could not be considered "sane".
2219 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2220 alias in your environment" >&5
2221 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2222 alias in your environment" >&2;}
2223 { (exit 1); exit 1; }; }
2226 test "$2" = conftest.file
2232 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2233 Check your system clock" >&5
2234 echo "$as_me: error: newly created file is older than distributed files!
2235 Check your system clock" >&2;}
2236 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 test "$program_prefix" != NONE &&
2241 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2242 # Use a double $ so make ignores it.
2243 test "$program_suffix" != NONE &&
2244 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2245 # Double any \ or $. echo might interpret backslashes.
2246 # By default was `s,x,x', remove it if useless.
2247 cat <<\_ACEOF >conftest.sed
2248 s/[\\$]/&&/g;s/;s,x,x,$//
2250 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2253 # expand $ac_aux_dir to an absolute path
2254 am_aux_dir=`cd $ac_aux_dir && pwd`
2256 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2257 # Use eval to expand $SHELL
2258 if eval "$MISSING --run true"; then
2259 am_missing_run="$MISSING --run "
2262 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2263 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2266 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2267 # We used to keeping the `.' as first argument, in order to
2268 # allow $(mkdir_p) to be used without argument. As in
2269 # $(mkdir_p) $(somedir)
2270 # where $(somedir) is conditionally defined. However this is wrong
2272 # 1. if the package is installed by a user who cannot write `.'
2273 # make install will fail,
2274 # 2. the above comment should most certainly read
2275 # $(mkdir_p) $(DESTDIR)$(somedir)
2276 # so it does not work when $(somedir) is undefined and
2277 # $(DESTDIR) is not.
2278 # To support the latter case, we have to write
2279 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2280 # so the `.' trick is pointless.
2281 mkdir_p='mkdir -p --'
2283 # On NextStep and OpenStep, the `mkdir' command does not
2284 # recognize any option. It will interpret all options as
2285 # directories to create, and then abort because `.' already
2287 for d in ./-p ./--version;
2289 test -d $d && rmdir $d
2291 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2292 if test -f "$ac_aux_dir/mkinstalldirs"; then
2293 mkdir_p='$(mkinstalldirs)'
2295 mkdir_p='$(install_sh) -d'
2299 for ac_prog in gawk mawk nawk awk
2301 # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy $ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_AWK+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$AWK"; then
2309 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_AWK="$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 if test -n "$AWK"; then
2330 { echo "$as_me:$LINENO: result: $AWK" >&5
2331 echo "${ECHO_T}$AWK" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2338 test -n "$AWK" && break
2341 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2343 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
2344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.make <<\_ACEOF
2350 @echo '@@@%%%=$(MAKE)=@@@%%%'
2352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2355 eval ac_cv_prog_make_${ac_make}_set=yes;;
2357 eval ac_cv_prog_make_${ac_make}_set=no;;
2361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362 { echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6; }
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2368 SET_MAKE="MAKE=${MAKE-make}"
2371 rm -rf .tst 2>/dev/null
2372 mkdir .tst 2>/dev/null
2373 if test -d .tst; then
2378 rmdir .tst 2>/dev/null
2380 # test to see if srcdir already configured
2381 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2382 test -f $srcdir/config.status; then
2383 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2384 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2385 { (exit 1); exit 1; }; }
2388 # test whether we have cygpath
2389 if test -z "$CYGPATH_W"; then
2390 if (cygpath --version) >/dev/null 2>/dev/null; then
2391 CYGPATH_W='cygpath -w'
2398 # Define the identity of the package.
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE "$PACKAGE"
2408 cat >>confdefs.h <<_ACEOF
2409 #define VERSION "$VERSION"
2412 # Some tools Automake needs.
2414 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2428 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'. However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_STRIP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$STRIP"; then
2444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465 { echo "$as_me:$LINENO: result: $STRIP" >&5
2466 echo "${ECHO_T}$STRIP" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_STRIP"; then
2476 # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_STRIP"; then
2484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_STRIP="strip"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2506 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_STRIP" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2528 STRIP="$ac_cv_prog_STRIP"
2532 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2534 # We need awk for the "check" target. The system "awk" is bad on
2536 # Always define AMTAR for backward compatibility.
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550 # Check whether --with-release was given.
2551 if test "${with_release+set}" = set; then
2552 withval=$with_release; RELEASE=$withval
2559 # Check whether --with-statedir was given.
2560 if test "${with_statedir+set}" = set; then
2561 withval=$with_statedir; statedir=$withval
2563 statedir=/var/lib/nfs
2568 # Check whether --with-statduser was given.
2569 if test "${with_statduser+set}" = set; then
2570 withval=$with_statduser; statduser=$withval
2572 if test "x$cross_compiling" = "xno"; then
2573 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2584 # Check whether --enable-nfsv3 was given.
2585 if test "${enable_nfsv3+set}" = set; then
2586 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2591 if test "$enable_nfsv3" = yes; then
2593 cat >>confdefs.h <<\_ACEOF
2594 #define NFS3_SUPPORTED 1
2601 # Check whether --enable-nfsv4 was given.
2602 if test "${enable_nfsv4+set}" = set; then
2603 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2608 if test "$enable_nfsv4" = yes; then
2610 cat >>confdefs.h <<\_ACEOF
2611 #define NFS4_SUPPORTED 1
2623 if test "$enable_nfsv4" = "yes"; then
2625 CONFIG_NFSV4_FALSE='#'
2627 CONFIG_NFSV4_TRUE='#'
2631 # Check whether --enable-gss was given.
2632 if test "${enable_gss+set}" = set; then
2633 enableval=$enable_gss; enable_gss=$enableval
2638 if test "$enable_gss" = yes; then
2640 cat >>confdefs.h <<\_ACEOF
2641 #define GSS_SUPPORTED 1
2656 if test "$enable_gss" = "yes"; then
2658 CONFIG_GSS_FALSE='#'
2664 # Check whether --enable-kprefix was given.
2665 if test "${enable_kprefix+set}" = set; then
2666 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2672 # Check whether --enable-secure-statd was given.
2673 if test "${enable_secure_statd+set}" = set; then
2674 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2679 if test "$secure_statd" = yes; then
2681 cat >>confdefs.h <<\_ACEOF
2682 #define RESTRICTED_STATD 1
2687 # Check whether --enable-rquotad was given.
2688 if test "${enable_rquotad+set}" = set; then
2689 enableval=$enable_rquotad; enable_rquotad=$enableval
2694 if test "$enable_rquotad" = yes; then
2701 if test "$enable_rquotad" = "yes"; then
2702 CONFIG_RQUOTAD_TRUE=
2703 CONFIG_RQUOTAD_FALSE='#'
2705 CONFIG_RQUOTAD_TRUE='#'
2706 CONFIG_RQUOTAD_FALSE=
2710 # Check whether --enable-mount was given.
2711 if test "${enable_mount+set}" = set; then
2712 enableval=$enable_mount; enable_mount=$enableval
2719 if test "$enable_mount" = "yes"; then
2721 CONFIG_MOUNT_FALSE='#'
2723 CONFIG_MOUNT_TRUE='#'
2728 # Check whether user wants TCP wrappers support
2729 DEPDIR="${am__leading_dot}deps"
2731 ac_config_commands="$ac_config_commands depfiles"
2734 am_make=${MAKE-make}
2735 cat > confinc << 'END'
2740 # If we don't find an include directive, just comment out the code.
2741 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2742 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2746 # First try GNU make style include.
2747 echo "include confinc" > confmf
2748 # We grep out `Entering directory' and `Leaving directory'
2749 # messages which can occur if `w' ends up in MAKEFLAGS.
2750 # In particular we don't look at `^make:' because GNU make might
2751 # be invoked under some other name (usually "gmake"), in which
2752 # case it prints its new name instead of `make'.
2753 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758 # Now try BSD make style include.
2759 if test "$am__include" = "#"; then
2760 echo '.include "confinc"' > confmf
2761 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2762 am__include=.include
2769 { echo "$as_me:$LINENO: result: $_am_result" >&5
2770 echo "${ECHO_T}$_am_result" >&6; }
2771 rm -f confinc confmf
2773 # Check whether --enable-dependency-tracking was given.
2774 if test "${enable_dependency_tracking+set}" = set; then
2775 enableval=$enable_dependency_tracking;
2778 if test "x$enable_dependency_tracking" != xno; then
2779 am_depcomp="$ac_aux_dir/depcomp"
2784 if test "x$enable_dependency_tracking" != xno; then
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CC"; then
2829 { echo "$as_me:$LINENO: result: $CC" >&5
2830 echo "${ECHO_T}$CC" >&6; }
2832 { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2838 if test -z "$ac_cv_prog_CC"; then
2840 # Extract the first word of "gcc", so it can be a program name with args.
2841 set dummy gcc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_CC="gcc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6; }
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2876 if test "x$ac_ct_CC" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2982 if test -n "$CC"; then
2983 { echo "$as_me:$LINENO: result: $CC" >&5
2984 echo "${ECHO_T}$CC" >&6; }
2986 { echo "$as_me:$LINENO: result: no" >&5
2987 echo "${ECHO_T}no" >&6; }
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog in cl.exe
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { echo "$as_me:$LINENO: result: $CC" >&5
3026 echo "${ECHO_T}$CC" >&6; }
3028 { echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6; }
3033 test -n "$CC" && break
3036 if test -z "$CC"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 echo "${ECHO_T}$ac_ct_CC" >&6; }
3072 { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3077 test -n "$ac_ct_CC" && break
3080 if test "x$ac_ct_CC" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3086 whose name does not start with the host triplet. If you think this
3087 configuration is useful to you, please write to autoconf@gnu.org." >&5
3088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet. If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3091 ac_tool_warned=yes ;;
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { (ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3197 for ac_file in $ac_files
3199 test -f "$ac_file" || continue
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 # We found the default executable, but exeext='' is most
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C compiler cannot create executables
3231 See \`config.log' for more details." >&2;}
3232 { (exit 77); exit 77; }; }
3235 ac_exeext=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_file" >&5
3237 echo "${ECHO_T}$ac_file" >&6; }
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3244 # If not cross compiling, check that we can run a simple program.
3245 if test "$cross_compiling" != yes; then
3246 if { ac_try='./$ac_file'
3247 { (case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_try") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 if test "$cross_compiling" = maybe; then
3261 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details." >&5
3264 echo "$as_me: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&2;}
3267 { (exit 1); exit 1; }; }
3271 { echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6; }
3274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 # Check that the compiler produces executables we can run. If not, either
3277 # the compiler is broken, or we cross compile.
3278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3281 echo "${ECHO_T}$cross_compiling" >&6; }
3283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3285 if { (ac_try="$ac_link"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_link") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; then
3295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3299 for ac_file in conftest.exe conftest conftest.*; do
3300 test -f "$ac_file" || continue
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3316 rm -f conftest$ac_cv_exeext
3317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3325 if test "${ac_cv_objext+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3343 rm -f conftest.o conftest.obj
3344 if { (ac_try="$ac_compile"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_compile") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; then
3354 for ac_file in conftest.o conftest.obj conftest.*; do
3355 test -f "$ac_file" || continue;
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3358 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3369 See \`config.log' for more details." >&2;}
3370 { (exit 1); exit 1; }; }
3373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3376 echo "${ECHO_T}$ac_cv_objext" >&6; }
3377 OBJEXT=$ac_cv_objext
3379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_try") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_try") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_save_c_werror_flag=$ac_c_werror_flag
3459 ac_c_werror_flag=yes
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } &&
3491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603 { (case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_try") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_try") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3650 if test "$GCC" = yes; then
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_cv_prog_cc_c89=no
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3687 s = g (p, va_arg (v,int));
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3693 function prototypes and stuff, but not '\xHH' hex character constants.
3694 These don't provoke an error unfortunately, instead are silently treated
3695 as 'x'. The following induces an error, until -std is added to get
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3697 array size at least. It's necessary to write '\x00'==0 to get something
3698 that's true only with -std. */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701 int test (int i, double x);
3702 struct s1 {int (*f) (int a);};
3703 struct s2 {int (*f) (double a);};
3704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3718 CC="$ac_save_CC $ac_arg"
3719 rm -f conftest.$ac_objext
3720 if { (ac_try="$ac_compile"
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3728 grep -v '^ *+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3734 { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_try") 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_cv_prog_cc_c89=$ac_arg
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3761 rm -f conftest.err conftest.$ac_objext
3762 test "x$ac_cv_prog_cc_c89" != "xno" && break
3764 rm -f conftest.$ac_ext
3769 case "x$ac_cv_prog_cc_c89" in
3771 { echo "$as_me:$LINENO: result: none needed" >&5
3772 echo "${ECHO_T}none needed" >&6; } ;;
3774 { echo "$as_me:$LINENO: result: unsupported" >&5
3775 echo "${ECHO_T}unsupported" >&6; } ;;
3777 CC="$CC $ac_cv_prog_cc_c89"
3778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3779 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 depcc="$CC" am_compiler_list=
3791 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3792 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3793 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797 # We make a subdir and do the tests there. Otherwise we can end up
3798 # making bogus files that we don't know about and never remove. For
3799 # instance it was reported that on HP-UX the gcc test will end up
3800 # making a dummy file named `D' -- because `-MD' means `put the output
3803 # Copy depcomp to subdir because otherwise we won't find it if we're
3804 # using a relative directory.
3805 cp "$am_depcomp" conftest.dir
3807 # We will build objects and dependencies in a subdirectory because
3808 # it helps to detect inapplicable dependency modes. For instance
3809 # both Tru64's cc and ICC support -MD to output dependencies as a
3810 # side effect of compilation, but ICC will put the dependencies in
3811 # the current directory while Tru64 will put them in the object
3815 am_cv_CC_dependencies_compiler_type=none
3816 if test "$am_compiler_list" = ""; then
3817 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3819 for depmode in $am_compiler_list; do
3820 # Setup a source with many dependencies, because some compilers
3821 # like to wrap large dependency lists on column 80 (with \), and
3822 # we should not choose a depcomp mode which is confused by this.
3824 # We need to recreate these files for each test, as the compiler may
3825 # overwrite some of them when testing with obscure command lines.
3826 # This happens at least with the AIX C compiler.
3828 for i in 1 2 3 4 5 6; do
3829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3831 # Solaris 8's {/usr,}/bin/sh.
3832 touch sub/conftst$i.h
3834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3848 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3849 # mode. It turns out that the SunPro C++ compiler does not properly
3850 # handle `-M -o', and we need to detect this.
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3877 am_cv_CC_dependencies_compiler_type=none
3881 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3888 test "x$enable_dependency_tracking" != xno \
3889 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3891 am__fastdepCC_FALSE='#'
3893 am__fastdepCC_TRUE='#'
3894 am__fastdepCC_FALSE=
3902 # Check whether --with-tcp-wrappers was given.
3903 if test "${with_tcp_wrappers+set}" = set; then
3904 withval=$with_tcp_wrappers;
3905 if test "x$withval" != "xno" ; then
3907 saved_LDFLAGS="$LDFLAGS"
3908 saved_CPPFLAGS="$CPPFLAGS"
3909 if test -n "${withval}" -a "${withval}" != "yes"; then
3910 if test -d "${withval}/lib"; then
3911 if test -n "${need_dash_r}"; then
3912 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3914 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3917 if test -n "${need_dash_r}"; then
3918 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3920 LDFLAGS="-L${withval} ${LDFLAGS}"
3923 if test -d "${withval}/include"; then
3924 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3926 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3930 LIBS="$LIBWRAP $LIBS"
3931 { echo "$as_me:$LINENO: checking for libwrap" >&5
3932 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3941 int deny_severity = 0, allow_severity = 0;
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_link") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest$ac_exeext'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3986 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3990 cat >>confdefs.h <<\_ACEOF
3995 cat >>confdefs.h <<\_ACEOF
3996 #define HAVE_LIBWRAP 1
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_TCP_WRAPPER 1
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4011 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4012 echo "$as_me: error: *** libwrap missing" >&2;}
4013 { (exit 1); exit 1; }; }
4018 rm -f conftest.err conftest.$ac_objext \
4019 conftest$ac_exeext conftest.$ac_ext
4032 ac_config_headers="$ac_config_headers support/include/config.h"
4035 # Checks for programs.
4037 ac_cpp='$CXXCPP $CPPFLAGS'
4038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4041 if test -z "$CXX"; then
4042 if test -n "$CCC"; then
4045 if test -n "$ac_tool_prefix"; then
4046 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4052 if test "${ac_cv_prog_CXX+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 if test -n "$CXX"; then
4056 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test -n "$CXX"; then
4077 { echo "$as_me:$LINENO: result: $CXX" >&5
4078 echo "${ECHO_T}$CXX" >&6; }
4080 { echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6; }
4085 test -n "$CXX" && break
4088 if test -z "$CXX"; then
4090 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4092 # Extract the first word of "$ac_prog", so it can be a program name with args.
4093 set dummy $ac_prog; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$ac_ct_CXX"; then
4100 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CXX="$ac_prog"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4120 if test -n "$ac_ct_CXX"; then
4121 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4122 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4129 test -n "$ac_ct_CXX" && break
4132 if test "x$ac_ct_CXX" = x; then
4135 case $cross_compiling:$ac_tool_warned in
4137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4138 whose name does not start with the host triplet. If you think this
4139 configuration is useful to you, please write to autoconf@gnu.org." >&5
4140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4141 whose name does not start with the host triplet. If you think this
4142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4143 ac_tool_warned=yes ;;
4151 # Provide some information about the compiler.
4152 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4153 ac_compiler=`set X $ac_compile; echo $2`
4154 { (ac_try="$ac_compiler --version >&5"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compiler --version >&5") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }
4164 { (ac_try="$ac_compiler -v >&5"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compiler -v >&5") 2>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }
4174 { (ac_try="$ac_compiler -V >&5"
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compiler -V >&5") 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }
4185 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4186 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4187 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4223 { (case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_try") 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4256 GXX=`test $ac_compiler_gnu = yes && echo yes`
4257 ac_test_CXXFLAGS=${CXXFLAGS+set}
4258 ac_save_CXXFLAGS=$CXXFLAGS
4259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4261 if test "${ac_cv_prog_cxx_g+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4265 ac_cxx_werror_flag=yes
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_prog_cxx_g=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_prog_cxx_g=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4445 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4447 if test "$ac_test_CXXFLAGS" = set; then
4448 CXXFLAGS=$ac_save_CXXFLAGS
4449 elif test $ac_cv_prog_cxx_g = yes; then
4450 if test "$GXX" = yes; then
4456 if test "$GXX" = yes; then
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 depcc="$CXX" am_compiler_list=
4470 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4471 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4472 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476 # We make a subdir and do the tests there. Otherwise we can end up
4477 # making bogus files that we don't know about and never remove. For
4478 # instance it was reported that on HP-UX the gcc test will end up
4479 # making a dummy file named `D' -- because `-MD' means `put the output
4482 # Copy depcomp to subdir because otherwise we won't find it if we're
4483 # using a relative directory.
4484 cp "$am_depcomp" conftest.dir
4486 # We will build objects and dependencies in a subdirectory because
4487 # it helps to detect inapplicable dependency modes. For instance
4488 # both Tru64's cc and ICC support -MD to output dependencies as a
4489 # side effect of compilation, but ICC will put the dependencies in
4490 # the current directory while Tru64 will put them in the object
4494 am_cv_CXX_dependencies_compiler_type=none
4495 if test "$am_compiler_list" = ""; then
4496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4498 for depmode in $am_compiler_list; do
4499 # Setup a source with many dependencies, because some compilers
4500 # like to wrap large dependency lists on column 80 (with \), and
4501 # we should not choose a depcomp mode which is confused by this.
4503 # We need to recreate these files for each test, as the compiler may
4504 # overwrite some of them when testing with obscure command lines.
4505 # This happens at least with the AIX C compiler.
4507 for i in 1 2 3 4 5 6; do
4508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4510 # Solaris 8's {/usr,}/bin/sh.
4511 touch sub/conftst$i.h
4513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517 # after this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested
4519 if test "x$enable_dependency_tracking" = xyes; then
4527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528 # mode. It turns out that the SunPro C++ compiler does not properly
4529 # handle `-M -o', and we need to detect this.
4530 if depmode=$depmode \
4531 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4534 >/dev/null 2>conftest.err &&
4535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538 # icc doesn't choke on unknown options, it will just issue warnings
4539 # or remarks (even with -Werror). So we grep stderr for any message
4540 # that says an option was ignored or not supported.
4541 # When given -MP, icc 7.0 and 7.1 complain thusly:
4542 # icc: Command line warning: ignoring option '-M'; no argument required
4543 # The diagnosis changed in icc 8.0:
4544 # icc: Command line remark: option '-MP' not supported
4545 if (grep 'ignoring option' conftest.err ||
4546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547 am_cv_CXX_dependencies_compiler_type=$depmode
4556 am_cv_CXX_dependencies_compiler_type=none
4560 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4561 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4562 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4567 test "x$enable_dependency_tracking" != xno \
4568 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4569 am__fastdepCXX_TRUE=
4570 am__fastdepCXX_FALSE='#'
4572 am__fastdepCXX_TRUE='#'
4573 am__fastdepCXX_FALSE=
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 if test -n "$CC"; then
4612 { echo "$as_me:$LINENO: result: $CC" >&5
4613 echo "${ECHO_T}$CC" >&6; }
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4621 if test -z "$ac_cv_prog_CC"; then
4623 # Extract the first word of "gcc", so it can be a program name with args.
4624 set dummy gcc; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if test -n "$ac_ct_CC"; then
4631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_ac_ct_CC="gcc"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4651 if test -n "$ac_ct_CC"; then
4652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4653 echo "${ECHO_T}$ac_ct_CC" >&6; }
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4659 if test "x$ac_ct_CC" = x; then
4662 case $cross_compiling:$ac_tool_warned in
4664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet. If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&5
4667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4668 whose name does not start with the host triplet. If you think this
4669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4670 ac_tool_warned=yes ;;
4678 if test -z "$CC"; then
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}cc; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_CC+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$CC"; then
4688 ac_cv_prog_CC="$CC" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_CC="${ac_tool_prefix}cc"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 if test -n "$CC"; then
4709 { echo "$as_me:$LINENO: result: $CC" >&5
4710 echo "${ECHO_T}$CC" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4719 if test -z "$CC"; then
4720 # Extract the first word of "cc", so it can be a program name with args.
4721 set dummy cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739 ac_prog_rejected=yes
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 if test $ac_prog_rejected = yes; then
4751 # We found a bogon in the path, so make sure we never use it.
4752 set dummy $ac_cv_prog_CC
4754 if test $# != 0; then
4755 # We chose a different compiler from the bogus one.
4756 # However, it has the same basename, so the bogon will be chosen
4757 # first if we set CC to just the basename; use the full file name.
4759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4765 if test -n "$CC"; then
4766 { echo "$as_me:$LINENO: result: $CC" >&5
4767 echo "${ECHO_T}$CC" >&6; }
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 for ac_prog in cl.exe
4779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_CC+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test -n "$CC"; then
4787 ac_cv_prog_CC="$CC" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 if test -n "$CC"; then
4808 { echo "$as_me:$LINENO: result: $CC" >&5
4809 echo "${ECHO_T}$CC" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 test -n "$CC" && break
4819 if test -z "$CC"; then
4821 for ac_prog in cl.exe
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test -n "$ac_ct_CC"; then
4831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_ac_ct_CC="$ac_prog"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4851 if test -n "$ac_ct_CC"; then
4852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4853 echo "${ECHO_T}$ac_ct_CC" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 test -n "$ac_ct_CC" && break
4863 if test "x$ac_ct_CC" = x; then
4866 case $cross_compiling:$ac_tool_warned in
4868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet. If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&5
4871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet. If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4874 ac_tool_warned=yes ;;
4883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: no acceptable C compiler found in \$PATH
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4889 # Provide some information about the compiler.
4890 echo "$as_me:$LINENO: checking for C compiler version" >&5
4891 ac_compiler=`set X $ac_compile; echo $2`
4892 { (ac_try="$ac_compiler --version >&5"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_compiler --version >&5") 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902 { (ac_try="$ac_compiler -v >&5"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_compiler -v >&5") 2>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }
4912 { (ac_try="$ac_compiler -V >&5"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_compiler -V >&5") 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }
4923 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4925 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4961 { (case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_try") 2>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_try") 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4992 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4993 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4994 GCC=`test $ac_compiler_gnu = yes && echo yes`
4995 ac_test_CFLAGS=${CFLAGS+set}
4996 ac_save_CFLAGS=$CFLAGS
4997 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4999 if test "${ac_cv_prog_cc_g+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 ac_save_c_werror_flag=$ac_c_werror_flag
5003 ac_c_werror_flag=yes
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5036 { (case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_try") 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_try") 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5091 { (case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_try") 2>&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_try") 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5147 { (case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_try") 2>&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try='test -s conftest.$ac_objext'
5157 { (case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_try") 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_c_werror_flag=$ac_save_c_werror_flag
5183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5185 if test "$ac_test_CFLAGS" = set; then
5186 CFLAGS=$ac_save_CFLAGS
5187 elif test $ac_cv_prog_cc_g = yes; then
5188 if test "$GCC" = yes; then
5194 if test "$GCC" = yes; then
5200 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5201 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_cc_c89+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_cv_prog_cc_c89=no
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 #include <sys/stat.h>
5217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5218 struct buf { int x; };
5219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5220 static char *e (p, i)
5226 static char *f (char * (*g) (char **, int), char **p, ...)
5231 s = g (p, va_arg (v,int));
5236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5237 function prototypes and stuff, but not '\xHH' hex character constants.
5238 These don't provoke an error unfortunately, instead are silently treated
5239 as 'x'. The following induces an error, until -std is added to get
5240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5241 array size at least. It's necessary to write '\x00'==0 to get something
5242 that's true only with -std. */
5243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5245 int test (int i, double x);
5246 struct s1 {int (*f) (int a);};
5247 struct s2 {int (*f) (double a);};
5248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5262 CC="$ac_save_CC $ac_arg"
5263 rm -f conftest.$ac_objext
5264 if { (ac_try="$ac_compile"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5278 { (case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_try") 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_try") 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_cv_prog_cc_c89=$ac_arg
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5305 rm -f conftest.err conftest.$ac_objext
5306 test "x$ac_cv_prog_cc_c89" != "xno" && break
5308 rm -f conftest.$ac_ext
5313 case "x$ac_cv_prog_cc_c89" in
5315 { echo "$as_me:$LINENO: result: none needed" >&5
5316 echo "${ECHO_T}none needed" >&6; } ;;
5318 { echo "$as_me:$LINENO: result: unsupported" >&5
5319 echo "${ECHO_T}unsupported" >&6; } ;;
5321 CC="$CC $ac_cv_prog_cc_c89"
5322 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 depcc="$CC" am_compiler_list=
5335 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5336 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5337 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5341 # We make a subdir and do the tests there. Otherwise we can end up
5342 # making bogus files that we don't know about and never remove. For
5343 # instance it was reported that on HP-UX the gcc test will end up
5344 # making a dummy file named `D' -- because `-MD' means `put the output
5347 # Copy depcomp to subdir because otherwise we won't find it if we're
5348 # using a relative directory.
5349 cp "$am_depcomp" conftest.dir
5351 # We will build objects and dependencies in a subdirectory because
5352 # it helps to detect inapplicable dependency modes. For instance
5353 # both Tru64's cc and ICC support -MD to output dependencies as a
5354 # side effect of compilation, but ICC will put the dependencies in
5355 # the current directory while Tru64 will put them in the object
5359 am_cv_CC_dependencies_compiler_type=none
5360 if test "$am_compiler_list" = ""; then
5361 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5363 for depmode in $am_compiler_list; do
5364 # Setup a source with many dependencies, because some compilers
5365 # like to wrap large dependency lists on column 80 (with \), and
5366 # we should not choose a depcomp mode which is confused by this.
5368 # We need to recreate these files for each test, as the compiler may
5369 # overwrite some of them when testing with obscure command lines.
5370 # This happens at least with the AIX C compiler.
5372 for i in 1 2 3 4 5 6; do
5373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5374 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5375 # Solaris 8's {/usr,}/bin/sh.
5376 touch sub/conftst$i.h
5378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5382 # after this tag, mechanisms are not by side-effect, so they'll
5383 # only be used when explicitly requested
5384 if test "x$enable_dependency_tracking" = xyes; then
5392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5393 # mode. It turns out that the SunPro C++ compiler does not properly
5394 # handle `-M -o', and we need to detect this.
5395 if depmode=$depmode \
5396 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5398 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5399 >/dev/null 2>conftest.err &&
5400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5401 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5403 # icc doesn't choke on unknown options, it will just issue warnings
5404 # or remarks (even with -Werror). So we grep stderr for any message
5405 # that says an option was ignored or not supported.
5406 # When given -MP, icc 7.0 and 7.1 complain thusly:
5407 # icc: Command line warning: ignoring option '-M'; no argument required
5408 # The diagnosis changed in icc 8.0:
5409 # icc: Command line remark: option '-MP' not supported
5410 if (grep 'ignoring option' conftest.err ||
5411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5412 am_cv_CC_dependencies_compiler_type=$depmode
5421 am_cv_CC_dependencies_compiler_type=none
5425 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5426 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5427 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5432 test "x$enable_dependency_tracking" != xno \
5433 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5435 am__fastdepCC_FALSE='#'
5437 am__fastdepCC_TRUE='#'
5438 am__fastdepCC_FALSE=
5443 ac_cpp='$CPP $CPPFLAGS'
5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5447 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5448 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5449 # On Suns, sometimes $CPP names a directory.
5450 if test -n "$CPP" && test -d "$CPP"; then
5453 if test -z "$CPP"; then
5454 if test "${ac_cv_prog_CPP+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 # Double quotes because CPP needs to be expanded
5458 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5461 for ac_c_preproc_warn_flag in '' yes
5463 # Use a header file that comes with gcc, so configuring glibc
5464 # with a fresh cross-compiler works.
5465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5466 # <limits.h> exists even on freestanding compilers.
5467 # On the NeXT, cc -E runs the code through the compiler's parser,
5468 # not just through cpp. "Syntax error" is here to catch this case.
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5476 # include <limits.h>
5478 # include <assert.h>
5482 if { (ac_try="$ac_cpp conftest.$ac_ext"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 grep -v '^ *+' conftest.er1 >conftest.err
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev/null; then
5495 if test -s conftest.err; then
5496 ac_cpp_err=$ac_c_preproc_warn_flag
5497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5504 if test -z "$ac_cpp_err"; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 # Broken: fails on valid input.
5514 rm -f conftest.err conftest.$ac_ext
5516 # OK, works on sane cases. Now check whether nonexistent headers
5517 # can be detected and how.
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <ac_nonexistent.h>
5526 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null; then
5539 if test -s conftest.err; then
5540 ac_cpp_err=$ac_c_preproc_warn_flag
5541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5548 if test -z "$ac_cpp_err"; then
5549 # Broken: success on invalid input.
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 # Passes both tests.
5560 rm -f conftest.err conftest.$ac_ext
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then
5577 { echo "$as_me:$LINENO: result: $CPP" >&5
5578 echo "${ECHO_T}$CPP" >&6; }
5580 for ac_c_preproc_warn_flag in '' yes
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5595 # include <limits.h>
5597 # include <assert.h>
5601 if { (ac_try="$ac_cpp conftest.$ac_ext"
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } >/dev/null; then
5614 if test -s conftest.err; then
5615 ac_cpp_err=$ac_c_preproc_warn_flag
5616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5623 if test -z "$ac_cpp_err"; then
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 # Broken: fails on valid input.
5633 rm -f conftest.err conftest.$ac_ext
5635 # OK, works on sane cases. Now check whether nonexistent headers
5636 # can be detected and how.
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <ac_nonexistent.h>
5645 if { (ac_try="$ac_cpp conftest.$ac_ext"
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } >/dev/null; then
5658 if test -s conftest.err; then
5659 ac_cpp_err=$ac_c_preproc_warn_flag
5660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5667 if test -z "$ac_cpp_err"; then
5668 # Broken: success on invalid input.
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 # Passes both tests.
5679 rm -f conftest.err conftest.$ac_ext
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then
5687 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." >&5
5689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5690 See \`config.log' for more details." >&2;}
5691 { (exit 1); exit 1; }; }
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 # Find a good install program. We prefer a C program (faster),
5701 # so one script is as good as another. But avoid the broken or
5702 # incompatible versions:
5703 # SysV /etc/install, /usr/sbin/install
5704 # SunOS /usr/etc/install
5705 # IRIX /sbin/install
5707 # AmigaOS /C/install, which installs bootblocks on floppy discs
5708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5711 # OS/2's system install, which has a completely different semantic
5712 # ./install, which can be erroneously created by make from ./install.sh.
5713 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5715 if test -z "$INSTALL"; then
5716 if test "${ac_cv_path_install+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 # Account for people who put trailing slashes in PATH elements.
5726 ./ | .// | /cC/* | \
5727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5731 # OSF1 and SCO ODT 3.0 have their own names for install.
5732 # Don't use installbsd from OSF since it installs stuff as root
5734 for ac_prog in ginstall scoinst install; do
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5737 if test $ac_prog = install &&
5738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5739 # AIX install. It has an incompatible calling convention.
5741 elif test $ac_prog = install &&
5742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5743 # program-specific install script used by HP pwplus--don't use.
5746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5759 if test "${ac_cv_path_install+set}" = set; then
5760 INSTALL=$ac_cv_path_install
5762 # As a last resort, use the slow shell script. Don't cache a
5763 # value for INSTALL within a source directory, because that will
5764 # break other packages using the cache if that directory is
5765 # removed, or if the value is a relative name.
5766 INSTALL=$ac_install_sh
5769 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5770 echo "${ECHO_T}$INSTALL" >&6; }
5772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5773 # It thinks the first close brace ends the variable substitution.
5774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5780 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5781 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5783 if test "$LN_S" = "ln -s"; then
5784 { echo "$as_me:$LINENO: result: yes" >&5
5785 echo "${ECHO_T}yes" >&6; }
5787 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5788 echo "${ECHO_T}no, using $LN_S" >&6; }
5791 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5792 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5793 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5794 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.make <<\_ACEOF
5800 @echo '@@@%%%=$(MAKE)=@@@%%%'
5802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5805 eval ac_cv_prog_make_${ac_make}_set=yes;;
5807 eval ac_cv_prog_make_${ac_make}_set=no;;
5811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5812 { echo "$as_me:$LINENO: result: yes" >&5
5813 echo "${ECHO_T}yes" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818 SET_MAKE="MAKE=${MAKE-make}"
5821 # Check whether --enable-shared was given.
5822 if test "${enable_shared+set}" = set; then
5823 enableval=$enable_shared; p=${PACKAGE-default}
5825 yes) enable_shared=yes ;;
5826 no) enable_shared=no ;;
5829 # Look at the argument we got. We use all the common list separators.
5830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5831 for pkg in $enableval; do
5833 if test "X$pkg" = "X$p"; then
5845 # Check whether --enable-static was given.
5846 if test "${enable_static+set}" = set; then
5847 enableval=$enable_static; p=${PACKAGE-default}
5849 yes) enable_static=yes ;;
5850 no) enable_static=no ;;
5853 # Look at the argument we got. We use all the common list separators.
5854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5855 for pkg in $enableval; do
5857 if test "X$pkg" = "X$p"; then
5869 # Check whether --enable-fast-install was given.
5870 if test "${enable_fast_install+set}" = set; then
5871 enableval=$enable_fast_install; p=${PACKAGE-default}
5873 yes) enable_fast_install=yes ;;
5874 no) enable_fast_install=no ;;
5876 enable_fast_install=no
5877 # Look at the argument we got. We use all the common list separators.
5878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5879 for pkg in $enableval; do
5881 if test "X$pkg" = "X$p"; then
5882 enable_fast_install=yes
5889 enable_fast_install=yes
5893 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5894 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5895 if test "${lt_cv_path_SED+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 # Loop through the user's path and test for sed and gsed.
5899 # Then use that list of sed's as ones to test for truncation.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for lt_ac_prog in sed gsed; do
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5908 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5915 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5916 # along with /bin/sed that truncates output.
5917 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5918 test ! -f $lt_ac_sed && continue
5919 cat /dev/null > conftest.in
5921 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5922 # Check for GNU sed and select it if it is found.
5923 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5924 lt_cv_path_SED=$lt_ac_sed
5928 cat conftest.in conftest.in >conftest.tmp
5929 mv conftest.tmp conftest.in
5930 cp conftest.in conftest.nl
5932 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5933 cmp -s conftest.out conftest.nl || break
5934 # 10000 chars as input seems more than enough
5935 test $lt_ac_count -gt 10 && break
5936 lt_ac_count=`expr $lt_ac_count + 1`
5937 if test $lt_ac_count -gt $lt_ac_max; then
5938 lt_ac_max=$lt_ac_count
5939 lt_cv_path_SED=$lt_ac_sed
5947 { echo "$as_me:$LINENO: result: $SED" >&5
5948 echo "${ECHO_T}$SED" >&6; }
5950 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5951 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5952 if test "${ac_cv_path_GREP+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 # Extract the first word of "grep ggrep" to use in msg output
5956 if test -z "$GREP"; then
5957 set dummy grep ggrep; ac_prog_name=$2
5958 if test "${ac_cv_path_GREP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_path_GREP_found=false
5962 # Loop through the user's path and test for each of PROGNAME-LIST
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967 test -z "$as_dir" && as_dir=.
5968 for ac_prog in grep ggrep; do
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5971 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5972 # Check for GNU ac_path_GREP and select it if it is found.
5973 # Check for GNU $ac_path_GREP
5974 case `"$ac_path_GREP" --version 2>&1` in
5976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5982 cat "conftest.in" "conftest.in" >"conftest.tmp"
5983 mv "conftest.tmp" "conftest.in"
5984 cp "conftest.in" "conftest.nl"
5985 echo 'GREP' >> "conftest.nl"
5986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5988 ac_count=`expr $ac_count + 1`
5989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5990 # Best one so far, save it but keep looking for a better one
5991 ac_cv_path_GREP="$ac_path_GREP"
5992 ac_path_GREP_max=$ac_count
5994 # 10*(2^10) chars as input seems more than enough
5995 test $ac_count -gt 10 && break
5997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 $ac_path_GREP_found && break 3
6011 GREP="$ac_cv_path_GREP"
6012 if test -z "$GREP"; then
6013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6015 { (exit 1); exit 1; }; }
6019 ac_cv_path_GREP=$GREP
6024 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6025 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6026 GREP="$ac_cv_path_GREP"
6029 { echo "$as_me:$LINENO: checking for egrep" >&5
6030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6031 if test "${ac_cv_path_EGREP+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6035 then ac_cv_path_EGREP="$GREP -E"
6037 # Extract the first word of "egrep" to use in msg output
6038 if test -z "$EGREP"; then
6039 set dummy egrep; ac_prog_name=$2
6040 if test "${ac_cv_path_EGREP+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_path_EGREP_found=false
6044 # Loop through the user's path and test for each of PROGNAME-LIST
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6049 test -z "$as_dir" && as_dir=.
6050 for ac_prog in egrep; do
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6053 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6054 # Check for GNU ac_path_EGREP and select it if it is found.
6055 # Check for GNU $ac_path_EGREP
6056 case `"$ac_path_EGREP" --version 2>&1` in
6058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6061 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6064 cat "conftest.in" "conftest.in" >"conftest.tmp"
6065 mv "conftest.tmp" "conftest.in"
6066 cp "conftest.in" "conftest.nl"
6067 echo 'EGREP' >> "conftest.nl"
6068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6070 ac_count=`expr $ac_count + 1`
6071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6072 # Best one so far, save it but keep looking for a better one
6073 ac_cv_path_EGREP="$ac_path_EGREP"
6074 ac_path_EGREP_max=$ac_count
6076 # 10*(2^10) chars as input seems more than enough
6077 test $ac_count -gt 10 && break
6079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 $ac_path_EGREP_found && break 3
6093 EGREP="$ac_cv_path_EGREP"
6094 if test -z "$EGREP"; then
6095 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6096 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6097 { (exit 1); exit 1; }; }
6101 ac_cv_path_EGREP=$EGREP
6107 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6109 EGREP="$ac_cv_path_EGREP"
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6133 # Accept absolute paths.
6135 re_direlt='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6139 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 test -z "$LD" && LD="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6148 # If it is relative, then search for the first ld in PATH.
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -z "$LD"; then
6163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6164 for ac_dir in $PATH; do
6166 test -z "$ac_dir" && ac_dir=.
6167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU* | *'with BFD'*)
6174 test "$with_gnu_ld" != no && break
6177 test "$with_gnu_ld" != yes && break
6184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU* | *'with BFD'*)
6207 lt_cv_prog_gnu_ld=yes
6210 lt_cv_prog_gnu_ld=no
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld=$lt_cv_prog_gnu_ld
6219 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6220 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6221 if test "${lt_cv_ld_reload_flag+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 lt_cv_ld_reload_flag='-r'
6226 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6227 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6228 reload_flag=$lt_cv_ld_reload_flag
6229 case $reload_flag in
6231 *) reload_flag=" $reload_flag" ;;
6233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236 if test "$GCC" = yes; then
6237 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6245 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6246 if test "${lt_cv_path_NM+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 if test -n "$NM"; then
6250 # Let the user override the test.
6253 lt_nm_to_check="${ac_tool_prefix}nm"
6254 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6255 lt_nm_to_check="$lt_nm_to_check nm"
6257 for lt_tmp_nm in $lt_nm_to_check; do
6258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6259 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6261 test -z "$ac_dir" && ac_dir=.
6262 tmp_nm="$ac_dir/$lt_tmp_nm"
6263 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6264 # Check to see if the nm accepts a BSD-compat flag.
6265 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6266 # nm: unknown option "B" ignored
6267 # Tru64's nm complains that /dev/null is an invalid object file
6268 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6269 */dev/null* | *'Invalid file or object type'*)
6270 lt_cv_path_NM="$tmp_nm -B"
6274 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6276 lt_cv_path_NM="$tmp_nm -p"
6280 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6281 continue # so that we can try to find one that supports BSD flags
6290 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6293 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6294 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6297 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327 lt_cv_file_magic_cmd='/usr/bin/file -L'
6328 lt_cv_file_magic_test_file=/shlib/libc.so
6332 # func_win32_libid is a shell function defined in ltmain.sh
6333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334 lt_cv_file_magic_cmd='func_win32_libid'
6338 # Base MSYS/MinGW do not provide the 'file' command needed by
6339 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6341 lt_cv_file_magic_cmd='$OBJDUMP -f'
6344 darwin* | rhapsody*)
6345 lt_cv_deplibs_check_method=pass_all
6348 freebsd* | dragonfly*)
6349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6352 # Not sure whether the presence of OpenBSD here was a mistake.
6353 # Let's accept both of them until this is cleared up.
6354 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355 lt_cv_file_magic_cmd=/usr/bin/file
6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6360 lt_cv_deplibs_check_method=pass_all
6365 lt_cv_deplibs_check_method=pass_all
6368 hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=/usr/bin/file
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6376 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]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6391 irix5* | irix6* | nonstopux*)
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6398 lt_cv_deplibs_check_method=pass_all
6401 # This must be Linux ELF.
6402 linux* | k*bsd*-gnu)
6403 lt_cv_deplibs_check_method=pass_all
6406 netbsd* | netbsdelf*-gnu)
6407 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6421 lt_cv_deplibs_check_method=unknown
6425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432 osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6437 lt_cv_deplibs_check_method=pass_all
6441 case $host_vendor in
6443 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]'
6444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6447 lt_cv_deplibs_check_method=pass_all
6450 lt_cv_file_magic_cmd='/bin/file'
6451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6454 lt_cv_file_magic_cmd='/bin/file'
6455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6456 lt_cv_file_magic_test_file=/lib/libc.so
6459 lt_cv_deplibs_check_method=pass_all
6462 lt_cv_deplibs_check_method=pass_all
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468 lt_cv_deplibs_check_method=pass_all
6473 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6474 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6475 file_magic_cmd=$lt_cv_file_magic_cmd
6476 deplibs_check_method=$lt_cv_deplibs_check_method
6477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6482 # If no C compiler was specified, use CC.
6485 # If no C compiler flags were specified, use CFLAGS.
6486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6488 # Allow CC to be a program name with arguments.
6491 # Check whether --enable-libtool-lock was given.
6492 if test "${enable_libtool_lock+set}" = set; then
6493 enableval=$enable_libtool_lock;
6496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6498 # Some flags need to be propagated to the compiler or linker for good
6502 # Find out which ABI we are using.
6503 echo 'int i;' > conftest.$ac_ext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; then
6509 case `/usr/bin/file conftest.$ac_objext` in
6521 # Find out which ABI we are using.
6522 echo '#line 6522 "configure"' > conftest.$ac_ext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; then
6528 if test "$lt_cv_prog_gnu_ld" = yes; then
6529 case `/usr/bin/file conftest.$ac_objext` in
6531 LD="${LD-ld} -melf32bsmip"
6534 LD="${LD-ld} -melf32bmipn32"
6537 LD="${LD-ld} -melf64bmip"
6541 case `/usr/bin/file conftest.$ac_objext` in
6557 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6558 # Find out which ABI we are using.
6559 echo 'int i;' > conftest.$ac_ext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; then
6565 case `/usr/bin/file conftest.o` in
6569 LD="${LD-ld} -m elf_i386"
6571 ppc64-*linux*|powerpc64-*linux*)
6572 LD="${LD-ld} -m elf32ppclinux"
6575 LD="${LD-ld} -m elf_s390"
6578 LD="${LD-ld} -m elf32_sparc"
6585 LD="${LD-ld} -m elf_x86_64"
6587 ppc*-*linux*|powerpc*-*linux*)
6588 LD="${LD-ld} -m elf64ppc"
6591 LD="${LD-ld} -m elf64_s390"
6594 LD="${LD-ld} -m elf64_sparc"
6604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605 SAVE_CFLAGS="$CFLAGS"
6606 CFLAGS="$CFLAGS -belf"
6607 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6608 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6609 if test "${lt_cv_cc_needs_belf+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_link") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648 { (case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_try") 2>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 lt_cv_cc_needs_belf=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 lt_cv_cc_needs_belf=no
6675 rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6685 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6688 CFLAGS="$SAVE_CFLAGS"
6692 # Find out which ABI we are using.
6693 echo 'int i;' > conftest.$ac_ext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; then
6699 case `/usr/bin/file conftest.o` in
6701 case $lt_cv_prog_gnu_ld in
6702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6703 *) LD="${LD-ld} -64" ;;
6714 need_locks="$enable_libtool_lock"
6718 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6720 if test "${ac_cv_header_stdc+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compile") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6757 { (case "(($ac_try" in
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_try") 2>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; } &&
6766 { ac_try='test -s conftest.$ac_objext'
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_header_stdc=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_header_stdc=no
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 if test $ac_cv_header_stdc = yes; then
6787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798 $EGREP "memchr" >/dev/null 2>&1; then
6801 ac_cv_header_stdc=no
6807 if test $ac_cv_header_stdc = yes; then
6808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6819 $EGREP "free" >/dev/null 2>&1; then
6822 ac_cv_header_stdc=no
6828 if test $ac_cv_header_stdc = yes; then
6829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6830 if test "$cross_compiling" = yes; then
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6841 #if ((' ' & 0x0FF) == 0x020)
6842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845 # define ISLOWER(c) \
6846 (('a' <= (c) && (c) <= 'i') \
6847 || ('j' <= (c) && (c) <= 'r') \
6848 || ('s' <= (c) && (c) <= 'z'))
6849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6857 for (i = 0; i < 256; i++)
6858 if (XOR (islower (i), ISLOWER (i))
6859 || toupper (i) != TOUPPER (i))
6864 rm -f conftest$ac_exeext
6865 if { (ac_try="$ac_link"
6867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6868 *) ac_try_echo=$ac_try;;
6870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6871 (eval "$ac_link") 2>&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6875 { (case "(($ac_try" in
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880 (eval "$ac_try") 2>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6886 echo "$as_me: program exited with status $ac_status" >&5
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_header_stdc=no
6893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6901 if test $ac_cv_header_stdc = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define STDC_HEADERS 1
6909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6920 inttypes.h stdint.h unistd.h
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6936 #include <$ac_header>
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6953 { (case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_try") 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_try") 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 eval "$as_ac_Header=yes"
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 eval "$as_ac_Header=no"
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 ac_res=`eval echo '${'$as_ac_Header'}'`
6983 { echo "$as_me:$LINENO: result: $ac_res" >&5
6984 echo "${ECHO_T}$ac_res" >&6; }
6985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 for ac_header in dlfcn.h
6998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_res=`eval echo '${'$as_ac_Header'}'`
7006 { echo "$as_me:$LINENO: result: $ac_res" >&5
7007 echo "${ECHO_T}$ac_res" >&6; }
7009 # Is the header compilable?
7010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 #include <$ac_header>
7021 rm -f conftest.$ac_objext
7022 if { (ac_try="$ac_compile"
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compile") 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7036 { (case "(($ac_try" in
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_try") 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest.$ac_objext'
7046 { (case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_try") 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_header_compiler=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_header_compiler=no
7063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7065 echo "${ECHO_T}$ac_header_compiler" >&6; }
7067 # Is the header present?
7068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <$ac_header>
7078 if { (ac_try="$ac_cpp conftest.$ac_ext"
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } >/dev/null; then
7091 if test -s conftest.err; then
7092 ac_cpp_err=$ac_c_preproc_warn_flag
7093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7100 if test -z "$ac_cpp_err"; then
7101 ac_header_preproc=yes
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7106 ac_header_preproc=no
7109 rm -f conftest.err conftest.$ac_ext
7110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7111 echo "${ECHO_T}$ac_header_preproc" >&6; }
7113 # So? What about this header?
7114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7120 ac_header_preproc=yes
7123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7136 ## ------------------------------- ##
7137 ## Report this to nfs@lists.sf.net ##
7138 ## ------------------------------- ##
7140 ) | sed "s/^/$as_me: WARNING: /" >&2
7143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 eval "$as_ac_Header=\$ac_header_preproc"
7150 ac_res=`eval echo '${'$as_ac_Header'}'`
7151 { echo "$as_me:$LINENO: result: $ac_res" >&5
7152 echo "${ECHO_T}$ac_res" >&6; }
7155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156 cat >>confdefs.h <<_ACEOF
7157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7167 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7168 (test "X$CXX" != "Xg++"))) ; then
7170 ac_cpp='$CXXCPP $CPPFLAGS'
7171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7174 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7175 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7176 if test -z "$CXXCPP"; then
7177 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 # Double quotes because CXXCPP needs to be expanded
7181 for CXXCPP in "$CXX -E" "/lib/cpp"
7184 for ac_cxx_preproc_warn_flag in '' yes
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7199 # include <limits.h>
7201 # include <assert.h>
7205 if { (ac_try="$ac_cpp conftest.$ac_ext"
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } >/dev/null; then
7218 if test -s conftest.err; then
7219 ac_cpp_err=$ac_cxx_preproc_warn_flag
7220 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7227 if test -z "$ac_cpp_err"; then
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 # Broken: fails on valid input.
7237 rm -f conftest.err conftest.$ac_ext
7239 # OK, works on sane cases. Now check whether nonexistent headers
7240 # can be detected and how.
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <ac_nonexistent.h>
7249 if { (ac_try="$ac_cpp conftest.$ac_ext"
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1 >conftest.err
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } >/dev/null; then
7262 if test -s conftest.err; then
7263 ac_cpp_err=$ac_cxx_preproc_warn_flag
7264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7271 if test -z "$ac_cpp_err"; then
7272 # Broken: success on invalid input.
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 # Passes both tests.
7283 rm -f conftest.err conftest.$ac_ext
7286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287 rm -f conftest.err conftest.$ac_ext
7288 if $ac_preproc_ok; then
7293 ac_cv_prog_CXXCPP=$CXXCPP
7296 CXXCPP=$ac_cv_prog_CXXCPP
7298 ac_cv_prog_CXXCPP=$CXXCPP
7300 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7301 echo "${ECHO_T}$CXXCPP" >&6; }
7303 for ac_cxx_preproc_warn_flag in '' yes
7305 # Use a header file that comes with gcc, so configuring glibc
7306 # with a fresh cross-compiler works.
7307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7308 # <limits.h> exists even on freestanding compilers.
7309 # On the NeXT, cc -E runs the code through the compiler's parser,
7310 # not just through cpp. "Syntax error" is here to catch this case.
7311 cat >conftest.$ac_ext <<_ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7318 # include <limits.h>
7320 # include <assert.h>
7324 if { (ac_try="$ac_cpp conftest.$ac_ext"
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7332 grep -v '^ *+' conftest.er1 >conftest.err
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } >/dev/null; then
7337 if test -s conftest.err; then
7338 ac_cpp_err=$ac_cxx_preproc_warn_flag
7339 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7346 if test -z "$ac_cpp_err"; then
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 # Broken: fails on valid input.
7356 rm -f conftest.err conftest.$ac_ext
7358 # OK, works on sane cases. Now check whether nonexistent headers
7359 # can be detected and how.
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7368 if { (ac_try="$ac_cpp conftest.$ac_ext"
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } >/dev/null; then
7381 if test -s conftest.err; then
7382 ac_cpp_err=$ac_cxx_preproc_warn_flag
7383 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7390 if test -z "$ac_cpp_err"; then
7391 # Broken: success on invalid input.
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 # Passes both tests.
7402 rm -f conftest.err conftest.$ac_ext
7405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7406 rm -f conftest.err conftest.$ac_ext
7407 if $ac_preproc_ok; then
7410 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7411 See \`config.log' for more details." >&5
7412 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7413 See \`config.log' for more details." >&2;}
7414 { (exit 1); exit 1; }; }
7418 ac_cpp='$CXXCPP $CPPFLAGS'
7419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7427 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7428 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7430 if test -n "$ac_tool_prefix"; then
7431 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
7433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_prog_F77+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 if test -n "$F77"; then
7441 ac_cv_prog_F77="$F77" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$F77"; then
7462 { echo "$as_me:$LINENO: result: $F77" >&5
7463 echo "${ECHO_T}$F77" >&6; }
7465 { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7470 test -n "$F77" && break
7473 if test -z "$F77"; then
7475 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
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 if test -n "$ac_ct_F77"; then
7485 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_ac_ct_F77="$ac_prog"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7505 if test -n "$ac_ct_F77"; then
7506 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7507 echo "${ECHO_T}$ac_ct_F77" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$ac_ct_F77" && break
7517 if test "x$ac_ct_F77" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7523 whose name does not start with the host triplet. If you think this
7524 configuration is useful to you, please write to autoconf@gnu.org." >&5
7525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7526 whose name does not start with the host triplet. If you think this
7527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7528 ac_tool_warned=yes ;;
7535 # Provide some information about the compiler.
7536 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7537 ac_compiler=`set X $ac_compile; echo $2`
7538 { (ac_try="$ac_compiler --version >&5"
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compiler --version >&5") 2>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }
7548 { (ac_try="$ac_compiler -v >&5"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_compiler -v >&5") 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }
7558 { (ac_try="$ac_compiler -V >&5"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compiler -V >&5") 2>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }
7570 # If we don't use `.F' as extension, the preprocessor is not run on the
7571 # input file. (Note that this only needs to work for GNU compilers.)
7574 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7575 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7576 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7596 grep -v '^ *+' conftest.er1 >conftest.err
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7602 { (case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_try") 2>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try='test -s conftest.$ac_objext'
7612 { (case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_try") 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7633 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7634 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7636 ac_test_FFLAGS=${FFLAGS+set}
7637 ac_save_FFLAGS=$FFLAGS
7639 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7640 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7641 if test "${ac_cv_prog_f77_g+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 cat >conftest.$ac_ext <<_ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (ac_try="$ac_compile"
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_compile") 2>conftest.er1
7659 grep -v '^ *+' conftest.er1 >conftest.err
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7665 { (case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_try") 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_try") 2>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_prog_f77_g=yes
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7695 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7696 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7697 if test "$ac_test_FFLAGS" = set; then
7698 FFLAGS=$ac_save_FFLAGS
7699 elif test $ac_cv_prog_f77_g = yes; then
7700 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7706 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7713 G77=`test $ac_compiler_gnu = yes && echo yes`
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7724 # find the maximum length of command line arguments
7725 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7726 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7727 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 # On DJGPP, this test can blow up pretty badly due to problems in libc
7736 # (any single argument exceeding 2000 bytes causes a buffer overrun
7737 # during glob expansion). Even if it were fixed, the result of this
7738 # check would be larger than it should be.
7739 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7743 # Under GNU Hurd, this test is not required because there is
7744 # no limit to the length of command line arguments.
7745 # Libtool will interpret -1 as no limit whatsoever
7746 lt_cv_sys_max_cmd_len=-1;
7750 # On Win9x/ME, this test blows up -- it succeeds, but takes
7751 # about 5 minutes as the teststring grows exponentially.
7752 # Worse, since 9x/ME are not pre-emptively multitasking,
7753 # you end up with a "frozen" computer, even though with patience
7754 # the test eventually succeeds (with a max line length of 256k).
7755 # Instead, let's just punt: use the minimum linelength reported by
7756 # all of the supported platforms: 8192 (on NT/2K/XP).
7757 lt_cv_sys_max_cmd_len=8192;
7761 # On AmigaOS with pdksh, this test takes hours, literally.
7762 # So we just punt and use a minimum line length of 8192.
7763 lt_cv_sys_max_cmd_len=8192;
7766 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7767 # This has been around since 386BSD, at least. Likely further.
7768 if test -x /sbin/sysctl; then
7769 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7770 elif test -x /usr/sbin/sysctl; then
7771 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7773 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7775 # And add a safety zone
7776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7781 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7782 lt_cv_sys_max_cmd_len=196608
7786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7788 # nice to cause kernel panics so lets avoid the loop below.
7789 # First set a reasonable default.
7790 lt_cv_sys_max_cmd_len=16384
7792 if test -x /sbin/sysconfig; then
7793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7794 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7799 lt_cv_sys_max_cmd_len=102400
7801 sysv5* | sco5v6* | sysv4.2uw2*)
7802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7803 if test -n "$kargmax"; then
7804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7806 lt_cv_sys_max_cmd_len=32768
7810 # If test is not a shell built-in, we'll probably end up computing a
7811 # maximum length that is only half of the actual maximum length, but
7813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7814 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7815 = "XX$teststring") >/dev/null 2>&1 &&
7816 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7817 lt_cv_sys_max_cmd_len=$new_result &&
7818 test $i != 17 # 1/2 MB should be enough
7821 teststring=$teststring$teststring
7824 # Add a significant safety factor because C++ compilers can tack on massive
7825 # amounts of additional arguments before passing them to the linker.
7826 # It appears as though 1/2 is a usable value.
7827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7833 if test -n $lt_cv_sys_max_cmd_len ; then
7834 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7835 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7837 { echo "$as_me:$LINENO: result: none" >&5
7838 echo "${ECHO_T}none" >&6; }
7844 # Check for command to grab the raw symbol name followed by C symbol from nm.
7845 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7846 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7847 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 # These are sane defaults that work on at least a few old systems.
7852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7854 # Character class describing NM global symbol codes.
7855 symcode='[BCDEGRST]'
7857 # Regexp to match symbols that can be accessed directly from C.
7858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7860 # Transform an extracted symbol line into a proper C declaration
7861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7863 # Transform an extracted symbol line into symbol name and symbol address
7864 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'"
7866 # Define system-specific variables.
7871 cygwin* | mingw* | pw32*)
7872 symcode='[ABCDGISTW]'
7874 hpux*) # Its linker distinguishes data from code symbols
7875 if test "$host_cpu" = ia64; then
7876 symcode='[ABCDEGRST]'
7878 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7879 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'"
7881 linux* | k*bsd*-gnu)
7882 if test "$host_cpu" = ia64; then
7883 symcode='[ABCDGIRSTW]'
7884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7885 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'"
7889 symcode='[BCDEGRST]'
7892 symcode='[BCDEGQRST]'
7903 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7911 # Handle CRLF in mingw tool chain
7915 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7919 # If we're using GNU nm, then use its standard symbol codes.
7920 case `$NM -V 2>&1` in
7921 *GNU* | *'with BFD'*)
7922 symcode='[ABCDGIRSTW]' ;;
7925 # Try without a prefix undercore, then with it.
7926 for ac_symprfx in "" "_"; do
7928 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7929 symxfrm="\\1 $ac_symprfx\\2 \\2"
7931 # Write the raw and C identifiers.
7932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7934 # Check to see that the pipe works correctly.
7938 cat > conftest.$ac_ext <<EOF
7943 void nm_test_func(){}
7947 int main(){nm_test_var='a';nm_test_func();return(0);}
7950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7951 (eval $ac_compile) 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; then
7955 # Now try to grab the symbols.
7957 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7958 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && test -s "$nlist"; then
7962 # Try sorting and uniquifying the output.
7963 if sort "$nlist" | uniq > "$nlist"T; then
7964 mv -f "$nlist"T "$nlist"
7969 # Make sure that we snagged all the symbols we need.
7970 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7971 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7972 cat <<EOF > conftest.$ac_ext
7978 # Now generate the symbol file.
7979 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7981 cat <<EOF >> conftest.$ac_ext
7982 #if defined (__STDC__) && __STDC__
7983 # define lt_ptr_t void *
7985 # define lt_ptr_t char *
7989 /* The mapping between symbol names and symbols. */
7994 lt_preloaded_symbols[] =
7997 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7998 cat <<\EOF >> conftest.$ac_ext
8006 # Now try linking the two files.
8007 mv conftest.$ac_objext conftstm.$ac_objext
8008 lt_save_LIBS="$LIBS"
8009 lt_save_CFLAGS="$CFLAGS"
8010 LIBS="conftstm.$ac_objext"
8011 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8019 LIBS="$lt_save_LIBS"
8020 CFLAGS="$lt_save_CFLAGS"
8022 echo "cannot find nm_test_func in $nlist" >&5
8025 echo "cannot find nm_test_var in $nlist" >&5
8028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8031 echo "$progname: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 rm -f conftest* conftst*
8036 # Do not use the global_symbol_pipe unless it works.
8037 if test "$pipe_works" = yes; then
8040 lt_cv_sys_global_symbol_pipe=
8046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8047 lt_cv_sys_global_symbol_to_cdecl=
8049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8050 { echo "$as_me:$LINENO: result: failed" >&5
8051 echo "${ECHO_T}failed" >&6; }
8053 { echo "$as_me:$LINENO: result: ok" >&5
8054 echo "${ECHO_T}ok" >&6; }
8057 { echo "$as_me:$LINENO: checking for objdir" >&5
8058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8059 if test "${lt_cv_objdir+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 rm -f .libs 2>/dev/null
8063 mkdir .libs 2>/dev/null
8064 if test -d .libs; then
8067 # MS-DOS does not allow filenames that begin with a dot.
8070 rmdir .libs 2>/dev/null
8072 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8073 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8074 objdir=$lt_cv_objdir
8082 # AIX sometimes has problems with the GCC collect2 program. For some
8083 # reason, if we set the COLLECT_NAMES environment variable, the problems
8084 # vanish in a puff of smoke.
8085 if test "X${COLLECT_NAMES+set}" != Xset; then
8087 export COLLECT_NAMES
8092 # Sed substitution that helps us do robust quoting. It backslashifies
8093 # metacharacters that are still active within double-quoted strings.
8094 Xsed='sed -e 1s/^X//'
8095 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8097 # Same as above, but do not quote variable references.
8098 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8100 # Sed substitution to delay expansion of an escaped shell variable in a
8101 # double_quote_subst'ed string.
8102 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8104 # Sed substitution to avoid accidental globbing in evaled expressions
8105 no_glob_subst='s/\*/\\\*/g'
8111 default_ofile=libtool
8112 can_build_shared=yes
8114 # All known linkers require a `.a' archive for static linking (except MSVC,
8115 # which needs '.lib').
8117 ltmain="$ac_aux_dir/ltmain.sh"
8118 ofile="$default_ofile"
8119 with_gnu_ld="$lt_cv_prog_gnu_ld"
8121 if test -n "$ac_tool_prefix"; then
8122 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8123 set dummy ${ac_tool_prefix}ar; ac_word=$2
8124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 if test -n "$AR"; then
8130 ac_cv_prog_AR="$AR" # Let the user override the test.
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_AR="${ac_tool_prefix}ar"
8140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 if test -n "$AR"; then
8151 { echo "$as_me:$LINENO: result: $AR" >&5
8152 echo "${ECHO_T}$AR" >&6; }
8154 { echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6; }
8160 if test -z "$ac_cv_prog_AR"; then
8162 # Extract the first word of "ar", so it can be a program name with args.
8163 set dummy ar; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 if test -n "$ac_ct_AR"; then
8170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_ac_ct_AR="ar"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8190 if test -n "$ac_ct_AR"; then
8191 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8192 echo "${ECHO_T}$ac_ct_AR" >&6; }
8194 { echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6; }
8198 if test "x$ac_ct_AR" = x; then
8201 case $cross_compiling:$ac_tool_warned in
8203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8204 whose name does not start with the host triplet. If you think this
8205 configuration is useful to you, please write to autoconf@gnu.org." >&5
8206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8207 whose name does not start with the host triplet. If you think this
8208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8209 ac_tool_warned=yes ;;
8217 if test -n "$ac_tool_prefix"; then
8218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_prog_RANLIB+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 if test -n "$RANLIB"; then
8226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 RANLIB=$ac_cv_prog_RANLIB
8246 if test -n "$RANLIB"; then
8247 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8248 echo "${ECHO_T}$RANLIB" >&6; }
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8256 if test -z "$ac_cv_prog_RANLIB"; then
8257 ac_ct_RANLIB=$RANLIB
8258 # Extract the first word of "ranlib", so it can be a program name with args.
8259 set dummy ranlib; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 if test -n "$ac_ct_RANLIB"; then
8266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_ac_ct_RANLIB="ranlib"
8276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8286 if test -n "$ac_ct_RANLIB"; then
8287 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8288 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8290 { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8294 if test "x$ac_ct_RANLIB" = x; then
8297 case $cross_compiling:$ac_tool_warned in
8299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8300 whose name does not start with the host triplet. If you think this
8301 configuration is useful to you, please write to autoconf@gnu.org." >&5
8302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8303 whose name does not start with the host triplet. If you think this
8304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8305 ac_tool_warned=yes ;;
8307 RANLIB=$ac_ct_RANLIB
8310 RANLIB="$ac_cv_prog_RANLIB"
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}strip; ac_word=$2
8316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318 if test "${ac_cv_prog_STRIP+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 if test -n "$STRIP"; then
8322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 STRIP=$ac_cv_prog_STRIP
8342 if test -n "$STRIP"; then
8343 { echo "$as_me:$LINENO: result: $STRIP" >&5
8344 echo "${ECHO_T}$STRIP" >&6; }
8346 { echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6; }
8352 if test -z "$ac_cv_prog_STRIP"; then
8354 # Extract the first word of "strip", so it can be a program name with args.
8355 set dummy strip; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test -n "$ac_ct_STRIP"; then
8362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_ac_ct_STRIP="strip"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8382 if test -n "$ac_ct_STRIP"; then
8383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8390 if test "x$ac_ct_STRIP" = x; then
8393 case $cross_compiling:$ac_tool_warned in
8395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8396 whose name does not start with the host triplet. If you think this
8397 configuration is useful to you, please write to autoconf@gnu.org." >&5
8398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8399 whose name does not start with the host triplet. If you think this
8400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8401 ac_tool_warned=yes ;;
8406 STRIP="$ac_cv_prog_STRIP"
8411 old_CFLAGS="$CFLAGS"
8413 # Set sane defaults for various variables
8414 test -z "$AR" && AR=ar
8415 test -z "$AR_FLAGS" && AR_FLAGS=cru
8416 test -z "$AS" && AS=as
8417 test -z "$CC" && CC=cc
8418 test -z "$LTCC" && LTCC=$CC
8419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8420 test -z "$DLLTOOL" && DLLTOOL=dlltool
8421 test -z "$LD" && LD=ld
8422 test -z "$LN_S" && LN_S="ln -s"
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 test -z "$NM" && NM=nm
8425 test -z "$SED" && SED=sed
8426 test -z "$OBJDUMP" && OBJDUMP=objdump
8427 test -z "$RANLIB" && RANLIB=:
8428 test -z "$STRIP" && STRIP=:
8429 test -z "$ac_objext" && ac_objext=o
8431 # Determine commands to create old-style static archives.
8432 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8433 old_postinstall_cmds='chmod 644 $oldlib'
8434 old_postuninstall_cmds=
8436 if test -n "$RANLIB"; then
8439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8445 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8448 for cc_temp in $compiler""; do
8450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8459 # Only perform the check for file, if the check method requires it
8460 case $deplibs_check_method in
8462 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8463 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8464 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8465 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8473 lt_save_MAGIC_CMD="$MAGIC_CMD"
8474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476 for ac_dir in $ac_dummy; do
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f $ac_dir/${ac_tool_prefix}file; then
8480 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8481 if test -n "$file_magic_test_file"; then
8482 case $deplibs_check_method in
8484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487 $EGREP "$file_magic_regex" > /dev/null; then
8492 *** Warning: the command libtool uses to detect shared libraries,
8493 *** $file_magic_cmd, produces output that libtool cannot recognize.
8494 *** The result is that libtool may fail to recognize shared libraries
8495 *** as such. This will affect the creation of libtool libraries that
8496 *** depend on shared libraries, but programs linked with such libtool
8497 *** libraries will work regardless of this problem. Nevertheless, you
8498 *** may want to report the problem to your system manager and/or to
8499 *** bug-libtool@gnu.org
8509 MAGIC_CMD="$lt_save_MAGIC_CMD"
8514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515 if test -n "$MAGIC_CMD"; then
8516 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8517 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8519 { echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6; }
8523 if test -z "$lt_cv_path_MAGIC_CMD"; then
8524 if test -n "$ac_tool_prefix"; then
8525 { echo "$as_me:$LINENO: checking for file" >&5
8526 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8527 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8535 lt_save_MAGIC_CMD="$MAGIC_CMD"
8536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538 for ac_dir in $ac_dummy; do
8540 test -z "$ac_dir" && ac_dir=.
8541 if test -f $ac_dir/file; then
8542 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543 if test -n "$file_magic_test_file"; then
8544 case $deplibs_check_method in
8546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549 $EGREP "$file_magic_regex" > /dev/null; then
8554 *** Warning: the command libtool uses to detect shared libraries,
8555 *** $file_magic_cmd, produces output that libtool cannot recognize.
8556 *** The result is that libtool may fail to recognize shared libraries
8557 *** as such. This will affect the creation of libtool libraries that
8558 *** depend on shared libraries, but programs linked with such libtool
8559 *** libraries will work regardless of this problem. Nevertheless, you
8560 *** may want to report the problem to your system manager and/or to
8561 *** bug-libtool@gnu.org
8571 MAGIC_CMD="$lt_save_MAGIC_CMD"
8576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577 if test -n "$MAGIC_CMD"; then
8578 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8579 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8581 { echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6; }
8597 # Check whether --enable-libtool-lock was given.
8598 if test "${enable_libtool_lock+set}" = set; then
8599 enableval=$enable_libtool_lock;
8602 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8605 # Check whether --with-pic was given.
8606 if test "${with_pic+set}" = set; then
8607 withval=$with_pic; pic_mode="$withval"
8612 test -z "$pic_mode" && pic_mode=default
8614 # Use C for the default configuration in the libtool script
8618 ac_cpp='$CPP $CPPFLAGS'
8619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624 # Source file extension for C test sources.
8627 # Object file extension for compiled C test sources.
8631 # Code to be used in simple compile tests
8632 lt_simple_compile_test_code="int some_variable = 0;\n"
8634 # Code to be used in simple link tests
8635 lt_simple_link_test_code='int main(){return(0);}\n'
8638 # If no C compiler was specified, use CC.
8641 # If no C compiler flags were specified, use CFLAGS.
8642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8644 # Allow CC to be a program name with arguments.
8648 # save warnings/boilerplate of simple test code
8649 ac_outfile=conftest.$ac_objext
8650 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8652 _lt_compiler_boilerplate=`cat conftest.err`
8655 ac_outfile=conftest.$ac_objext
8656 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8658 _lt_linker_boilerplate=`cat conftest.err`
8663 lt_prog_compiler_no_builtin_flag=
8665 if test "$GCC" = yes; then
8666 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8669 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8670 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8671 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 lt_cv_prog_compiler_rtti_exceptions=no
8675 ac_outfile=conftest.$ac_objext
8676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8677 lt_compiler_flag="-fno-rtti -fno-exceptions"
8678 # Insert the option either (1) after the last *FLAGS variable, or
8679 # (2) before a word containing "conftest.", or (3) at the end.
8680 # Note that $ac_compile itself does not contain backslashes and begins
8681 # with a dollar sign (not a hyphen), so the echo should work correctly.
8682 # The option is referenced via a variable to avoid confusing sed.
8683 lt_compile=`echo "$ac_compile" | $SED \
8684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686 -e 's:$: $lt_compiler_flag:'`
8687 (eval echo "\"\$as_me:8687: $lt_compile\"" >&5)
8688 (eval "$lt_compile" 2>conftest.err)
8690 cat conftest.err >&5
8691 echo "$as_me:8691: \$? = $ac_status" >&5
8692 if (exit $ac_status) && test -s "$ac_outfile"; then
8693 # The compiler can only warn and ignore the option if not recognized
8694 # So say no if there are warnings other than the usual output.
8695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8698 lt_cv_prog_compiler_rtti_exceptions=yes
8704 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8705 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8708 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8715 lt_prog_compiler_wl=
8716 lt_prog_compiler_pic=
8717 lt_prog_compiler_static=
8719 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8720 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8722 if test "$GCC" = yes; then
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_static='-static'
8728 # All AIX code is PIC.
8729 if test "$host_cpu" = ia64; then
8730 # AIX 5 now supports IA64 processor
8731 lt_prog_compiler_static='-Bstatic'
8736 # FIXME: we need at least 68020 code to build shared libraries, but
8737 # adding the `-m68020' flag to GCC prevents building anything better,
8739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8742 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8743 # PIC is the default for these OSes.
8746 mingw* | pw32* | os2*)
8747 # This hack is so that the source file can tell whether it is being
8748 # built for inclusion in a dll (and should export symbols for example).
8749 lt_prog_compiler_pic='-DDLL_EXPORT'
8752 darwin* | rhapsody*)
8753 # PIC is the default on this platform
8754 # Common symbols not allowed in MH_DYLIB files
8755 lt_prog_compiler_pic='-fno-common'
8759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8760 # Instead, we relocate shared libraries at runtime.
8764 # Just because we use GCC doesn't mean we suddenly get shared libraries
8765 # on systems that don't support them.
8766 lt_prog_compiler_can_build_shared=no
8771 if test -d /usr/nec; then
8772 lt_prog_compiler_pic=-Kconform_pic
8777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8784 lt_prog_compiler_pic='-fPIC'
8790 lt_prog_compiler_pic='-fPIC'
8794 # PORTME Check for flag to pass linker flags through the system compiler.
8797 lt_prog_compiler_wl='-Wl,'
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 now supports IA64 processor
8800 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8806 # PIC is the default on this platform
8807 # Common symbols not allowed in MH_DYLIB files
8808 case $cc_basename in
8810 lt_prog_compiler_pic='-qnocommon'
8811 lt_prog_compiler_wl='-Wl,'
8816 mingw* | pw32* | os2*)
8817 # This hack is so that the source file can tell whether it is being
8818 # built for inclusion in a dll (and should export symbols for example).
8819 lt_prog_compiler_pic='-DDLL_EXPORT'
8822 hpux9* | hpux10* | hpux11*)
8823 lt_prog_compiler_wl='-Wl,'
8824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8831 lt_prog_compiler_pic='+Z'
8834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8835 lt_prog_compiler_static='${wl}-a ${wl}archive'
8838 irix5* | irix6* | nonstopux*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # PIC (with -KPIC) is the default.
8841 lt_prog_compiler_static='-non_shared'
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-Bstatic'
8849 linux* | k*bsd*-gnu)
8850 case $cc_basename in
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-static'
8856 pgcc* | pgf77* | pgf90* | pgf95*)
8857 # Portland Group compilers (*not* the Pentium gcc compiler,
8858 # which looks to be a dead project)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-fpic'
8861 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_wl='-Wl,'
8865 # All Alpha code is PIC.
8866 lt_prog_compiler_static='-non_shared'
8871 osf3* | osf4* | osf5*)
8872 lt_prog_compiler_wl='-Wl,'
8873 # All OSF/1 code is PIC.
8874 lt_prog_compiler_static='-non_shared'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 case $cc_basename in
8882 lt_prog_compiler_wl='-Qoption ld ';;
8884 lt_prog_compiler_wl='-Wl,';;
8889 lt_prog_compiler_wl='-Qoption ld '
8890 lt_prog_compiler_pic='-PIC'
8891 lt_prog_compiler_static='-Bstatic'
8894 sysv4 | sysv4.2uw2* | sysv4.3*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8901 if test -d /usr/nec ;then
8902 lt_prog_compiler_pic='-Kconform_pic'
8903 lt_prog_compiler_static='-Bstatic'
8907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_can_build_shared=no
8919 lt_prog_compiler_pic='-pic'
8920 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_can_build_shared=no
8929 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8930 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8933 # Check to make sure the PIC flag actually works.
8935 if test -n "$lt_prog_compiler_pic"; then
8937 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8938 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8939 if test "${lt_prog_compiler_pic_works+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 lt_prog_compiler_pic_works=no
8943 ac_outfile=conftest.$ac_objext
8944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8945 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8946 # Insert the option either (1) after the last *FLAGS variable, or
8947 # (2) before a word containing "conftest.", or (3) at the end.
8948 # Note that $ac_compile itself does not contain backslashes and begins
8949 # with a dollar sign (not a hyphen), so the echo should work correctly.
8950 # The option is referenced via a variable to avoid confusing sed.
8951 lt_compile=`echo "$ac_compile" | $SED \
8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954 -e 's:$: $lt_compiler_flag:'`
8955 (eval echo "\"\$as_me:8955: $lt_compile\"" >&5)
8956 (eval "$lt_compile" 2>conftest.err)
8958 cat conftest.err >&5
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 if (exit $ac_status) && test -s "$ac_outfile"; then
8961 # The compiler can only warn and ignore the option if not recognized
8962 # So say no if there are warnings other than the usual output.
8963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8966 lt_prog_compiler_pic_works=yes
8972 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8973 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8975 if test x"$lt_prog_compiler_pic_works" = xyes; then
8976 case $lt_prog_compiler_pic in
8978 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8981 lt_prog_compiler_pic=
8982 lt_prog_compiler_can_build_shared=no
8987 # For platforms which do not support PIC, -DPIC is meaningless:
8989 lt_prog_compiler_pic=
8992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8997 # Check to make sure the static flag actually works.
8999 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9000 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9001 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9002 if test "${lt_prog_compiler_static_works+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 lt_prog_compiler_static_works=no
9006 save_LDFLAGS="$LDFLAGS"
9007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9008 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9010 # The linker can only warn and ignore the option if not recognized
9011 # So say no if there are warnings
9012 if test -s conftest.err; then
9013 # Append any errors to the config.log.
9014 cat conftest.err 1>&5
9015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017 if diff conftest.exp conftest.er2 >/dev/null; then
9018 lt_prog_compiler_static_works=yes
9021 lt_prog_compiler_static_works=yes
9025 LDFLAGS="$save_LDFLAGS"
9028 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9029 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9031 if test x"$lt_prog_compiler_static_works" = xyes; then
9034 lt_prog_compiler_static=
9038 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 lt_cv_prog_compiler_c_o=no
9044 $rm -r conftest 2>/dev/null
9048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9050 lt_compiler_flag="-o out/conftest2.$ac_objext"
9051 # Insert the option either (1) after the last *FLAGS variable, or
9052 # (2) before a word containing "conftest.", or (3) at the end.
9053 # Note that $ac_compile itself does not contain backslashes and begins
9054 # with a dollar sign (not a hyphen), so the echo should work correctly.
9055 lt_compile=`echo "$ac_compile" | $SED \
9056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058 -e 's:$: $lt_compiler_flag:'`
9059 (eval echo "\"\$as_me:9059: $lt_compile\"" >&5)
9060 (eval "$lt_compile" 2>out/conftest.err)
9062 cat out/conftest.err >&5
9063 echo "$as_me:9063: \$? = $ac_status" >&5
9064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9066 # The compiler can only warn and ignore the option if not recognized
9067 # So say no if there are warnings
9068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_c_o=yes
9076 # SGI C++ compiler will create directory out/ii_files/ for
9077 # template instantiation
9078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9079 $rm out/* && rmdir out
9085 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9089 hard_links="nottested"
9090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9091 # do not overwrite the value of need_locks provided by the user
9092 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9098 ln conftest.a conftest.b 2>&5 || hard_links=no
9099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9100 { echo "$as_me:$LINENO: result: $hard_links" >&5
9101 echo "${ECHO_T}$hard_links" >&6; }
9102 if test "$hard_links" = no; then
9103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9111 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9115 allow_undefined_flag=
9116 enable_shared_with_static_runtimes=no
9118 archive_expsym_cmds=
9119 old_archive_From_new_cmds=
9120 old_archive_from_expsyms_cmds=
9121 export_dynamic_flag_spec=
9122 whole_archive_flag_spec=
9123 thread_safe_flag_spec=
9124 hardcode_libdir_flag_spec=
9125 hardcode_libdir_flag_spec_ld=
9126 hardcode_libdir_separator=
9129 hardcode_shlibpath_var=unsupported
9130 link_all_deplibs=unknown
9131 hardcode_automatic=no
9134 always_export_symbols=no
9135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9136 # include_expsyms should be a list of space-separated symbols to be *always*
9137 # included in the symbol list
9139 # exclude_expsyms can be an extended regexp of symbols to exclude
9140 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9142 # as well as any symbol that contains `d'.
9143 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9145 # platforms (ab)use it in PIC code, but their linkers get confused if
9146 # the symbol is explicitly referenced. Since portable code cannot
9147 # rely on this symbol name, it's probably fine to never include it in
9148 # preloaded symbol tables.
9149 extract_expsyms_cmds=
9150 # Just being paranoid about ensuring that cc_basename is set.
9151 for cc_temp in $compiler""; do
9153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9162 cygwin* | mingw* | pw32*)
9163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9164 # When not using gcc, we currently assume that we are using
9165 # Microsoft Visual C++.
9166 if test "$GCC" != yes; then
9171 # we just hope/assume this is gcc and not c89 (= MSVC++)
9180 if test "$with_gnu_ld" = yes; then
9181 # If archive_cmds runs LD, not CC, wlarc should be empty
9184 # Set some defaults for GNU ld with shared library support. These
9185 # are reset later if shared libraries are not supported. Putting them
9186 # here allows them to be overridden if necessary.
9187 runpath_var=LD_RUN_PATH
9188 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9189 export_dynamic_flag_spec='${wl}--export-dynamic'
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9194 whole_archive_flag_spec=
9196 supports_anon_versioning=no
9197 case `$LD -v 2>/dev/null` in
9198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9201 *\ 2.11.*) ;; # other 2.11 versions
9202 *) supports_anon_versioning=yes ;;
9205 # See if GNU ld supports shared libraries.
9207 aix3* | aix4* | aix5*)
9208 # On AIX/PPC, the GNU linker is very broken
9209 if test "$host_cpu" != ia64; then
9213 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9214 *** to be unable to reliably create shared libraries on AIX.
9215 *** Therefore, libtool is disabling shared libraries support. If you
9216 *** really care for shared libraries, you may want to modify your PATH
9217 *** so that a non-GNU linker is found, and then restart.
9224 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)'
9225 hardcode_libdir_flag_spec='-L$libdir'
9226 hardcode_minus_L=yes
9228 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9229 # that the semantics of dynamic libraries on AmigaOS, at least up
9230 # to version 4, is to share data among multiple programs linked
9231 # with the same dynamic library. Since this doesn't match the
9232 # behavior of shared libraries on other platforms, we can't use
9238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9239 allow_undefined_flag=unsupported
9240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9241 # support --undefined. This deserves some investigation. FIXME
9242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 cygwin* | mingw* | pw32*)
9249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9250 # as there is no search path for DLLs.
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=no
9254 enable_shared_with_static_runtimes=yes
9255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9257 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9259 # If the export-symbols file already is a .def file (1st line
9260 # is EXPORTS), use it as is; otherwise, prepend...
9261 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9262 cp $export_symbols $output_objdir/$soname.def;
9264 echo EXPORTS > $output_objdir/$soname.def;
9265 cat $export_symbols >> $output_objdir/$soname.def;
9267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9275 hardcode_shlibpath_var=no
9276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9277 export_dynamic_flag_spec='${wl}-E'
9278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9279 # Instead, shared libraries are loaded at an image base (0x10000000 by
9280 # default) and relocated if they conflict, which is a slow very memory
9281 # consuming and fragmenting process. To avoid this, we pick a random,
9282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9285 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'
9288 linux* | k*bsd*-gnu)
9289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9291 case $cc_basename,$host_cpu in
9292 pgcc*) # Portland Group C compiler
9293 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'
9294 tmp_addflag=' $pic_flag'
9296 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9297 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'
9298 tmp_addflag=' $pic_flag -Mnomain' ;;
9299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9300 tmp_addflag=' -i_dynamic' ;;
9301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9302 tmp_addflag=' -i_dynamic -nofor_main' ;;
9303 ifc* | ifort*) # Intel Fortran compiler
9304 tmp_addflag=' -nofor_main' ;;
9306 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 if test $supports_anon_versioning = yes; then
9309 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9311 $echo "local: *; };" >> $output_objdir/$libname.ver~
9312 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9320 netbsd* | netbsdelf*-gnu)
9321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9322 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9336 *** create shared libraries on Solaris systems. Therefore, libtool
9337 *** is disabling shared libraries support. We urge you to upgrade GNU
9338 *** binutils to release 2.9.1 or newer. Another option is to modify
9339 *** your PATH or compiler configuration so that the native linker is
9340 *** used, and then restart.
9343 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9352 case `$LD -v 2>&1` in
9353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9357 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9358 *** reliably create shared libraries on SCO systems. Therefore, libtool
9359 *** is disabling shared libraries support. We urge you to upgrade GNU
9360 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9361 *** your PATH or compiler configuration so that the native linker is
9362 *** used, and then restart.
9367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9368 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9379 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_shlibpath_var=no
9386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9395 if test "$ld_shlibs" = no; then
9397 hardcode_libdir_flag_spec=
9398 export_dynamic_flag_spec=
9399 whole_archive_flag_spec=
9402 # PORTME fill in a description of your system's linker (not GNU ld)
9405 allow_undefined_flag=unsupported
9406 always_export_symbols=yes
9407 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'
9408 # Note: this linker hardcodes the directories in LIBPATH if there
9409 # are no directories specified by -L.
9410 hardcode_minus_L=yes
9411 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9412 # Neither direct hardcoding nor static linking is supported with a
9414 hardcode_direct=unsupported
9419 if test "$host_cpu" = ia64; then
9420 # On IA64, the linker does run time linking by default, so we don't
9421 # have to do anything special.
9422 aix_use_runtimelinking=no
9423 exp_sym_flag='-Bexport'
9426 # If we're using GNU nm, then we don't want the "-C" option.
9427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9428 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9429 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'
9431 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'
9433 aix_use_runtimelinking=no
9435 # Test if we are trying to use run time linking or normal
9436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9437 # need to do runtime linking.
9438 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9439 for ld_flag in $LDFLAGS; do
9440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9441 aix_use_runtimelinking=yes
9448 exp_sym_flag='-bexport'
9449 no_entry_flag='-bnoentry'
9452 # When large executables or shared objects are built, AIX ld can
9453 # have problems creating the table of contents. If linking a library
9454 # or program results in "error TOC overflow" add -mminimal-toc to
9455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9460 hardcode_libdir_separator=':'
9461 link_all_deplibs=yes
9463 if test "$GCC" = yes; then
9464 case $host_os in aix4.[012]|aix4.[012].*)
9465 # We only want to do this on AIX 4.2 and lower, the check
9466 # below for broken collect2 doesn't work under 4.3+
9467 collect2name=`${CC} -print-prog-name=collect2`
9468 if test -f "$collect2name" && \
9469 strings "$collect2name" | grep resolve_lib_name >/dev/null
9471 # We have reworked collect2
9474 # We have old collect2
9475 hardcode_direct=unsupported
9476 # It fails to find uninstalled libraries when the uninstalled
9477 # path is not listed in the libpath. Setting hardcode_minus_L
9478 # to unsupported forces relinking
9479 hardcode_minus_L=yes
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 hardcode_libdir_separator=
9485 shared_flag='-shared'
9486 if test "$aix_use_runtimelinking" = yes; then
9487 shared_flag="$shared_flag "'${wl}-G'
9491 if test "$host_cpu" = ia64; then
9492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9493 # chokes on -Wl,-G. The following line is correct:
9496 if test "$aix_use_runtimelinking" = yes; then
9497 shared_flag='${wl}-G'
9499 shared_flag='${wl}-bM:SRE'
9504 # It seems that -bexpall does not export symbols beginning with
9505 # underscore (_), so it is better to generate a list of symbols to export.
9506 always_export_symbols=yes
9507 if test "$aix_use_runtimelinking" = yes; then
9508 # Warning - without using the other runtime loading flags (-brtl),
9509 # -berok will link without error, but may produce a broken library.
9510 allow_undefined_flag='-berok'
9511 # Determine the default libpath from the value encoded in an empty executable.
9512 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_link") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_try") 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_try") 2>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9564 # Check for a 64-bit object if we didn't find anything.
9565 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; }
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9574 rm -f conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9579 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"
9581 if test "$host_cpu" = ia64; then
9582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9583 allow_undefined_flag="-z nodefs"
9584 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"
9586 # Determine the default libpath from the value encoded in an empty executable.
9587 cat >conftest.$ac_ext <<_ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_link") 2>conftest.er1
9611 grep -v '^ *+' conftest.er1 >conftest.err
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 { (case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_try") 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_try") 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9639 # Check for a 64-bit object if we didn't find anything.
9640 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; }
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9649 rm -f conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9654 # Warning - without using the other run time loading flags,
9655 # -berok will link without error, but may produce a broken library.
9656 no_undefined_flag=' ${wl}-bernotok'
9657 allow_undefined_flag=' ${wl}-berok'
9658 # Exported symbols can be pulled into shared objects from archives
9659 whole_archive_flag_spec='$convenience'
9660 archive_cmds_need_lc=yes
9661 # This is similar to how AIX traditionally builds its shared libraries.
9662 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'
9668 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)'
9669 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_minus_L=yes
9671 # see comment about different semantics on the GNU ld section
9676 export_dynamic_flag_spec=-rdynamic
9679 cygwin* | mingw* | pw32*)
9680 # When not using gcc, we currently assume that we are using
9681 # Microsoft Visual C++.
9682 # hardcode_libdir_flag_spec is actually meaningless, as there is
9683 # no search path for DLLs.
9684 hardcode_libdir_flag_spec=' '
9685 allow_undefined_flag=unsupported
9686 # Tell ltmain to make .lib files, not .a files.
9688 # Tell ltmain to make .dll files, not .so files.
9690 # FIXME: Setting linknames here is a bad hack.
9691 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9692 # The linker will automatically build a .lib file if we build a DLL.
9693 old_archive_From_new_cmds='true'
9694 # FIXME: Should let the user specify the lib program.
9695 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9696 fix_srcfile_path='`cygpath -w "$srcfile"`'
9697 enable_shared_with_static_runtimes=yes
9700 darwin* | rhapsody*)
9702 rhapsody* | darwin1.[012])
9703 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9707 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9709 case ${MACOSX_DEPLOYMENT_TARGET} in
9711 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9714 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9720 archive_cmds_need_lc=no
9722 hardcode_automatic=yes
9723 hardcode_shlibpath_var=unsupported
9724 whole_archive_flag_spec=''
9725 link_all_deplibs=yes
9726 if test "$GCC" = yes ; then
9727 output_verbose_link_cmd='echo'
9728 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9729 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9731 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}'
9732 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}'
9734 case $cc_basename in
9736 output_verbose_link_cmd='echo'
9737 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9738 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9740 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}'
9741 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}'
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_shlibpath_var=no
9760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9761 # support. Future versions do this automatically, but an explicit c++rt0.o
9762 # does not break anything, and helps significantly (at the cost of a little
9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9766 hardcode_libdir_flag_spec='-R$libdir'
9768 hardcode_shlibpath_var=no
9771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_minus_L=yes
9776 hardcode_shlibpath_var=no
9779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9780 freebsd* | dragonfly*)
9781 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9782 hardcode_libdir_flag_spec='-R$libdir'
9784 hardcode_shlibpath_var=no
9788 if test "$GCC" = yes; then
9789 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'
9791 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'
9793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794 hardcode_libdir_separator=:
9797 # hardcode_minus_L: Not really in the search PATH,
9798 # but as the default location of the library.
9799 hardcode_minus_L=yes
9800 export_dynamic_flag_spec='${wl}-E'
9804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9805 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9809 if test "$with_gnu_ld" = no; then
9810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9811 hardcode_libdir_separator=:
9814 export_dynamic_flag_spec='${wl}-E'
9816 # hardcode_minus_L: Not really in the search PATH,
9817 # but as the default location of the library.
9818 hardcode_minus_L=yes
9823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 if test "$with_gnu_ld" = no; then
9849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850 hardcode_libdir_separator=:
9854 hardcode_libdir_flag_spec_ld='+b $libdir'
9856 hardcode_shlibpath_var=no
9860 export_dynamic_flag_spec='${wl}-E'
9862 # hardcode_minus_L: Not really in the search PATH,
9863 # but as the default location of the library.
9864 hardcode_minus_L=yes
9870 irix5* | irix6* | nonstopux*)
9871 if test "$GCC" = yes; then
9872 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'
9874 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'
9875 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 hardcode_libdir_separator=:
9879 link_all_deplibs=yes
9882 netbsd* | netbsdelf*-gnu)
9883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9886 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9888 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_shlibpath_var=no
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 hardcode_shlibpath_var=no
9903 hardcode_shlibpath_var=no
9904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908 export_dynamic_flag_spec='${wl}-E'
9911 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_libdir_flag_spec='-R$libdir'
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 allow_undefined_flag=unsupported
9927 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'
9928 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9932 if test "$GCC" = yes; then
9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9934 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'
9936 allow_undefined_flag=' -expect_unresolved \*'
9937 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'
9939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9940 hardcode_libdir_separator=:
9943 osf4* | osf5*) # as osf3* with the addition of -msym flag
9944 if test "$GCC" = yes; then
9945 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9946 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'
9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 allow_undefined_flag=' -expect_unresolved \*'
9950 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'
9951 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9952 $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'
9954 # Both c and cxx compiler support -rpath directly
9955 hardcode_libdir_flag_spec='-rpath $libdir'
9957 hardcode_libdir_separator=:
9961 no_undefined_flag=' -z text'
9962 if test "$GCC" = yes; then
9964 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9966 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9969 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9973 hardcode_libdir_flag_spec='-R$libdir'
9974 hardcode_shlibpath_var=no
9976 solaris2.[0-5] | solaris2.[0-5].*) ;;
9978 # The compiler driver will combine linker options so we
9979 # cannot just pass the convience library names through
9980 # without $wl, iff we do not link with $LD.
9981 # Luckily, gcc supports the same syntax we need for Sun Studio.
9982 # Supported since Solaris 2.6 (maybe 2.5.1?)
9985 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9987 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' ;;
9990 link_all_deplibs=yes
9994 if test "x$host_vendor" = xsequent; then
9995 # Use $CC to link under sequent, because it throws in some extra .o
9996 # files that make .init and .fini sections work.
9997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_direct=yes
10003 hardcode_minus_L=yes
10004 hardcode_shlibpath_var=no
10008 case $host_vendor in
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_direct=yes # is this really true???
10014 ## LD is ld it makes a PLAMLIB
10015 ## CC just makes a GrossModule.
10016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10017 reload_cmds='$CC -r -o $output$reload_objs'
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10025 runpath_var='LD_RUN_PATH'
10026 hardcode_shlibpath_var=no
10030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_shlibpath_var=no
10032 export_dynamic_flag_spec='-Bexport'
10036 if test -d /usr/nec; then
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_shlibpath_var=no
10039 runpath_var=LD_RUN_PATH
10040 hardcode_runpath_var=yes
10045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10046 no_undefined_flag='${wl}-z,text'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 runpath_var='LD_RUN_PATH'
10051 if test "$GCC" = yes; then
10052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 sysv5* | sco3.2v5* | sco5v6*)
10061 # Note: We can NOT use -z defs as we might desire, because we do not
10062 # link with -lc, and that would cause any symbols used from libc to
10063 # always be unresolved, which means just about no library would
10064 # ever link correctly. If we're not using GNU ld we use -z text
10065 # though, which does catch some bad symbols but isn't as heavy-handed
10067 no_undefined_flag='${wl}-z,text'
10068 allow_undefined_flag='${wl}-z,nodefs'
10069 archive_cmds_need_lc=no
10070 hardcode_shlibpath_var=no
10071 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10072 hardcode_libdir_separator=':'
10073 link_all_deplibs=yes
10074 export_dynamic_flag_spec='${wl}-Bexport'
10075 runpath_var='LD_RUN_PATH'
10077 if test "$GCC" = yes; then
10078 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_shlibpath_var=no
10098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10099 echo "${ECHO_T}$ld_shlibs" >&6; }
10100 test "$ld_shlibs" = no && can_build_shared=no
10103 # Do we need to explicitly link libc?
10105 case "x$archive_cmds_need_lc" in
10107 # Assume -lc should be added
10108 archive_cmds_need_lc=yes
10110 if test "$enable_shared" = yes && test "$GCC" = yes; then
10111 case $archive_cmds in
10113 # FIXME: we may have to deal with multi-command sequences.
10116 # Test whether the compiler implicitly links with -lc since on some
10117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10118 # to ld, don't add -lc before -lgcc.
10119 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10120 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } 2>conftest.err; then
10131 libobjs=conftest.$ac_objext
10133 wl=$lt_prog_compiler_wl
10134 pic_flag=$lt_prog_compiler_pic
10140 lt_save_allow_undefined_flag=$allow_undefined_flag
10141 allow_undefined_flag=
10142 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10143 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }
10148 archive_cmds_need_lc=no
10150 archive_cmds_need_lc=yes
10152 allow_undefined_flag=$lt_save_allow_undefined_flag
10154 cat conftest.err 1>&5
10157 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10158 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10165 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10167 library_names_spec=
10168 libname_spec='lib$name'
10172 postuninstall_cmds=
10176 shlibpath_overrides_runpath=unknown
10178 dynamic_linker="$host_os ld.so"
10179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10180 if test "$GCC" = yes; then
10181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10182 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10183 # if the path contains ";" then we assume it to be the separator
10184 # otherwise default to the standard path separator (i.e. ":") - it is
10185 # assumed that no part of a normal pathname contains ";" but that should
10186 # okay in the real world where ";" in dirpaths is itself problematic.
10187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10194 need_lib_prefix=unknown
10195 hardcode_into_libs=no
10197 # when you set need_version to no, make sure it does not cause -set_version
10198 # flags to be left without arguments
10199 need_version=unknown
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10205 shlibpath_var=LIBPATH
10207 # AIX 3 has no versioning support, so we append a major version to the name.
10208 soname_spec='${libname}${release}${shared_ext}$major'
10215 hardcode_into_libs=yes
10216 if test "$host_cpu" = ia64; then
10217 # AIX 5 supports IA64
10218 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10219 shlibpath_var=LD_LIBRARY_PATH
10221 # With GCC up to 2.95.x, collect2 would create an import file
10222 # for dependence libraries. The import file would start with
10223 # the line `#! .'. This would cause the generated library to
10224 # depend on `.', always an invalid library. This was fixed in
10225 # development snapshots of GCC prior to 3.0.
10227 aix4 | aix4.[01] | aix4.[01].*)
10228 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10230 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10233 can_build_shared=no
10237 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10238 # soname into executable. Probably we can add versioning support to
10239 # collect2, so additional links can be useful in future.
10240 if test "$aix_use_runtimelinking" = yes; then
10241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10242 # instead of lib<name>.a to let people know that these are not
10243 # typical AIX shared libraries.
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 # We preserve .a as extension for shared libraries through AIX4.2
10247 # and later when we are not doing run time linking.
10248 library_names_spec='${libname}${release}.a $libname.a'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LIBPATH
10256 library_names_spec='$libname.ixlibrary $libname.a'
10257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10258 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'
10262 library_names_spec='${libname}${shared_ext}'
10263 dynamic_linker="$host_os ld.so"
10264 shlibpath_var=LIBRARY_PATH
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10276 # the default ld.so.conf also contains /usr/contrib/lib and
10277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10278 # libtool to hard-code these into programs
10281 cygwin* | mingw* | pw32*)
10282 version_type=windows
10287 case $GCC,$host_os in
10288 yes,cygwin* | yes,mingw* | yes,pw32*)
10289 library_names_spec='$libname.dll.a'
10290 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10291 postinstall_cmds='base_file=`basename \${file}`~
10292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10293 dldir=$destdir/`dirname \$dlpath`~
10294 test -d \$dldir || mkdir -p \$dldir~
10295 $install_prog $dir/$dlname \$dldir/$dlname~
10296 chmod a+x \$dldir/$dlname'
10297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10298 dlpath=$dir/\$dldll~
10300 shlibpath_overrides_runpath=yes
10304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10309 # MinGW DLLs use traditional 'lib' prefix
10310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10312 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10313 # It is most probably a Windows format PATH printed by
10314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10315 # path with ; separators, and with drive letters. We can handle the
10316 # drive letters (cygwin fileutils understands them), so leave them,
10317 # especially as we might pass files found there to a mingw objdump,
10318 # which wouldn't understand a cygwinified path. Ahh.
10319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10325 # pw32 DLLs use 'pw' prefix rather than 'lib'
10326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10335 dynamic_linker='Win32 ld.exe'
10336 # FIXME: first we should search . and the directory the executable is in
10340 darwin* | rhapsody*)
10341 dynamic_linker="$host_os dyld"
10342 version_type=darwin
10345 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10346 soname_spec='${libname}${release}${major}$shared_ext'
10347 shlibpath_overrides_runpath=yes
10348 shlibpath_var=DYLD_LIBRARY_PATH
10349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10350 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10351 if test "$GCC" = yes; then
10352 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"`
10354 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10372 freebsd* | dragonfly*)
10373 # DragonFly does not have aout. When/if they implement a new
10374 # versioning mechanism, adjust this.
10375 if test -x /usr/bin/objformat; then
10376 objformat=`/usr/bin/objformat`
10379 freebsd[123]*) objformat=aout ;;
10380 *) objformat=elf ;;
10383 version_type=freebsd-$objformat
10384 case $version_type in
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10395 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10400 freebsd3.[01]* | freebsdelf3.[01]*)
10401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10406 shlibpath_overrides_runpath=no
10407 hardcode_into_libs=yes
10409 freebsd*) # from 4.6 on
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 hardcode_into_libs=yes
10426 hpux9* | hpux10* | hpux11*)
10427 # Give a soname corresponding to the major version so that dld.sl refuses to
10428 # link against other versions.
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.so"
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 if test "X$HPUX_IA64_MODE" = X32; then
10442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10450 hardcode_into_libs=yes
10451 dynamic_linker="$host_os dld.sl"
10452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=SHLIB_PATH
10463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10469 postinstall_cmds='chmod 555 $lib'
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 shlibpath_overrides_runpath=no
10481 hardcode_into_libs=yes
10484 irix5* | irix6* | nonstopux*)
10486 nonstopux*) version_type=nonstopux ;;
10488 if test "$lt_cv_prog_gnu_ld" = yes; then
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 irix5* | nonstopux*)
10500 libsuff= shlibsuff=
10503 case $LD in # libtool.m4 will add one of these switches to LD
10504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10505 libsuff= shlibsuff= libmagic=32-bit;;
10506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10507 libsuff=32 shlibsuff=N32 libmagic=N32;;
10508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10510 *) libsuff= shlibsuff= libmagic=never-match;;
10514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10515 shlibpath_overrides_runpath=no
10516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10518 hardcode_into_libs=yes
10521 # No shared lib support for Linux oldld, aout, or coff.
10522 linux*oldld* | linux*aout* | linux*coff*)
10526 # This must be Linux ELF.
10527 linux* | k*bsd*-gnu)
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=no
10536 # This implies no fast_install, which is unacceptable.
10537 # Some rework will be needed to allow for fast_install
10538 # before this can be enabled.
10539 hardcode_into_libs=yes
10541 # Append ld.so.conf contents to the search path
10542 if test -f /etc/ld.so.conf; then
10543 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' ' '`
10544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10547 # We used to test for /lib/ld.so.1 and disable shared libraries on
10548 # powerpc, because MkLinux only supported shared libraries with the
10549 # GNU dynamic linker. Since this was broken with cross compilers,
10550 # most powerpc-linux boxes support dynamic linking these days and
10551 # people can always --disable-shared, the test was removed, and we
10552 # assume the GNU/Linux dynamic linker is in use.
10553 dynamic_linker='GNU/Linux ld.so'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10565 dynamic_linker='NetBSD ld.elf_so'
10572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10575 dynamic_linker='NetBSD (a.out) ld.so'
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 dynamic_linker='NetBSD ld.elf_so'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 hardcode_into_libs=yes
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10605 sys_lib_dlsearch_path_spec="/usr/lib"
10607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10610 *) need_version=no ;;
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 openbsd2.[89] | openbsd2.[89].*)
10618 shlibpath_overrides_runpath=no
10621 shlibpath_overrides_runpath=yes
10625 shlibpath_overrides_runpath=yes
10630 libname_spec='$name'
10633 library_names_spec='$libname${shared_ext} $libname.a'
10634 dynamic_linker='OS/2 ld.exe'
10635 shlibpath_var=LIBPATH
10638 osf3* | osf4* | osf5*)
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 # ldd complains unless libraries are executable
10659 postinstall_cmds='chmod +x $lib'
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath=yes
10668 if test "$with_gnu_ld" = yes; then
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 case $host_vendor in
10681 shlibpath_overrides_runpath=no
10683 export_dynamic_flag_spec='${wl}-Blargedynsym'
10684 runpath_var=LD_RUN_PATH
10692 shlibpath_overrides_runpath=no
10693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10699 if test -d /usr/nec ;then
10701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10702 soname_spec='$libname${shared_ext}.$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10708 version_type=freebsd-elf
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 hardcode_into_libs=yes
10715 if test "$with_gnu_ld" = yes; then
10716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10717 shlibpath_overrides_runpath=no
10719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10720 shlibpath_overrides_runpath=yes
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727 sys_lib_dlsearch_path_spec='/usr/lib'
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10742 echo "${ECHO_T}$dynamic_linker" >&6; }
10743 test "$dynamic_linker" = no && can_build_shared=no
10745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10746 if test "$GCC" = yes; then
10747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10750 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10751 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10753 if test -n "$hardcode_libdir_flag_spec" || \
10754 test -n "$runpath_var" || \
10755 test "X$hardcode_automatic" = "Xyes" ; then
10757 # We can hardcode non-existant directories.
10758 if test "$hardcode_direct" != no &&
10759 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10760 # have to relink, otherwise we might link with an installed library
10761 # when we should be linking with a yet-to-be-installed one
10762 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10763 test "$hardcode_minus_L" != no; then
10764 # Linking always hardcodes the temporary library directory.
10765 hardcode_action=relink
10767 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10768 hardcode_action=immediate
10771 # We cannot hardcode anything, or else we can only hardcode existing
10773 hardcode_action=unsupported
10775 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10776 echo "${ECHO_T}$hardcode_action" >&6; }
10778 if test "$hardcode_action" = relink; then
10779 # Fast installation is not supported
10780 enable_fast_install=no
10781 elif test "$shlibpath_overrides_runpath" = yes ||
10782 test "$enable_shared" = no; then
10783 # Fast installation is not necessary
10784 enable_fast_install=needless
10789 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10790 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10791 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10792 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10793 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10794 { echo "$as_me:$LINENO: result: yes" >&5
10795 echo "${ECHO_T}yes" >&6; }
10797 # FIXME - insert some real tests, host_os isn't really good enough
10800 if test -n "$STRIP" ; then
10801 striplib="$STRIP -x"
10802 { echo "$as_me:$LINENO: result: yes" >&5
10803 echo "${ECHO_T}yes" >&6; }
10805 { echo "$as_me:$LINENO: result: no" >&5
10806 echo "${ECHO_T}no" >&6; }
10810 { echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6; }
10816 if test "x$enable_dlopen" != xyes; then
10817 enable_dlopen=unknown
10818 enable_dlopen_self=unknown
10819 enable_dlopen_self_static=unknown
10826 lt_cv_dlopen="load_add_on"
10828 lt_cv_dlopen_self=yes
10832 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen="dlopen"
10842 # if libdl is installed we need to link against it
10843 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 ac_check_lib_save_LIBS=$LIBS
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_lib_dl_dlopen=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_lib_dl_dlopen=no
10914 rm -f conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10919 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10920 if test $ac_cv_lib_dl_dlopen = yes; then
10921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10924 lt_cv_dlopen="dyld"
10926 lt_cv_dlopen_self=yes
10933 { echo "$as_me:$LINENO: checking for shl_load" >&5
10934 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10935 if test "${ac_cv_func_shl_load+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10946 #define shl_load innocuous_shl_load
10948 /* System header to define __stub macros and hopefully few prototypes,
10949 which can conflict with char shl_load (); below.
10950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10951 <limits.h> exists even on freestanding compilers. */
10954 # include <limits.h>
10956 # include <assert.h>
10961 /* Override any GCC internal prototype to avoid an error.
10962 Use char because int might match the return type of a GCC
10963 builtin and then its argument prototype would still apply. */
10968 /* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
10971 #if defined __stub_shl_load || defined __stub___shl_load
10978 return shl_load ();
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_link") 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try='test -s conftest$ac_exeext'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 ac_cv_func_shl_load=yes
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_cv_func_shl_load=no
11025 rm -f conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11030 if test $ac_cv_func_shl_load = yes; then
11031 lt_cv_dlopen="shl_load"
11033 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 ac_check_lib_save_LIBS=$LIBS
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11057 return shl_load ();
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (ac_try="$ac_link"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_link") 2>conftest.er1
11071 grep -v '^ *+' conftest.er1 >conftest.err
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11077 { (case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_try") 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest$ac_exeext'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_lib_dld_shl_load=yes
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 ac_cv_lib_dld_shl_load=no
11104 rm -f conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11109 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11110 if test $ac_cv_lib_dld_shl_load = yes; then
11111 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11113 { echo "$as_me:$LINENO: checking for dlopen" >&5
11114 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11115 if test "${ac_cv_func_dlopen+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11126 #define dlopen innocuous_dlopen
11128 /* System header to define __stub macros and hopefully few prototypes,
11129 which can conflict with char dlopen (); below.
11130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11131 <limits.h> exists even on freestanding compilers. */
11134 # include <limits.h>
11136 # include <assert.h>
11141 /* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11148 /* The GNU C library defines this for functions which it implements
11149 to always fail with ENOSYS. Some functions are actually named
11150 something starting with __ and the normal name is an alias. */
11151 #if defined __stub_dlopen || defined __stub___dlopen
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_link") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_func_dlopen=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_cv_func_dlopen=no
11205 rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11209 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11210 if test $ac_cv_func_dlopen = yes; then
11211 lt_cv_dlopen="dlopen"
11213 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 ac_check_lib_save_LIBS=$LIBS
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest$ac_exeext'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_lib_dl_dlopen=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_cv_lib_dl_dlopen=no
11284 rm -f conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11290 if test $ac_cv_lib_dl_dlopen = yes; then
11291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11293 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11294 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-lsvld $LIBS"
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (ac_try="$ac_link"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_link") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11337 { (case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_try") 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest$ac_exeext'
11347 { (case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_try") 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_lib_svld_dlopen=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_cv_lib_svld_dlopen=no
11364 rm -f conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11368 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11370 if test $ac_cv_lib_svld_dlopen = yes; then
11371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11373 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 ac_check_lib_save_LIBS=$LIBS
11380 cat >conftest.$ac_ext <<_ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11397 return dld_link ();
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (ac_try="$ac_link"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_link") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11417 { (case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_try") 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_lib_dld_dld_link=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_cv_lib_dld_dld_link=no
11444 rm -f conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11450 if test $ac_cv_lib_dld_dld_link = yes; then
11451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11472 if test "x$lt_cv_dlopen" != xno; then
11478 case $lt_cv_dlopen in
11480 save_CPPFLAGS="$CPPFLAGS"
11481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483 save_LDFLAGS="$LDFLAGS"
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11487 LIBS="$lt_cv_dlopen_libs $LIBS"
11489 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11491 if test "${lt_cv_dlopen_self+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 if test "$cross_compiling" = yes; then :
11495 lt_cv_dlopen_self=cross
11497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498 lt_status=$lt_dlunknown
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11510 # define LT_DLGLOBAL RTLD_GLOBAL
11513 # define LT_DLGLOBAL DL_GLOBAL
11515 # define LT_DLGLOBAL 0
11519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520 find out it does not work in some platform. */
11521 #ifndef LT_DLLAZY_OR_NOW
11523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11526 # define LT_DLLAZY_OR_NOW DL_LAZY
11529 # define LT_DLLAZY_OR_NOW RTLD_NOW
11532 # define LT_DLLAZY_OR_NOW DL_NOW
11534 # define LT_DLLAZY_OR_NOW 0
11542 extern "C" void exit (int);
11545 void fnord() { int i=42;}
11548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11549 int status = $lt_dlunknown;
11553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555 /* dlclose (self); */
11563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11564 (eval $ac_link) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11568 (./conftest; exit; ) >&5 2>/dev/null
11570 case x$lt_status in
11571 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11573 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11576 # compilation failed
11577 lt_cv_dlopen_self=no
11584 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11585 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11587 if test "x$lt_cv_dlopen_self" = xyes; then
11588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11589 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11590 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11591 if test "${lt_cv_dlopen_self_static+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 if test "$cross_compiling" = yes; then :
11595 lt_cv_dlopen_self_static=cross
11597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11598 lt_status=$lt_dlunknown
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11600 "configure"
11601 #include "confdefs.h"
11610 # define LT_DLGLOBAL RTLD_GLOBAL
11613 # define LT_DLGLOBAL DL_GLOBAL
11615 # define LT_DLGLOBAL 0
11619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620 find out it does not work in some platform. */
11621 #ifndef LT_DLLAZY_OR_NOW
11623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11626 # define LT_DLLAZY_OR_NOW DL_LAZY
11629 # define LT_DLLAZY_OR_NOW RTLD_NOW
11632 # define LT_DLLAZY_OR_NOW DL_NOW
11634 # define LT_DLLAZY_OR_NOW 0
11642 extern "C" void exit (int);
11645 void fnord() { int i=42;}
11648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649 int status = $lt_dlunknown;
11653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11654 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655 /* dlclose (self); */
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11668 (./conftest; exit; ) >&5 2>/dev/null
11670 case x$lt_status in
11671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11673 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11676 # compilation failed
11677 lt_cv_dlopen_self_static=no
11684 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11688 CPPFLAGS="$save_CPPFLAGS"
11689 LDFLAGS="$save_LDFLAGS"
11694 case $lt_cv_dlopen_self in
11695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11696 *) enable_dlopen_self=unknown ;;
11699 case $lt_cv_dlopen_self_static in
11700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11701 *) enable_dlopen_self_static=unknown ;;
11706 # Report which library types will actually be built
11707 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11708 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11709 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11710 echo "${ECHO_T}$can_build_shared" >&6; }
11712 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11713 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11714 test "$can_build_shared" = "no" && enable_shared=no
11716 # On AIX, shared libraries and static libraries use the same namespace, and
11717 # are all built from PIC.
11720 test "$enable_shared" = yes && enable_static=no
11721 if test -n "$RANLIB"; then
11722 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11723 postinstall_cmds='$RANLIB $lib'
11728 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11729 test "$enable_shared" = yes && enable_static=no
11733 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11734 echo "${ECHO_T}$enable_shared" >&6; }
11736 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11737 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11738 # Make sure either enable_shared or enable_static is yes.
11739 test "$enable_shared" = yes || enable_static=yes
11740 { echo "$as_me:$LINENO: result: $enable_static" >&5
11741 echo "${ECHO_T}$enable_static" >&6; }
11743 # The else clause should only fire when bootstrapping the
11744 # libtool distribution, otherwise you forgot to ship ltmain.sh
11745 # with your package, and you will get complaints that there are
11746 # no rules to generate ltmain.sh.
11747 if test -f "$ltmain"; then
11748 # See if we are running on zsh, and set the options which allow our commands through
11749 # without removal of \ escapes.
11750 if test -n "${ZSH_VERSION+set}" ; then
11751 setopt NO_GLOB_SUBST
11753 # Now quote all the things that may contain metacharacters while being
11754 # careful not to overquote the AC_SUBSTed values. We take copies of the
11755 # variables and quote the copies for generation of the libtool script.
11756 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11760 deplibs_check_method reload_flag reload_cmds need_locks \
11761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11762 lt_cv_sys_global_symbol_to_c_name_address \
11763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11764 old_postinstall_cmds old_postuninstall_cmds \
11768 lt_prog_compiler_wl \
11769 lt_prog_compiler_pic \
11770 lt_prog_compiler_static \
11771 lt_prog_compiler_no_builtin_flag \
11772 export_dynamic_flag_spec \
11773 thread_safe_flag_spec \
11774 whole_archive_flag_spec \
11775 enable_shared_with_static_runtimes \
11777 old_archive_from_new_cmds \
11782 compiler_lib_search_path \
11784 archive_expsym_cmds \
11786 postuninstall_cmds \
11787 old_archive_from_expsyms_cmds \
11788 allow_undefined_flag \
11789 no_undefined_flag \
11790 export_symbols_cmds \
11791 hardcode_libdir_flag_spec \
11792 hardcode_libdir_flag_spec_ld \
11793 hardcode_libdir_separator \
11794 hardcode_automatic \
11796 module_expsym_cmds \
11797 lt_cv_prog_compiler_c_o \
11799 include_expsyms; do
11802 old_archive_cmds | \
11803 old_archive_from_new_cmds | \
11805 archive_expsym_cmds | \
11807 module_expsym_cmds | \
11808 old_archive_from_expsyms_cmds | \
11809 export_symbols_cmds | \
11810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11811 postinstall_cmds | postuninstall_cmds | \
11812 old_postinstall_cmds | old_postuninstall_cmds | \
11813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11814 # Double-quote double-evaled strings.
11815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11824 *'\$0 --fallback-echo"')
11825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11829 cfgfile="${ofile}T"
11830 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11832 { echo "$as_me:$LINENO: creating $ofile" >&5
11833 echo "$as_me: creating $ofile" >&6;}
11835 cat <<__EOF__ >> "$cfgfile"
11838 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11839 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11840 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11842 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11843 # Free Software Foundation, Inc.
11845 # This file is part of GNU Libtool:
11846 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11848 # This program is free software; you can redistribute it and/or modify
11849 # it under the terms of the GNU General Public License as published by
11850 # the Free Software Foundation; either version 2 of the License, or
11851 # (at your option) any later version.
11853 # This program is distributed in the hope that it will be useful, but
11854 # WITHOUT ANY WARRANTY; without even the implied warranty of
11855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11856 # General Public License for more details.
11858 # You should have received a copy of the GNU General Public License
11859 # along with this program; if not, write to the Free Software
11860 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11862 # As a special exception to the GNU General Public License, if you
11863 # distribute this file as part of a program that contains a
11864 # configuration script generated by Autoconf, you may include it under
11865 # the same distribution terms that you use for the rest of that program.
11867 # A sed program that does not truncate output.
11870 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11871 Xsed="$SED -e 1s/^X//"
11873 # The HP-UX ksh and POSIX shell print the target directory to stdout
11874 # if CDPATH is set.
11875 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11877 # The names of the tagged configurations supported by this script.
11880 # ### BEGIN LIBTOOL CONFIG
11882 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11884 # Shell to use when invoking shell scripts.
11887 # Whether or not to build shared libraries.
11888 build_libtool_libs=$enable_shared
11890 # Whether or not to build static libraries.
11891 build_old_libs=$enable_static
11893 # Whether or not to add -lc for building shared libraries.
11894 build_libtool_need_lc=$archive_cmds_need_lc
11896 # Whether or not to disallow shared libs when runtime libs are static
11897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11899 # Whether or not to optimize for fast installation.
11900 fast_install=$enable_fast_install
11903 host_alias=$host_alias
11907 # The build system.
11908 build_alias=$build_alias
11912 # An echo program that does not interpret backslashes.
11917 AR_FLAGS=$lt_AR_FLAGS
11922 # LTCC compiler flags.
11923 LTCFLAGS=$lt_LTCFLAGS
11925 # A language-specific compiler.
11928 # Is the compiler the GNU C compiler?
11934 # The linker used to build libraries.
11937 # Whether we need hard or soft links.
11940 # A BSD-compatible nm program.
11943 # A symbol stripping program
11946 # Used to examine libraries when file_magic_cmd begins "file"
11947 MAGIC_CMD=$MAGIC_CMD
11949 # Used on cygwin: DLL creation program.
11952 # Used on cygwin: object dumper.
11955 # Used on cygwin: assembler.
11958 # The name of the directory that contains temporary libtool files.
11961 # How to create reloadable object files.
11962 reload_flag=$lt_reload_flag
11963 reload_cmds=$lt_reload_cmds
11965 # How to pass a linker flag through the compiler.
11966 wl=$lt_lt_prog_compiler_wl
11968 # Object file suffix (normally "o").
11969 objext="$ac_objext"
11971 # Old archive suffix (normally "a").
11974 # Shared library suffix (normally ".so").
11975 shrext_cmds='$shrext_cmds'
11977 # Executable file suffix (normally "").
11980 # Additional compiler flags for building library objects.
11981 pic_flag=$lt_lt_prog_compiler_pic
11984 # What is the maximum length of a command?
11985 max_cmd_len=$lt_cv_sys_max_cmd_len
11987 # Does compiler simultaneously support -c and -o options?
11988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11990 # Must we lock files when doing compilation?
11991 need_locks=$lt_need_locks
11993 # Do we need the lib prefix for modules?
11994 need_lib_prefix=$need_lib_prefix
11996 # Do we need a version for libraries?
11997 need_version=$need_version
11999 # Whether dlopen is supported.
12000 dlopen_support=$enable_dlopen
12002 # Whether dlopen of programs is supported.
12003 dlopen_self=$enable_dlopen_self
12005 # Whether dlopen of statically linked programs is supported.
12006 dlopen_self_static=$enable_dlopen_self_static
12008 # Compiler flag to prevent dynamic linking.
12009 link_static_flag=$lt_lt_prog_compiler_static
12011 # Compiler flag to turn off builtin functions.
12012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12014 # Compiler flag to allow reflexive dlopens.
12015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12017 # Compiler flag to generate shared objects directly from archives.
12018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12020 # Compiler flag to generate thread-safe objects.
12021 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12023 # Library versioning type.
12024 version_type=$version_type
12026 # Format of library name prefix.
12027 libname_spec=$lt_libname_spec
12029 # List of archive names. First name is the real one, the rest are links.
12030 # The last name is the one that the linker finds with -lNAME.
12031 library_names_spec=$lt_library_names_spec
12033 # The coded name of the library, if different from the real name.
12034 soname_spec=$lt_soname_spec
12036 # Commands used to build and install an old-style archive.
12038 old_archive_cmds=$lt_old_archive_cmds
12039 old_postinstall_cmds=$lt_old_postinstall_cmds
12040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12042 # Create an old-style archive from a shared archive.
12043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12045 # Create a temporary old-style archive to link instead of a shared archive.
12046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12048 # Commands used to build and install a shared archive.
12049 archive_cmds=$lt_archive_cmds
12050 archive_expsym_cmds=$lt_archive_expsym_cmds
12051 postinstall_cmds=$lt_postinstall_cmds
12052 postuninstall_cmds=$lt_postuninstall_cmds
12054 # Commands used to build a loadable module (assumed same as above if empty)
12055 module_cmds=$lt_module_cmds
12056 module_expsym_cmds=$lt_module_expsym_cmds
12058 # Commands to strip libraries.
12059 old_striplib=$lt_old_striplib
12060 striplib=$lt_striplib
12062 # Dependencies to place before the objects being linked to create a
12064 predep_objects=$lt_predep_objects
12066 # Dependencies to place after the objects being linked to create a
12068 postdep_objects=$lt_postdep_objects
12070 # Dependencies to place before the objects being linked to create a
12072 predeps=$lt_predeps
12074 # Dependencies to place after the objects being linked to create a
12076 postdeps=$lt_postdeps
12078 # The library search path used internally by the compiler when linking
12079 # a shared library.
12080 compiler_lib_search_path=$lt_compiler_lib_search_path
12082 # Method to check whether dependent libraries are shared objects.
12083 deplibs_check_method=$lt_deplibs_check_method
12085 # Command to use when deplibs_check_method == file_magic.
12086 file_magic_cmd=$lt_file_magic_cmd
12088 # Flag that allows shared libraries with undefined symbols to be built.
12089 allow_undefined_flag=$lt_allow_undefined_flag
12091 # Flag that forces no undefined symbols.
12092 no_undefined_flag=$lt_no_undefined_flag
12094 # Commands used to finish a libtool library installation in a directory.
12095 finish_cmds=$lt_finish_cmds
12097 # Same as above, but a single script fragment to be evaled but not shown.
12098 finish_eval=$lt_finish_eval
12100 # Take the output of nm and produce a listing of raw symbols and C names.
12101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12103 # Transform the output of nm in a proper C declaration
12104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12106 # Transform the output of nm in a C name address pair
12107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12109 # This is the shared library runtime path variable.
12110 runpath_var=$runpath_var
12112 # This is the shared library path variable.
12113 shlibpath_var=$shlibpath_var
12115 # Is shlibpath searched before the hard-coded library search path?
12116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12118 # How to hardcode a shared library path into an executable.
12119 hardcode_action=$hardcode_action
12121 # Whether we should hardcode library paths into libraries.
12122 hardcode_into_libs=$hardcode_into_libs
12124 # Flag to hardcode \$libdir into a binary during linking.
12125 # This must work even if \$libdir does not exist.
12126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12128 # If ld is used when linking, flag to hardcode \$libdir into
12129 # a binary during linking. This must work even if \$libdir does
12131 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12133 # Whether we need a single -rpath flag with a separated argument.
12134 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12136 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12137 # resulting binary.
12138 hardcode_direct=$hardcode_direct
12140 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12141 # resulting binary.
12142 hardcode_minus_L=$hardcode_minus_L
12144 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12145 # the resulting binary.
12146 hardcode_shlibpath_var=$hardcode_shlibpath_var
12148 # Set to yes if building a shared library automatically hardcodes DIR into the library
12149 # and all subsequent libraries and executables linked against it.
12150 hardcode_automatic=$hardcode_automatic
12152 # Variables whose values should be saved in libtool wrapper scripts and
12153 # restored at relink time.
12154 variables_saved_for_relink="$variables_saved_for_relink"
12156 # Whether libtool must link a program against all its dependency libraries.
12157 link_all_deplibs=$link_all_deplibs
12159 # Compile-time system search path for libraries
12160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12162 # Run-time system search path for libraries
12163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12165 # Fix the shell variable \$srcfile for the compiler.
12166 fix_srcfile_path="$fix_srcfile_path"
12168 # Set to yes if exported symbols are required.
12169 always_export_symbols=$always_export_symbols
12171 # The commands to list exported symbols.
12172 export_symbols_cmds=$lt_export_symbols_cmds
12174 # The commands to extract the exported symbol list from a shared archive.
12175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12177 # Symbols that should not be listed in the preloaded symbols.
12178 exclude_expsyms=$lt_exclude_expsyms
12180 # Symbols that must always be exported.
12181 include_expsyms=$lt_include_expsyms
12183 # ### END LIBTOOL CONFIG
12190 cat <<\EOF >> "$cfgfile"
12192 # AIX sometimes has problems with the GCC collect2 program. For some
12193 # reason, if we set the COLLECT_NAMES environment variable, the problems
12194 # vanish in a puff of smoke.
12195 if test "X${COLLECT_NAMES+set}" != Xset; then
12197 export COLLECT_NAMES
12203 # We use sed instead of cat because bash on DJGPP gets confused if
12204 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12205 # text mode, it properly converts lines to CR/LF. This bash problem
12206 # is reportedly fixed, but why not run on old versions too?
12207 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12209 mv -f "$cfgfile" "$ofile" || \
12210 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12214 # If there is no Makefile yet, we rely on a make rule to execute
12215 # `config.status --recheck' to rerun these tests and create the
12216 # libtool script then.
12217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12218 if test -f "$ltmain_in"; then
12219 test -f Makefile && make "$ltmain"
12225 ac_cpp='$CPP $CPPFLAGS'
12226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12233 # Check whether --with-tags was given.
12234 if test "${with_tags+set}" = set; then
12235 withval=$with_tags; tagnames="$withval"
12239 if test -f "$ltmain" && test -n "$tagnames"; then
12240 if test ! -f "${ofile}"; then
12241 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12242 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12245 if test -z "$LTCC"; then
12246 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12247 if test -z "$LTCC"; then
12248 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12249 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12252 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12255 if test -z "$LTCFLAGS"; then
12256 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12259 # Extract list of available tagged configurations in $ofile.
12260 # Note that this assumes the entire list is on one line.
12261 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12264 for tagname in $tagnames; do
12266 # Check whether tagname contains only valid characters
12267 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12269 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12270 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12271 { (exit 1); exit 1; }; }
12275 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12277 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12278 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12279 { (exit 1); exit 1; }; }
12282 # Update the list of available tags.
12283 if test -n "$tagname"; then
12284 echo appending configuration tag \"$tagname\" to $ofile
12288 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12289 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12290 (test "X$CXX" != "Xg++"))) ; then
12292 ac_cpp='$CXXCPP $CPPFLAGS'
12293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12300 archive_cmds_need_lc_CXX=no
12301 allow_undefined_flag_CXX=
12302 always_export_symbols_CXX=no
12303 archive_expsym_cmds_CXX=
12304 export_dynamic_flag_spec_CXX=
12305 hardcode_direct_CXX=no
12306 hardcode_libdir_flag_spec_CXX=
12307 hardcode_libdir_flag_spec_ld_CXX=
12308 hardcode_libdir_separator_CXX=
12309 hardcode_minus_L_CXX=no
12310 hardcode_shlibpath_var_CXX=unsupported
12311 hardcode_automatic_CXX=no
12313 module_expsym_cmds_CXX=
12314 link_all_deplibs_CXX=unknown
12315 old_archive_cmds_CXX=$old_archive_cmds
12316 no_undefined_flag_CXX=
12317 whole_archive_flag_spec_CXX=
12318 enable_shared_with_static_runtimes_CXX=no
12320 # Dependencies to place before and after the object being linked:
12321 predep_objects_CXX=
12322 postdep_objects_CXX=
12325 compiler_lib_search_path_CXX=
12327 # Source file extension for C++ test sources.
12330 # Object file extension for compiled C++ test sources.
12334 # Code to be used in simple compile tests
12335 lt_simple_compile_test_code="int some_variable = 0;\n"
12337 # Code to be used in simple link tests
12338 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12342 # If no C compiler was specified, use CC.
12345 # If no C compiler flags were specified, use CFLAGS.
12346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12348 # Allow CC to be a program name with arguments.
12352 # save warnings/boilerplate of simple test code
12353 ac_outfile=conftest.$ac_objext
12354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12356 _lt_compiler_boilerplate=`cat conftest.err`
12359 ac_outfile=conftest.$ac_objext
12360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12362 _lt_linker_boilerplate=`cat conftest.err`
12366 # Allow CC to be a program name with arguments.
12371 lt_save_with_gnu_ld=$with_gnu_ld
12372 lt_save_path_LD=$lt_cv_path_LD
12373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12376 $as_unset lt_cv_prog_gnu_ld
12378 if test -n "${lt_cv_path_LDCXX+set}"; then
12379 lt_cv_path_LD=$lt_cv_path_LDCXX
12381 $as_unset lt_cv_path_LD
12383 test -z "${LDCXX+set}" || LD=$LDCXX
12387 for cc_temp in $compiler""; do
12389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12398 # We don't want -fno-exception wen compiling C++ code, so set the
12399 # no_builtin_flag separately
12400 if test "$GXX" = yes; then
12401 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12403 lt_prog_compiler_no_builtin_flag_CXX=
12406 if test "$GXX" = yes; then
12407 # Set up default GNU C++ configuration
12410 # Check whether --with-gnu-ld was given.
12411 if test "${with_gnu_ld+set}" = set; then
12412 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12418 if test "$GCC" = yes; then
12419 # Check if gcc -print-prog-name=ld gives a path.
12420 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12421 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12424 # gcc leaves a trailing carriage return which upsets mingw
12425 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12427 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12430 # Accept absolute paths.
12432 re_direlt='/[^/][^/]*/\.\./'
12433 # Canonicalize the pathname of ld
12434 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12435 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12436 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12438 test -z "$LD" && LD="$ac_prog"
12441 # If it fails, then pretend we aren't using GCC.
12445 # If it is relative, then search for the first ld in PATH.
12446 with_gnu_ld=unknown
12449 elif test "$with_gnu_ld" = yes; then
12450 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12451 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12453 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12454 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12456 if test "${lt_cv_path_LD+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 if test -z "$LD"; then
12460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12461 for ac_dir in $PATH; do
12463 test -z "$ac_dir" && ac_dir=.
12464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12465 lt_cv_path_LD="$ac_dir/$ac_prog"
12466 # Check to see if the program is GNU ld. I'd rather use --version,
12467 # but apparently some variants of GNU ld only accept -v.
12468 # Break only if it was the GNU/non-GNU ld that we prefer.
12469 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12470 *GNU* | *'with BFD'*)
12471 test "$with_gnu_ld" != no && break
12474 test "$with_gnu_ld" != yes && break
12481 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12485 LD="$lt_cv_path_LD"
12486 if test -n "$LD"; then
12487 { echo "$as_me:$LINENO: result: $LD" >&5
12488 echo "${ECHO_T}$LD" >&6; }
12490 { echo "$as_me:$LINENO: result: no" >&5
12491 echo "${ECHO_T}no" >&6; }
12493 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12494 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12495 { (exit 1); exit 1; }; }
12496 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12497 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12498 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12502 case `$LD -v 2>&1 </dev/null` in
12503 *GNU* | *'with BFD'*)
12504 lt_cv_prog_gnu_ld=yes
12507 lt_cv_prog_gnu_ld=no
12511 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12512 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12513 with_gnu_ld=$lt_cv_prog_gnu_ld
12517 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12518 # archiving commands below assume that GNU ld is being used.
12519 if test "$with_gnu_ld" = yes; then
12520 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521 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'
12523 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12526 # If archive_cmds runs LD, not CC, wlarc should be empty
12527 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12528 # investigate it a little bit more. (MM)
12531 # ancient GNU ld didn't support --whole-archive et. al.
12532 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12533 grep 'no-whole-archive' > /dev/null; then
12534 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12536 whole_archive_flag_spec_CXX=
12542 # A generic and very simple default shared library creation
12543 # command for GNU C++ for the case where it uses the native
12544 # linker, instead of GNU ld. If possible, this setting should
12545 # overridden to take advantage of the native linker features on
12546 # the platform it is being used on.
12547 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12561 # PORTME: fill in a description of your system's C++ link characteristics
12562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12567 # FIXME: insert proper C++ library support
12571 if test "$host_cpu" = ia64; then
12572 # On IA64, the linker does run time linking by default, so we don't
12573 # have to do anything special.
12574 aix_use_runtimelinking=no
12575 exp_sym_flag='-Bexport'
12578 aix_use_runtimelinking=no
12580 # Test if we are trying to use run time linking or normal
12581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12582 # need to do runtime linking.
12583 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12584 for ld_flag in $LDFLAGS; do
12587 aix_use_runtimelinking=yes
12595 exp_sym_flag='-bexport'
12596 no_entry_flag='-bnoentry'
12599 # When large executables or shared objects are built, AIX ld can
12600 # have problems creating the table of contents. If linking a library
12601 # or program results in "error TOC overflow" add -mminimal-toc to
12602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12605 archive_cmds_CXX=''
12606 hardcode_direct_CXX=yes
12607 hardcode_libdir_separator_CXX=':'
12608 link_all_deplibs_CXX=yes
12610 if test "$GXX" = yes; then
12611 case $host_os in aix4.[012]|aix4.[012].*)
12612 # We only want to do this on AIX 4.2 and lower, the check
12613 # below for broken collect2 doesn't work under 4.3+
12614 collect2name=`${CC} -print-prog-name=collect2`
12615 if test -f "$collect2name" && \
12616 strings "$collect2name" | grep resolve_lib_name >/dev/null
12618 # We have reworked collect2
12619 hardcode_direct_CXX=yes
12621 # We have old collect2
12622 hardcode_direct_CXX=unsupported
12623 # It fails to find uninstalled libraries when the uninstalled
12624 # path is not listed in the libpath. Setting hardcode_minus_L
12625 # to unsupported forces relinking
12626 hardcode_minus_L_CXX=yes
12627 hardcode_libdir_flag_spec_CXX='-L$libdir'
12628 hardcode_libdir_separator_CXX=
12632 shared_flag='-shared'
12633 if test "$aix_use_runtimelinking" = yes; then
12634 shared_flag="$shared_flag "'${wl}-G'
12638 if test "$host_cpu" = ia64; then
12639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12640 # chokes on -Wl,-G. The following line is correct:
12643 if test "$aix_use_runtimelinking" = yes; then
12644 shared_flag='${wl}-G'
12646 shared_flag='${wl}-bM:SRE'
12651 # It seems that -bexpall does not export symbols beginning with
12652 # underscore (_), so it is better to generate a list of symbols to export.
12653 always_export_symbols_CXX=yes
12654 if test "$aix_use_runtimelinking" = yes; then
12655 # Warning - without using the other runtime loading flags (-brtl),
12656 # -berok will link without error, but may produce a broken library.
12657 allow_undefined_flag_CXX='-berok'
12658 # Determine the default libpath from the value encoded in an empty executable.
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_link") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12711 # Check for a 64-bit object if we didn't find anything.
12712 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; }
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12727 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"
12729 if test "$host_cpu" = ia64; then
12730 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12731 allow_undefined_flag_CXX="-z nodefs"
12732 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"
12734 # Determine the default libpath from the value encoded in an empty executable.
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (ac_try="$ac_link"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest$ac_exeext'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12787 # Check for a 64-bit object if we didn't find anything.
12788 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; }
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12797 rm -f conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12801 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12802 # Warning - without using the other run time loading flags,
12803 # -berok will link without error, but may produce a broken library.
12804 no_undefined_flag_CXX=' ${wl}-bernotok'
12805 allow_undefined_flag_CXX=' ${wl}-berok'
12806 # Exported symbols can be pulled into shared objects from archives
12807 whole_archive_flag_spec_CXX='$convenience'
12808 archive_cmds_need_lc_CXX=yes
12809 # This is similar to how AIX traditionally builds its shared libraries.
12810 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'
12816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12817 allow_undefined_flag_CXX=unsupported
12818 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12819 # support --undefined. This deserves some investigation. FIXME
12820 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827 case $cc_basename in
12829 # FIXME: insert proper C++ library support
12835 cygwin* | mingw* | pw32*)
12836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12837 # as there is no search path for DLLs.
12838 hardcode_libdir_flag_spec_CXX='-L$libdir'
12839 allow_undefined_flag_CXX=unsupported
12840 always_export_symbols_CXX=no
12841 enable_shared_with_static_runtimes_CXX=yes
12843 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12844 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'
12845 # If the export-symbols file already is a .def file (1st line
12846 # is EXPORTS), use it as is; otherwise, prepend...
12847 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12848 cp $export_symbols $output_objdir/$soname.def;
12850 echo EXPORTS > $output_objdir/$soname.def;
12851 cat $export_symbols >> $output_objdir/$soname.def;
12853 $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'
12858 darwin* | rhapsody*)
12860 rhapsody* | darwin1.[012])
12861 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12865 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12867 case ${MACOSX_DEPLOYMENT_TARGET} in
12869 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12872 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12878 archive_cmds_need_lc_CXX=no
12879 hardcode_direct_CXX=no
12880 hardcode_automatic_CXX=yes
12881 hardcode_shlibpath_var_CXX=unsupported
12882 whole_archive_flag_spec_CXX=''
12883 link_all_deplibs_CXX=yes
12885 if test "$GXX" = yes ; then
12886 lt_int_apple_cc_single_mod=no
12887 output_verbose_link_cmd='echo'
12888 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12889 lt_int_apple_cc_single_mod=yes
12891 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12892 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12894 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'
12896 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12897 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12898 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12899 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}'
12901 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}'
12903 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}'
12905 case $cc_basename in
12907 output_verbose_link_cmd='echo'
12908 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'
12909 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12911 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}'
12912 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}'
12922 case $cc_basename in
12924 # FIXME: insert proper C++ library support
12928 # Green Hills C++ Compiler
12929 # FIXME: insert proper C++ library support
12933 # FIXME: insert proper C++ library support
12939 # C++ shared libraries reported to be fairly broken before switch to ELF
12943 archive_cmds_need_lc_CXX=no
12945 freebsd* | dragonfly*)
12946 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12953 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12954 hardcode_libdir_separator_CXX=:
12955 export_dynamic_flag_spec_CXX='${wl}-E'
12956 hardcode_direct_CXX=yes
12957 hardcode_minus_L_CXX=yes # Not in the search PATH,
12958 # but as the default
12959 # location of the library.
12961 case $cc_basename in
12963 # FIXME: insert proper C++ library support
12967 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'
12968 # Commands to make compiler produce verbose output that lists
12969 # what "hidden" libraries, object files and flags are used when
12970 # linking a shared library.
12972 # There doesn't appear to be a way to prevent this compiler from
12973 # explicitly linking system object files so we need to strip them
12974 # from the output so that they don't get included in the library
12976 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'
12979 if test "$GXX" = yes; then
12980 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'
12982 # FIXME: insert proper C++ library support
12989 if test $with_gnu_ld = no; then
12990 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12991 hardcode_libdir_separator_CXX=:
12995 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12998 export_dynamic_flag_spec_CXX='${wl}-E'
13004 hardcode_direct_CXX=no
13005 hardcode_shlibpath_var_CXX=no
13008 hardcode_direct_CXX=yes
13009 hardcode_minus_L_CXX=yes # Not in the search PATH,
13010 # but as the default
13011 # location of the library.
13015 case $cc_basename in
13017 # FIXME: insert proper C++ library support
13023 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13036 # There doesn't appear to be a way to prevent this compiler from
13037 # explicitly linking system object files so we need to strip them
13038 # from the output so that they don't get included in the library
13040 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'
13043 if test "$GXX" = yes; then
13044 if test $with_gnu_ld = no; then
13047 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 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'
13058 # FIXME: insert proper C++ library support
13065 hardcode_direct_CXX=no
13066 hardcode_shlibpath_var_CXX=no
13067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13068 export_dynamic_flag_spec_CXX='${wl}-E'
13069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13070 # Instead, shared libraries are loaded at an image base (0x10000000 by
13071 # default) and relocated if they conflict, which is a slow very memory
13072 # consuming and fragmenting process. To avoid this, we pick a random,
13073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13075 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'
13076 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'
13079 case $cc_basename in
13082 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'
13084 # Archives containing C++ object files must be created using
13085 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13086 # necessary to make sure instantiated templates are included
13088 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13091 if test "$GXX" = yes; then
13092 if test "$with_gnu_ld" = no; then
13093 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'
13095 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'
13098 link_all_deplibs_CXX=yes
13101 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13102 hardcode_libdir_separator_CXX=:
13104 linux* | k*bsd*-gnu)
13105 case $cc_basename in
13107 # Kuck and Associates, Inc. (KAI) C++ Compiler
13109 # KCC will only create a shared library if the output file
13110 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13111 # to its proper name (with version) after linking.
13112 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'
13113 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'
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13118 # There doesn't appear to be a way to prevent this compiler from
13119 # explicitly linking system object files so we need to strip them
13120 # from the output so that they don't get included in the library
13122 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'
13124 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13127 # Archives containing C++ object files must be created using
13128 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13129 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13134 # version 8.0 and above of icpc choke on multiply defined symbols
13135 # if we add $predep_objects and $postdep_objects, however 7.1 and
13136 # earlier do not add the objects themselves.
13137 case `$CC -V 2>&1` in
13139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 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'
13142 *) # Version 8.0 or newer
13145 ia64*) tmp_idyn=' -i_dynamic';;
13147 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13148 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'
13151 archive_cmds_need_lc_CXX=no
13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13154 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13157 # Portland Group C++ compiler
13158 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13159 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'
13161 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13163 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'
13167 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13168 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'
13170 runpath_var=LD_RUN_PATH
13171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13172 hardcode_libdir_separator_CXX=:
13174 # Commands to make compiler produce verbose output that lists
13175 # what "hidden" libraries, object files and flags are used when
13176 # linking a shared library.
13178 # There doesn't appear to be a way to prevent this compiler from
13179 # explicitly linking system object files so we need to strip them
13180 # from the output so that they don't get included in the library
13182 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'
13187 # FIXME: insert proper C++ library support
13191 # FIXME: insert proper C++ library support
13195 case $cc_basename in
13197 # FIXME: insert proper C++ library support
13201 # FIXME: insert proper C++ library support
13206 netbsd* | netbsdelf*-gnu)
13207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13208 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13210 hardcode_libdir_flag_spec_CXX='-R$libdir'
13211 hardcode_direct_CXX=yes
13212 hardcode_shlibpath_var_CXX=no
13214 # Workaround some broken pre-1.5 toolchains
13215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13218 # C++ shared libraries are fairly broken
13222 hardcode_direct_CXX=yes
13223 hardcode_shlibpath_var_CXX=no
13224 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13227 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13228 export_dynamic_flag_spec_CXX='${wl}-E'
13229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13231 output_verbose_link_cmd='echo'
13234 case $cc_basename in
13236 # Kuck and Associates, Inc. (KAI) C++ Compiler
13238 # KCC will only create a shared library if the output file
13239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13240 # to its proper name (with version) after linking.
13241 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'
13243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13244 hardcode_libdir_separator_CXX=:
13246 # Archives containing C++ object files must be created using
13247 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13248 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13252 # Rational C++ 2.4.1
13253 # FIXME: insert proper C++ library support
13257 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13258 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'
13260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13261 hardcode_libdir_separator_CXX=:
13263 # Commands to make compiler produce verbose output that lists
13264 # what "hidden" libraries, object files and flags are used when
13265 # linking a shared library.
13267 # There doesn't appear to be a way to prevent this compiler from
13268 # explicitly linking system object files so we need to strip them
13269 # from the output so that they don't get included in the library
13271 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'
13274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13276 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'
13278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279 hardcode_libdir_separator_CXX=:
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13287 # FIXME: insert proper C++ library support
13294 case $cc_basename in
13296 # Kuck and Associates, Inc. (KAI) C++ Compiler
13298 # KCC will only create a shared library if the output file
13299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13300 # to its proper name (with version) after linking.
13301 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'
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304 hardcode_libdir_separator_CXX=:
13306 # Archives containing C++ object files must be created using
13307 # the KAI C++ compiler.
13308 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13311 # Rational C++ 2.4.1
13312 # FIXME: insert proper C++ library support
13316 allow_undefined_flag_CXX=' -expect_unresolved \*'
13317 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'
13318 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13319 echo "-hidden">> $lib.exp~
13320 $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~
13323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13324 hardcode_libdir_separator_CXX=:
13326 # Commands to make compiler produce verbose output that lists
13327 # what "hidden" libraries, object files and flags are used when
13328 # linking a shared library.
13330 # There doesn't appear to be a way to prevent this compiler from
13331 # explicitly linking system object files so we need to strip them
13332 # from the output so that they don't get included in the library
13334 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'
13337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13338 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13339 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'
13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_CXX=:
13344 # Commands to make compiler produce verbose output that lists
13345 # what "hidden" libraries, object files and flags are used when
13346 # linking a shared library.
13347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13350 # FIXME: insert proper C++ library support
13357 # FIXME: insert proper C++ library support
13361 case $cc_basename in
13364 # FIXME: insert proper C++ library support
13369 # FIXME: insert proper C++ library support
13373 # FIXME: insert proper C++ library support
13379 case $cc_basename in
13381 # Sun C++ 4.2, 5.x and Centerline C++
13382 archive_cmds_need_lc_CXX=yes
13383 no_undefined_flag_CXX=' -zdefs'
13384 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13386 $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'
13388 hardcode_libdir_flag_spec_CXX='-R$libdir'
13389 hardcode_shlibpath_var_CXX=no
13391 solaris2.[0-5] | solaris2.[0-5].*) ;;
13393 # The C++ compiler is used as linker so we must use $wl
13394 # flag to pass the commands to the underlying system
13395 # linker. We must also pass each convience library through
13396 # to the system linker between allextract/defaultextract.
13397 # The C++ compiler will combine linker options so we
13398 # cannot just pass the convience library names through
13400 # Supported since Solaris 2.6 (maybe 2.5.1?)
13401 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'
13404 link_all_deplibs_CXX=yes
13406 output_verbose_link_cmd='echo'
13408 # Archives containing C++ object files must be created using
13409 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13410 # necessary to make sure instantiated templates are included
13412 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13415 # Green Hills C++ Compiler
13416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13418 # The C++ compiler must be used to create the archive.
13419 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13422 # GNU C++ compiler with Solaris linker
13423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13424 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13425 if $CC --version | grep -v '^2\.7' > /dev/null; then
13426 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13428 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13430 # Commands to make compiler produce verbose output that lists
13431 # what "hidden" libraries, object files and flags are used when
13432 # linking a shared library.
13433 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13435 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13437 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13438 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13441 # Commands to make compiler produce verbose output that lists
13442 # what "hidden" libraries, object files and flags are used when
13443 # linking a shared library.
13444 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13447 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13453 no_undefined_flag_CXX='${wl}-z,text'
13454 archive_cmds_need_lc_CXX=no
13455 hardcode_shlibpath_var_CXX=no
13456 runpath_var='LD_RUN_PATH'
13458 case $cc_basename in
13460 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 sysv5* | sco3.2v5* | sco5v6*)
13470 # Note: We can NOT use -z defs as we might desire, because we do not
13471 # link with -lc, and that would cause any symbols used from libc to
13472 # always be unresolved, which means just about no library would
13473 # ever link correctly. If we're not using GNU ld we use -z text
13474 # though, which does catch some bad symbols but isn't as heavy-handed
13476 # For security reasons, it is highly recommended that you always
13477 # use absolute paths for naming shared libraries, and exclude the
13478 # DT_RUNPATH tag from executables and libraries. But doing so
13479 # requires that you compile everything twice, which is a pain.
13480 # So that behaviour is only enabled if SCOABSPATH is set to a
13481 # non-empty value in the environment. Most likely only useful for
13482 # creating official distributions of packages.
13483 # This is a hack until libtool officially supports absolute path
13484 # names for shared libraries.
13485 no_undefined_flag_CXX='${wl}-z,text'
13486 allow_undefined_flag_CXX='${wl}-z,nodefs'
13487 archive_cmds_need_lc_CXX=no
13488 hardcode_shlibpath_var_CXX=no
13489 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13490 hardcode_libdir_separator_CXX=':'
13491 link_all_deplibs_CXX=yes
13492 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13493 runpath_var='LD_RUN_PATH'
13495 case $cc_basename in
13497 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 case $cc_basename in
13509 # NonStop-UX NCC 3.20
13510 # FIXME: insert proper C++ library support
13514 # FIXME: insert proper C++ library support
13520 # FIXME: insert proper C++ library support
13524 # FIXME: insert proper C++ library support
13528 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13529 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13530 test "$ld_shlibs_CXX" = no && can_build_shared=no
13536 cat > conftest.$ac_ext <<EOF
13540 Foo (void) { a = 0; }
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; then
13551 # Parse the compiler output and extract the necessary
13552 # objects, libraries and library flags.
13554 # Sentinel used to keep track of whether or not we are before
13555 # the conftest object file.
13556 pre_test_object_deps_done=no
13558 # The `*' in the case matches for architectures that use `case' in
13559 # $output_verbose_cmd can trigger glob expansion during the loop
13560 # eval without this substitution.
13561 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13563 for p in `eval $output_verbose_link_cmd`; do
13567 # Some compilers place space between "-{L,R}" and the path.
13568 # Remove the space.
13569 if test $p = "-L" \
13570 || test $p = "-R"; then
13577 if test "$pre_test_object_deps_done" = no; then
13580 # Internal compiler library paths should come after those
13581 # provided the user. The postdeps already come after the
13582 # user supplied libs so there is no need to process them.
13583 if test -z "$compiler_lib_search_path_CXX"; then
13584 compiler_lib_search_path_CXX="${prev}${p}"
13586 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13589 # The "-l" case would never come before the object being
13590 # linked, so don't bother handling this case.
13593 if test -z "$postdeps_CXX"; then
13594 postdeps_CXX="${prev}${p}"
13596 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13602 # This assumes that the test object file only shows up
13603 # once in the compiler output.
13604 if test "$p" = "conftest.$objext"; then
13605 pre_test_object_deps_done=yes
13609 if test "$pre_test_object_deps_done" = no; then
13610 if test -z "$predep_objects_CXX"; then
13611 predep_objects_CXX="$p"
13613 predep_objects_CXX="$predep_objects_CXX $p"
13616 if test -z "$postdep_objects_CXX"; then
13617 postdep_objects_CXX="$p"
13619 postdep_objects_CXX="$postdep_objects_CXX $p"
13624 *) ;; # Ignore the rest.
13632 echo "libtool.m4: error: problem compiling CXX test program"
13635 $rm -f confest.$objext
13637 # PORTME: override above test on systems where it is broken
13640 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13641 # hack all around it, let's just trust "g++" to DTRT.
13642 predep_objects_CXX=
13643 postdep_objects_CXX=
13648 case $cc_basename in
13650 # Adding this requires a known-good setup of shared libraries for
13651 # Sun compiler versions before 5.6, else PIC objects from an old
13652 # archive will be linked into the output, leading to subtle bugs.
13653 postdeps_CXX='-lCstd -lCrun'
13660 case " $postdeps_CXX " in
13661 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13664 lt_prog_compiler_wl_CXX=
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_static_CXX=
13668 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13669 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13671 # C++ specific cases for pic, static, wl, etc.
13672 if test "$GXX" = yes; then
13673 lt_prog_compiler_wl_CXX='-Wl,'
13674 lt_prog_compiler_static_CXX='-static'
13678 # All AIX code is PIC.
13679 if test "$host_cpu" = ia64; then
13680 # AIX 5 now supports IA64 processor
13681 lt_prog_compiler_static_CXX='-Bstatic'
13685 # FIXME: we need at least 68020 code to build shared libraries, but
13686 # adding the `-m68020' flag to GCC prevents building anything better,
13688 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13690 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13691 # PIC is the default for these OSes.
13693 mingw* | os2* | pw32*)
13694 # This hack is so that the source file can tell whether it is being
13695 # built for inclusion in a dll (and should export symbols for example).
13696 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13698 darwin* | rhapsody*)
13699 # PIC is the default on this platform
13700 # Common symbols not allowed in MH_DYLIB files
13701 lt_prog_compiler_pic_CXX='-fno-common'
13704 # DJGPP does not support shared libraries at all
13705 lt_prog_compiler_pic_CXX=
13708 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13709 # Instead, we relocate shared libraries at runtime.
13712 if test -d /usr/nec; then
13713 lt_prog_compiler_pic_CXX=-Kconform_pic
13717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13718 # not for PA HP-UX.
13723 lt_prog_compiler_pic_CXX='-fPIC'
13728 lt_prog_compiler_pic_CXX='-fPIC'
13734 # All AIX code is PIC.
13735 if test "$host_cpu" = ia64; then
13736 # AIX 5 now supports IA64 processor
13737 lt_prog_compiler_static_CXX='-Bstatic'
13739 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13743 case $cc_basename in
13745 # Green Hills C++ Compiler
13746 # _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"
13751 # PIC is the default on this platform
13752 # Common symbols not allowed in MH_DYLIB files
13753 case $cc_basename in
13755 lt_prog_compiler_pic_CXX='-qnocommon'
13756 lt_prog_compiler_wl_CXX='-Wl,'
13761 case $cc_basename in
13763 lt_prog_compiler_pic_CXX='-KPIC'
13766 # Green Hills C++ Compiler
13767 lt_prog_compiler_pic_CXX='-pic'
13773 freebsd* | dragonfly*)
13774 # FreeBSD uses GNU C++
13776 hpux9* | hpux10* | hpux11*)
13777 case $cc_basename in
13779 lt_prog_compiler_wl_CXX='-Wl,'
13780 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13781 if test "$host_cpu" != ia64; then
13782 lt_prog_compiler_pic_CXX='+Z'
13786 lt_prog_compiler_wl_CXX='-Wl,'
13787 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13793 lt_prog_compiler_pic_CXX='+Z'
13802 # This is c89, which is MS Visual C++ (no shared libs)
13803 # Anyone wants to do a port?
13805 irix5* | irix6* | nonstopux*)
13806 case $cc_basename in
13808 lt_prog_compiler_wl_CXX='-Wl,'
13809 lt_prog_compiler_static_CXX='-non_shared'
13810 # CC pic flag -KPIC is the default.
13816 linux* | k*bsd*-gnu)
13817 case $cc_basename in
13820 lt_prog_compiler_wl_CXX='--backend -Wl,'
13821 lt_prog_compiler_pic_CXX='-fPIC'
13825 lt_prog_compiler_wl_CXX='-Wl,'
13826 lt_prog_compiler_pic_CXX='-KPIC'
13827 lt_prog_compiler_static_CXX='-static'
13830 # Portland Group C++ compiler.
13831 lt_prog_compiler_wl_CXX='-Wl,'
13832 lt_prog_compiler_pic_CXX='-fpic'
13833 lt_prog_compiler_static_CXX='-Bstatic'
13837 # Make sure the PIC flag is empty. It appears that all Alpha
13838 # Linux and Compaq Tru64 Unix objects are PIC.
13839 lt_prog_compiler_pic_CXX=
13840 lt_prog_compiler_static_CXX='-non_shared'
13851 case $cc_basename in
13853 lt_prog_compiler_pic_CXX='-W c,exportall'
13859 netbsd* | netbsdelf*-gnu)
13861 osf3* | osf4* | osf5*)
13862 case $cc_basename in
13864 lt_prog_compiler_wl_CXX='--backend -Wl,'
13867 # Rational C++ 2.4.1
13868 lt_prog_compiler_pic_CXX='-pic'
13871 # Digital/Compaq C++
13872 lt_prog_compiler_wl_CXX='-Wl,'
13873 # Make sure the PIC flag is empty. It appears that all Alpha
13874 # Linux and Compaq Tru64 Unix objects are PIC.
13875 lt_prog_compiler_pic_CXX=
13876 lt_prog_compiler_static_CXX='-non_shared'
13885 case $cc_basename in
13887 # Sun C++ 4.2, 5.x and Centerline C++
13888 lt_prog_compiler_pic_CXX='-KPIC'
13889 lt_prog_compiler_static_CXX='-Bstatic'
13890 lt_prog_compiler_wl_CXX='-Qoption ld '
13893 # Green Hills C++ Compiler
13894 lt_prog_compiler_pic_CXX='-PIC'
13901 case $cc_basename in
13904 lt_prog_compiler_pic_CXX='-pic'
13905 lt_prog_compiler_static_CXX='-Bstatic'
13909 lt_prog_compiler_pic_CXX='-pic'
13916 case $cc_basename in
13918 # NonStop-UX NCC 3.20
13919 lt_prog_compiler_pic_CXX='-KPIC'
13925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13926 case $cc_basename in
13928 lt_prog_compiler_wl_CXX='-Wl,'
13929 lt_prog_compiler_pic_CXX='-KPIC'
13930 lt_prog_compiler_static_CXX='-Bstatic'
13937 lt_prog_compiler_can_build_shared_CXX=no
13942 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13943 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13946 # Check to make sure the PIC flag actually works.
13948 if test -n "$lt_prog_compiler_pic_CXX"; then
13950 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13952 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 lt_prog_compiler_pic_works_CXX=no
13956 ac_outfile=conftest.$ac_objext
13957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13959 # Insert the option either (1) after the last *FLAGS variable, or
13960 # (2) before a word containing "conftest.", or (3) at the end.
13961 # Note that $ac_compile itself does not contain backslashes and begins
13962 # with a dollar sign (not a hyphen), so the echo should work correctly.
13963 # The option is referenced via a variable to avoid confusing sed.
13964 lt_compile=`echo "$ac_compile" | $SED \
13965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967 -e 's:$: $lt_compiler_flag:'`
13968 (eval echo "\"\$as_me:13968: $lt_compile\"" >&5)
13969 (eval "$lt_compile" 2>conftest.err)
13971 cat conftest.err >&5
13972 echo "$as_me:13972: \$? = $ac_status" >&5
13973 if (exit $ac_status) && test -s "$ac_outfile"; then
13974 # The compiler can only warn and ignore the option if not recognized
13975 # So say no if there are warnings other than the usual output.
13976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979 lt_prog_compiler_pic_works_CXX=yes
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13988 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13989 case $lt_prog_compiler_pic_CXX in
13991 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13994 lt_prog_compiler_pic_CXX=
13995 lt_prog_compiler_can_build_shared_CXX=no
14000 # For platforms which do not support PIC, -DPIC is meaningless:
14002 lt_prog_compiler_pic_CXX=
14005 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14010 # Check to make sure the static flag actually works.
14012 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14013 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14015 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 lt_prog_compiler_static_works_CXX=no
14019 save_LDFLAGS="$LDFLAGS"
14020 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14021 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14022 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14023 # The linker can only warn and ignore the option if not recognized
14024 # So say no if there are warnings
14025 if test -s conftest.err; then
14026 # Append any errors to the config.log.
14027 cat conftest.err 1>&5
14028 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030 if diff conftest.exp conftest.er2 >/dev/null; then
14031 lt_prog_compiler_static_works_CXX=yes
14034 lt_prog_compiler_static_works_CXX=yes
14038 LDFLAGS="$save_LDFLAGS"
14041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14042 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14044 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14047 lt_prog_compiler_static_CXX=
14051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14053 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 lt_cv_prog_compiler_c_o_CXX=no
14057 $rm -r conftest 2>/dev/null
14061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14063 lt_compiler_flag="-o out/conftest2.$ac_objext"
14064 # Insert the option either (1) after the last *FLAGS variable, or
14065 # (2) before a word containing "conftest.", or (3) at the end.
14066 # Note that $ac_compile itself does not contain backslashes and begins
14067 # with a dollar sign (not a hyphen), so the echo should work correctly.
14068 lt_compile=`echo "$ac_compile" | $SED \
14069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071 -e 's:$: $lt_compiler_flag:'`
14072 (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
14073 (eval "$lt_compile" 2>out/conftest.err)
14075 cat out/conftest.err >&5
14076 echo "$as_me:14076: \$? = $ac_status" >&5
14077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14079 # The compiler can only warn and ignore the option if not recognized
14080 # So say no if there are warnings
14081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14084 lt_cv_prog_compiler_c_o_CXX=yes
14089 # SGI C++ compiler will create directory out/ii_files/ for
14090 # template instantiation
14091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14092 $rm out/* && rmdir out
14098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14102 hard_links="nottested"
14103 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14104 # do not overwrite the value of need_locks provided by the user
14105 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111 ln conftest.a conftest.b 2>&5 || hard_links=no
14112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113 { echo "$as_me:$LINENO: result: $hard_links" >&5
14114 echo "${ECHO_T}$hard_links" >&6; }
14115 if test "$hard_links" = no; then
14116 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14127 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130 # If we're using GNU nm, then we don't want the "-C" option.
14131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14132 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14133 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'
14135 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'
14139 export_symbols_cmds_CXX="$ltdll_cmds"
14142 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'
14144 linux* | k*bsd*-gnu)
14145 link_all_deplibs_CXX=no
14148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14152 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14153 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14154 test "$ld_shlibs_CXX" = no && can_build_shared=no
14157 # Do we need to explicitly link libc?
14159 case "x$archive_cmds_need_lc_CXX" in
14161 # Assume -lc should be added
14162 archive_cmds_need_lc_CXX=yes
14164 if test "$enable_shared" = yes && test "$GCC" = yes; then
14165 case $archive_cmds_CXX in
14167 # FIXME: we may have to deal with multi-command sequences.
14170 # Test whether the compiler implicitly links with -lc since on some
14171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14172 # to ld, don't add -lc before -lgcc.
14173 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179 (eval $ac_compile) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } 2>conftest.err; then
14185 libobjs=conftest.$ac_objext
14187 wl=$lt_prog_compiler_wl_CXX
14188 pic_flag=$lt_prog_compiler_pic_CXX
14194 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14195 allow_undefined_flag_CXX=
14196 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14197 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }
14202 archive_cmds_need_lc_CXX=no
14204 archive_cmds_need_lc_CXX=yes
14206 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14208 cat conftest.err 1>&5
14211 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14212 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14219 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14220 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14221 library_names_spec=
14222 libname_spec='lib$name'
14226 postuninstall_cmds=
14230 shlibpath_overrides_runpath=unknown
14232 dynamic_linker="$host_os ld.so"
14233 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14234 if test "$GCC" = yes; then
14235 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14236 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14237 # if the path contains ";" then we assume it to be the separator
14238 # otherwise default to the standard path separator (i.e. ":") - it is
14239 # assumed that no part of a normal pathname contains ";" but that should
14240 # okay in the real world where ";" in dirpaths is itself problematic.
14241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14246 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14248 need_lib_prefix=unknown
14249 hardcode_into_libs=no
14251 # when you set need_version to no, make sure it does not cause -set_version
14252 # flags to be left without arguments
14253 need_version=unknown
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14259 shlibpath_var=LIBPATH
14261 # AIX 3 has no versioning support, so we append a major version to the name.
14262 soname_spec='${libname}${release}${shared_ext}$major'
14269 hardcode_into_libs=yes
14270 if test "$host_cpu" = ia64; then
14271 # AIX 5 supports IA64
14272 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14273 shlibpath_var=LD_LIBRARY_PATH
14275 # With GCC up to 2.95.x, collect2 would create an import file
14276 # for dependence libraries. The import file would start with
14277 # the line `#! .'. This would cause the generated library to
14278 # depend on `.', always an invalid library. This was fixed in
14279 # development snapshots of GCC prior to 3.0.
14281 aix4 | aix4.[01] | aix4.[01].*)
14282 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14284 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14287 can_build_shared=no
14291 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14292 # soname into executable. Probably we can add versioning support to
14293 # collect2, so additional links can be useful in future.
14294 if test "$aix_use_runtimelinking" = yes; then
14295 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14296 # instead of lib<name>.a to let people know that these are not
14297 # typical AIX shared libraries.
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 # We preserve .a as extension for shared libraries through AIX4.2
14301 # and later when we are not doing run time linking.
14302 library_names_spec='${libname}${release}.a $libname.a'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14305 shlibpath_var=LIBPATH
14310 library_names_spec='$libname.ixlibrary $libname.a'
14311 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14312 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'
14316 library_names_spec='${libname}${shared_ext}'
14317 dynamic_linker="$host_os ld.so"
14318 shlibpath_var=LIBRARY_PATH
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14330 # the default ld.so.conf also contains /usr/contrib/lib and
14331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14332 # libtool to hard-code these into programs
14335 cygwin* | mingw* | pw32*)
14336 version_type=windows
14341 case $GCC,$host_os in
14342 yes,cygwin* | yes,mingw* | yes,pw32*)
14343 library_names_spec='$libname.dll.a'
14344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14345 postinstall_cmds='base_file=`basename \${file}`~
14346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14347 dldir=$destdir/`dirname \$dlpath`~
14348 test -d \$dldir || mkdir -p \$dldir~
14349 $install_prog $dir/$dlname \$dldir/$dlname~
14350 chmod a+x \$dldir/$dlname'
14351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14352 dlpath=$dir/\$dldll~
14354 shlibpath_overrides_runpath=yes
14358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14360 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14363 # MinGW DLLs use traditional 'lib' prefix
14364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14366 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14367 # It is most probably a Windows format PATH printed by
14368 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14369 # path with ; separators, and with drive letters. We can handle the
14370 # drive letters (cygwin fileutils understands them), so leave them,
14371 # especially as we might pass files found there to a mingw objdump,
14372 # which wouldn't understand a cygwinified path. Ahh.
14373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14379 # pw32 DLLs use 'pw' prefix rather than 'lib'
14380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14389 dynamic_linker='Win32 ld.exe'
14390 # FIXME: first we should search . and the directory the executable is in
14394 darwin* | rhapsody*)
14395 dynamic_linker="$host_os dyld"
14396 version_type=darwin
14399 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14400 soname_spec='${libname}${release}${major}$shared_ext'
14401 shlibpath_overrides_runpath=yes
14402 shlibpath_var=DYLD_LIBRARY_PATH
14403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14404 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14405 if test "$GCC" = yes; then
14406 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"`
14408 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 shlibpath_var=LD_LIBRARY_PATH
14426 freebsd* | dragonfly*)
14427 # DragonFly does not have aout. When/if they implement a new
14428 # versioning mechanism, adjust this.
14429 if test -x /usr/bin/objformat; then
14430 objformat=`/usr/bin/objformat`
14433 freebsd[123]*) objformat=aout ;;
14434 *) objformat=elf ;;
14437 version_type=freebsd-$objformat
14438 case $version_type in
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14449 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=yes
14454 freebsd3.[01]* | freebsdelf3.[01]*)
14455 shlibpath_overrides_runpath=yes
14456 hardcode_into_libs=yes
14458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14460 shlibpath_overrides_runpath=no
14461 hardcode_into_libs=yes
14463 freebsd*) # from 4.6 on
14464 shlibpath_overrides_runpath=yes
14465 hardcode_into_libs=yes
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 hardcode_into_libs=yes
14480 hpux9* | hpux10* | hpux11*)
14481 # Give a soname corresponding to the major version so that dld.sl refuses to
14482 # link against other versions.
14489 hardcode_into_libs=yes
14490 dynamic_linker="$host_os dld.so"
14491 shlibpath_var=LD_LIBRARY_PATH
14492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 if test "X$HPUX_IA64_MODE" = X32; then
14496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14504 hardcode_into_libs=yes
14505 dynamic_linker="$host_os dld.sl"
14506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14515 dynamic_linker="$host_os dld.sl"
14516 shlibpath_var=SHLIB_PATH
14517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14522 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14523 postinstall_cmds='chmod 555 $lib'
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 shlibpath_overrides_runpath=no
14535 hardcode_into_libs=yes
14538 irix5* | irix6* | nonstopux*)
14540 nonstopux*) version_type=nonstopux ;;
14542 if test "$lt_cv_prog_gnu_ld" = yes; then
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553 irix5* | nonstopux*)
14554 libsuff= shlibsuff=
14557 case $LD in # libtool.m4 will add one of these switches to LD
14558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14559 libsuff= shlibsuff= libmagic=32-bit;;
14560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561 libsuff=32 shlibsuff=N32 libmagic=N32;;
14562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14564 *) libsuff= shlibsuff= libmagic=never-match;;
14568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14569 shlibpath_overrides_runpath=no
14570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14572 hardcode_into_libs=yes
14575 # No shared lib support for Linux oldld, aout, or coff.
14576 linux*oldld* | linux*aout* | linux*coff*)
14580 # This must be Linux ELF.
14581 linux* | k*bsd*-gnu)
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=no
14590 # This implies no fast_install, which is unacceptable.
14591 # Some rework will be needed to allow for fast_install
14592 # before this can be enabled.
14593 hardcode_into_libs=yes
14595 # Append ld.so.conf contents to the search path
14596 if test -f /etc/ld.so.conf; then
14597 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' ' '`
14598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14601 # We used to test for /lib/ld.so.1 and disable shared libraries on
14602 # powerpc, because MkLinux only supported shared libraries with the
14603 # GNU dynamic linker. Since this was broken with cross compilers,
14604 # most powerpc-linux boxes support dynamic linking these days and
14605 # people can always --disable-shared, the test was removed, and we
14606 # assume the GNU/Linux dynamic linker is in use.
14607 dynamic_linker='GNU/Linux ld.so'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=no
14618 hardcode_into_libs=yes
14619 dynamic_linker='NetBSD ld.elf_so'
14626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14629 dynamic_linker='NetBSD (a.out) ld.so'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 dynamic_linker='NetBSD ld.elf_so'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=yes
14637 hardcode_into_libs=yes
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=yes
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=yes
14659 sys_lib_dlsearch_path_spec="/usr/lib"
14661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14663 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14664 *) need_version=no ;;
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14671 openbsd2.[89] | openbsd2.[89].*)
14672 shlibpath_overrides_runpath=no
14675 shlibpath_overrides_runpath=yes
14679 shlibpath_overrides_runpath=yes
14684 libname_spec='$name'
14687 library_names_spec='$libname${shared_ext} $libname.a'
14688 dynamic_linker='OS/2 ld.exe'
14689 shlibpath_var=LIBPATH
14692 osf3* | osf4* | osf5*)
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 hardcode_into_libs=yes
14712 # ldd complains unless libraries are executable
14713 postinstall_cmds='chmod +x $lib'
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 shlibpath_overrides_runpath=yes
14722 if test "$with_gnu_ld" = yes; then
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 case $host_vendor in
14735 shlibpath_overrides_runpath=no
14737 export_dynamic_flag_spec='${wl}-Blargedynsym'
14738 runpath_var=LD_RUN_PATH
14746 shlibpath_overrides_runpath=no
14747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14753 if test -d /usr/nec ;then
14755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14756 soname_spec='$libname${shared_ext}.$major'
14757 shlibpath_var=LD_LIBRARY_PATH
14761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14762 version_type=freebsd-elf
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 hardcode_into_libs=yes
14769 if test "$with_gnu_ld" = yes; then
14770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14771 shlibpath_overrides_runpath=no
14773 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14774 shlibpath_overrides_runpath=yes
14777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14781 sys_lib_dlsearch_path_spec='/usr/lib'
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14795 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14796 echo "${ECHO_T}$dynamic_linker" >&6; }
14797 test "$dynamic_linker" = no && can_build_shared=no
14799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14800 if test "$GCC" = yes; then
14801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14806 hardcode_action_CXX=
14807 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14808 test -n "$runpath_var_CXX" || \
14809 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14811 # We can hardcode non-existant directories.
14812 if test "$hardcode_direct_CXX" != no &&
14813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14814 # have to relink, otherwise we might link with an installed library
14815 # when we should be linking with a yet-to-be-installed one
14816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14817 test "$hardcode_minus_L_CXX" != no; then
14818 # Linking always hardcodes the temporary library directory.
14819 hardcode_action_CXX=relink
14821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14822 hardcode_action_CXX=immediate
14825 # We cannot hardcode anything, or else we can only hardcode existing
14827 hardcode_action_CXX=unsupported
14829 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14830 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14832 if test "$hardcode_action_CXX" = relink; then
14833 # Fast installation is not supported
14834 enable_fast_install=no
14835 elif test "$shlibpath_overrides_runpath" = yes ||
14836 test "$enable_shared" = no; then
14837 # Fast installation is not necessary
14838 enable_fast_install=needless
14842 # The else clause should only fire when bootstrapping the
14843 # libtool distribution, otherwise you forgot to ship ltmain.sh
14844 # with your package, and you will get complaints that there are
14845 # no rules to generate ltmain.sh.
14846 if test -f "$ltmain"; then
14847 # See if we are running on zsh, and set the options which allow our commands through
14848 # without removal of \ escapes.
14849 if test -n "${ZSH_VERSION+set}" ; then
14850 setopt NO_GLOB_SUBST
14852 # Now quote all the things that may contain metacharacters while being
14853 # careful not to overquote the AC_SUBSTed values. We take copies of the
14854 # variables and quote the copies for generation of the libtool script.
14855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14859 deplibs_check_method reload_flag reload_cmds need_locks \
14860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14861 lt_cv_sys_global_symbol_to_c_name_address \
14862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14863 old_postinstall_cmds old_postuninstall_cmds \
14867 lt_prog_compiler_wl_CXX \
14868 lt_prog_compiler_pic_CXX \
14869 lt_prog_compiler_static_CXX \
14870 lt_prog_compiler_no_builtin_flag_CXX \
14871 export_dynamic_flag_spec_CXX \
14872 thread_safe_flag_spec_CXX \
14873 whole_archive_flag_spec_CXX \
14874 enable_shared_with_static_runtimes_CXX \
14875 old_archive_cmds_CXX \
14876 old_archive_from_new_cmds_CXX \
14877 predep_objects_CXX \
14878 postdep_objects_CXX \
14881 compiler_lib_search_path_CXX \
14883 archive_expsym_cmds_CXX \
14884 postinstall_cmds_CXX \
14885 postuninstall_cmds_CXX \
14886 old_archive_from_expsyms_cmds_CXX \
14887 allow_undefined_flag_CXX \
14888 no_undefined_flag_CXX \
14889 export_symbols_cmds_CXX \
14890 hardcode_libdir_flag_spec_CXX \
14891 hardcode_libdir_flag_spec_ld_CXX \
14892 hardcode_libdir_separator_CXX \
14893 hardcode_automatic_CXX \
14895 module_expsym_cmds_CXX \
14896 lt_cv_prog_compiler_c_o_CXX \
14897 exclude_expsyms_CXX \
14898 include_expsyms_CXX; do
14901 old_archive_cmds_CXX | \
14902 old_archive_from_new_cmds_CXX | \
14903 archive_cmds_CXX | \
14904 archive_expsym_cmds_CXX | \
14905 module_cmds_CXX | \
14906 module_expsym_cmds_CXX | \
14907 old_archive_from_expsyms_cmds_CXX | \
14908 export_symbols_cmds_CXX | \
14909 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14910 postinstall_cmds | postuninstall_cmds | \
14911 old_postinstall_cmds | old_postuninstall_cmds | \
14912 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14913 # Double-quote double-evaled strings.
14914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14923 *'\$0 --fallback-echo"')
14924 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14930 cat <<__EOF__ >> "$cfgfile"
14931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14935 # Shell to use when invoking shell scripts.
14938 # Whether or not to build shared libraries.
14939 build_libtool_libs=$enable_shared
14941 # Whether or not to build static libraries.
14942 build_old_libs=$enable_static
14944 # Whether or not to add -lc for building shared libraries.
14945 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14947 # Whether or not to disallow shared libs when runtime libs are static
14948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14950 # Whether or not to optimize for fast installation.
14951 fast_install=$enable_fast_install
14954 host_alias=$host_alias
14958 # The build system.
14959 build_alias=$build_alias
14963 # An echo program that does not interpret backslashes.
14968 AR_FLAGS=$lt_AR_FLAGS
14973 # LTCC compiler flags.
14974 LTCFLAGS=$lt_LTCFLAGS
14976 # A language-specific compiler.
14977 CC=$lt_compiler_CXX
14979 # Is the compiler the GNU C compiler?
14985 # The linker used to build libraries.
14988 # Whether we need hard or soft links.
14991 # A BSD-compatible nm program.
14994 # A symbol stripping program
14997 # Used to examine libraries when file_magic_cmd begins "file"
14998 MAGIC_CMD=$MAGIC_CMD
15000 # Used on cygwin: DLL creation program.
15003 # Used on cygwin: object dumper.
15006 # Used on cygwin: assembler.
15009 # The name of the directory that contains temporary libtool files.
15012 # How to create reloadable object files.
15013 reload_flag=$lt_reload_flag
15014 reload_cmds=$lt_reload_cmds
15016 # How to pass a linker flag through the compiler.
15017 wl=$lt_lt_prog_compiler_wl_CXX
15019 # Object file suffix (normally "o").
15020 objext="$ac_objext"
15022 # Old archive suffix (normally "a").
15025 # Shared library suffix (normally ".so").
15026 shrext_cmds='$shrext_cmds'
15028 # Executable file suffix (normally "").
15031 # Additional compiler flags for building library objects.
15032 pic_flag=$lt_lt_prog_compiler_pic_CXX
15035 # What is the maximum length of a command?
15036 max_cmd_len=$lt_cv_sys_max_cmd_len
15038 # Does compiler simultaneously support -c and -o options?
15039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15041 # Must we lock files when doing compilation?
15042 need_locks=$lt_need_locks
15044 # Do we need the lib prefix for modules?
15045 need_lib_prefix=$need_lib_prefix
15047 # Do we need a version for libraries?
15048 need_version=$need_version
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15059 # Compiler flag to prevent dynamic linking.
15060 link_static_flag=$lt_lt_prog_compiler_static_CXX
15062 # Compiler flag to turn off builtin functions.
15063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15065 # Compiler flag to allow reflexive dlopens.
15066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15068 # Compiler flag to generate shared objects directly from archives.
15069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15071 # Compiler flag to generate thread-safe objects.
15072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15074 # Library versioning type.
15075 version_type=$version_type
15077 # Format of library name prefix.
15078 libname_spec=$lt_libname_spec
15080 # List of archive names. First name is the real one, the rest are links.
15081 # The last name is the one that the linker finds with -lNAME.
15082 library_names_spec=$lt_library_names_spec
15084 # The coded name of the library, if different from the real name.
15085 soname_spec=$lt_soname_spec
15087 # Commands used to build and install an old-style archive.
15089 old_archive_cmds=$lt_old_archive_cmds_CXX
15090 old_postinstall_cmds=$lt_old_postinstall_cmds
15091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15093 # Create an old-style archive from a shared archive.
15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15096 # Create a temporary old-style archive to link instead of a shared archive.
15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15099 # Commands used to build and install a shared archive.
15100 archive_cmds=$lt_archive_cmds_CXX
15101 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15102 postinstall_cmds=$lt_postinstall_cmds
15103 postuninstall_cmds=$lt_postuninstall_cmds
15105 # Commands used to build a loadable module (assumed same as above if empty)
15106 module_cmds=$lt_module_cmds_CXX
15107 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15109 # Commands to strip libraries.
15110 old_striplib=$lt_old_striplib
15111 striplib=$lt_striplib
15113 # Dependencies to place before the objects being linked to create a
15115 predep_objects=$lt_predep_objects_CXX
15117 # Dependencies to place after the objects being linked to create a
15119 postdep_objects=$lt_postdep_objects_CXX
15121 # Dependencies to place before the objects being linked to create a
15123 predeps=$lt_predeps_CXX
15125 # Dependencies to place after the objects being linked to create a
15127 postdeps=$lt_postdeps_CXX
15129 # The library search path used internally by the compiler when linking
15130 # a shared library.
15131 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15133 # Method to check whether dependent libraries are shared objects.
15134 deplibs_check_method=$lt_deplibs_check_method
15136 # Command to use when deplibs_check_method == file_magic.
15137 file_magic_cmd=$lt_file_magic_cmd
15139 # Flag that allows shared libraries with undefined symbols to be built.
15140 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15142 # Flag that forces no undefined symbols.
15143 no_undefined_flag=$lt_no_undefined_flag_CXX
15145 # Commands used to finish a libtool library installation in a directory.
15146 finish_cmds=$lt_finish_cmds
15148 # Same as above, but a single script fragment to be evaled but not shown.
15149 finish_eval=$lt_finish_eval
15151 # Take the output of nm and produce a listing of raw symbols and C names.
15152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15154 # Transform the output of nm in a proper C declaration
15155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15157 # Transform the output of nm in a C name address pair
15158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15160 # This is the shared library runtime path variable.
15161 runpath_var=$runpath_var
15163 # This is the shared library path variable.
15164 shlibpath_var=$shlibpath_var
15166 # Is shlibpath searched before the hard-coded library search path?
15167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15169 # How to hardcode a shared library path into an executable.
15170 hardcode_action=$hardcode_action_CXX
15172 # Whether we should hardcode library paths into libraries.
15173 hardcode_into_libs=$hardcode_into_libs
15175 # Flag to hardcode \$libdir into a binary during linking.
15176 # This must work even if \$libdir does not exist.
15177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15179 # If ld is used when linking, flag to hardcode \$libdir into
15180 # a binary during linking. This must work even if \$libdir does
15182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15184 # Whether we need a single -rpath flag with a separated argument.
15185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_direct=$hardcode_direct_CXX
15191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15192 # resulting binary.
15193 hardcode_minus_L=$hardcode_minus_L_CXX
15195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15196 # the resulting binary.
15197 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15199 # Set to yes if building a shared library automatically hardcodes DIR into the library
15200 # and all subsequent libraries and executables linked against it.
15201 hardcode_automatic=$hardcode_automatic_CXX
15203 # Variables whose values should be saved in libtool wrapper scripts and
15204 # restored at relink time.
15205 variables_saved_for_relink="$variables_saved_for_relink"
15207 # Whether libtool must link a program against all its dependency libraries.
15208 link_all_deplibs=$link_all_deplibs_CXX
15210 # Compile-time system search path for libraries
15211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15213 # Run-time system search path for libraries
15214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15216 # Fix the shell variable \$srcfile for the compiler.
15217 fix_srcfile_path="$fix_srcfile_path_CXX"
15219 # Set to yes if exported symbols are required.
15220 always_export_symbols=$always_export_symbols_CXX
15222 # The commands to list exported symbols.
15223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15225 # The commands to extract the exported symbol list from a shared archive.
15226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15228 # Symbols that should not be listed in the preloaded symbols.
15229 exclude_expsyms=$lt_exclude_expsyms_CXX
15231 # Symbols that must always be exported.
15232 include_expsyms=$lt_include_expsyms_CXX
15234 # ### END LIBTOOL TAG CONFIG: $tagname
15240 # If there is no Makefile yet, we rely on a make rule to execute
15241 # `config.status --recheck' to rerun these tests and create the
15242 # libtool script then.
15243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15244 if test -f "$ltmain_in"; then
15245 test -f Makefile && make "$ltmain"
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15260 with_gnu_ldcxx=$with_gnu_ld
15261 with_gnu_ld=$lt_save_with_gnu_ld
15262 lt_cv_path_LDCXX=$lt_cv_path_LD
15263 lt_cv_path_LD=$lt_save_path_LD
15264 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15265 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15273 if test -n "$F77" && test "X$F77" != "Xno"; then
15276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15281 archive_cmds_need_lc_F77=no
15282 allow_undefined_flag_F77=
15283 always_export_symbols_F77=no
15284 archive_expsym_cmds_F77=
15285 export_dynamic_flag_spec_F77=
15286 hardcode_direct_F77=no
15287 hardcode_libdir_flag_spec_F77=
15288 hardcode_libdir_flag_spec_ld_F77=
15289 hardcode_libdir_separator_F77=
15290 hardcode_minus_L_F77=no
15291 hardcode_automatic_F77=no
15293 module_expsym_cmds_F77=
15294 link_all_deplibs_F77=unknown
15295 old_archive_cmds_F77=$old_archive_cmds
15296 no_undefined_flag_F77=
15297 whole_archive_flag_spec_F77=
15298 enable_shared_with_static_runtimes_F77=no
15300 # Source file extension for f77 test sources.
15303 # Object file extension for compiled f77 test sources.
15307 # Code to be used in simple compile tests
15308 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15310 # Code to be used in simple link tests
15311 lt_simple_link_test_code=" program t\n end\n"
15313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15315 # If no C compiler was specified, use CC.
15318 # If no C compiler flags were specified, use CFLAGS.
15319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15321 # Allow CC to be a program name with arguments.
15325 # save warnings/boilerplate of simple test code
15326 ac_outfile=conftest.$ac_objext
15327 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15329 _lt_compiler_boilerplate=`cat conftest.err`
15332 ac_outfile=conftest.$ac_objext
15333 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15335 _lt_linker_boilerplate=`cat conftest.err`
15339 # Allow CC to be a program name with arguments.
15344 for cc_temp in $compiler""; do
15346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15355 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15357 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15358 echo "${ECHO_T}$can_build_shared" >&6; }
15360 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15362 test "$can_build_shared" = "no" && enable_shared=no
15364 # On AIX, shared libraries and static libraries use the same namespace, and
15365 # are all built from PIC.
15368 test "$enable_shared" = yes && enable_static=no
15369 if test -n "$RANLIB"; then
15370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15371 postinstall_cmds='$RANLIB $lib'
15375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15376 test "$enable_shared" = yes && enable_static=no
15380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15381 echo "${ECHO_T}$enable_shared" >&6; }
15383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15385 # Make sure either enable_shared or enable_static is yes.
15386 test "$enable_shared" = yes || enable_static=yes
15387 { echo "$as_me:$LINENO: result: $enable_static" >&5
15388 echo "${ECHO_T}$enable_static" >&6; }
15393 lt_prog_compiler_wl_F77=
15394 lt_prog_compiler_pic_F77=
15395 lt_prog_compiler_static_F77=
15397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15400 if test "$GCC" = yes; then
15401 lt_prog_compiler_wl_F77='-Wl,'
15402 lt_prog_compiler_static_F77='-static'
15406 # All AIX code is PIC.
15407 if test "$host_cpu" = ia64; then
15408 # AIX 5 now supports IA64 processor
15409 lt_prog_compiler_static_F77='-Bstatic'
15414 # FIXME: we need at least 68020 code to build shared libraries, but
15415 # adding the `-m68020' flag to GCC prevents building anything better,
15417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15421 # PIC is the default for these OSes.
15424 mingw* | pw32* | os2*)
15425 # This hack is so that the source file can tell whether it is being
15426 # built for inclusion in a dll (and should export symbols for example).
15427 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15430 darwin* | rhapsody*)
15431 # PIC is the default on this platform
15432 # Common symbols not allowed in MH_DYLIB files
15433 lt_prog_compiler_pic_F77='-fno-common'
15437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15438 # Instead, we relocate shared libraries at runtime.
15442 # Just because we use GCC doesn't mean we suddenly get shared libraries
15443 # on systems that don't support them.
15444 lt_prog_compiler_can_build_shared_F77=no
15449 if test -d /usr/nec; then
15450 lt_prog_compiler_pic_F77=-Kconform_pic
15455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15456 # not for PA HP-UX.
15462 lt_prog_compiler_pic_F77='-fPIC'
15468 lt_prog_compiler_pic_F77='-fPIC'
15472 # PORTME Check for flag to pass linker flags through the system compiler.
15475 lt_prog_compiler_wl_F77='-Wl,'
15476 if test "$host_cpu" = ia64; then
15477 # AIX 5 now supports IA64 processor
15478 lt_prog_compiler_static_F77='-Bstatic'
15480 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15484 # PIC is the default on this platform
15485 # Common symbols not allowed in MH_DYLIB files
15486 case $cc_basename in
15488 lt_prog_compiler_pic_F77='-qnocommon'
15489 lt_prog_compiler_wl_F77='-Wl,'
15494 mingw* | pw32* | os2*)
15495 # This hack is so that the source file can tell whether it is being
15496 # built for inclusion in a dll (and should export symbols for example).
15497 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15500 hpux9* | hpux10* | hpux11*)
15501 lt_prog_compiler_wl_F77='-Wl,'
15502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15503 # not for PA HP-UX.
15509 lt_prog_compiler_pic_F77='+Z'
15512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15513 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15516 irix5* | irix6* | nonstopux*)
15517 lt_prog_compiler_wl_F77='-Wl,'
15518 # PIC (with -KPIC) is the default.
15519 lt_prog_compiler_static_F77='-non_shared'
15523 lt_prog_compiler_pic_F77='-KPIC'
15524 lt_prog_compiler_static_F77='-Bstatic'
15527 linux* | k*bsd*-gnu)
15528 case $cc_basename in
15530 lt_prog_compiler_wl_F77='-Wl,'
15531 lt_prog_compiler_pic_F77='-KPIC'
15532 lt_prog_compiler_static_F77='-static'
15534 pgcc* | pgf77* | pgf90* | pgf95*)
15535 # Portland Group compilers (*not* the Pentium gcc compiler,
15536 # which looks to be a dead project)
15537 lt_prog_compiler_wl_F77='-Wl,'
15538 lt_prog_compiler_pic_F77='-fpic'
15539 lt_prog_compiler_static_F77='-Bstatic'
15542 lt_prog_compiler_wl_F77='-Wl,'
15543 # All Alpha code is PIC.
15544 lt_prog_compiler_static_F77='-non_shared'
15549 osf3* | osf4* | osf5*)
15550 lt_prog_compiler_wl_F77='-Wl,'
15551 # All OSF/1 code is PIC.
15552 lt_prog_compiler_static_F77='-non_shared'
15556 lt_prog_compiler_pic_F77='-KPIC'
15557 lt_prog_compiler_static_F77='-Bstatic'
15558 case $cc_basename in
15559 f77* | f90* | f95*)
15560 lt_prog_compiler_wl_F77='-Qoption ld ';;
15562 lt_prog_compiler_wl_F77='-Wl,';;
15567 lt_prog_compiler_wl_F77='-Qoption ld '
15568 lt_prog_compiler_pic_F77='-PIC'
15569 lt_prog_compiler_static_F77='-Bstatic'
15572 sysv4 | sysv4.2uw2* | sysv4.3*)
15573 lt_prog_compiler_wl_F77='-Wl,'
15574 lt_prog_compiler_pic_F77='-KPIC'
15575 lt_prog_compiler_static_F77='-Bstatic'
15579 if test -d /usr/nec ;then
15580 lt_prog_compiler_pic_F77='-Kconform_pic'
15581 lt_prog_compiler_static_F77='-Bstatic'
15585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15586 lt_prog_compiler_wl_F77='-Wl,'
15587 lt_prog_compiler_pic_F77='-KPIC'
15588 lt_prog_compiler_static_F77='-Bstatic'
15592 lt_prog_compiler_wl_F77='-Wl,'
15593 lt_prog_compiler_can_build_shared_F77=no
15597 lt_prog_compiler_pic_F77='-pic'
15598 lt_prog_compiler_static_F77='-Bstatic'
15602 lt_prog_compiler_can_build_shared_F77=no
15607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15608 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15611 # Check to make sure the PIC flag actually works.
15613 if test -n "$lt_prog_compiler_pic_F77"; then
15615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15617 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 lt_prog_compiler_pic_works_F77=no
15621 ac_outfile=conftest.$ac_objext
15622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15623 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15624 # Insert the option either (1) after the last *FLAGS variable, or
15625 # (2) before a word containing "conftest.", or (3) at the end.
15626 # Note that $ac_compile itself does not contain backslashes and begins
15627 # with a dollar sign (not a hyphen), so the echo should work correctly.
15628 # The option is referenced via a variable to avoid confusing sed.
15629 lt_compile=`echo "$ac_compile" | $SED \
15630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15632 -e 's:$: $lt_compiler_flag:'`
15633 (eval echo "\"\$as_me:15633: $lt_compile\"" >&5)
15634 (eval "$lt_compile" 2>conftest.err)
15636 cat conftest.err >&5
15637 echo "$as_me:15637: \$? = $ac_status" >&5
15638 if (exit $ac_status) && test -s "$ac_outfile"; then
15639 # The compiler can only warn and ignore the option if not recognized
15640 # So say no if there are warnings other than the usual output.
15641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15644 lt_prog_compiler_pic_works_F77=yes
15650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15651 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15653 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15654 case $lt_prog_compiler_pic_F77 in
15656 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15659 lt_prog_compiler_pic_F77=
15660 lt_prog_compiler_can_build_shared_F77=no
15665 # For platforms which do not support PIC, -DPIC is meaningless:
15667 lt_prog_compiler_pic_F77=
15670 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15675 # Check to make sure the static flag actually works.
15677 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15680 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 lt_prog_compiler_static_works_F77=no
15684 save_LDFLAGS="$LDFLAGS"
15685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15688 # The linker can only warn and ignore the option if not recognized
15689 # So say no if there are warnings
15690 if test -s conftest.err; then
15691 # Append any errors to the config.log.
15692 cat conftest.err 1>&5
15693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15695 if diff conftest.exp conftest.er2 >/dev/null; then
15696 lt_prog_compiler_static_works_F77=yes
15699 lt_prog_compiler_static_works_F77=yes
15703 LDFLAGS="$save_LDFLAGS"
15706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15707 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15709 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15712 lt_prog_compiler_static_F77=
15716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15718 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 lt_cv_prog_compiler_c_o_F77=no
15722 $rm -r conftest 2>/dev/null
15726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15728 lt_compiler_flag="-o out/conftest2.$ac_objext"
15729 # Insert the option either (1) after the last *FLAGS variable, or
15730 # (2) before a word containing "conftest.", or (3) at the end.
15731 # Note that $ac_compile itself does not contain backslashes and begins
15732 # with a dollar sign (not a hyphen), so the echo should work correctly.
15733 lt_compile=`echo "$ac_compile" | $SED \
15734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15736 -e 's:$: $lt_compiler_flag:'`
15737 (eval echo "\"\$as_me:15737: $lt_compile\"" >&5)
15738 (eval "$lt_compile" 2>out/conftest.err)
15740 cat out/conftest.err >&5
15741 echo "$as_me:15741: \$? = $ac_status" >&5
15742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15744 # The compiler can only warn and ignore the option if not recognized
15745 # So say no if there are warnings
15746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15749 lt_cv_prog_compiler_c_o_F77=yes
15754 # SGI C++ compiler will create directory out/ii_files/ for
15755 # template instantiation
15756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15757 $rm out/* && rmdir out
15763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15767 hard_links="nottested"
15768 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15769 # do not overwrite the value of need_locks provided by the user
15770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776 ln conftest.a conftest.b 2>&5 || hard_links=no
15777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778 { echo "$as_me:$LINENO: result: $hard_links" >&5
15779 echo "${ECHO_T}$hard_links" >&6; }
15780 if test "$hard_links" = no; then
15781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15793 allow_undefined_flag_F77=
15794 enable_shared_with_static_runtimes_F77=no
15796 archive_expsym_cmds_F77=
15797 old_archive_From_new_cmds_F77=
15798 old_archive_from_expsyms_cmds_F77=
15799 export_dynamic_flag_spec_F77=
15800 whole_archive_flag_spec_F77=
15801 thread_safe_flag_spec_F77=
15802 hardcode_libdir_flag_spec_F77=
15803 hardcode_libdir_flag_spec_ld_F77=
15804 hardcode_libdir_separator_F77=
15805 hardcode_direct_F77=no
15806 hardcode_minus_L_F77=no
15807 hardcode_shlibpath_var_F77=unsupported
15808 link_all_deplibs_F77=unknown
15809 hardcode_automatic_F77=no
15811 module_expsym_cmds_F77=
15812 always_export_symbols_F77=no
15813 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15814 # include_expsyms should be a list of space-separated symbols to be *always*
15815 # included in the symbol list
15816 include_expsyms_F77=
15817 # exclude_expsyms can be an extended regexp of symbols to exclude
15818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15820 # as well as any symbol that contains `d'.
15821 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15823 # platforms (ab)use it in PIC code, but their linkers get confused if
15824 # the symbol is explicitly referenced. Since portable code cannot
15825 # rely on this symbol name, it's probably fine to never include it in
15826 # preloaded symbol tables.
15827 extract_expsyms_cmds=
15828 # Just being paranoid about ensuring that cc_basename is set.
15829 for cc_temp in $compiler""; do
15831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15840 cygwin* | mingw* | pw32*)
15841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15842 # When not using gcc, we currently assume that we are using
15843 # Microsoft Visual C++.
15844 if test "$GCC" != yes; then
15849 # we just hope/assume this is gcc and not c89 (= MSVC++)
15858 if test "$with_gnu_ld" = yes; then
15859 # If archive_cmds runs LD, not CC, wlarc should be empty
15862 # Set some defaults for GNU ld with shared library support. These
15863 # are reset later if shared libraries are not supported. Putting them
15864 # here allows them to be overridden if necessary.
15865 runpath_var=LD_RUN_PATH
15866 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15867 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15868 # ancient GNU ld didn't support --whole-archive et. al.
15869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15870 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15872 whole_archive_flag_spec_F77=
15874 supports_anon_versioning=no
15875 case `$LD -v 2>/dev/null` in
15876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15879 *\ 2.11.*) ;; # other 2.11 versions
15880 *) supports_anon_versioning=yes ;;
15883 # See if GNU ld supports shared libraries.
15885 aix3* | aix4* | aix5*)
15886 # On AIX/PPC, the GNU linker is very broken
15887 if test "$host_cpu" != ia64; then
15891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15892 *** to be unable to reliably create shared libraries on AIX.
15893 *** Therefore, libtool is disabling shared libraries support. If you
15894 *** really care for shared libraries, you may want to modify your PATH
15895 *** so that a non-GNU linker is found, and then restart.
15902 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)'
15903 hardcode_libdir_flag_spec_F77='-L$libdir'
15904 hardcode_minus_L_F77=yes
15906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15907 # that the semantics of dynamic libraries on AmigaOS, at least up
15908 # to version 4, is to share data among multiple programs linked
15909 # with the same dynamic library. Since this doesn't match the
15910 # behavior of shared libraries on other platforms, we can't use
15916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15917 allow_undefined_flag_F77=unsupported
15918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15919 # support --undefined. This deserves some investigation. FIXME
15920 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926 cygwin* | mingw* | pw32*)
15927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15928 # as there is no search path for DLLs.
15929 hardcode_libdir_flag_spec_F77='-L$libdir'
15930 allow_undefined_flag_F77=unsupported
15931 always_export_symbols_F77=no
15932 enable_shared_with_static_runtimes_F77=yes
15933 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15936 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15937 # If the export-symbols file already is a .def file (1st line
15938 # is EXPORTS), use it as is; otherwise, prepend...
15939 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15940 cp $export_symbols $output_objdir/$soname.def;
15942 echo EXPORTS > $output_objdir/$soname.def;
15943 cat $export_symbols >> $output_objdir/$soname.def;
15945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15952 hardcode_direct_F77=no
15953 hardcode_shlibpath_var_F77=no
15954 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15955 export_dynamic_flag_spec_F77='${wl}-E'
15956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15957 # Instead, shared libraries are loaded at an image base (0x10000000 by
15958 # default) and relocated if they conflict, which is a slow very memory
15959 # consuming and fragmenting process. To avoid this, we pick a random,
15960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15962 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'
15963 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'
15966 linux* | k*bsd*-gnu)
15967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15969 case $cc_basename,$host_cpu in
15970 pgcc*) # Portland Group C compiler
15971 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'
15972 tmp_addflag=' $pic_flag'
15974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15975 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'
15976 tmp_addflag=' $pic_flag -Mnomain' ;;
15977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15978 tmp_addflag=' -i_dynamic' ;;
15979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15980 tmp_addflag=' -i_dynamic -nofor_main' ;;
15981 ifc* | ifort*) # Intel Fortran compiler
15982 tmp_addflag=' -nofor_main' ;;
15984 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15986 if test $supports_anon_versioning = yes; then
15987 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15989 $echo "local: *; };" >> $output_objdir/$libname.ver~
15990 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15992 link_all_deplibs_F77=no
15998 netbsd* | netbsdelf*-gnu)
15999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16000 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16003 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16004 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16009 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16014 *** create shared libraries on Solaris systems. Therefore, libtool
16015 *** is disabling shared libraries support. We urge you to upgrade GNU
16016 *** binutils to release 2.9.1 or newer. Another option is to modify
16017 *** your PATH or compiler configuration so that the native linker is
16018 *** used, and then restart.
16021 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16022 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16030 case `$LD -v 2>&1` in
16031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16036 *** reliably create shared libraries on SCO systems. Therefore, libtool
16037 *** is disabling shared libraries support. We urge you to upgrade GNU
16038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16039 *** your PATH or compiler configuration so that the native linker is
16040 *** used, and then restart.
16045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16046 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16057 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059 hardcode_direct_F77=yes
16060 hardcode_shlibpath_var_F77=no
16064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073 if test "$ld_shlibs_F77" = no; then
16075 hardcode_libdir_flag_spec_F77=
16076 export_dynamic_flag_spec_F77=
16077 whole_archive_flag_spec_F77=
16080 # PORTME fill in a description of your system's linker (not GNU ld)
16083 allow_undefined_flag_F77=unsupported
16084 always_export_symbols_F77=yes
16085 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'
16086 # Note: this linker hardcodes the directories in LIBPATH if there
16087 # are no directories specified by -L.
16088 hardcode_minus_L_F77=yes
16089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16090 # Neither direct hardcoding nor static linking is supported with a
16092 hardcode_direct_F77=unsupported
16097 if test "$host_cpu" = ia64; then
16098 # On IA64, the linker does run time linking by default, so we don't
16099 # have to do anything special.
16100 aix_use_runtimelinking=no
16101 exp_sym_flag='-Bexport'
16104 # If we're using GNU nm, then we don't want the "-C" option.
16105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16107 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'
16109 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'
16111 aix_use_runtimelinking=no
16113 # Test if we are trying to use run time linking or normal
16114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16115 # need to do runtime linking.
16116 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16117 for ld_flag in $LDFLAGS; do
16118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16119 aix_use_runtimelinking=yes
16126 exp_sym_flag='-bexport'
16127 no_entry_flag='-bnoentry'
16130 # When large executables or shared objects are built, AIX ld can
16131 # have problems creating the table of contents. If linking a library
16132 # or program results in "error TOC overflow" add -mminimal-toc to
16133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16136 archive_cmds_F77=''
16137 hardcode_direct_F77=yes
16138 hardcode_libdir_separator_F77=':'
16139 link_all_deplibs_F77=yes
16141 if test "$GCC" = yes; then
16142 case $host_os in aix4.[012]|aix4.[012].*)
16143 # We only want to do this on AIX 4.2 and lower, the check
16144 # below for broken collect2 doesn't work under 4.3+
16145 collect2name=`${CC} -print-prog-name=collect2`
16146 if test -f "$collect2name" && \
16147 strings "$collect2name" | grep resolve_lib_name >/dev/null
16149 # We have reworked collect2
16150 hardcode_direct_F77=yes
16152 # We have old collect2
16153 hardcode_direct_F77=unsupported
16154 # It fails to find uninstalled libraries when the uninstalled
16155 # path is not listed in the libpath. Setting hardcode_minus_L
16156 # to unsupported forces relinking
16157 hardcode_minus_L_F77=yes
16158 hardcode_libdir_flag_spec_F77='-L$libdir'
16159 hardcode_libdir_separator_F77=
16163 shared_flag='-shared'
16164 if test "$aix_use_runtimelinking" = yes; then
16165 shared_flag="$shared_flag "'${wl}-G'
16169 if test "$host_cpu" = ia64; then
16170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16171 # chokes on -Wl,-G. The following line is correct:
16174 if test "$aix_use_runtimelinking" = yes; then
16175 shared_flag='${wl}-G'
16177 shared_flag='${wl}-bM:SRE'
16182 # It seems that -bexpall does not export symbols beginning with
16183 # underscore (_), so it is better to generate a list of symbols to export.
16184 always_export_symbols_F77=yes
16185 if test "$aix_use_runtimelinking" = yes; then
16186 # Warning - without using the other runtime loading flags (-brtl),
16187 # -berok will link without error, but may produce a broken library.
16188 allow_undefined_flag_F77='-berok'
16189 # Determine the default libpath from the value encoded in an empty executable.
16190 cat >conftest.$ac_ext <<_ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_link") 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest$ac_exeext'
16220 { (case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_try") 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16232 # Check for a 64-bit object if we didn't find anything.
16233 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; }
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16242 rm -f conftest.err conftest.$ac_objext \
16243 conftest$ac_exeext conftest.$ac_ext
16244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16246 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16247 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"
16249 if test "$host_cpu" = ia64; then
16250 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16251 allow_undefined_flag_F77="-z nodefs"
16252 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"
16254 # Determine the default libpath from the value encoded in an empty executable.
16255 cat >conftest.$ac_ext <<_ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_link") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297 # Check for a 64-bit object if we didn't find anything.
16298 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; }
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16307 rm -f conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16311 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16312 # Warning - without using the other run time loading flags,
16313 # -berok will link without error, but may produce a broken library.
16314 no_undefined_flag_F77=' ${wl}-bernotok'
16315 allow_undefined_flag_F77=' ${wl}-berok'
16316 # Exported symbols can be pulled into shared objects from archives
16317 whole_archive_flag_spec_F77='$convenience'
16318 archive_cmds_need_lc_F77=yes
16319 # This is similar to how AIX traditionally builds its shared libraries.
16320 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'
16326 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)'
16327 hardcode_libdir_flag_spec_F77='-L$libdir'
16328 hardcode_minus_L_F77=yes
16329 # see comment about different semantics on the GNU ld section
16334 export_dynamic_flag_spec_F77=-rdynamic
16337 cygwin* | mingw* | pw32*)
16338 # When not using gcc, we currently assume that we are using
16339 # Microsoft Visual C++.
16340 # hardcode_libdir_flag_spec is actually meaningless, as there is
16341 # no search path for DLLs.
16342 hardcode_libdir_flag_spec_F77=' '
16343 allow_undefined_flag_F77=unsupported
16344 # Tell ltmain to make .lib files, not .a files.
16346 # Tell ltmain to make .dll files, not .so files.
16348 # FIXME: Setting linknames here is a bad hack.
16349 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16350 # The linker will automatically build a .lib file if we build a DLL.
16351 old_archive_From_new_cmds_F77='true'
16352 # FIXME: Should let the user specify the lib program.
16353 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16354 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16355 enable_shared_with_static_runtimes_F77=yes
16358 darwin* | rhapsody*)
16360 rhapsody* | darwin1.[012])
16361 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16365 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16367 case ${MACOSX_DEPLOYMENT_TARGET} in
16369 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16372 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16378 archive_cmds_need_lc_F77=no
16379 hardcode_direct_F77=no
16380 hardcode_automatic_F77=yes
16381 hardcode_shlibpath_var_F77=unsupported
16382 whole_archive_flag_spec_F77=''
16383 link_all_deplibs_F77=yes
16384 if test "$GCC" = yes ; then
16385 output_verbose_link_cmd='echo'
16386 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16387 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16389 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}'
16390 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}'
16392 case $cc_basename in
16394 output_verbose_link_cmd='echo'
16395 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16396 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16398 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}'
16399 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}'
16409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410 hardcode_libdir_flag_spec_F77='-L$libdir'
16411 hardcode_shlibpath_var_F77=no
16418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16419 # support. Future versions do this automatically, but an explicit c++rt0.o
16420 # does not break anything, and helps significantly (at the cost of a little
16423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16424 hardcode_libdir_flag_spec_F77='-R$libdir'
16425 hardcode_direct_F77=yes
16426 hardcode_shlibpath_var_F77=no
16429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16432 hardcode_direct_F77=yes
16433 hardcode_minus_L_F77=yes
16434 hardcode_shlibpath_var_F77=no
16437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16438 freebsd* | dragonfly*)
16439 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16440 hardcode_libdir_flag_spec_F77='-R$libdir'
16441 hardcode_direct_F77=yes
16442 hardcode_shlibpath_var_F77=no
16446 if test "$GCC" = yes; then
16447 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'
16449 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'
16451 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16452 hardcode_libdir_separator_F77=:
16453 hardcode_direct_F77=yes
16455 # hardcode_minus_L: Not really in the search PATH,
16456 # but as the default location of the library.
16457 hardcode_minus_L_F77=yes
16458 export_dynamic_flag_spec_F77='${wl}-E'
16462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16463 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16465 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16467 if test "$with_gnu_ld" = no; then
16468 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16469 hardcode_libdir_separator_F77=:
16471 hardcode_direct_F77=yes
16472 export_dynamic_flag_spec_F77='${wl}-E'
16474 # hardcode_minus_L: Not really in the search PATH,
16475 # but as the default location of the library.
16476 hardcode_minus_L_F77=yes
16481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16484 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16490 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16496 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16499 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16502 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16506 if test "$with_gnu_ld" = no; then
16507 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16508 hardcode_libdir_separator_F77=:
16512 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16513 hardcode_direct_F77=no
16514 hardcode_shlibpath_var_F77=no
16517 hardcode_direct_F77=yes
16518 export_dynamic_flag_spec_F77='${wl}-E'
16520 # hardcode_minus_L: Not really in the search PATH,
16521 # but as the default location of the library.
16522 hardcode_minus_L_F77=yes
16528 irix5* | irix6* | nonstopux*)
16529 if test "$GCC" = yes; then
16530 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'
16532 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'
16533 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16535 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16536 hardcode_libdir_separator_F77=:
16537 link_all_deplibs_F77=yes
16540 netbsd* | netbsdelf*-gnu)
16541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16542 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16544 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16546 hardcode_libdir_flag_spec_F77='-R$libdir'
16547 hardcode_direct_F77=yes
16548 hardcode_shlibpath_var_F77=no
16552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_direct_F77=yes
16554 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16555 hardcode_libdir_separator_F77=:
16556 hardcode_shlibpath_var_F77=no
16560 hardcode_direct_F77=yes
16561 hardcode_shlibpath_var_F77=no
16562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16563 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16565 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16566 export_dynamic_flag_spec_F77='${wl}-E'
16569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_libdir_flag_spec_F77='-R$libdir'
16574 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16582 hardcode_libdir_flag_spec_F77='-L$libdir'
16583 hardcode_minus_L_F77=yes
16584 allow_undefined_flag_F77=unsupported
16585 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'
16586 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16590 if test "$GCC" = yes; then
16591 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16592 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'
16594 allow_undefined_flag_F77=' -expect_unresolved \*'
16595 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'
16597 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16598 hardcode_libdir_separator_F77=:
16601 osf4* | osf5*) # as osf3* with the addition of -msym flag
16602 if test "$GCC" = yes; then
16603 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16604 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'
16605 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16607 allow_undefined_flag_F77=' -expect_unresolved \*'
16608 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'
16609 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~
16610 $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'
16612 # Both c and cxx compiler support -rpath directly
16613 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16615 hardcode_libdir_separator_F77=:
16619 no_undefined_flag_F77=' -z text'
16620 if test "$GCC" = yes; then
16622 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16623 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16627 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16631 hardcode_libdir_flag_spec_F77='-R$libdir'
16632 hardcode_shlibpath_var_F77=no
16634 solaris2.[0-5] | solaris2.[0-5].*) ;;
16636 # The compiler driver will combine linker options so we
16637 # cannot just pass the convience library names through
16638 # without $wl, iff we do not link with $LD.
16639 # Luckily, gcc supports the same syntax we need for Sun Studio.
16640 # Supported since Solaris 2.6 (maybe 2.5.1?)
16643 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16645 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' ;;
16648 link_all_deplibs_F77=yes
16652 if test "x$host_vendor" = xsequent; then
16653 # Use $CC to link under sequent, because it throws in some extra .o
16654 # files that make .init and .fini sections work.
16655 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16659 hardcode_libdir_flag_spec_F77='-L$libdir'
16660 hardcode_direct_F77=yes
16661 hardcode_minus_L_F77=yes
16662 hardcode_shlibpath_var_F77=no
16666 case $host_vendor in
16668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_direct_F77=yes # is this really true???
16672 ## LD is ld it makes a PLAMLIB
16673 ## CC just makes a GrossModule.
16674 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16675 reload_cmds_F77='$CC -r -o $output$reload_objs'
16676 hardcode_direct_F77=no
16679 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16683 runpath_var='LD_RUN_PATH'
16684 hardcode_shlibpath_var_F77=no
16688 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_shlibpath_var_F77=no
16690 export_dynamic_flag_spec_F77='-Bexport'
16694 if test -d /usr/nec; then
16695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696 hardcode_shlibpath_var_F77=no
16697 runpath_var=LD_RUN_PATH
16698 hardcode_runpath_var=yes
16703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16704 no_undefined_flag_F77='${wl}-z,text'
16705 archive_cmds_need_lc_F77=no
16706 hardcode_shlibpath_var_F77=no
16707 runpath_var='LD_RUN_PATH'
16709 if test "$GCC" = yes; then
16710 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 sysv5* | sco3.2v5* | sco5v6*)
16719 # Note: We can NOT use -z defs as we might desire, because we do not
16720 # link with -lc, and that would cause any symbols used from libc to
16721 # always be unresolved, which means just about no library would
16722 # ever link correctly. If we're not using GNU ld we use -z text
16723 # though, which does catch some bad symbols but isn't as heavy-handed
16725 no_undefined_flag_F77='${wl}-z,text'
16726 allow_undefined_flag_F77='${wl}-z,nodefs'
16727 archive_cmds_need_lc_F77=no
16728 hardcode_shlibpath_var_F77=no
16729 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16730 hardcode_libdir_separator_F77=':'
16731 link_all_deplibs_F77=yes
16732 export_dynamic_flag_spec_F77='${wl}-Bexport'
16733 runpath_var='LD_RUN_PATH'
16735 if test "$GCC" = yes; then
16736 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16746 hardcode_libdir_flag_spec_F77='-L$libdir'
16747 hardcode_shlibpath_var_F77=no
16756 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16757 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16758 test "$ld_shlibs_F77" = no && can_build_shared=no
16761 # Do we need to explicitly link libc?
16763 case "x$archive_cmds_need_lc_F77" in
16765 # Assume -lc should be added
16766 archive_cmds_need_lc_F77=yes
16768 if test "$enable_shared" = yes && test "$GCC" = yes; then
16769 case $archive_cmds_F77 in
16771 # FIXME: we may have to deal with multi-command sequences.
16774 # Test whether the compiler implicitly links with -lc since on some
16775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16776 # to ld, don't add -lc before -lgcc.
16777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } 2>conftest.err; then
16789 libobjs=conftest.$ac_objext
16791 wl=$lt_prog_compiler_wl_F77
16792 pic_flag=$lt_prog_compiler_pic_F77
16798 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16799 allow_undefined_flag_F77=
16800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16801 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }
16806 archive_cmds_need_lc_F77=no
16808 archive_cmds_need_lc_F77=yes
16810 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16812 cat conftest.err 1>&5
16815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16816 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16825 library_names_spec=
16826 libname_spec='lib$name'
16830 postuninstall_cmds=
16834 shlibpath_overrides_runpath=unknown
16836 dynamic_linker="$host_os ld.so"
16837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16838 if test "$GCC" = yes; then
16839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16841 # if the path contains ";" then we assume it to be the separator
16842 # otherwise default to the standard path separator (i.e. ":") - it is
16843 # assumed that no part of a normal pathname contains ";" but that should
16844 # okay in the real world where ";" in dirpaths is itself problematic.
16845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16852 need_lib_prefix=unknown
16853 hardcode_into_libs=no
16855 # when you set need_version to no, make sure it does not cause -set_version
16856 # flags to be left without arguments
16857 need_version=unknown
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16863 shlibpath_var=LIBPATH
16865 # AIX 3 has no versioning support, so we append a major version to the name.
16866 soname_spec='${libname}${release}${shared_ext}$major'
16873 hardcode_into_libs=yes
16874 if test "$host_cpu" = ia64; then
16875 # AIX 5 supports IA64
16876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16879 # With GCC up to 2.95.x, collect2 would create an import file
16880 # for dependence libraries. The import file would start with
16881 # the line `#! .'. This would cause the generated library to
16882 # depend on `.', always an invalid library. This was fixed in
16883 # development snapshots of GCC prior to 3.0.
16885 aix4 | aix4.[01] | aix4.[01].*)
16886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16891 can_build_shared=no
16895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16896 # soname into executable. Probably we can add versioning support to
16897 # collect2, so additional links can be useful in future.
16898 if test "$aix_use_runtimelinking" = yes; then
16899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16900 # instead of lib<name>.a to let people know that these are not
16901 # typical AIX shared libraries.
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904 # We preserve .a as extension for shared libraries through AIX4.2
16905 # and later when we are not doing run time linking.
16906 library_names_spec='${libname}${release}.a $libname.a'
16907 soname_spec='${libname}${release}${shared_ext}$major'
16909 shlibpath_var=LIBPATH
16914 library_names_spec='$libname.ixlibrary $libname.a'
16915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16916 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'
16920 library_names_spec='${libname}${shared_ext}'
16921 dynamic_linker="$host_os ld.so"
16922 shlibpath_var=LIBRARY_PATH
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16929 soname_spec='${libname}${release}${shared_ext}$major'
16930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16934 # the default ld.so.conf also contains /usr/contrib/lib and
16935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16936 # libtool to hard-code these into programs
16939 cygwin* | mingw* | pw32*)
16940 version_type=windows
16945 case $GCC,$host_os in
16946 yes,cygwin* | yes,mingw* | yes,pw32*)
16947 library_names_spec='$libname.dll.a'
16948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16949 postinstall_cmds='base_file=`basename \${file}`~
16950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16951 dldir=$destdir/`dirname \$dlpath`~
16952 test -d \$dldir || mkdir -p \$dldir~
16953 $install_prog $dir/$dlname \$dldir/$dlname~
16954 chmod a+x \$dldir/$dlname'
16955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16956 dlpath=$dir/\$dldll~
16958 shlibpath_overrides_runpath=yes
16962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16967 # MinGW DLLs use traditional 'lib' prefix
16968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16971 # It is most probably a Windows format PATH printed by
16972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16973 # path with ; separators, and with drive letters. We can handle the
16974 # drive letters (cygwin fileutils understands them), so leave them,
16975 # especially as we might pass files found there to a mingw objdump,
16976 # which wouldn't understand a cygwinified path. Ahh.
16977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16983 # pw32 DLLs use 'pw' prefix rather than 'lib'
16984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16993 dynamic_linker='Win32 ld.exe'
16994 # FIXME: first we should search . and the directory the executable is in
16998 darwin* | rhapsody*)
16999 dynamic_linker="$host_os dyld"
17000 version_type=darwin
17003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17004 soname_spec='${libname}${release}${major}$shared_ext'
17005 shlibpath_overrides_runpath=yes
17006 shlibpath_var=DYLD_LIBRARY_PATH
17007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17009 if test "$GCC" = yes; then
17010 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"`
17012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 shlibpath_var=LD_LIBRARY_PATH
17030 freebsd* | dragonfly*)
17031 # DragonFly does not have aout. When/if they implement a new
17032 # versioning mechanism, adjust this.
17033 if test -x /usr/bin/objformat; then
17034 objformat=`/usr/bin/objformat`
17037 freebsd[123]*) objformat=aout ;;
17038 *) objformat=elf ;;
17041 version_type=freebsd-$objformat
17042 case $version_type in
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17053 shlibpath_var=LD_LIBRARY_PATH
17056 shlibpath_overrides_runpath=yes
17058 freebsd3.[01]* | freebsdelf3.[01]*)
17059 shlibpath_overrides_runpath=yes
17060 hardcode_into_libs=yes
17062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17064 shlibpath_overrides_runpath=no
17065 hardcode_into_libs=yes
17067 freebsd*) # from 4.6 on
17068 shlibpath_overrides_runpath=yes
17069 hardcode_into_libs=yes
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 hardcode_into_libs=yes
17084 hpux9* | hpux10* | hpux11*)
17085 # Give a soname corresponding to the major version so that dld.sl refuses to
17086 # link against other versions.
17093 hardcode_into_libs=yes
17094 dynamic_linker="$host_os dld.so"
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 if test "X$HPUX_IA64_MODE" = X32; then
17100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17108 hardcode_into_libs=yes
17109 dynamic_linker="$host_os dld.sl"
17110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17119 dynamic_linker="$host_os dld.sl"
17120 shlibpath_var=SHLIB_PATH
17121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17127 postinstall_cmds='chmod 555 $lib'
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=no
17139 hardcode_into_libs=yes
17142 irix5* | irix6* | nonstopux*)
17144 nonstopux*) version_type=nonstopux ;;
17146 if test "$lt_cv_prog_gnu_ld" = yes; then
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17157 irix5* | nonstopux*)
17158 libsuff= shlibsuff=
17161 case $LD in # libtool.m4 will add one of these switches to LD
17162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163 libsuff= shlibsuff= libmagic=32-bit;;
17164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165 libsuff=32 shlibsuff=N32 libmagic=N32;;
17166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168 *) libsuff= shlibsuff= libmagic=never-match;;
17172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176 hardcode_into_libs=yes
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17184 # This must be Linux ELF.
17185 linux* | k*bsd*-gnu)
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=no
17194 # This implies no fast_install, which is unacceptable.
17195 # Some rework will be needed to allow for fast_install
17196 # before this can be enabled.
17197 hardcode_into_libs=yes
17199 # Append ld.so.conf contents to the search path
17200 if test -f /etc/ld.so.conf; then
17201 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' ' '`
17202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17205 # We used to test for /lib/ld.so.1 and disable shared libraries on
17206 # powerpc, because MkLinux only supported shared libraries with the
17207 # GNU dynamic linker. Since this was broken with cross compilers,
17208 # most powerpc-linux boxes support dynamic linking these days and
17209 # people can always --disable-shared, the test was removed, and we
17210 # assume the GNU/Linux dynamic linker is in use.
17211 dynamic_linker='GNU/Linux ld.so'
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=no
17222 hardcode_into_libs=yes
17223 dynamic_linker='NetBSD ld.elf_so'
17230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17233 dynamic_linker='NetBSD (a.out) ld.so'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 dynamic_linker='NetBSD ld.elf_so'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=yes
17241 hardcode_into_libs=yes
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 shlibpath_var=LD_LIBRARY_PATH
17248 shlibpath_overrides_runpath=yes
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes
17263 sys_lib_dlsearch_path_spec="/usr/lib"
17265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17268 *) need_version=no ;;
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17272 shlibpath_var=LD_LIBRARY_PATH
17273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17275 openbsd2.[89] | openbsd2.[89].*)
17276 shlibpath_overrides_runpath=no
17279 shlibpath_overrides_runpath=yes
17283 shlibpath_overrides_runpath=yes
17288 libname_spec='$name'
17291 library_names_spec='$libname${shared_ext} $libname.a'
17292 dynamic_linker='OS/2 ld.exe'
17293 shlibpath_var=LIBPATH
17296 osf3* | osf4* | osf5*)
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=yes
17315 hardcode_into_libs=yes
17316 # ldd complains unless libraries are executable
17317 postinstall_cmds='chmod +x $lib'
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath=yes
17326 if test "$with_gnu_ld" = yes; then
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 case $host_vendor in
17339 shlibpath_overrides_runpath=no
17341 export_dynamic_flag_spec='${wl}-Blargedynsym'
17342 runpath_var=LD_RUN_PATH
17350 shlibpath_overrides_runpath=no
17351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17357 if test -d /usr/nec ;then
17359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17360 soname_spec='$libname${shared_ext}.$major'
17361 shlibpath_var=LD_LIBRARY_PATH
17365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17366 version_type=freebsd-elf
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 hardcode_into_libs=yes
17373 if test "$with_gnu_ld" = yes; then
17374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17375 shlibpath_overrides_runpath=no
17377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17378 shlibpath_overrides_runpath=yes
17381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17385 sys_lib_dlsearch_path_spec='/usr/lib'
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 shlibpath_var=LD_LIBRARY_PATH
17399 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17400 echo "${ECHO_T}$dynamic_linker" >&6; }
17401 test "$dynamic_linker" = no && can_build_shared=no
17403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17404 if test "$GCC" = yes; then
17405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17410 hardcode_action_F77=
17411 if test -n "$hardcode_libdir_flag_spec_F77" || \
17412 test -n "$runpath_var_F77" || \
17413 test "X$hardcode_automatic_F77" = "Xyes" ; then
17415 # We can hardcode non-existant directories.
17416 if test "$hardcode_direct_F77" != no &&
17417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17418 # have to relink, otherwise we might link with an installed library
17419 # when we should be linking with a yet-to-be-installed one
17420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17421 test "$hardcode_minus_L_F77" != no; then
17422 # Linking always hardcodes the temporary library directory.
17423 hardcode_action_F77=relink
17425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17426 hardcode_action_F77=immediate
17429 # We cannot hardcode anything, or else we can only hardcode existing
17431 hardcode_action_F77=unsupported
17433 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17434 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17436 if test "$hardcode_action_F77" = relink; then
17437 # Fast installation is not supported
17438 enable_fast_install=no
17439 elif test "$shlibpath_overrides_runpath" = yes ||
17440 test "$enable_shared" = no; then
17441 # Fast installation is not necessary
17442 enable_fast_install=needless
17446 # The else clause should only fire when bootstrapping the
17447 # libtool distribution, otherwise you forgot to ship ltmain.sh
17448 # with your package, and you will get complaints that there are
17449 # no rules to generate ltmain.sh.
17450 if test -f "$ltmain"; then
17451 # See if we are running on zsh, and set the options which allow our commands through
17452 # without removal of \ escapes.
17453 if test -n "${ZSH_VERSION+set}" ; then
17454 setopt NO_GLOB_SUBST
17456 # Now quote all the things that may contain metacharacters while being
17457 # careful not to overquote the AC_SUBSTed values. We take copies of the
17458 # variables and quote the copies for generation of the libtool script.
17459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17463 deplibs_check_method reload_flag reload_cmds need_locks \
17464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17465 lt_cv_sys_global_symbol_to_c_name_address \
17466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17467 old_postinstall_cmds old_postuninstall_cmds \
17471 lt_prog_compiler_wl_F77 \
17472 lt_prog_compiler_pic_F77 \
17473 lt_prog_compiler_static_F77 \
17474 lt_prog_compiler_no_builtin_flag_F77 \
17475 export_dynamic_flag_spec_F77 \
17476 thread_safe_flag_spec_F77 \
17477 whole_archive_flag_spec_F77 \
17478 enable_shared_with_static_runtimes_F77 \
17479 old_archive_cmds_F77 \
17480 old_archive_from_new_cmds_F77 \
17481 predep_objects_F77 \
17482 postdep_objects_F77 \
17485 compiler_lib_search_path_F77 \
17487 archive_expsym_cmds_F77 \
17488 postinstall_cmds_F77 \
17489 postuninstall_cmds_F77 \
17490 old_archive_from_expsyms_cmds_F77 \
17491 allow_undefined_flag_F77 \
17492 no_undefined_flag_F77 \
17493 export_symbols_cmds_F77 \
17494 hardcode_libdir_flag_spec_F77 \
17495 hardcode_libdir_flag_spec_ld_F77 \
17496 hardcode_libdir_separator_F77 \
17497 hardcode_automatic_F77 \
17499 module_expsym_cmds_F77 \
17500 lt_cv_prog_compiler_c_o_F77 \
17501 exclude_expsyms_F77 \
17502 include_expsyms_F77; do
17505 old_archive_cmds_F77 | \
17506 old_archive_from_new_cmds_F77 | \
17507 archive_cmds_F77 | \
17508 archive_expsym_cmds_F77 | \
17509 module_cmds_F77 | \
17510 module_expsym_cmds_F77 | \
17511 old_archive_from_expsyms_cmds_F77 | \
17512 export_symbols_cmds_F77 | \
17513 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17514 postinstall_cmds | postuninstall_cmds | \
17515 old_postinstall_cmds | old_postuninstall_cmds | \
17516 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17517 # Double-quote double-evaled strings.
17518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17527 *'\$0 --fallback-echo"')
17528 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17534 cat <<__EOF__ >> "$cfgfile"
17535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17539 # Shell to use when invoking shell scripts.
17542 # Whether or not to build shared libraries.
17543 build_libtool_libs=$enable_shared
17545 # Whether or not to build static libraries.
17546 build_old_libs=$enable_static
17548 # Whether or not to add -lc for building shared libraries.
17549 build_libtool_need_lc=$archive_cmds_need_lc_F77
17551 # Whether or not to disallow shared libs when runtime libs are static
17552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17554 # Whether or not to optimize for fast installation.
17555 fast_install=$enable_fast_install
17558 host_alias=$host_alias
17562 # The build system.
17563 build_alias=$build_alias
17567 # An echo program that does not interpret backslashes.
17572 AR_FLAGS=$lt_AR_FLAGS
17577 # LTCC compiler flags.
17578 LTCFLAGS=$lt_LTCFLAGS
17580 # A language-specific compiler.
17581 CC=$lt_compiler_F77
17583 # Is the compiler the GNU C compiler?
17589 # The linker used to build libraries.
17592 # Whether we need hard or soft links.
17595 # A BSD-compatible nm program.
17598 # A symbol stripping program
17601 # Used to examine libraries when file_magic_cmd begins "file"
17602 MAGIC_CMD=$MAGIC_CMD
17604 # Used on cygwin: DLL creation program.
17607 # Used on cygwin: object dumper.
17610 # Used on cygwin: assembler.
17613 # The name of the directory that contains temporary libtool files.
17616 # How to create reloadable object files.
17617 reload_flag=$lt_reload_flag
17618 reload_cmds=$lt_reload_cmds
17620 # How to pass a linker flag through the compiler.
17621 wl=$lt_lt_prog_compiler_wl_F77
17623 # Object file suffix (normally "o").
17624 objext="$ac_objext"
17626 # Old archive suffix (normally "a").
17629 # Shared library suffix (normally ".so").
17630 shrext_cmds='$shrext_cmds'
17632 # Executable file suffix (normally "").
17635 # Additional compiler flags for building library objects.
17636 pic_flag=$lt_lt_prog_compiler_pic_F77
17639 # What is the maximum length of a command?
17640 max_cmd_len=$lt_cv_sys_max_cmd_len
17642 # Does compiler simultaneously support -c and -o options?
17643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17645 # Must we lock files when doing compilation?
17646 need_locks=$lt_need_locks
17648 # Do we need the lib prefix for modules?
17649 need_lib_prefix=$need_lib_prefix
17651 # Do we need a version for libraries?
17652 need_version=$need_version
17654 # Whether dlopen is supported.
17655 dlopen_support=$enable_dlopen
17657 # Whether dlopen of programs is supported.
17658 dlopen_self=$enable_dlopen_self
17660 # Whether dlopen of statically linked programs is supported.
17661 dlopen_self_static=$enable_dlopen_self_static
17663 # Compiler flag to prevent dynamic linking.
17664 link_static_flag=$lt_lt_prog_compiler_static_F77
17666 # Compiler flag to turn off builtin functions.
17667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17669 # Compiler flag to allow reflexive dlopens.
17670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17672 # Compiler flag to generate shared objects directly from archives.
17673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17675 # Compiler flag to generate thread-safe objects.
17676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17678 # Library versioning type.
17679 version_type=$version_type
17681 # Format of library name prefix.
17682 libname_spec=$lt_libname_spec
17684 # List of archive names. First name is the real one, the rest are links.
17685 # The last name is the one that the linker finds with -lNAME.
17686 library_names_spec=$lt_library_names_spec
17688 # The coded name of the library, if different from the real name.
17689 soname_spec=$lt_soname_spec
17691 # Commands used to build and install an old-style archive.
17693 old_archive_cmds=$lt_old_archive_cmds_F77
17694 old_postinstall_cmds=$lt_old_postinstall_cmds
17695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17697 # Create an old-style archive from a shared archive.
17698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17700 # Create a temporary old-style archive to link instead of a shared archive.
17701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17703 # Commands used to build and install a shared archive.
17704 archive_cmds=$lt_archive_cmds_F77
17705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17706 postinstall_cmds=$lt_postinstall_cmds
17707 postuninstall_cmds=$lt_postuninstall_cmds
17709 # Commands used to build a loadable module (assumed same as above if empty)
17710 module_cmds=$lt_module_cmds_F77
17711 module_expsym_cmds=$lt_module_expsym_cmds_F77
17713 # Commands to strip libraries.
17714 old_striplib=$lt_old_striplib
17715 striplib=$lt_striplib
17717 # Dependencies to place before the objects being linked to create a
17719 predep_objects=$lt_predep_objects_F77
17721 # Dependencies to place after the objects being linked to create a
17723 postdep_objects=$lt_postdep_objects_F77
17725 # Dependencies to place before the objects being linked to create a
17727 predeps=$lt_predeps_F77
17729 # Dependencies to place after the objects being linked to create a
17731 postdeps=$lt_postdeps_F77
17733 # The library search path used internally by the compiler when linking
17734 # a shared library.
17735 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17737 # Method to check whether dependent libraries are shared objects.
17738 deplibs_check_method=$lt_deplibs_check_method
17740 # Command to use when deplibs_check_method == file_magic.
17741 file_magic_cmd=$lt_file_magic_cmd
17743 # Flag that allows shared libraries with undefined symbols to be built.
17744 allow_undefined_flag=$lt_allow_undefined_flag_F77
17746 # Flag that forces no undefined symbols.
17747 no_undefined_flag=$lt_no_undefined_flag_F77
17749 # Commands used to finish a libtool library installation in a directory.
17750 finish_cmds=$lt_finish_cmds
17752 # Same as above, but a single script fragment to be evaled but not shown.
17753 finish_eval=$lt_finish_eval
17755 # Take the output of nm and produce a listing of raw symbols and C names.
17756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17758 # Transform the output of nm in a proper C declaration
17759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17761 # Transform the output of nm in a C name address pair
17762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17764 # This is the shared library runtime path variable.
17765 runpath_var=$runpath_var
17767 # This is the shared library path variable.
17768 shlibpath_var=$shlibpath_var
17770 # Is shlibpath searched before the hard-coded library search path?
17771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17773 # How to hardcode a shared library path into an executable.
17774 hardcode_action=$hardcode_action_F77
17776 # Whether we should hardcode library paths into libraries.
17777 hardcode_into_libs=$hardcode_into_libs
17779 # Flag to hardcode \$libdir into a binary during linking.
17780 # This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17783 # If ld is used when linking, flag to hardcode \$libdir into
17784 # a binary during linking. This must work even if \$libdir does
17786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17788 # Whether we need a single -rpath flag with a separated argument.
17789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17792 # resulting binary.
17793 hardcode_direct=$hardcode_direct_F77
17795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17796 # resulting binary.
17797 hardcode_minus_L=$hardcode_minus_L_F77
17799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17800 # the resulting binary.
17801 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17803 # Set to yes if building a shared library automatically hardcodes DIR into the library
17804 # and all subsequent libraries and executables linked against it.
17805 hardcode_automatic=$hardcode_automatic_F77
17807 # Variables whose values should be saved in libtool wrapper scripts and
17808 # restored at relink time.
17809 variables_saved_for_relink="$variables_saved_for_relink"
17811 # Whether libtool must link a program against all its dependency libraries.
17812 link_all_deplibs=$link_all_deplibs_F77
17814 # Compile-time system search path for libraries
17815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17817 # Run-time system search path for libraries
17818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17820 # Fix the shell variable \$srcfile for the compiler.
17821 fix_srcfile_path="$fix_srcfile_path_F77"
17823 # Set to yes if exported symbols are required.
17824 always_export_symbols=$always_export_symbols_F77
17826 # The commands to list exported symbols.
17827 export_symbols_cmds=$lt_export_symbols_cmds_F77
17829 # The commands to extract the exported symbol list from a shared archive.
17830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17832 # Symbols that should not be listed in the preloaded symbols.
17833 exclude_expsyms=$lt_exclude_expsyms_F77
17835 # Symbols that must always be exported.
17836 include_expsyms=$lt_include_expsyms_F77
17838 # ### END LIBTOOL TAG CONFIG: $tagname
17844 # If there is no Makefile yet, we rely on a make rule to execute
17845 # `config.status --recheck' to rerun these tests and create the
17846 # libtool script then.
17847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17848 if test -f "$ltmain_in"; then
17849 test -f Makefile && make "$ltmain"
17855 ac_cpp='$CPP $CPPFLAGS'
17856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17871 # Source file extension for Java test sources.
17874 # Object file extension for compiled Java test sources.
17878 # Code to be used in simple compile tests
17879 lt_simple_compile_test_code="class foo {}\n"
17881 # Code to be used in simple link tests
17882 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17886 # If no C compiler was specified, use CC.
17889 # If no C compiler flags were specified, use CFLAGS.
17890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17892 # Allow CC to be a program name with arguments.
17896 # save warnings/boilerplate of simple test code
17897 ac_outfile=conftest.$ac_objext
17898 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17900 _lt_compiler_boilerplate=`cat conftest.err`
17903 ac_outfile=conftest.$ac_objext
17904 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17906 _lt_linker_boilerplate=`cat conftest.err`
17910 # Allow CC to be a program name with arguments.
17915 for cc_temp in $compiler""; do
17917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17926 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17927 archive_cmds_need_lc_GCJ=no
17929 old_archive_cmds_GCJ=$old_archive_cmds
17932 lt_prog_compiler_no_builtin_flag_GCJ=
17934 if test "$GCC" = yes; then
17935 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17938 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17939 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17940 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 lt_cv_prog_compiler_rtti_exceptions=no
17944 ac_outfile=conftest.$ac_objext
17945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17946 lt_compiler_flag="-fno-rtti -fno-exceptions"
17947 # Insert the option either (1) after the last *FLAGS variable, or
17948 # (2) before a word containing "conftest.", or (3) at the end.
17949 # Note that $ac_compile itself does not contain backslashes and begins
17950 # with a dollar sign (not a hyphen), so the echo should work correctly.
17951 # The option is referenced via a variable to avoid confusing sed.
17952 lt_compile=`echo "$ac_compile" | $SED \
17953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17955 -e 's:$: $lt_compiler_flag:'`
17956 (eval echo "\"\$as_me:17956: $lt_compile\"" >&5)
17957 (eval "$lt_compile" 2>conftest.err)
17959 cat conftest.err >&5
17960 echo "$as_me:17960: \$? = $ac_status" >&5
17961 if (exit $ac_status) && test -s "$ac_outfile"; then
17962 # The compiler can only warn and ignore the option if not recognized
17963 # So say no if there are warnings other than the usual output.
17964 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17967 lt_cv_prog_compiler_rtti_exceptions=yes
17973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17974 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17976 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17977 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17984 lt_prog_compiler_wl_GCJ=
17985 lt_prog_compiler_pic_GCJ=
17986 lt_prog_compiler_static_GCJ=
17988 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17989 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17991 if test "$GCC" = yes; then
17992 lt_prog_compiler_wl_GCJ='-Wl,'
17993 lt_prog_compiler_static_GCJ='-static'
17997 # All AIX code is PIC.
17998 if test "$host_cpu" = ia64; then
17999 # AIX 5 now supports IA64 processor
18000 lt_prog_compiler_static_GCJ='-Bstatic'
18005 # FIXME: we need at least 68020 code to build shared libraries, but
18006 # adding the `-m68020' flag to GCC prevents building anything better,
18008 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18011 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18012 # PIC is the default for these OSes.
18015 mingw* | pw32* | os2*)
18016 # This hack is so that the source file can tell whether it is being
18017 # built for inclusion in a dll (and should export symbols for example).
18018 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18021 darwin* | rhapsody*)
18022 # PIC is the default on this platform
18023 # Common symbols not allowed in MH_DYLIB files
18024 lt_prog_compiler_pic_GCJ='-fno-common'
18028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18029 # Instead, we relocate shared libraries at runtime.
18033 # Just because we use GCC doesn't mean we suddenly get shared libraries
18034 # on systems that don't support them.
18035 lt_prog_compiler_can_build_shared_GCJ=no
18040 if test -d /usr/nec; then
18041 lt_prog_compiler_pic_GCJ=-Kconform_pic
18046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18047 # not for PA HP-UX.
18053 lt_prog_compiler_pic_GCJ='-fPIC'
18059 lt_prog_compiler_pic_GCJ='-fPIC'
18063 # PORTME Check for flag to pass linker flags through the system compiler.
18066 lt_prog_compiler_wl_GCJ='-Wl,'
18067 if test "$host_cpu" = ia64; then
18068 # AIX 5 now supports IA64 processor
18069 lt_prog_compiler_static_GCJ='-Bstatic'
18071 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18075 # PIC is the default on this platform
18076 # Common symbols not allowed in MH_DYLIB files
18077 case $cc_basename in
18079 lt_prog_compiler_pic_GCJ='-qnocommon'
18080 lt_prog_compiler_wl_GCJ='-Wl,'
18085 mingw* | pw32* | os2*)
18086 # This hack is so that the source file can tell whether it is being
18087 # built for inclusion in a dll (and should export symbols for example).
18088 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18091 hpux9* | hpux10* | hpux11*)
18092 lt_prog_compiler_wl_GCJ='-Wl,'
18093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18094 # not for PA HP-UX.
18100 lt_prog_compiler_pic_GCJ='+Z'
18103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18104 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18107 irix5* | irix6* | nonstopux*)
18108 lt_prog_compiler_wl_GCJ='-Wl,'
18109 # PIC (with -KPIC) is the default.
18110 lt_prog_compiler_static_GCJ='-non_shared'
18114 lt_prog_compiler_pic_GCJ='-KPIC'
18115 lt_prog_compiler_static_GCJ='-Bstatic'
18118 linux* | k*bsd*-gnu)
18119 case $cc_basename in
18121 lt_prog_compiler_wl_GCJ='-Wl,'
18122 lt_prog_compiler_pic_GCJ='-KPIC'
18123 lt_prog_compiler_static_GCJ='-static'
18125 pgcc* | pgf77* | pgf90* | pgf95*)
18126 # Portland Group compilers (*not* the Pentium gcc compiler,
18127 # which looks to be a dead project)
18128 lt_prog_compiler_wl_GCJ='-Wl,'
18129 lt_prog_compiler_pic_GCJ='-fpic'
18130 lt_prog_compiler_static_GCJ='-Bstatic'
18133 lt_prog_compiler_wl_GCJ='-Wl,'
18134 # All Alpha code is PIC.
18135 lt_prog_compiler_static_GCJ='-non_shared'
18140 osf3* | osf4* | osf5*)
18141 lt_prog_compiler_wl_GCJ='-Wl,'
18142 # All OSF/1 code is PIC.
18143 lt_prog_compiler_static_GCJ='-non_shared'
18147 lt_prog_compiler_pic_GCJ='-KPIC'
18148 lt_prog_compiler_static_GCJ='-Bstatic'
18149 case $cc_basename in
18150 f77* | f90* | f95*)
18151 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18153 lt_prog_compiler_wl_GCJ='-Wl,';;
18158 lt_prog_compiler_wl_GCJ='-Qoption ld '
18159 lt_prog_compiler_pic_GCJ='-PIC'
18160 lt_prog_compiler_static_GCJ='-Bstatic'
18163 sysv4 | sysv4.2uw2* | sysv4.3*)
18164 lt_prog_compiler_wl_GCJ='-Wl,'
18165 lt_prog_compiler_pic_GCJ='-KPIC'
18166 lt_prog_compiler_static_GCJ='-Bstatic'
18170 if test -d /usr/nec ;then
18171 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18172 lt_prog_compiler_static_GCJ='-Bstatic'
18176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18177 lt_prog_compiler_wl_GCJ='-Wl,'
18178 lt_prog_compiler_pic_GCJ='-KPIC'
18179 lt_prog_compiler_static_GCJ='-Bstatic'
18183 lt_prog_compiler_wl_GCJ='-Wl,'
18184 lt_prog_compiler_can_build_shared_GCJ=no
18188 lt_prog_compiler_pic_GCJ='-pic'
18189 lt_prog_compiler_static_GCJ='-Bstatic'
18193 lt_prog_compiler_can_build_shared_GCJ=no
18198 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18199 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18202 # Check to make sure the PIC flag actually works.
18204 if test -n "$lt_prog_compiler_pic_GCJ"; then
18206 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18207 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18208 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 lt_prog_compiler_pic_works_GCJ=no
18212 ac_outfile=conftest.$ac_objext
18213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18214 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18215 # Insert the option either (1) after the last *FLAGS variable, or
18216 # (2) before a word containing "conftest.", or (3) at the end.
18217 # Note that $ac_compile itself does not contain backslashes and begins
18218 # with a dollar sign (not a hyphen), so the echo should work correctly.
18219 # The option is referenced via a variable to avoid confusing sed.
18220 lt_compile=`echo "$ac_compile" | $SED \
18221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18223 -e 's:$: $lt_compiler_flag:'`
18224 (eval echo "\"\$as_me:18224: $lt_compile\"" >&5)
18225 (eval "$lt_compile" 2>conftest.err)
18227 cat conftest.err >&5
18228 echo "$as_me:18228: \$? = $ac_status" >&5
18229 if (exit $ac_status) && test -s "$ac_outfile"; then
18230 # The compiler can only warn and ignore the option if not recognized
18231 # So say no if there are warnings other than the usual output.
18232 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18235 lt_prog_compiler_pic_works_GCJ=yes
18241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18242 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18244 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18245 case $lt_prog_compiler_pic_GCJ in
18247 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18250 lt_prog_compiler_pic_GCJ=
18251 lt_prog_compiler_can_build_shared_GCJ=no
18256 # For platforms which do not support PIC, -DPIC is meaningless:
18258 lt_prog_compiler_pic_GCJ=
18261 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18266 # Check to make sure the static flag actually works.
18268 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18269 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18270 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18271 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18274 lt_prog_compiler_static_works_GCJ=no
18275 save_LDFLAGS="$LDFLAGS"
18276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18277 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18279 # The linker can only warn and ignore the option if not recognized
18280 # So say no if there are warnings
18281 if test -s conftest.err; then
18282 # Append any errors to the config.log.
18283 cat conftest.err 1>&5
18284 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18286 if diff conftest.exp conftest.er2 >/dev/null; then
18287 lt_prog_compiler_static_works_GCJ=yes
18290 lt_prog_compiler_static_works_GCJ=yes
18294 LDFLAGS="$save_LDFLAGS"
18297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18298 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18300 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18303 lt_prog_compiler_static_GCJ=
18307 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18309 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 lt_cv_prog_compiler_c_o_GCJ=no
18313 $rm -r conftest 2>/dev/null
18317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18319 lt_compiler_flag="-o out/conftest2.$ac_objext"
18320 # Insert the option either (1) after the last *FLAGS variable, or
18321 # (2) before a word containing "conftest.", or (3) at the end.
18322 # Note that $ac_compile itself does not contain backslashes and begins
18323 # with a dollar sign (not a hyphen), so the echo should work correctly.
18324 lt_compile=`echo "$ac_compile" | $SED \
18325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18327 -e 's:$: $lt_compiler_flag:'`
18328 (eval echo "\"\$as_me:18328: $lt_compile\"" >&5)
18329 (eval "$lt_compile" 2>out/conftest.err)
18331 cat out/conftest.err >&5
18332 echo "$as_me:18332: \$? = $ac_status" >&5
18333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18335 # The compiler can only warn and ignore the option if not recognized
18336 # So say no if there are warnings
18337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18340 lt_cv_prog_compiler_c_o_GCJ=yes
18345 # SGI C++ compiler will create directory out/ii_files/ for
18346 # template instantiation
18347 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18348 $rm out/* && rmdir out
18354 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18358 hard_links="nottested"
18359 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18360 # do not overwrite the value of need_locks provided by the user
18361 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18362 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18367 ln conftest.a conftest.b 2>&5 || hard_links=no
18368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18369 { echo "$as_me:$LINENO: result: $hard_links" >&5
18370 echo "${ECHO_T}$hard_links" >&6; }
18371 if test "$hard_links" = no; then
18372 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18373 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18380 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18384 allow_undefined_flag_GCJ=
18385 enable_shared_with_static_runtimes_GCJ=no
18387 archive_expsym_cmds_GCJ=
18388 old_archive_From_new_cmds_GCJ=
18389 old_archive_from_expsyms_cmds_GCJ=
18390 export_dynamic_flag_spec_GCJ=
18391 whole_archive_flag_spec_GCJ=
18392 thread_safe_flag_spec_GCJ=
18393 hardcode_libdir_flag_spec_GCJ=
18394 hardcode_libdir_flag_spec_ld_GCJ=
18395 hardcode_libdir_separator_GCJ=
18396 hardcode_direct_GCJ=no
18397 hardcode_minus_L_GCJ=no
18398 hardcode_shlibpath_var_GCJ=unsupported
18399 link_all_deplibs_GCJ=unknown
18400 hardcode_automatic_GCJ=no
18402 module_expsym_cmds_GCJ=
18403 always_export_symbols_GCJ=no
18404 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18405 # include_expsyms should be a list of space-separated symbols to be *always*
18406 # included in the symbol list
18407 include_expsyms_GCJ=
18408 # exclude_expsyms can be an extended regexp of symbols to exclude
18409 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18410 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18411 # as well as any symbol that contains `d'.
18412 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18414 # platforms (ab)use it in PIC code, but their linkers get confused if
18415 # the symbol is explicitly referenced. Since portable code cannot
18416 # rely on this symbol name, it's probably fine to never include it in
18417 # preloaded symbol tables.
18418 extract_expsyms_cmds=
18419 # Just being paranoid about ensuring that cc_basename is set.
18420 for cc_temp in $compiler""; do
18422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18431 cygwin* | mingw* | pw32*)
18432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18433 # When not using gcc, we currently assume that we are using
18434 # Microsoft Visual C++.
18435 if test "$GCC" != yes; then
18440 # we just hope/assume this is gcc and not c89 (= MSVC++)
18449 if test "$with_gnu_ld" = yes; then
18450 # If archive_cmds runs LD, not CC, wlarc should be empty
18453 # Set some defaults for GNU ld with shared library support. These
18454 # are reset later if shared libraries are not supported. Putting them
18455 # here allows them to be overridden if necessary.
18456 runpath_var=LD_RUN_PATH
18457 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18458 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18459 # ancient GNU ld didn't support --whole-archive et. al.
18460 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18461 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18463 whole_archive_flag_spec_GCJ=
18465 supports_anon_versioning=no
18466 case `$LD -v 2>/dev/null` in
18467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18470 *\ 2.11.*) ;; # other 2.11 versions
18471 *) supports_anon_versioning=yes ;;
18474 # See if GNU ld supports shared libraries.
18476 aix3* | aix4* | aix5*)
18477 # On AIX/PPC, the GNU linker is very broken
18478 if test "$host_cpu" != ia64; then
18482 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18483 *** to be unable to reliably create shared libraries on AIX.
18484 *** Therefore, libtool is disabling shared libraries support. If you
18485 *** really care for shared libraries, you may want to modify your PATH
18486 *** so that a non-GNU linker is found, and then restart.
18493 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)'
18494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18495 hardcode_minus_L_GCJ=yes
18497 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18498 # that the semantics of dynamic libraries on AmigaOS, at least up
18499 # to version 4, is to share data among multiple programs linked
18500 # with the same dynamic library. Since this doesn't match the
18501 # behavior of shared libraries on other platforms, we can't use
18507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18508 allow_undefined_flag_GCJ=unsupported
18509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18510 # support --undefined. This deserves some investigation. FIXME
18511 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18517 cygwin* | mingw* | pw32*)
18518 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18519 # as there is no search path for DLLs.
18520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18521 allow_undefined_flag_GCJ=unsupported
18522 always_export_symbols_GCJ=no
18523 enable_shared_with_static_runtimes_GCJ=yes
18524 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18526 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18528 # If the export-symbols file already is a .def file (1st line
18529 # is EXPORTS), use it as is; otherwise, prepend...
18530 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18531 cp $export_symbols $output_objdir/$soname.def;
18533 echo EXPORTS > $output_objdir/$soname.def;
18534 cat $export_symbols >> $output_objdir/$soname.def;
18536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18543 hardcode_direct_GCJ=no
18544 hardcode_shlibpath_var_GCJ=no
18545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18546 export_dynamic_flag_spec_GCJ='${wl}-E'
18547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18548 # Instead, shared libraries are loaded at an image base (0x10000000 by
18549 # default) and relocated if they conflict, which is a slow very memory
18550 # consuming and fragmenting process. To avoid this, we pick a random,
18551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18553 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'
18554 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'
18557 linux* | k*bsd*-gnu)
18558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18560 case $cc_basename,$host_cpu in
18561 pgcc*) # Portland Group C compiler
18562 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'
18563 tmp_addflag=' $pic_flag'
18565 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18566 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'
18567 tmp_addflag=' $pic_flag -Mnomain' ;;
18568 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18569 tmp_addflag=' -i_dynamic' ;;
18570 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18571 tmp_addflag=' -i_dynamic -nofor_main' ;;
18572 ifc* | ifort*) # Intel Fortran compiler
18573 tmp_addflag=' -nofor_main' ;;
18575 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18577 if test $supports_anon_versioning = yes; then
18578 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18580 $echo "local: *; };" >> $output_objdir/$libname.ver~
18581 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18583 link_all_deplibs_GCJ=no
18589 netbsd* | netbsdelf*-gnu)
18590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18591 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18594 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18595 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18600 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18605 *** create shared libraries on Solaris systems. Therefore, libtool
18606 *** is disabling shared libraries support. We urge you to upgrade GNU
18607 *** binutils to release 2.9.1 or newer. Another option is to modify
18608 *** your PATH or compiler configuration so that the native linker is
18609 *** used, and then restart.
18612 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18613 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18614 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18621 case `$LD -v 2>&1` in
18622 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18627 *** reliably create shared libraries on SCO systems. Therefore, libtool
18628 *** is disabling shared libraries support. We urge you to upgrade GNU
18629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18630 *** your PATH or compiler configuration so that the native linker is
18631 *** used, and then restart.
18636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18637 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18638 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18639 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18648 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18650 hardcode_direct_GCJ=yes
18651 hardcode_shlibpath_var_GCJ=no
18655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18656 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18664 if test "$ld_shlibs_GCJ" = no; then
18666 hardcode_libdir_flag_spec_GCJ=
18667 export_dynamic_flag_spec_GCJ=
18668 whole_archive_flag_spec_GCJ=
18671 # PORTME fill in a description of your system's linker (not GNU ld)
18674 allow_undefined_flag_GCJ=unsupported
18675 always_export_symbols_GCJ=yes
18676 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'
18677 # Note: this linker hardcodes the directories in LIBPATH if there
18678 # are no directories specified by -L.
18679 hardcode_minus_L_GCJ=yes
18680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18681 # Neither direct hardcoding nor static linking is supported with a
18683 hardcode_direct_GCJ=unsupported
18688 if test "$host_cpu" = ia64; then
18689 # On IA64, the linker does run time linking by default, so we don't
18690 # have to do anything special.
18691 aix_use_runtimelinking=no
18692 exp_sym_flag='-Bexport'
18695 # If we're using GNU nm, then we don't want the "-C" option.
18696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18697 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18698 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'
18700 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'
18702 aix_use_runtimelinking=no
18704 # Test if we are trying to use run time linking or normal
18705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18706 # need to do runtime linking.
18707 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18708 for ld_flag in $LDFLAGS; do
18709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18710 aix_use_runtimelinking=yes
18717 exp_sym_flag='-bexport'
18718 no_entry_flag='-bnoentry'
18721 # When large executables or shared objects are built, AIX ld can
18722 # have problems creating the table of contents. If linking a library
18723 # or program results in "error TOC overflow" add -mminimal-toc to
18724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18727 archive_cmds_GCJ=''
18728 hardcode_direct_GCJ=yes
18729 hardcode_libdir_separator_GCJ=':'
18730 link_all_deplibs_GCJ=yes
18732 if test "$GCC" = yes; then
18733 case $host_os in aix4.[012]|aix4.[012].*)
18734 # We only want to do this on AIX 4.2 and lower, the check
18735 # below for broken collect2 doesn't work under 4.3+
18736 collect2name=`${CC} -print-prog-name=collect2`
18737 if test -f "$collect2name" && \
18738 strings "$collect2name" | grep resolve_lib_name >/dev/null
18740 # We have reworked collect2
18741 hardcode_direct_GCJ=yes
18743 # We have old collect2
18744 hardcode_direct_GCJ=unsupported
18745 # It fails to find uninstalled libraries when the uninstalled
18746 # path is not listed in the libpath. Setting hardcode_minus_L
18747 # to unsupported forces relinking
18748 hardcode_minus_L_GCJ=yes
18749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18750 hardcode_libdir_separator_GCJ=
18754 shared_flag='-shared'
18755 if test "$aix_use_runtimelinking" = yes; then
18756 shared_flag="$shared_flag "'${wl}-G'
18760 if test "$host_cpu" = ia64; then
18761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18762 # chokes on -Wl,-G. The following line is correct:
18765 if test "$aix_use_runtimelinking" = yes; then
18766 shared_flag='${wl}-G'
18768 shared_flag='${wl}-bM:SRE'
18773 # It seems that -bexpall does not export symbols beginning with
18774 # underscore (_), so it is better to generate a list of symbols to export.
18775 always_export_symbols_GCJ=yes
18776 if test "$aix_use_runtimelinking" = yes; then
18777 # Warning - without using the other runtime loading flags (-brtl),
18778 # -berok will link without error, but may produce a broken library.
18779 allow_undefined_flag_GCJ='-berok'
18780 # Determine the default libpath from the value encoded in an empty executable.
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18796 rm -f conftest.$ac_objext conftest$ac_exeext
18797 if { (ac_try="$ac_link"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_link") 2>conftest.er1
18805 grep -v '^ *+' conftest.er1 >conftest.err
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } &&
18810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; } &&
18820 { ac_try='test -s conftest$ac_exeext'
18821 { (case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_try") 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18833 # Check for a 64-bit object if we didn't find anything.
18834 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; }
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18843 rm -f conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18848 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"
18850 if test "$host_cpu" = ia64; then
18851 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18852 allow_undefined_flag_GCJ="-z nodefs"
18853 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"
18855 # Determine the default libpath from the value encoded in an empty executable.
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18908 # Check for a 64-bit object if we didn't find anything.
18909 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; }
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18918 rm -f conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18922 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18923 # Warning - without using the other run time loading flags,
18924 # -berok will link without error, but may produce a broken library.
18925 no_undefined_flag_GCJ=' ${wl}-bernotok'
18926 allow_undefined_flag_GCJ=' ${wl}-berok'
18927 # Exported symbols can be pulled into shared objects from archives
18928 whole_archive_flag_spec_GCJ='$convenience'
18929 archive_cmds_need_lc_GCJ=yes
18930 # This is similar to how AIX traditionally builds its shared libraries.
18931 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'
18937 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)'
18938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18939 hardcode_minus_L_GCJ=yes
18940 # see comment about different semantics on the GNU ld section
18945 export_dynamic_flag_spec_GCJ=-rdynamic
18948 cygwin* | mingw* | pw32*)
18949 # When not using gcc, we currently assume that we are using
18950 # Microsoft Visual C++.
18951 # hardcode_libdir_flag_spec is actually meaningless, as there is
18952 # no search path for DLLs.
18953 hardcode_libdir_flag_spec_GCJ=' '
18954 allow_undefined_flag_GCJ=unsupported
18955 # Tell ltmain to make .lib files, not .a files.
18957 # Tell ltmain to make .dll files, not .so files.
18959 # FIXME: Setting linknames here is a bad hack.
18960 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18961 # The linker will automatically build a .lib file if we build a DLL.
18962 old_archive_From_new_cmds_GCJ='true'
18963 # FIXME: Should let the user specify the lib program.
18964 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18965 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18966 enable_shared_with_static_runtimes_GCJ=yes
18969 darwin* | rhapsody*)
18971 rhapsody* | darwin1.[012])
18972 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18975 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18976 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18978 case ${MACOSX_DEPLOYMENT_TARGET} in
18980 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18983 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18989 archive_cmds_need_lc_GCJ=no
18990 hardcode_direct_GCJ=no
18991 hardcode_automatic_GCJ=yes
18992 hardcode_shlibpath_var_GCJ=unsupported
18993 whole_archive_flag_spec_GCJ=''
18994 link_all_deplibs_GCJ=yes
18995 if test "$GCC" = yes ; then
18996 output_verbose_link_cmd='echo'
18997 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18998 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19000 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}'
19001 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}'
19003 case $cc_basename in
19005 output_verbose_link_cmd='echo'
19006 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19007 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19009 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}'
19010 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}'
19020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19022 hardcode_shlibpath_var_GCJ=no
19029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19030 # support. Future versions do this automatically, but an explicit c++rt0.o
19031 # does not break anything, and helps significantly (at the cost of a little
19034 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19036 hardcode_direct_GCJ=yes
19037 hardcode_shlibpath_var_GCJ=no
19040 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19042 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19043 hardcode_direct_GCJ=yes
19044 hardcode_minus_L_GCJ=yes
19045 hardcode_shlibpath_var_GCJ=no
19048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19049 freebsd* | dragonfly*)
19050 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19052 hardcode_direct_GCJ=yes
19053 hardcode_shlibpath_var_GCJ=no
19057 if test "$GCC" = yes; then
19058 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'
19060 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'
19062 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19063 hardcode_libdir_separator_GCJ=:
19064 hardcode_direct_GCJ=yes
19066 # hardcode_minus_L: Not really in the search PATH,
19067 # but as the default location of the library.
19068 hardcode_minus_L_GCJ=yes
19069 export_dynamic_flag_spec_GCJ='${wl}-E'
19073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19074 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19076 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19078 if test "$with_gnu_ld" = no; then
19079 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19080 hardcode_libdir_separator_GCJ=:
19082 hardcode_direct_GCJ=yes
19083 export_dynamic_flag_spec_GCJ='${wl}-E'
19085 # hardcode_minus_L: Not really in the search PATH,
19086 # but as the default location of the library.
19087 hardcode_minus_L_GCJ=yes
19092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19095 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19098 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19101 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19107 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19110 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19113 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19117 if test "$with_gnu_ld" = no; then
19118 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_GCJ=:
19123 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19124 hardcode_direct_GCJ=no
19125 hardcode_shlibpath_var_GCJ=no
19128 hardcode_direct_GCJ=yes
19129 export_dynamic_flag_spec_GCJ='${wl}-E'
19131 # hardcode_minus_L: Not really in the search PATH,
19132 # but as the default location of the library.
19133 hardcode_minus_L_GCJ=yes
19139 irix5* | irix6* | nonstopux*)
19140 if test "$GCC" = yes; then
19141 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'
19143 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'
19144 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19146 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19147 hardcode_libdir_separator_GCJ=:
19148 link_all_deplibs_GCJ=yes
19151 netbsd* | netbsdelf*-gnu)
19152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19153 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19155 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19157 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19158 hardcode_direct_GCJ=yes
19159 hardcode_shlibpath_var_GCJ=no
19163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19164 hardcode_direct_GCJ=yes
19165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19166 hardcode_libdir_separator_GCJ=:
19167 hardcode_shlibpath_var_GCJ=no
19171 hardcode_direct_GCJ=yes
19172 hardcode_shlibpath_var_GCJ=no
19173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19174 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19175 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19177 export_dynamic_flag_spec_GCJ='${wl}-E'
19180 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19182 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19185 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19193 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19194 hardcode_minus_L_GCJ=yes
19195 allow_undefined_flag_GCJ=unsupported
19196 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'
19197 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19201 if test "$GCC" = yes; then
19202 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19203 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'
19205 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19206 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'
19208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19209 hardcode_libdir_separator_GCJ=:
19212 osf4* | osf5*) # as osf3* with the addition of -msym flag
19213 if test "$GCC" = yes; then
19214 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19215 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'
19216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19218 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19219 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'
19220 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~
19221 $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'
19223 # Both c and cxx compiler support -rpath directly
19224 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19226 hardcode_libdir_separator_GCJ=:
19230 no_undefined_flag_GCJ=' -z text'
19231 if test "$GCC" = yes; then
19233 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19235 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19238 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19239 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19243 hardcode_shlibpath_var_GCJ=no
19245 solaris2.[0-5] | solaris2.[0-5].*) ;;
19247 # The compiler driver will combine linker options so we
19248 # cannot just pass the convience library names through
19249 # without $wl, iff we do not link with $LD.
19250 # Luckily, gcc supports the same syntax we need for Sun Studio.
19251 # Supported since Solaris 2.6 (maybe 2.5.1?)
19254 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19256 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' ;;
19259 link_all_deplibs_GCJ=yes
19263 if test "x$host_vendor" = xsequent; then
19264 # Use $CC to link under sequent, because it throws in some extra .o
19265 # files that make .init and .fini sections work.
19266 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19268 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19271 hardcode_direct_GCJ=yes
19272 hardcode_minus_L_GCJ=yes
19273 hardcode_shlibpath_var_GCJ=no
19277 case $host_vendor in
19279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19280 hardcode_direct_GCJ=yes # is this really true???
19283 ## LD is ld it makes a PLAMLIB
19284 ## CC just makes a GrossModule.
19285 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19286 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19287 hardcode_direct_GCJ=no
19290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19294 runpath_var='LD_RUN_PATH'
19295 hardcode_shlibpath_var_GCJ=no
19299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19300 hardcode_shlibpath_var_GCJ=no
19301 export_dynamic_flag_spec_GCJ='-Bexport'
19305 if test -d /usr/nec; then
19306 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19307 hardcode_shlibpath_var_GCJ=no
19308 runpath_var=LD_RUN_PATH
19309 hardcode_runpath_var=yes
19314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19315 no_undefined_flag_GCJ='${wl}-z,text'
19316 archive_cmds_need_lc_GCJ=no
19317 hardcode_shlibpath_var_GCJ=no
19318 runpath_var='LD_RUN_PATH'
19320 if test "$GCC" = yes; then
19321 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 sysv5* | sco3.2v5* | sco5v6*)
19330 # Note: We can NOT use -z defs as we might desire, because we do not
19331 # link with -lc, and that would cause any symbols used from libc to
19332 # always be unresolved, which means just about no library would
19333 # ever link correctly. If we're not using GNU ld we use -z text
19334 # though, which does catch some bad symbols but isn't as heavy-handed
19336 no_undefined_flag_GCJ='${wl}-z,text'
19337 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19338 archive_cmds_need_lc_GCJ=no
19339 hardcode_shlibpath_var_GCJ=no
19340 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19341 hardcode_libdir_separator_GCJ=':'
19342 link_all_deplibs_GCJ=yes
19343 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19344 runpath_var='LD_RUN_PATH'
19346 if test "$GCC" = yes; then
19347 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19348 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19350 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19351 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19358 hardcode_shlibpath_var_GCJ=no
19367 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19368 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19369 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19372 # Do we need to explicitly link libc?
19374 case "x$archive_cmds_need_lc_GCJ" in
19376 # Assume -lc should be added
19377 archive_cmds_need_lc_GCJ=yes
19379 if test "$enable_shared" = yes && test "$GCC" = yes; then
19380 case $archive_cmds_GCJ in
19382 # FIXME: we may have to deal with multi-command sequences.
19385 # Test whether the compiler implicitly links with -lc since on some
19386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19387 # to ld, don't add -lc before -lgcc.
19388 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19389 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } 2>conftest.err; then
19400 libobjs=conftest.$ac_objext
19402 wl=$lt_prog_compiler_wl_GCJ
19403 pic_flag=$lt_prog_compiler_pic_GCJ
19409 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19410 allow_undefined_flag_GCJ=
19411 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19412 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }
19417 archive_cmds_need_lc_GCJ=no
19419 archive_cmds_need_lc_GCJ=yes
19421 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19423 cat conftest.err 1>&5
19426 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19427 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19434 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19435 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19436 library_names_spec=
19437 libname_spec='lib$name'
19441 postuninstall_cmds=
19445 shlibpath_overrides_runpath=unknown
19447 dynamic_linker="$host_os ld.so"
19448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19449 if test "$GCC" = yes; then
19450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19451 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19452 # if the path contains ";" then we assume it to be the separator
19453 # otherwise default to the standard path separator (i.e. ":") - it is
19454 # assumed that no part of a normal pathname contains ";" but that should
19455 # okay in the real world where ";" in dirpaths is itself problematic.
19456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19463 need_lib_prefix=unknown
19464 hardcode_into_libs=no
19466 # when you set need_version to no, make sure it does not cause -set_version
19467 # flags to be left without arguments
19468 need_version=unknown
19473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19474 shlibpath_var=LIBPATH
19476 # AIX 3 has no versioning support, so we append a major version to the name.
19477 soname_spec='${libname}${release}${shared_ext}$major'
19484 hardcode_into_libs=yes
19485 if test "$host_cpu" = ia64; then
19486 # AIX 5 supports IA64
19487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19488 shlibpath_var=LD_LIBRARY_PATH
19490 # With GCC up to 2.95.x, collect2 would create an import file
19491 # for dependence libraries. The import file would start with
19492 # the line `#! .'. This would cause the generated library to
19493 # depend on `.', always an invalid library. This was fixed in
19494 # development snapshots of GCC prior to 3.0.
19496 aix4 | aix4.[01] | aix4.[01].*)
19497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19499 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19502 can_build_shared=no
19506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19507 # soname into executable. Probably we can add versioning support to
19508 # collect2, so additional links can be useful in future.
19509 if test "$aix_use_runtimelinking" = yes; then
19510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19511 # instead of lib<name>.a to let people know that these are not
19512 # typical AIX shared libraries.
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19515 # We preserve .a as extension for shared libraries through AIX4.2
19516 # and later when we are not doing run time linking.
19517 library_names_spec='${libname}${release}.a $libname.a'
19518 soname_spec='${libname}${release}${shared_ext}$major'
19520 shlibpath_var=LIBPATH
19525 library_names_spec='$libname.ixlibrary $libname.a'
19526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19527 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'
19531 library_names_spec='${libname}${shared_ext}'
19532 dynamic_linker="$host_os ld.so"
19533 shlibpath_var=LIBRARY_PATH
19539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19540 soname_spec='${libname}${release}${shared_ext}$major'
19541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19542 shlibpath_var=LD_LIBRARY_PATH
19543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19545 # the default ld.so.conf also contains /usr/contrib/lib and
19546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19547 # libtool to hard-code these into programs
19550 cygwin* | mingw* | pw32*)
19551 version_type=windows
19556 case $GCC,$host_os in
19557 yes,cygwin* | yes,mingw* | yes,pw32*)
19558 library_names_spec='$libname.dll.a'
19559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19560 postinstall_cmds='base_file=`basename \${file}`~
19561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19562 dldir=$destdir/`dirname \$dlpath`~
19563 test -d \$dldir || mkdir -p \$dldir~
19564 $install_prog $dir/$dlname \$dldir/$dlname~
19565 chmod a+x \$dldir/$dlname'
19566 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19567 dlpath=$dir/\$dldll~
19569 shlibpath_overrides_runpath=yes
19573 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19574 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19575 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19578 # MinGW DLLs use traditional 'lib' prefix
19579 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19581 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19582 # It is most probably a Windows format PATH printed by
19583 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19584 # path with ; separators, and with drive letters. We can handle the
19585 # drive letters (cygwin fileutils understands them), so leave them,
19586 # especially as we might pass files found there to a mingw objdump,
19587 # which wouldn't understand a cygwinified path. Ahh.
19588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19594 # pw32 DLLs use 'pw' prefix rather than 'lib'
19595 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19601 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19604 dynamic_linker='Win32 ld.exe'
19605 # FIXME: first we should search . and the directory the executable is in
19609 darwin* | rhapsody*)
19610 dynamic_linker="$host_os dyld"
19611 version_type=darwin
19614 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19615 soname_spec='${libname}${release}${major}$shared_ext'
19616 shlibpath_overrides_runpath=yes
19617 shlibpath_var=DYLD_LIBRARY_PATH
19618 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19619 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19620 if test "$GCC" = yes; then
19621 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"`
19623 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19633 soname_spec='${libname}${release}${shared_ext}$major'
19634 shlibpath_var=LD_LIBRARY_PATH
19641 freebsd* | dragonfly*)
19642 # DragonFly does not have aout. When/if they implement a new
19643 # versioning mechanism, adjust this.
19644 if test -x /usr/bin/objformat; then
19645 objformat=`/usr/bin/objformat`
19648 freebsd[123]*) objformat=aout ;;
19649 *) objformat=elf ;;
19652 version_type=freebsd-$objformat
19653 case $version_type in
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19664 shlibpath_var=LD_LIBRARY_PATH
19667 shlibpath_overrides_runpath=yes
19669 freebsd3.[01]* | freebsdelf3.[01]*)
19670 shlibpath_overrides_runpath=yes
19671 hardcode_into_libs=yes
19673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19675 shlibpath_overrides_runpath=no
19676 hardcode_into_libs=yes
19678 freebsd*) # from 4.6 on
19679 shlibpath_overrides_runpath=yes
19680 hardcode_into_libs=yes
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 hardcode_into_libs=yes
19695 hpux9* | hpux10* | hpux11*)
19696 # Give a soname corresponding to the major version so that dld.sl refuses to
19697 # link against other versions.
19704 hardcode_into_libs=yes
19705 dynamic_linker="$host_os dld.so"
19706 shlibpath_var=LD_LIBRARY_PATH
19707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 if test "X$HPUX_IA64_MODE" = X32; then
19711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19719 hardcode_into_libs=yes
19720 dynamic_linker="$host_os dld.sl"
19721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 soname_spec='${libname}${release}${shared_ext}$major'
19725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19730 dynamic_linker="$host_os dld.sl"
19731 shlibpath_var=SHLIB_PATH
19732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19738 postinstall_cmds='chmod 555 $lib'
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=no
19750 hardcode_into_libs=yes
19753 irix5* | irix6* | nonstopux*)
19755 nonstopux*) version_type=nonstopux ;;
19757 if test "$lt_cv_prog_gnu_ld" = yes; then
19765 soname_spec='${libname}${release}${shared_ext}$major'
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19768 irix5* | nonstopux*)
19769 libsuff= shlibsuff=
19772 case $LD in # libtool.m4 will add one of these switches to LD
19773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19774 libsuff= shlibsuff= libmagic=32-bit;;
19775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19776 libsuff=32 shlibsuff=N32 libmagic=N32;;
19777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19779 *) libsuff= shlibsuff= libmagic=never-match;;
19783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19784 shlibpath_overrides_runpath=no
19785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19787 hardcode_into_libs=yes
19790 # No shared lib support for Linux oldld, aout, or coff.
19791 linux*oldld* | linux*aout* | linux*coff*)
19795 # This must be Linux ELF.
19796 linux* | k*bsd*-gnu)
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=no
19805 # This implies no fast_install, which is unacceptable.
19806 # Some rework will be needed to allow for fast_install
19807 # before this can be enabled.
19808 hardcode_into_libs=yes
19810 # Append ld.so.conf contents to the search path
19811 if test -f /etc/ld.so.conf; then
19812 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' ' '`
19813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19816 # We used to test for /lib/ld.so.1 and disable shared libraries on
19817 # powerpc, because MkLinux only supported shared libraries with the
19818 # GNU dynamic linker. Since this was broken with cross compilers,
19819 # most powerpc-linux boxes support dynamic linking these days and
19820 # people can always --disable-shared, the test was removed, and we
19821 # assume the GNU/Linux dynamic linker is in use.
19822 dynamic_linker='GNU/Linux ld.so'
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 shlibpath_overrides_runpath=no
19833 hardcode_into_libs=yes
19834 dynamic_linker='NetBSD ld.elf_so'
19841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844 dynamic_linker='NetBSD (a.out) ld.so'
19846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19847 soname_spec='${libname}${release}${shared_ext}$major'
19848 dynamic_linker='NetBSD ld.elf_so'
19850 shlibpath_var=LD_LIBRARY_PATH
19851 shlibpath_overrides_runpath=yes
19852 hardcode_into_libs=yes
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858 shlibpath_var=LD_LIBRARY_PATH
19859 shlibpath_overrides_runpath=yes
19866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19867 soname_spec='${libname}${release}${shared_ext}$major'
19868 shlibpath_var=LD_LIBRARY_PATH
19869 shlibpath_overrides_runpath=yes
19874 sys_lib_dlsearch_path_spec="/usr/lib"
19876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19879 *) need_version=no ;;
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19883 shlibpath_var=LD_LIBRARY_PATH
19884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19886 openbsd2.[89] | openbsd2.[89].*)
19887 shlibpath_overrides_runpath=no
19890 shlibpath_overrides_runpath=yes
19894 shlibpath_overrides_runpath=yes
19899 libname_spec='$name'
19902 library_names_spec='$libname${shared_ext} $libname.a'
19903 dynamic_linker='OS/2 ld.exe'
19904 shlibpath_var=LIBPATH
19907 osf3* | osf4* | osf5*)
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19913 shlibpath_var=LD_LIBRARY_PATH
19914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19923 soname_spec='${libname}${release}${shared_ext}$major'
19924 shlibpath_var=LD_LIBRARY_PATH
19925 shlibpath_overrides_runpath=yes
19926 hardcode_into_libs=yes
19927 # ldd complains unless libraries are executable
19928 postinstall_cmds='chmod +x $lib'
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 shlibpath_overrides_runpath=yes
19937 if test "$with_gnu_ld" = yes; then
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 shlibpath_var=LD_LIBRARY_PATH
19948 case $host_vendor in
19950 shlibpath_overrides_runpath=no
19952 export_dynamic_flag_spec='${wl}-Blargedynsym'
19953 runpath_var=LD_RUN_PATH
19961 shlibpath_overrides_runpath=no
19962 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19968 if test -d /usr/nec ;then
19970 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19971 soname_spec='$libname${shared_ext}.$major'
19972 shlibpath_var=LD_LIBRARY_PATH
19976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19977 version_type=freebsd-elf
19980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19981 soname_spec='${libname}${release}${shared_ext}$major'
19982 shlibpath_var=LD_LIBRARY_PATH
19983 hardcode_into_libs=yes
19984 if test "$with_gnu_ld" = yes; then
19985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19986 shlibpath_overrides_runpath=no
19988 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19989 shlibpath_overrides_runpath=yes
19992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19996 sys_lib_dlsearch_path_spec='/usr/lib'
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 shlibpath_var=LD_LIBRARY_PATH
20010 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20011 echo "${ECHO_T}$dynamic_linker" >&6; }
20012 test "$dynamic_linker" = no && can_build_shared=no
20014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20015 if test "$GCC" = yes; then
20016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20019 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20021 hardcode_action_GCJ=
20022 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20023 test -n "$runpath_var_GCJ" || \
20024 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20026 # We can hardcode non-existant directories.
20027 if test "$hardcode_direct_GCJ" != no &&
20028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20029 # have to relink, otherwise we might link with an installed library
20030 # when we should be linking with a yet-to-be-installed one
20031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20032 test "$hardcode_minus_L_GCJ" != no; then
20033 # Linking always hardcodes the temporary library directory.
20034 hardcode_action_GCJ=relink
20036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20037 hardcode_action_GCJ=immediate
20040 # We cannot hardcode anything, or else we can only hardcode existing
20042 hardcode_action_GCJ=unsupported
20044 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20045 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20047 if test "$hardcode_action_GCJ" = relink; then
20048 # Fast installation is not supported
20049 enable_fast_install=no
20050 elif test "$shlibpath_overrides_runpath" = yes ||
20051 test "$enable_shared" = no; then
20052 # Fast installation is not necessary
20053 enable_fast_install=needless
20057 # The else clause should only fire when bootstrapping the
20058 # libtool distribution, otherwise you forgot to ship ltmain.sh
20059 # with your package, and you will get complaints that there are
20060 # no rules to generate ltmain.sh.
20061 if test -f "$ltmain"; then
20062 # See if we are running on zsh, and set the options which allow our commands through
20063 # without removal of \ escapes.
20064 if test -n "${ZSH_VERSION+set}" ; then
20065 setopt NO_GLOB_SUBST
20067 # Now quote all the things that may contain metacharacters while being
20068 # careful not to overquote the AC_SUBSTed values. We take copies of the
20069 # variables and quote the copies for generation of the libtool script.
20070 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20072 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20073 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20074 deplibs_check_method reload_flag reload_cmds need_locks \
20075 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20076 lt_cv_sys_global_symbol_to_c_name_address \
20077 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20078 old_postinstall_cmds old_postuninstall_cmds \
20082 lt_prog_compiler_wl_GCJ \
20083 lt_prog_compiler_pic_GCJ \
20084 lt_prog_compiler_static_GCJ \
20085 lt_prog_compiler_no_builtin_flag_GCJ \
20086 export_dynamic_flag_spec_GCJ \
20087 thread_safe_flag_spec_GCJ \
20088 whole_archive_flag_spec_GCJ \
20089 enable_shared_with_static_runtimes_GCJ \
20090 old_archive_cmds_GCJ \
20091 old_archive_from_new_cmds_GCJ \
20092 predep_objects_GCJ \
20093 postdep_objects_GCJ \
20096 compiler_lib_search_path_GCJ \
20098 archive_expsym_cmds_GCJ \
20099 postinstall_cmds_GCJ \
20100 postuninstall_cmds_GCJ \
20101 old_archive_from_expsyms_cmds_GCJ \
20102 allow_undefined_flag_GCJ \
20103 no_undefined_flag_GCJ \
20104 export_symbols_cmds_GCJ \
20105 hardcode_libdir_flag_spec_GCJ \
20106 hardcode_libdir_flag_spec_ld_GCJ \
20107 hardcode_libdir_separator_GCJ \
20108 hardcode_automatic_GCJ \
20110 module_expsym_cmds_GCJ \
20111 lt_cv_prog_compiler_c_o_GCJ \
20112 exclude_expsyms_GCJ \
20113 include_expsyms_GCJ; do
20116 old_archive_cmds_GCJ | \
20117 old_archive_from_new_cmds_GCJ | \
20118 archive_cmds_GCJ | \
20119 archive_expsym_cmds_GCJ | \
20120 module_cmds_GCJ | \
20121 module_expsym_cmds_GCJ | \
20122 old_archive_from_expsyms_cmds_GCJ | \
20123 export_symbols_cmds_GCJ | \
20124 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20125 postinstall_cmds | postuninstall_cmds | \
20126 old_postinstall_cmds | old_postuninstall_cmds | \
20127 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20128 # Double-quote double-evaled strings.
20129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20138 *'\$0 --fallback-echo"')
20139 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20145 cat <<__EOF__ >> "$cfgfile"
20146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20150 # Shell to use when invoking shell scripts.
20153 # Whether or not to build shared libraries.
20154 build_libtool_libs=$enable_shared
20156 # Whether or not to build static libraries.
20157 build_old_libs=$enable_static
20159 # Whether or not to add -lc for building shared libraries.
20160 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20162 # Whether or not to disallow shared libs when runtime libs are static
20163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20165 # Whether or not to optimize for fast installation.
20166 fast_install=$enable_fast_install
20169 host_alias=$host_alias
20173 # The build system.
20174 build_alias=$build_alias
20178 # An echo program that does not interpret backslashes.
20183 AR_FLAGS=$lt_AR_FLAGS
20188 # LTCC compiler flags.
20189 LTCFLAGS=$lt_LTCFLAGS
20191 # A language-specific compiler.
20192 CC=$lt_compiler_GCJ
20194 # Is the compiler the GNU C compiler?
20200 # The linker used to build libraries.
20203 # Whether we need hard or soft links.
20206 # A BSD-compatible nm program.
20209 # A symbol stripping program
20212 # Used to examine libraries when file_magic_cmd begins "file"
20213 MAGIC_CMD=$MAGIC_CMD
20215 # Used on cygwin: DLL creation program.
20218 # Used on cygwin: object dumper.
20221 # Used on cygwin: assembler.
20224 # The name of the directory that contains temporary libtool files.
20227 # How to create reloadable object files.
20228 reload_flag=$lt_reload_flag
20229 reload_cmds=$lt_reload_cmds
20231 # How to pass a linker flag through the compiler.
20232 wl=$lt_lt_prog_compiler_wl_GCJ
20234 # Object file suffix (normally "o").
20235 objext="$ac_objext"
20237 # Old archive suffix (normally "a").
20240 # Shared library suffix (normally ".so").
20241 shrext_cmds='$shrext_cmds'
20243 # Executable file suffix (normally "").
20246 # Additional compiler flags for building library objects.
20247 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20250 # What is the maximum length of a command?
20251 max_cmd_len=$lt_cv_sys_max_cmd_len
20253 # Does compiler simultaneously support -c and -o options?
20254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20256 # Must we lock files when doing compilation?
20257 need_locks=$lt_need_locks
20259 # Do we need the lib prefix for modules?
20260 need_lib_prefix=$need_lib_prefix
20262 # Do we need a version for libraries?
20263 need_version=$need_version
20265 # Whether dlopen is supported.
20266 dlopen_support=$enable_dlopen
20268 # Whether dlopen of programs is supported.
20269 dlopen_self=$enable_dlopen_self
20271 # Whether dlopen of statically linked programs is supported.
20272 dlopen_self_static=$enable_dlopen_self_static
20274 # Compiler flag to prevent dynamic linking.
20275 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20277 # Compiler flag to turn off builtin functions.
20278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20280 # Compiler flag to allow reflexive dlopens.
20281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20283 # Compiler flag to generate shared objects directly from archives.
20284 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20286 # Compiler flag to generate thread-safe objects.
20287 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20289 # Library versioning type.
20290 version_type=$version_type
20292 # Format of library name prefix.
20293 libname_spec=$lt_libname_spec
20295 # List of archive names. First name is the real one, the rest are links.
20296 # The last name is the one that the linker finds with -lNAME.
20297 library_names_spec=$lt_library_names_spec
20299 # The coded name of the library, if different from the real name.
20300 soname_spec=$lt_soname_spec
20302 # Commands used to build and install an old-style archive.
20304 old_archive_cmds=$lt_old_archive_cmds_GCJ
20305 old_postinstall_cmds=$lt_old_postinstall_cmds
20306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20308 # Create an old-style archive from a shared archive.
20309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20311 # Create a temporary old-style archive to link instead of a shared archive.
20312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20314 # Commands used to build and install a shared archive.
20315 archive_cmds=$lt_archive_cmds_GCJ
20316 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20317 postinstall_cmds=$lt_postinstall_cmds
20318 postuninstall_cmds=$lt_postuninstall_cmds
20320 # Commands used to build a loadable module (assumed same as above if empty)
20321 module_cmds=$lt_module_cmds_GCJ
20322 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20324 # Commands to strip libraries.
20325 old_striplib=$lt_old_striplib
20326 striplib=$lt_striplib
20328 # Dependencies to place before the objects being linked to create a
20330 predep_objects=$lt_predep_objects_GCJ
20332 # Dependencies to place after the objects being linked to create a
20334 postdep_objects=$lt_postdep_objects_GCJ
20336 # Dependencies to place before the objects being linked to create a
20338 predeps=$lt_predeps_GCJ
20340 # Dependencies to place after the objects being linked to create a
20342 postdeps=$lt_postdeps_GCJ
20344 # The library search path used internally by the compiler when linking
20345 # a shared library.
20346 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20348 # Method to check whether dependent libraries are shared objects.
20349 deplibs_check_method=$lt_deplibs_check_method
20351 # Command to use when deplibs_check_method == file_magic.
20352 file_magic_cmd=$lt_file_magic_cmd
20354 # Flag that allows shared libraries with undefined symbols to be built.
20355 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20357 # Flag that forces no undefined symbols.
20358 no_undefined_flag=$lt_no_undefined_flag_GCJ
20360 # Commands used to finish a libtool library installation in a directory.
20361 finish_cmds=$lt_finish_cmds
20363 # Same as above, but a single script fragment to be evaled but not shown.
20364 finish_eval=$lt_finish_eval
20366 # Take the output of nm and produce a listing of raw symbols and C names.
20367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20369 # Transform the output of nm in a proper C declaration
20370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20372 # Transform the output of nm in a C name address pair
20373 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20375 # This is the shared library runtime path variable.
20376 runpath_var=$runpath_var
20378 # This is the shared library path variable.
20379 shlibpath_var=$shlibpath_var
20381 # Is shlibpath searched before the hard-coded library search path?
20382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20384 # How to hardcode a shared library path into an executable.
20385 hardcode_action=$hardcode_action_GCJ
20387 # Whether we should hardcode library paths into libraries.
20388 hardcode_into_libs=$hardcode_into_libs
20390 # Flag to hardcode \$libdir into a binary during linking.
20391 # This must work even if \$libdir does not exist.
20392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20394 # If ld is used when linking, flag to hardcode \$libdir into
20395 # a binary during linking. This must work even if \$libdir does
20397 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20399 # Whether we need a single -rpath flag with a separated argument.
20400 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20402 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20403 # resulting binary.
20404 hardcode_direct=$hardcode_direct_GCJ
20406 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20407 # resulting binary.
20408 hardcode_minus_L=$hardcode_minus_L_GCJ
20410 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20411 # the resulting binary.
20412 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20414 # Set to yes if building a shared library automatically hardcodes DIR into the library
20415 # and all subsequent libraries and executables linked against it.
20416 hardcode_automatic=$hardcode_automatic_GCJ
20418 # Variables whose values should be saved in libtool wrapper scripts and
20419 # restored at relink time.
20420 variables_saved_for_relink="$variables_saved_for_relink"
20422 # Whether libtool must link a program against all its dependency libraries.
20423 link_all_deplibs=$link_all_deplibs_GCJ
20425 # Compile-time system search path for libraries
20426 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20428 # Run-time system search path for libraries
20429 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20431 # Fix the shell variable \$srcfile for the compiler.
20432 fix_srcfile_path="$fix_srcfile_path_GCJ"
20434 # Set to yes if exported symbols are required.
20435 always_export_symbols=$always_export_symbols_GCJ
20437 # The commands to list exported symbols.
20438 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20440 # The commands to extract the exported symbol list from a shared archive.
20441 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20443 # Symbols that should not be listed in the preloaded symbols.
20444 exclude_expsyms=$lt_exclude_expsyms_GCJ
20446 # Symbols that must always be exported.
20447 include_expsyms=$lt_include_expsyms_GCJ
20449 # ### END LIBTOOL TAG CONFIG: $tagname
20455 # If there is no Makefile yet, we rely on a make rule to execute
20456 # `config.status --recheck' to rerun these tests and create the
20457 # libtool script then.
20458 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20459 if test -f "$ltmain_in"; then
20460 test -f Makefile && make "$ltmain"
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481 # Source file extension for RC test sources.
20484 # Object file extension for compiled RC test sources.
20488 # Code to be used in simple compile tests
20489 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20491 # Code to be used in simple link tests
20492 lt_simple_link_test_code="$lt_simple_compile_test_code"
20494 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20496 # If no C compiler was specified, use CC.
20499 # If no C compiler flags were specified, use CFLAGS.
20500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20502 # Allow CC to be a program name with arguments.
20506 # save warnings/boilerplate of simple test code
20507 ac_outfile=conftest.$ac_objext
20508 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20510 _lt_compiler_boilerplate=`cat conftest.err`
20513 ac_outfile=conftest.$ac_objext
20514 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20516 _lt_linker_boilerplate=`cat conftest.err`
20520 # Allow CC to be a program name with arguments.
20525 for cc_temp in $compiler""; do
20527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20535 lt_cv_prog_compiler_c_o_RC=yes
20537 # The else clause should only fire when bootstrapping the
20538 # libtool distribution, otherwise you forgot to ship ltmain.sh
20539 # with your package, and you will get complaints that there are
20540 # no rules to generate ltmain.sh.
20541 if test -f "$ltmain"; then
20542 # See if we are running on zsh, and set the options which allow our commands through
20543 # without removal of \ escapes.
20544 if test -n "${ZSH_VERSION+set}" ; then
20545 setopt NO_GLOB_SUBST
20547 # Now quote all the things that may contain metacharacters while being
20548 # careful not to overquote the AC_SUBSTed values. We take copies of the
20549 # variables and quote the copies for generation of the libtool script.
20550 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20552 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20553 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20554 deplibs_check_method reload_flag reload_cmds need_locks \
20555 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20556 lt_cv_sys_global_symbol_to_c_name_address \
20557 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20558 old_postinstall_cmds old_postuninstall_cmds \
20562 lt_prog_compiler_wl_RC \
20563 lt_prog_compiler_pic_RC \
20564 lt_prog_compiler_static_RC \
20565 lt_prog_compiler_no_builtin_flag_RC \
20566 export_dynamic_flag_spec_RC \
20567 thread_safe_flag_spec_RC \
20568 whole_archive_flag_spec_RC \
20569 enable_shared_with_static_runtimes_RC \
20570 old_archive_cmds_RC \
20571 old_archive_from_new_cmds_RC \
20572 predep_objects_RC \
20573 postdep_objects_RC \
20576 compiler_lib_search_path_RC \
20578 archive_expsym_cmds_RC \
20579 postinstall_cmds_RC \
20580 postuninstall_cmds_RC \
20581 old_archive_from_expsyms_cmds_RC \
20582 allow_undefined_flag_RC \
20583 no_undefined_flag_RC \
20584 export_symbols_cmds_RC \
20585 hardcode_libdir_flag_spec_RC \
20586 hardcode_libdir_flag_spec_ld_RC \
20587 hardcode_libdir_separator_RC \
20588 hardcode_automatic_RC \
20590 module_expsym_cmds_RC \
20591 lt_cv_prog_compiler_c_o_RC \
20592 exclude_expsyms_RC \
20593 include_expsyms_RC; do
20596 old_archive_cmds_RC | \
20597 old_archive_from_new_cmds_RC | \
20598 archive_cmds_RC | \
20599 archive_expsym_cmds_RC | \
20601 module_expsym_cmds_RC | \
20602 old_archive_from_expsyms_cmds_RC | \
20603 export_symbols_cmds_RC | \
20604 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20605 postinstall_cmds | postuninstall_cmds | \
20606 old_postinstall_cmds | old_postuninstall_cmds | \
20607 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20608 # Double-quote double-evaled strings.
20609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20618 *'\$0 --fallback-echo"')
20619 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20625 cat <<__EOF__ >> "$cfgfile"
20626 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20630 # Shell to use when invoking shell scripts.
20633 # Whether or not to build shared libraries.
20634 build_libtool_libs=$enable_shared
20636 # Whether or not to build static libraries.
20637 build_old_libs=$enable_static
20639 # Whether or not to add -lc for building shared libraries.
20640 build_libtool_need_lc=$archive_cmds_need_lc_RC
20642 # Whether or not to disallow shared libs when runtime libs are static
20643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20645 # Whether or not to optimize for fast installation.
20646 fast_install=$enable_fast_install
20649 host_alias=$host_alias
20653 # The build system.
20654 build_alias=$build_alias
20658 # An echo program that does not interpret backslashes.
20663 AR_FLAGS=$lt_AR_FLAGS
20668 # LTCC compiler flags.
20669 LTCFLAGS=$lt_LTCFLAGS
20671 # A language-specific compiler.
20674 # Is the compiler the GNU C compiler?
20680 # The linker used to build libraries.
20683 # Whether we need hard or soft links.
20686 # A BSD-compatible nm program.
20689 # A symbol stripping program
20692 # Used to examine libraries when file_magic_cmd begins "file"
20693 MAGIC_CMD=$MAGIC_CMD
20695 # Used on cygwin: DLL creation program.
20698 # Used on cygwin: object dumper.
20701 # Used on cygwin: assembler.
20704 # The name of the directory that contains temporary libtool files.
20707 # How to create reloadable object files.
20708 reload_flag=$lt_reload_flag
20709 reload_cmds=$lt_reload_cmds
20711 # How to pass a linker flag through the compiler.
20712 wl=$lt_lt_prog_compiler_wl_RC
20714 # Object file suffix (normally "o").
20715 objext="$ac_objext"
20717 # Old archive suffix (normally "a").
20720 # Shared library suffix (normally ".so").
20721 shrext_cmds='$shrext_cmds'
20723 # Executable file suffix (normally "").
20726 # Additional compiler flags for building library objects.
20727 pic_flag=$lt_lt_prog_compiler_pic_RC
20730 # What is the maximum length of a command?
20731 max_cmd_len=$lt_cv_sys_max_cmd_len
20733 # Does compiler simultaneously support -c and -o options?
20734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20736 # Must we lock files when doing compilation?
20737 need_locks=$lt_need_locks
20739 # Do we need the lib prefix for modules?
20740 need_lib_prefix=$need_lib_prefix
20742 # Do we need a version for libraries?
20743 need_version=$need_version
20745 # Whether dlopen is supported.
20746 dlopen_support=$enable_dlopen
20748 # Whether dlopen of programs is supported.
20749 dlopen_self=$enable_dlopen_self
20751 # Whether dlopen of statically linked programs is supported.
20752 dlopen_self_static=$enable_dlopen_self_static
20754 # Compiler flag to prevent dynamic linking.
20755 link_static_flag=$lt_lt_prog_compiler_static_RC
20757 # Compiler flag to turn off builtin functions.
20758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20760 # Compiler flag to allow reflexive dlopens.
20761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20763 # Compiler flag to generate shared objects directly from archives.
20764 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20766 # Compiler flag to generate thread-safe objects.
20767 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20769 # Library versioning type.
20770 version_type=$version_type
20772 # Format of library name prefix.
20773 libname_spec=$lt_libname_spec
20775 # List of archive names. First name is the real one, the rest are links.
20776 # The last name is the one that the linker finds with -lNAME.
20777 library_names_spec=$lt_library_names_spec
20779 # The coded name of the library, if different from the real name.
20780 soname_spec=$lt_soname_spec
20782 # Commands used to build and install an old-style archive.
20784 old_archive_cmds=$lt_old_archive_cmds_RC
20785 old_postinstall_cmds=$lt_old_postinstall_cmds
20786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20788 # Create an old-style archive from a shared archive.
20789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20791 # Create a temporary old-style archive to link instead of a shared archive.
20792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20794 # Commands used to build and install a shared archive.
20795 archive_cmds=$lt_archive_cmds_RC
20796 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20797 postinstall_cmds=$lt_postinstall_cmds
20798 postuninstall_cmds=$lt_postuninstall_cmds
20800 # Commands used to build a loadable module (assumed same as above if empty)
20801 module_cmds=$lt_module_cmds_RC
20802 module_expsym_cmds=$lt_module_expsym_cmds_RC
20804 # Commands to strip libraries.
20805 old_striplib=$lt_old_striplib
20806 striplib=$lt_striplib
20808 # Dependencies to place before the objects being linked to create a
20810 predep_objects=$lt_predep_objects_RC
20812 # Dependencies to place after the objects being linked to create a
20814 postdep_objects=$lt_postdep_objects_RC
20816 # Dependencies to place before the objects being linked to create a
20818 predeps=$lt_predeps_RC
20820 # Dependencies to place after the objects being linked to create a
20822 postdeps=$lt_postdeps_RC
20824 # The library search path used internally by the compiler when linking
20825 # a shared library.
20826 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20828 # Method to check whether dependent libraries are shared objects.
20829 deplibs_check_method=$lt_deplibs_check_method
20831 # Command to use when deplibs_check_method == file_magic.
20832 file_magic_cmd=$lt_file_magic_cmd
20834 # Flag that allows shared libraries with undefined symbols to be built.
20835 allow_undefined_flag=$lt_allow_undefined_flag_RC
20837 # Flag that forces no undefined symbols.
20838 no_undefined_flag=$lt_no_undefined_flag_RC
20840 # Commands used to finish a libtool library installation in a directory.
20841 finish_cmds=$lt_finish_cmds
20843 # Same as above, but a single script fragment to be evaled but not shown.
20844 finish_eval=$lt_finish_eval
20846 # Take the output of nm and produce a listing of raw symbols and C names.
20847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20849 # Transform the output of nm in a proper C declaration
20850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20852 # Transform the output of nm in a C name address pair
20853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20855 # This is the shared library runtime path variable.
20856 runpath_var=$runpath_var
20858 # This is the shared library path variable.
20859 shlibpath_var=$shlibpath_var
20861 # Is shlibpath searched before the hard-coded library search path?
20862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20864 # How to hardcode a shared library path into an executable.
20865 hardcode_action=$hardcode_action_RC
20867 # Whether we should hardcode library paths into libraries.
20868 hardcode_into_libs=$hardcode_into_libs
20870 # Flag to hardcode \$libdir into a binary during linking.
20871 # This must work even if \$libdir does not exist.
20872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20874 # If ld is used when linking, flag to hardcode \$libdir into
20875 # a binary during linking. This must work even if \$libdir does
20877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20879 # Whether we need a single -rpath flag with a separated argument.
20880 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20882 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20883 # resulting binary.
20884 hardcode_direct=$hardcode_direct_RC
20886 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20887 # resulting binary.
20888 hardcode_minus_L=$hardcode_minus_L_RC
20890 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20891 # the resulting binary.
20892 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20894 # Set to yes if building a shared library automatically hardcodes DIR into the library
20895 # and all subsequent libraries and executables linked against it.
20896 hardcode_automatic=$hardcode_automatic_RC
20898 # Variables whose values should be saved in libtool wrapper scripts and
20899 # restored at relink time.
20900 variables_saved_for_relink="$variables_saved_for_relink"
20902 # Whether libtool must link a program against all its dependency libraries.
20903 link_all_deplibs=$link_all_deplibs_RC
20905 # Compile-time system search path for libraries
20906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20908 # Run-time system search path for libraries
20909 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20911 # Fix the shell variable \$srcfile for the compiler.
20912 fix_srcfile_path="$fix_srcfile_path_RC"
20914 # Set to yes if exported symbols are required.
20915 always_export_symbols=$always_export_symbols_RC
20917 # The commands to list exported symbols.
20918 export_symbols_cmds=$lt_export_symbols_cmds_RC
20920 # The commands to extract the exported symbol list from a shared archive.
20921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20923 # Symbols that should not be listed in the preloaded symbols.
20924 exclude_expsyms=$lt_exclude_expsyms_RC
20926 # Symbols that must always be exported.
20927 include_expsyms=$lt_include_expsyms_RC
20929 # ### END LIBTOOL TAG CONFIG: $tagname
20935 # If there is no Makefile yet, we rely on a make rule to execute
20936 # `config.status --recheck' to rerun these tests and create the
20937 # libtool script then.
20938 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20939 if test -f "$ltmain_in"; then
20940 test -f Makefile && make "$ltmain"
20946 ac_cpp='$CPP $CPPFLAGS'
20947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20957 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20958 { (exit 1); exit 1; }; }
20962 # Append the new tag name to the list of available tags.
20963 if test -n "$tagname" ; then
20964 available_tags="$available_tags $tagname"
20970 # Now substitute the updated list of available tags.
20971 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20972 mv "${ofile}T" "$ofile"
20976 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20977 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20978 { (exit 1); exit 1; }; }
20984 # This can be used to rebuild libtool when needed
20985 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20987 # Always use our own libtool.
20988 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20990 # Prevent multiple expansion
21012 if test "x$cross_compiling" = "xno"; then
21013 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21015 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21020 if test -n "$ac_tool_prefix"; then
21021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21022 set dummy ${ac_tool_prefix}ar; ac_word=$2
21023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21025 if test "${ac_cv_prog_AR+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 if test -n "$AR"; then
21029 ac_cv_prog_AR="$AR" # Let the user override the test.
21031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21032 for as_dir in $PATH
21035 test -z "$as_dir" && as_dir=.
21036 for ac_exec_ext in '' $ac_executable_extensions; do
21037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21038 ac_cv_prog_AR="${ac_tool_prefix}ar"
21039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21049 if test -n "$AR"; then
21050 { echo "$as_me:$LINENO: result: $AR" >&5
21051 echo "${ECHO_T}$AR" >&6; }
21053 { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21059 if test -z "$ac_cv_prog_AR"; then
21061 # Extract the first word of "ar", so it can be a program name with args.
21062 set dummy ar; ac_word=$2
21063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 if test -n "$ac_ct_AR"; then
21069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21072 for as_dir in $PATH
21075 test -z "$as_dir" && as_dir=.
21076 for ac_exec_ext in '' $ac_executable_extensions; do
21077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21078 ac_cv_prog_ac_ct_AR="ar"
21079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21089 if test -n "$ac_ct_AR"; then
21090 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21091 echo "${ECHO_T}$ac_ct_AR" >&6; }
21093 { echo "$as_me:$LINENO: result: no" >&5
21094 echo "${ECHO_T}no" >&6; }
21097 if test "x$ac_ct_AR" = x; then
21100 case $cross_compiling:$ac_tool_warned in
21102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21103 whose name does not start with the host triplet. If you think this
21104 configuration is useful to you, please write to autoconf@gnu.org." >&5
21105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21106 whose name does not start with the host triplet. If you think this
21107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21108 ac_tool_warned=yes ;;
21113 AR="$ac_cv_prog_AR"
21116 if test -n "$ac_tool_prefix"; then
21117 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21118 set dummy ${ac_tool_prefix}ld; ac_word=$2
21119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21121 if test "${ac_cv_prog_LD+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 if test -n "$LD"; then
21125 ac_cv_prog_LD="$LD" # Let the user override the test.
21127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21128 for as_dir in $PATH
21131 test -z "$as_dir" && as_dir=.
21132 for ac_exec_ext in '' $ac_executable_extensions; do
21133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21134 ac_cv_prog_LD="${ac_tool_prefix}ld"
21135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21145 if test -n "$LD"; then
21146 { echo "$as_me:$LINENO: result: $LD" >&5
21147 echo "${ECHO_T}$LD" >&6; }
21149 { echo "$as_me:$LINENO: result: no" >&5
21150 echo "${ECHO_T}no" >&6; }
21155 if test -z "$ac_cv_prog_LD"; then
21157 # Extract the first word of "ld", so it can be a program name with args.
21158 set dummy ld; ac_word=$2
21159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21161 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 if test -n "$ac_ct_LD"; then
21165 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21168 for as_dir in $PATH
21171 test -z "$as_dir" && as_dir=.
21172 for ac_exec_ext in '' $ac_executable_extensions; do
21173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21174 ac_cv_prog_ac_ct_LD="ld"
21175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21184 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21185 if test -n "$ac_ct_LD"; then
21186 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21187 echo "${ECHO_T}$ac_ct_LD" >&6; }
21189 { echo "$as_me:$LINENO: result: no" >&5
21190 echo "${ECHO_T}no" >&6; }
21193 if test "x$ac_ct_LD" = x; then
21196 case $cross_compiling:$ac_tool_warned in
21198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21199 whose name does not start with the host triplet. If you think this
21200 configuration is useful to you, please write to autoconf@gnu.org." >&5
21201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21202 whose name does not start with the host triplet. If you think this
21203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21204 ac_tool_warned=yes ;;
21209 LD="$ac_cv_prog_LD"
21213 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21215 if test "${ac_cv_header_stdc+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <stdlib.h>
21225 #include <stdarg.h>
21226 #include <string.h>
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21252 { (case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_try") 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_header_stdc=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_cv_header_stdc=no
21279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21281 if test $ac_cv_header_stdc = yes; then
21282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <string.h>
21292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21293 $EGREP "memchr" >/dev/null 2>&1; then
21296 ac_cv_header_stdc=no
21302 if test $ac_cv_header_stdc = yes; then
21303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <stdlib.h>
21313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21314 $EGREP "free" >/dev/null 2>&1; then
21317 ac_cv_header_stdc=no
21323 if test $ac_cv_header_stdc = yes; then
21324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21325 if test "$cross_compiling" = yes; then
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21335 #include <stdlib.h>
21336 #if ((' ' & 0x0FF) == 0x020)
21337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21340 # define ISLOWER(c) \
21341 (('a' <= (c) && (c) <= 'i') \
21342 || ('j' <= (c) && (c) <= 'r') \
21343 || ('s' <= (c) && (c) <= 'z'))
21344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21352 for (i = 0; i < 256; i++)
21353 if (XOR (islower (i), ISLOWER (i))
21354 || toupper (i) != TOUPPER (i))
21359 rm -f conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_link") 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21370 { (case "(($ac_try" in
21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372 *) ac_try_echo=$ac_try;;
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375 (eval "$ac_try") 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21381 echo "$as_me: program exited with status $ac_status" >&5
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ( exit $ac_status )
21386 ac_cv_header_stdc=no
21388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21394 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21395 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21396 if test $ac_cv_header_stdc = yes; then
21398 cat >>confdefs.h <<\_ACEOF
21399 #define STDC_HEADERS 1
21405 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21406 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21407 if test "${knfsd_cv_glibc2+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21417 #include <features.h>
21418 #if !defined(__GLIBC__)
21423 if { (ac_try="$ac_cpp conftest.$ac_ext"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } >/dev/null; then
21436 if test -s conftest.err; then
21437 ac_cpp_err=$ac_c_preproc_warn_flag
21438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21445 if test -z "$ac_cpp_err"; then
21446 knfsd_cv_glibc2=yes
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21454 rm -f conftest.err conftest.$ac_ext
21457 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21458 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21459 if test $knfsd_cv_glibc2 = yes; then
21460 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21461 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21465 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21466 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21467 if test "${knfsd_cv_bsd_signals+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 if test "$cross_compiling" = yes; then
21471 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21472 See \`config.log' for more details." >&5
21473 echo "$as_me: error: cannot run test program while cross compiling
21474 See \`config.log' for more details." >&2;}
21475 { (exit 1); exit 1; }; }
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21484 #include <signal.h>
21485 #include <unistd.h>
21486 #include <sys/wait.h>
21488 static int counter = 0;
21489 static RETSIGTYPE handler(int num) { counter++; }
21494 if ((s = fork()) < 0) return 1;
21496 if (wait(&s) < 0) return 1;
21497 return WIFSIGNALED(s)? 1 : 0;
21500 signal(SIGHUP, handler);
21501 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21502 return (counter == 2)? 0 : 1;
21506 rm -f conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_link") 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21517 { (case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_try") 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 knfsd_cv_bsd_signals=yes
21528 echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ( exit $ac_status )
21533 knfsd_cv_bsd_signals=no
21535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21540 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21541 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21542 test $knfsd_cv_bsd_signals = yes &&
21543 cat >>confdefs.h <<\_ACEOF
21544 #define HAVE_BSD_SIGNALS 1
21549 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21550 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21551 if test "${ac_cv_lib_socket_main+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 ac_check_lib_save_LIBS=$LIBS
21555 LIBS="-lsocket $LIBS"
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_link") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21587 { (case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_try") 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest$ac_exeext'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_cv_lib_socket_main=yes
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ac_cv_lib_socket_main=no
21614 rm -f conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21616 LIBS=$ac_check_lib_save_LIBS
21618 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21619 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21620 if test $ac_cv_lib_socket_main = yes; then
21624 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21625 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21626 if test "${ac_cv_lib_nsl_main+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 ac_check_lib_save_LIBS=$LIBS
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_link") 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21662 { (case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_try") 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try='test -s conftest$ac_exeext'
21672 { (case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_try") 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 ac_cv_lib_nsl_main=yes
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ac_cv_lib_nsl_main=no
21689 rm -f conftest.err conftest.$ac_objext \
21690 conftest$ac_exeext conftest.$ac_ext
21691 LIBS=$ac_check_lib_save_LIBS
21693 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21694 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21695 if test $ac_cv_lib_nsl_main = yes; then
21699 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21700 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21701 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 ac_check_lib_save_LIBS=$LIBS
21705 LIBS="-lcrypt $LIBS"
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21713 /* Override any GCC internal prototype to avoid an error.
21714 Use char because int might match the return type of a GCC
21715 builtin and then its argument prototype would still apply. */
21728 rm -f conftest.$ac_objext conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_link") 2>conftest.er1
21737 grep -v '^ *+' conftest.er1 >conftest.err
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } &&
21742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21743 { (case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_try") 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
21753 { (case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_try") 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 ac_cv_lib_crypt_crypt=yes
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ac_cv_lib_crypt_crypt=no
21770 rm -f conftest.err conftest.$ac_objext \
21771 conftest$ac_exeext conftest.$ac_ext
21772 LIBS=$ac_check_lib_save_LIBS
21774 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21775 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21776 if test $ac_cv_lib_crypt_crypt = yes; then
21780 if test "$enable_nfsv4" = yes; then
21781 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21782 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21783 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 ac_check_lib_save_LIBS=$LIBS
21787 LIBS="-levent $LIBS"
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21795 /* Override any GCC internal prototype to avoid an error.
21796 Use char because int might match the return type of a GCC
21797 builtin and then its argument prototype would still apply. */
21801 char event_dispatch ();
21805 return event_dispatch ();
21810 rm -f conftest.$ac_objext conftest$ac_exeext
21811 if { (ac_try="$ac_link"
21812 case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_link") 2>conftest.er1
21819 grep -v '^ *+' conftest.er1 >conftest.err
21821 cat conftest.err >&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } &&
21824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825 { (case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_try") 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; } &&
21834 { ac_try='test -s conftest$ac_exeext'
21835 { (case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_try") 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_cv_lib_event_event_dispatch=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_cv_lib_event_event_dispatch=no
21852 rm -f conftest.err conftest.$ac_objext \
21853 conftest$ac_exeext conftest.$ac_ext
21854 LIBS=$ac_check_lib_save_LIBS
21856 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21857 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21858 if test $ac_cv_lib_event_event_dispatch = yes; then
21861 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21862 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21863 { (exit 1); exit 1; }; }
21866 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21867 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21868 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21871 ac_check_lib_save_LIBS=$LIBS
21872 LIBS="-lnfsidmap $LIBS"
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21880 /* Override any GCC internal prototype to avoid an error.
21881 Use char because int might match the return type of a GCC
21882 builtin and then its argument prototype would still apply. */
21886 char nfs4_init_name_mapping ();
21890 return nfs4_init_name_mapping ();
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
21909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21910 { (case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_try") 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; } &&
21919 { ac_try='test -s conftest$ac_exeext'
21920 { (case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_try") 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21937 rm -f conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21941 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21942 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21943 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21946 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21947 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21948 { (exit 1); exit 1; }; }
21952 for ac_header in event.h
21954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962 { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21965 # Is the header compilable?
21966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 #include <$ac_header>
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } &&
21991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; } &&
22001 { ac_try='test -s conftest.$ac_objext'
22002 { (case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_try") 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_header_compiler=yes
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_compiler=no
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22034 if { (ac_try="$ac_cpp conftest.$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null; then
22047 if test -s conftest.err; then
22048 ac_cpp_err=$ac_c_preproc_warn_flag
22049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22056 if test -z "$ac_cpp_err"; then
22057 ac_header_preproc=yes
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 ac_header_preproc=no
22065 rm -f conftest.err conftest.$ac_ext
22066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067 echo "${ECHO_T}$ac_header_preproc" >&6; }
22069 # So? What about this header?
22070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076 ac_header_preproc=yes
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22092 ## ------------------------------- ##
22093 ## Report this to nfs@lists.sf.net ##
22094 ## ------------------------------- ##
22096 ) | sed "s/^/$as_me: WARNING: /" >&2
22099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 eval "$as_ac_Header=\$ac_header_preproc"
22106 ac_res=`eval echo '${'$as_ac_Header'}'`
22107 { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22118 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22119 { (exit 1); exit 1; }; }
22125 for ac_header in nfsidmap.h
22127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 ac_res=`eval echo '${'$as_ac_Header'}'`
22135 { echo "$as_me:$LINENO: result: $ac_res" >&5
22136 echo "${ECHO_T}$ac_res" >&6; }
22138 # Is the header compilable?
22139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 $ac_includes_default
22148 #include <$ac_header>
22150 rm -f conftest.$ac_objext
22151 if { (ac_try="$ac_compile"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } &&
22164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22165 { (case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_try") 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; } &&
22174 { ac_try='test -s conftest.$ac_objext'
22175 { (case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_try") 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_header_compiler=yes
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ac_header_compiler=no
22192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22194 echo "${ECHO_T}$ac_header_compiler" >&6; }
22196 # Is the header present?
22197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <$ac_header>
22207 if { (ac_try="$ac_cpp conftest.$ac_ext"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } >/dev/null; then
22220 if test -s conftest.err; then
22221 ac_cpp_err=$ac_c_preproc_warn_flag
22222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22229 if test -z "$ac_cpp_err"; then
22230 ac_header_preproc=yes
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ac_header_preproc=no
22238 rm -f conftest.err conftest.$ac_ext
22239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22240 echo "${ECHO_T}$ac_header_preproc" >&6; }
22242 # So? What about this header?
22243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22249 ac_header_preproc=yes
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22265 ## ------------------------------- ##
22266 ## Report this to nfs@lists.sf.net ##
22267 ## ------------------------------- ##
22269 ) | sed "s/^/$as_me: WARNING: /" >&2
22272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 eval "$as_ac_Header=\$ac_header_preproc"
22279 ac_res=`eval echo '${'$as_ac_Header'}'`
22280 { echo "$as_me:$LINENO: result: $ac_res" >&5
22281 echo "${ECHO_T}$ac_res" >&6; }
22284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22285 cat >>confdefs.h <<_ACEOF
22286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22290 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22291 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22292 { (exit 1); exit 1; }; }
22297 if test "$enable_gss" = yes; then
22300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22301 if test -n "$ac_tool_prefix"; then
22302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22306 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 case $PKG_CONFIG in
22311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $PATH
22318 test -z "$as_dir" && as_dir=.
22319 for ac_exec_ext in '' $ac_executable_extensions; do
22320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22333 if test -n "$PKG_CONFIG"; then
22334 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22335 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22337 { echo "$as_me:$LINENO: result: no" >&5
22338 echo "${ECHO_T}no" >&6; }
22343 if test -z "$ac_cv_path_PKG_CONFIG"; then
22344 ac_pt_PKG_CONFIG=$PKG_CONFIG
22345 # Extract the first word of "pkg-config", so it can be a program name with args.
22346 set dummy pkg-config; ac_word=$2
22347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22349 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 case $ac_pt_PKG_CONFIG in
22354 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22358 for as_dir in $PATH
22361 test -z "$as_dir" && as_dir=.
22362 for ac_exec_ext in '' $ac_executable_extensions; do
22363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22375 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22376 if test -n "$ac_pt_PKG_CONFIG"; then
22377 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22378 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22380 { echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6; }
22384 if test "x$ac_pt_PKG_CONFIG" = x; then
22387 case $cross_compiling:$ac_tool_warned in
22389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22390 whose name does not start with the host triplet. If you think this
22391 configuration is useful to you, please write to autoconf@gnu.org." >&5
22392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22393 whose name does not start with the host triplet. If you think this
22394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22395 ac_tool_warned=yes ;;
22397 PKG_CONFIG=$ac_pt_PKG_CONFIG
22400 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22404 if test -n "$PKG_CONFIG"; then
22405 _pkg_min_version=0.9.0
22406 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22407 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22408 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22409 { echo "$as_me:$LINENO: result: yes" >&5
22410 echo "${ECHO_T}yes" >&6; }
22412 { echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6; }
22420 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22421 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22423 if test -n "$PKG_CONFIG"; then
22424 if test -n "$RPCSECGSS_CFLAGS"; then
22425 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22427 if test -n "$PKG_CONFIG" && \
22428 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22429 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; then
22433 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22441 if test -n "$PKG_CONFIG"; then
22442 if test -n "$RPCSECGSS_LIBS"; then
22443 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22445 if test -n "$PKG_CONFIG" && \
22446 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22447 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; then
22451 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22462 if test $pkg_failed = yes; then
22464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22465 _pkg_short_errors_supported=yes
22467 _pkg_short_errors_supported=no
22469 if test $_pkg_short_errors_supported = yes; then
22470 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22472 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22474 # Put the nasty error message in config.log where it belongs
22475 echo "$RPCSECGSS_PKG_ERRORS" >&5
22477 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22478 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22479 { (exit 1); exit 1; }; }
22480 { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22481 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22482 { (exit 1); exit 1; }; }
22483 { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22484 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22485 { (exit 1); exit 1; }; }
22488 elif test $pkg_failed = untried; then
22489 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22490 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22491 { (exit 1); exit 1; }; }
22492 { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22493 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22494 { (exit 1); exit 1; }; }
22495 { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22496 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22497 { (exit 1); exit 1; }; }
22501 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22502 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22503 { echo "$as_me:$LINENO: result: yes" >&5
22504 echo "${ECHO_T}yes" >&6; }
22509 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22510 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22512 if test -n "$PKG_CONFIG"; then
22513 if test -n "$GSSAPI_CFLAGS"; then
22514 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22516 if test -n "$PKG_CONFIG" && \
22517 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22518 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; then
22522 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22530 if test -n "$PKG_CONFIG"; then
22531 if test -n "$GSSAPI_LIBS"; then
22532 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22534 if test -n "$PKG_CONFIG" && \
22535 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22536 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; then
22540 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22551 if test $pkg_failed = yes; then
22553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22554 _pkg_short_errors_supported=yes
22556 _pkg_short_errors_supported=no
22558 if test $_pkg_short_errors_supported = yes; then
22559 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22561 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22563 # Put the nasty error message in config.log where it belongs
22564 echo "$GSSAPI_PKG_ERRORS" >&5
22566 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22571 installed software in a non-standard prefix.
22573 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22574 and GSSAPI_LIBS to avoid the need to call pkg-config.
22575 See the pkg-config man page for more details.
22577 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22581 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22582 installed software in a non-standard prefix.
22584 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22585 and GSSAPI_LIBS to avoid the need to call pkg-config.
22586 See the pkg-config man page for more details.
22588 { (exit 1); exit 1; }; }
22589 elif test $pkg_failed = untried; then
22590 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22591 is in your PATH or set the PKG_CONFIG environment variable to the full
22592 path to pkg-config.
22594 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22595 and GSSAPI_LIBS to avoid the need to call pkg-config.
22596 See the pkg-config man page for more details.
22598 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22599 See \`config.log' for more details." >&5
22600 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22601 is in your PATH or set the PKG_CONFIG environment variable to the full
22602 path to pkg-config.
22604 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22605 and GSSAPI_LIBS to avoid the need to call pkg-config.
22606 See the pkg-config man page for more details.
22608 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22609 See \`config.log' for more details." >&2;}
22610 { (exit 1); exit 1; }; }
22612 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22613 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22614 { echo "$as_me:$LINENO: result: yes" >&5
22615 echo "${ECHO_T}yes" >&6; }
22621 if test "$knfsd_cv_glibc2" = no; then
22622 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22623 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22624 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 ac_check_lib_save_LIBS=$LIBS
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22636 /* Override any GCC internal prototype to avoid an error.
22637 Use char because int might match the return type of a GCC
22638 builtin and then its argument prototype would still apply. */
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (ac_try="$ac_link"
22653 case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658 (eval "$ac_link") 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } &&
22665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22666 { (case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_try") 2>&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; } &&
22675 { ac_try='test -s conftest$ac_exeext'
22676 { (case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_try") 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 ac_cv_lib_bsd_daemon=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_cv_lib_bsd_daemon=no
22693 rm -f conftest.err conftest.$ac_objext \
22694 conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22697 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22698 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22699 if test $ac_cv_lib_bsd_daemon = yes; then
22709 if test "$enable_gss" = yes; then
22711 for ac_header in nfsidmap.h
22713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 ac_res=`eval echo '${'$as_ac_Header'}'`
22721 { echo "$as_me:$LINENO: result: $ac_res" >&5
22722 echo "${ECHO_T}$ac_res" >&6; }
22724 # Is the header compilable?
22725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22734 #include <$ac_header>
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22751 { (case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_try") 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; } &&
22760 { ac_try='test -s conftest.$ac_objext'
22761 { (case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_try") 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 ac_header_compiler=yes
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ac_header_compiler=no
22778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22780 echo "${ECHO_T}$ac_header_compiler" >&6; }
22782 # Is the header present?
22783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22785 cat >conftest.$ac_ext <<_ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22791 #include <$ac_header>
22793 if { (ac_try="$ac_cpp conftest.$ac_ext"
22794 case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22801 grep -v '^ *+' conftest.er1 >conftest.err
22803 cat conftest.err >&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } >/dev/null; then
22806 if test -s conftest.err; then
22807 ac_cpp_err=$ac_c_preproc_warn_flag
22808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22815 if test -z "$ac_cpp_err"; then
22816 ac_header_preproc=yes
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 ac_header_preproc=no
22824 rm -f conftest.err conftest.$ac_ext
22825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22826 echo "${ECHO_T}$ac_header_preproc" >&6; }
22828 # So? What about this header?
22829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22835 ac_header_preproc=yes
22838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22851 ## ------------------------------- ##
22852 ## Report this to nfs@lists.sf.net ##
22853 ## ------------------------------- ##
22855 ) | sed "s/^/$as_me: WARNING: /" >&2
22858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 eval "$as_ac_Header=\$ac_header_preproc"
22865 ac_res=`eval echo '${'$as_ac_Header'}'`
22866 { echo "$as_me:$LINENO: result: $ac_res" >&5
22867 echo "${ECHO_T}$ac_res" >&6; }
22870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22871 cat >>confdefs.h <<_ACEOF
22872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22876 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22877 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22878 { (exit 1); exit 1; }; }
22884 for ac_header in spkm3.h
22886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 ac_res=`eval echo '${'$as_ac_Header'}'`
22894 { echo "$as_me:$LINENO: result: $ac_res" >&5
22895 echo "${ECHO_T}$ac_res" >&6; }
22897 # Is the header compilable?
22898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22907 #include <$ac_header>
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_compile") 2>conftest.er1
22918 grep -v '^ *+' conftest.er1 >conftest.err
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; } &&
22933 { ac_try='test -s conftest.$ac_objext'
22934 { (case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_try") 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 ac_header_compiler=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_header_compiler=no
22951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22953 echo "${ECHO_T}$ac_header_compiler" >&6; }
22955 # Is the header present?
22956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 #include <$ac_header>
22966 if { (ac_try="$ac_cpp conftest.$ac_ext"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } >/dev/null; then
22979 if test -s conftest.err; then
22980 ac_cpp_err=$ac_c_preproc_warn_flag
22981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22988 if test -z "$ac_cpp_err"; then
22989 ac_header_preproc=yes
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ac_header_preproc=no
22997 rm -f conftest.err conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22999 echo "${ECHO_T}$ac_header_preproc" >&6; }
23001 # So? What about this header?
23002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23008 ac_header_preproc=yes
23011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23024 ## ------------------------------- ##
23025 ## Report this to nfs@lists.sf.net ##
23026 ## ------------------------------- ##
23028 ) | sed "s/^/$as_me: WARNING: /" >&2
23031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 eval "$as_ac_Header=\$ac_header_preproc"
23038 ac_res=`eval echo '${'$as_ac_Header'}'`
23039 { echo "$as_me:$LINENO: result: $ac_res" >&5
23040 echo "${ECHO_T}$ac_res" >&6; }
23043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23044 cat >>confdefs.h <<_ACEOF
23045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23049 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23050 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23055 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23056 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23057 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 ac_check_lib_save_LIBS=$LIBS
23061 LIBS="-lnfsidmap $LIBS"
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23069 /* Override any GCC internal prototype to avoid an error.
23070 Use char because int might match the return type of a GCC
23071 builtin and then its argument prototype would still apply. */
23075 char nfs4_set_debug ();
23079 return nfs4_set_debug ();
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_link") 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
23098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23099 { (case "(($ac_try" in
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101 *) ac_try_echo=$ac_try;;
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104 (eval "$ac_try") 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest$ac_exeext'
23109 { (case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_try") 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23126 rm -f conftest.err conftest.$ac_objext \
23127 conftest$ac_exeext conftest.$ac_ext
23128 LIBS=$ac_check_lib_save_LIBS
23130 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23131 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23132 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_NFS4_SET_DEBUG 1
23142 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23143 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23145 # Check whether --with-krb5 was given.
23146 if test "${with_krb5+set}" = set; then
23147 withval=$with_krb5; case "$withval" in
23152 krb5_with="$withval"
23159 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23160 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23162 if test -f $dir/bin/krb5-config; then
23163 K5CONFIG=$dir/bin/krb5-config
23164 elif test -f "/usr/kerberos/bin/krb5-config"; then
23165 K5CONFIG="/usr/kerberos/bin/krb5-config"
23166 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23167 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23169 if test "$K5CONFIG" != ""; then
23170 KRBCFLAGS=`$K5CONFIG --cflags`
23171 KRBLIBS=`$K5CONFIG --libs gssapi`
23172 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23174 cat >>confdefs.h <<_ACEOF
23175 #define KRB5_VERSION $K5VERS
23178 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23179 \( -f $dir/lib/libgssapi_krb5.a -o \
23180 -f $dir/lib/libgssapi_krb5.so \) ; then
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_KRB5 1
23187 if test $K5VERS -le 131; then
23189 cat >>confdefs.h <<\_ACEOF
23190 #define USE_GSS_KRB5_CCACHE_NAME 1
23194 gssapi_lib=gssapi_krb5
23196 elif test \( -f $dir/include/heim_err.h -o\
23197 -f $dir/include/heimdal/heim_err.h \) -a \
23198 -f $dir/lib/libroken.a; then
23200 cat >>confdefs.h <<\_ACEOF
23201 #define HAVE_HEIMDAL 1
23210 if test "x$KRBDIR" = "x"; then
23211 if test "x$krb5_with" = "x"; then
23212 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23213 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23214 { (exit 1); exit 1; }; }
23216 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23217 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23218 { (exit 1); exit 1; }; }
23221 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23222 echo "${ECHO_T}$KRBDIR" >&6; }
23224 echo "The current KRBDIR is $KRBDIR"
23225 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23226 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23228 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23231 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23234 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23235 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23236 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23237 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* Override any GCC internal prototype to avoid an error.
23250 Use char because int might match the return type of a GCC
23251 builtin and then its argument prototype would still apply. */
23255 char gss_krb5_export_lucid_sec_context ();
23259 return gss_krb5_export_lucid_sec_context ();
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
23278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23279 { (case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_try") 2>&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } &&
23288 { ac_try='test -s conftest$ac_exeext'
23289 { (case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_try") 2>&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; }; then
23298 eval "$as_ac_Lib=yes"
23300 echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 eval "$as_ac_Lib=no"
23306 rm -f conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
23308 LIBS=$ac_check_lib_save_LIBS
23310 ac_res=`eval echo '${'$as_ac_Lib'}'`
23311 { echo "$as_me:$LINENO: result: $ac_res" >&5
23312 echo "${ECHO_T}$ac_res" >&6; }
23313 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23315 cat >>confdefs.h <<\_ACEOF
23316 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23321 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23322 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23323 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23324 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 ac_check_lib_save_LIBS=$LIBS
23328 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23336 /* Override any GCC internal prototype to avoid an error.
23337 Use char because int might match the return type of a GCC
23338 builtin and then its argument prototype would still apply. */
23342 char gss_krb5_set_allowable_enctypes ();
23346 return gss_krb5_set_allowable_enctypes ();
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } &&
23365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23366 { (case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_try") 2>&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest$ac_exeext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 eval "$as_ac_Lib=yes"
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 eval "$as_ac_Lib=no"
23393 rm -f conftest.err conftest.$ac_objext \
23394 conftest$ac_exeext conftest.$ac_ext
23395 LIBS=$ac_check_lib_save_LIBS
23397 ac_res=`eval echo '${'$as_ac_Lib'}'`
23398 { echo "$as_me:$LINENO: result: $ac_res" >&5
23399 echo "${ECHO_T}$ac_res" >&6; }
23400 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23408 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23409 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23410 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23411 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 ac_check_lib_save_LIBS=$LIBS
23415 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23423 /* Override any GCC internal prototype to avoid an error.
23424 Use char because int might match the return type of a GCC
23425 builtin and then its argument prototype would still apply. */
23429 char gss_krb5_ccache_name ();
23433 return gss_krb5_ccache_name ();
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (ac_try="$ac_link"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_link") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } &&
23452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23453 { (case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_try") 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest$ac_exeext'
23463 { (case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_try") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 eval "$as_ac_Lib=yes"
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 eval "$as_ac_Lib=no"
23480 rm -f conftest.err conftest.$ac_objext \
23481 conftest$ac_exeext conftest.$ac_ext
23482 LIBS=$ac_check_lib_save_LIBS
23484 ac_res=`eval echo '${'$as_ac_Lib'}'`
23485 { echo "$as_me:$LINENO: result: $ac_res" >&5
23486 echo "${ECHO_T}$ac_res" >&6; }
23487 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23489 cat >>confdefs.h <<\_ACEOF
23490 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23496 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23497 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23498 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23509 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23510 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23511 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23523 /* Override any GCC internal prototype to avoid an error.
23524 Use char because int might match the return type of a GCC
23525 builtin and then its argument prototype would still apply. */
23529 char authgss_create_default ();
23533 return authgss_create_default ();
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1 >conftest.err
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553 { (case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558 (eval "$ac_try") 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; } &&
23562 { ac_try='test -s conftest$ac_exeext'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_try") 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_cv_lib_rpcsecgss_authgss_create_default=no
23580 rm -f conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23582 LIBS=$ac_check_lib_save_LIBS
23584 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23585 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23586 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23589 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23590 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23591 { (exit 1); exit 1; }; }
23594 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23595 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23596 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 ac_check_lib_save_LIBS=$LIBS
23600 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23601 cat >conftest.$ac_ext <<_ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23608 /* Override any GCC internal prototype to avoid an error.
23609 Use char because int might match the return type of a GCC
23610 builtin and then its argument prototype would still apply. */
23614 char authgss_set_debug_level ();
23618 return authgss_set_debug_level ();
23623 rm -f conftest.$ac_objext conftest$ac_exeext
23624 if { (ac_try="$ac_link"
23625 case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_link") 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23638 { (case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_try") 2>&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest$ac_exeext'
23648 { (case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_try") 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23665 rm -f conftest.err conftest.$ac_objext \
23666 conftest$ac_exeext conftest.$ac_ext
23667 LIBS=$ac_check_lib_save_LIBS
23669 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23670 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23671 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23705 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23706 malloc.h memory.h netdb.h netinet/in.h paths.h \
23707 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23708 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23709 syslog.h unistd.h com_err.h et/com_err.h \
23712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 ac_res=`eval echo '${'$as_ac_Header'}'`
23720 { echo "$as_me:$LINENO: result: $ac_res" >&5
23721 echo "${ECHO_T}$ac_res" >&6; }
23723 # Is the header compilable?
23724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23726 cat >conftest.$ac_ext <<_ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h. */
23732 $ac_includes_default
23733 #include <$ac_header>
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_compile") 2>conftest.er1
23744 grep -v '^ *+' conftest.er1 >conftest.err
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } &&
23749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23750 { (case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_try") 2>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; } &&
23759 { ac_try='test -s conftest.$ac_objext'
23760 { (case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_try") 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; }; then
23769 ac_header_compiler=yes
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ac_header_compiler=no
23777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23779 echo "${ECHO_T}$ac_header_compiler" >&6; }
23781 # Is the header present?
23782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23784 cat >conftest.$ac_ext <<_ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #include <$ac_header>
23792 if { (ac_try="$ac_cpp conftest.$ac_ext"
23793 case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23800 grep -v '^ *+' conftest.er1 >conftest.err
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } >/dev/null; then
23805 if test -s conftest.err; then
23806 ac_cpp_err=$ac_c_preproc_warn_flag
23807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23814 if test -z "$ac_cpp_err"; then
23815 ac_header_preproc=yes
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23820 ac_header_preproc=no
23823 rm -f conftest.err conftest.$ac_ext
23824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23825 echo "${ECHO_T}$ac_header_preproc" >&6; }
23827 # So? What about this header?
23828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23834 ac_header_preproc=yes
23837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23850 ## ------------------------------- ##
23851 ## Report this to nfs@lists.sf.net ##
23852 ## ------------------------------- ##
23854 ) | sed "s/^/$as_me: WARNING: /" >&2
23857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23862 eval "$as_ac_Header=\$ac_header_preproc"
23864 ac_res=`eval echo '${'$as_ac_Header'}'`
23865 { echo "$as_me:$LINENO: result: $ac_res" >&5
23866 echo "${ECHO_T}$ac_res" >&6; }
23869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23870 cat >>confdefs.h <<_ACEOF
23871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23879 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23880 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23881 if test "${ac_cv_c_const+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 cat >conftest.$ac_ext <<_ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h. */
23894 /* FIXME: Include the comments suggested by Paul. */
23895 #ifndef __cplusplus
23896 /* Ultrix mips cc rejects this. */
23897 typedef int charset[2];
23899 /* SunOS 4.1.1 cc rejects this. */
23900 char const *const *ccp;
23902 /* NEC SVR4.0.2 mips cc rejects this. */
23903 struct point {int x, y;};
23904 static struct point const zero = {0,0};
23905 /* AIX XL C 1.02.0.0 rejects this.
23906 It does not let you subtract one const X* pointer from another in
23907 an arm of an if-expression whose if-part is not a constant
23909 const char *g = "string";
23910 ccp = &g + (g ? g-g : 0);
23911 /* HPUX 7.0 cc rejects these. */
23914 ccp = (char const *const *) p;
23915 { /* SCO 3.2v4 cc rejects this. */
23917 char const *s = 0 ? (char *) 0 : (char const *) 0;
23922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23923 int x[] = {25, 17};
23924 const int *foo = &x[0];
23927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23928 typedef const int *iptr;
23932 { /* AIX XL C 1.02.0.0 rejects this saying
23933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23934 struct s { int j; const int *ap[3]; };
23935 struct s *b; b->j = 5;
23937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23938 const int foo = 10;
23939 if (!foo) return 0;
23941 return !x[0] && !zero.x;
23948 rm -f conftest.$ac_objext
23949 if { (ac_try="$ac_compile"
23950 case "(($ac_try" in
23951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952 *) ac_try_echo=$ac_try;;
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955 (eval "$ac_compile") 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23963 { (case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_try") 2>&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; } &&
23972 { ac_try='test -s conftest.$ac_objext'
23973 { (case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_try") 2>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23984 echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23992 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23993 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23994 if test $ac_cv_c_const = no; then
23996 cat >>confdefs.h <<\_ACEOF
24002 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24003 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24004 if test "${ac_cv_type_uid_t+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 cat >conftest.$ac_ext <<_ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24013 #include <sys/types.h>
24016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24017 $EGREP "uid_t" >/dev/null 2>&1; then
24018 ac_cv_type_uid_t=yes
24020 ac_cv_type_uid_t=no
24025 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24026 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24027 if test $ac_cv_type_uid_t = no; then
24029 cat >>confdefs.h <<\_ACEOF
24034 cat >>confdefs.h <<\_ACEOF
24040 { echo "$as_me:$LINENO: checking for inline" >&5
24041 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24042 if test "${ac_cv_c_inline+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24046 for ac_kw in inline __inline__ __inline; do
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #ifndef __cplusplus
24055 static $ac_kw foo_t static_foo () {return 0; }
24056 $ac_kw foo_t foo () {return 0; }
24060 rm -f conftest.$ac_objext
24061 if { (ac_try="$ac_compile"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067 (eval "$ac_compile") 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } &&
24074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24075 { (case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080 (eval "$ac_try") 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; } &&
24084 { ac_try='test -s conftest.$ac_objext'
24085 { (case "(($ac_try" in
24086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087 *) ac_try_echo=$ac_try;;
24089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090 (eval "$ac_try") 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; }; then
24094 ac_cv_c_inline=$ac_kw
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24103 test "$ac_cv_c_inline" != no && break
24107 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24108 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24111 case $ac_cv_c_inline in
24114 case $ac_cv_c_inline in
24116 *) ac_val=$ac_cv_c_inline;;
24118 cat >>confdefs.h <<_ACEOF
24119 #ifndef __cplusplus
24120 #define inline $ac_val
24126 { echo "$as_me:$LINENO: checking for off_t" >&5
24127 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24128 if test "${ac_cv_type_off_t+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24138 typedef off_t ac__type_new_;
24142 if ((ac__type_new_ *) 0)
24144 if (sizeof (ac__type_new_))
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24159 grep -v '^ *+' conftest.er1 >conftest.err
24161 cat conftest.err >&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } &&
24164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24165 { (case "(($ac_try" in
24166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167 *) ac_try_echo=$ac_try;;
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170 (eval "$ac_try") 2>&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; } &&
24174 { ac_try='test -s conftest.$ac_objext'
24175 { (case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_try") 2>&5
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 ac_cv_type_off_t=yes
24186 echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24189 ac_cv_type_off_t=no
24192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24194 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24195 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24196 if test $ac_cv_type_off_t = yes; then
24200 cat >>confdefs.h <<_ACEOF
24201 #define off_t long int
24206 { echo "$as_me:$LINENO: checking for pid_t" >&5
24207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24208 if test "${ac_cv_type_pid_t+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 cat >conftest.$ac_ext <<_ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24217 $ac_includes_default
24218 typedef pid_t ac__type_new_;
24222 if ((ac__type_new_ *) 0)
24224 if (sizeof (ac__type_new_))
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_compile") 2>conftest.er1
24239 grep -v '^ *+' conftest.er1 >conftest.err
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } &&
24244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24245 { (case "(($ac_try" in
24246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247 *) ac_try_echo=$ac_try;;
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250 (eval "$ac_try") 2>&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); }; } &&
24254 { ac_try='test -s conftest.$ac_objext'
24255 { (case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_try") 2>&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 ac_cv_type_pid_t=yes
24266 echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24269 ac_cv_type_pid_t=no
24272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24274 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24275 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24276 if test $ac_cv_type_pid_t = yes; then
24280 cat >>confdefs.h <<_ACEOF
24286 { echo "$as_me:$LINENO: checking for size_t" >&5
24287 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24288 if test "${ac_cv_type_size_t+set}" = set; then
24289 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 $ac_includes_default
24298 typedef size_t ac__type_new_;
24302 if ((ac__type_new_ *) 0)
24304 if (sizeof (ac__type_new_))
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24319 grep -v '^ *+' conftest.er1 >conftest.err
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24325 { (case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_try") 2>&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; } &&
24334 { ac_try='test -s conftest.$ac_objext'
24335 { (case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340 (eval "$ac_try") 2>&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; }; then
24344 ac_cv_type_size_t=yes
24346 echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24349 ac_cv_type_size_t=no
24352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24356 if test $ac_cv_type_size_t = yes; then
24360 cat >>confdefs.h <<_ACEOF
24361 #define size_t unsigned int
24366 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24367 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24368 if test "${ac_cv_header_time+set}" = set; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 cat >conftest.$ac_ext <<_ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 #include <sys/types.h>
24378 #include <sys/time.h>
24384 if ((struct tm *) 0)
24390 rm -f conftest.$ac_objext
24391 if { (ac_try="$ac_compile"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } &&
24404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24405 { (case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_try") 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } &&
24414 { ac_try='test -s conftest.$ac_objext'
24415 { (case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_try") 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_cv_header_time=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_cv_header_time=no
24432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24435 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24436 if test $ac_cv_header_time = yes; then
24438 cat >>confdefs.h <<\_ACEOF
24439 #define TIME_WITH_SYS_TIME 1
24444 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24445 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_struct_tm+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 #include <sys/types.h>
24461 struct tm *tp; tp->tm_sec;
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
24480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_try") 2>&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest.$ac_objext'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 ac_cv_struct_tm=time.h
24502 echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24505 ac_cv_struct_tm=sys/time.h
24508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24510 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24511 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24512 if test $ac_cv_struct_tm = sys/time.h; then
24514 cat >>confdefs.h <<\_ACEOF
24515 #define TM_IN_SYS_TIME 1
24521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24522 # for constant arguments. Useless!
24523 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24524 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24525 if test "${ac_cv_working_alloca_h+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 cat >conftest.$ac_ext <<_ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h. */
24534 #include <alloca.h>
24538 char *p = (char *) alloca (2 * sizeof (int));
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_link") 2>conftest.er1
24552 grep -v '^ *+' conftest.er1 >conftest.err
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } &&
24557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24558 { (case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_try") 2>&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; } &&
24567 { ac_try='test -s conftest$ac_exeext'
24568 { (case "(($ac_try" in
24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570 *) ac_try_echo=$ac_try;;
24572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573 (eval "$ac_try") 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 ac_cv_working_alloca_h=yes
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 ac_cv_working_alloca_h=no
24585 rm -f conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24589 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24590 if test $ac_cv_working_alloca_h = yes; then
24592 cat >>confdefs.h <<\_ACEOF
24593 #define HAVE_ALLOCA_H 1
24598 { echo "$as_me:$LINENO: checking for alloca" >&5
24599 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24600 if test "${ac_cv_func_alloca_works+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24610 # define alloca __builtin_alloca
24613 # include <malloc.h>
24614 # define alloca _alloca
24617 # include <alloca.h>
24622 # ifndef alloca /* predefined by HP cc +Olibcalls */
24633 char *p = (char *) alloca (1);
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } &&
24652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest$ac_exeext'
24663 { (case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_try") 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24672 ac_cv_func_alloca_works=yes
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 ac_cv_func_alloca_works=no
24680 rm -f conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
24683 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24684 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24686 if test $ac_cv_func_alloca_works = yes; then
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_ALLOCA 1
24693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24694 # that cause trouble. Some versions do not even contain alloca or
24695 # contain a buggy version. If you still want to use their alloca,
24696 # use ar to extract alloca.o from them instead of compiling alloca.c.
24698 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24700 cat >>confdefs.h <<\_ACEOF
24705 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24706 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24707 if test "${ac_cv_os_cray+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 #if defined CRAY && ! defined CRAY2
24723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24724 $EGREP "webecray" >/dev/null 2>&1; then
24732 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24733 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24734 if test $ac_cv_os_cray = yes; then
24735 for ac_func in _getb67 GETB67 getb67; do
24736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 cat >conftest.$ac_ext <<_ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h. */
24748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24750 #define $ac_func innocuous_$ac_func
24752 /* System header to define __stub macros and hopefully few prototypes,
24753 which can conflict with char $ac_func (); below.
24754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24755 <limits.h> exists even on freestanding compilers. */
24758 # include <limits.h>
24760 # include <assert.h>
24765 /* Override any GCC internal prototype to avoid an error.
24766 Use char because int might match the return type of a GCC
24767 builtin and then its argument prototype would still apply. */
24772 /* The GNU C library defines this for functions which it implements
24773 to always fail with ENOSYS. Some functions are actually named
24774 something starting with __ and the normal name is an alias. */
24775 #if defined __stub_$ac_func || defined __stub___$ac_func
24782 return $ac_func ();
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_link") 2>conftest.er1
24796 grep -v '^ *+' conftest.er1 >conftest.err
24798 cat conftest.err >&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
24801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24802 { (case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24807 (eval "$ac_try") 2>&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; } &&
24811 { ac_try='test -s conftest$ac_exeext'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817 (eval "$ac_try") 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 eval "$as_ac_var=yes"
24823 echo "$as_me: failed program was:" >&5
24824 sed 's/^/| /' conftest.$ac_ext >&5
24826 eval "$as_ac_var=no"
24829 rm -f conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24832 ac_res=`eval echo '${'$as_ac_var'}'`
24833 { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 if test `eval echo '${'$as_ac_var'}'` = yes; then
24837 cat >>confdefs.h <<_ACEOF
24838 #define CRAY_STACKSEG_END $ac_func
24847 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24848 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24849 if test "${ac_cv_c_stack_direction+set}" = set; then
24850 echo $ECHO_N "(cached) $ECHO_C" >&6
24852 if test "$cross_compiling" = yes; then
24853 ac_cv_c_stack_direction=0
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 $ac_includes_default
24863 find_stack_direction ()
24865 static char *addr = 0;
24870 return find_stack_direction ();
24873 return (&dummy > addr) ? 1 : -1;
24879 return find_stack_direction () < 0;
24882 rm -f conftest$ac_exeext
24883 if { (ac_try="$ac_link"
24884 case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_link") 2>&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24893 { (case "(($ac_try" in
24894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898 (eval "$ac_try") 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_c_stack_direction=1
24904 echo "$as_me: program exited with status $ac_status" >&5
24905 echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 ( exit $ac_status )
24909 ac_cv_c_stack_direction=-1
24911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24916 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24917 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24919 cat >>confdefs.h <<_ACEOF
24920 #define STACK_DIRECTION $ac_cv_c_stack_direction
24931 ac_header_dirent=no
24932 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24933 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24934 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24935 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24937 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 cat >conftest.$ac_ext <<_ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 #include <sys/types.h>
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964 (eval "$ac_compile") 2>conftest.er1
24966 grep -v '^ *+' conftest.er1 >conftest.err
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } &&
24971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24972 { (case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977 (eval "$ac_try") 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; } &&
24981 { ac_try='test -s conftest.$ac_objext'
24982 { (case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987 (eval "$ac_try") 2>&5
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; }; then
24991 eval "$as_ac_Header=yes"
24993 echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24996 eval "$as_ac_Header=no"
24999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25001 ac_res=`eval echo '${'$as_ac_Header'}'`
25002 { echo "$as_me:$LINENO: result: $ac_res" >&5
25003 echo "${ECHO_T}$ac_res" >&6; }
25004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25005 cat >>confdefs.h <<_ACEOF
25006 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25009 ac_header_dirent=$ac_hdr; break
25013 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25014 if test $ac_header_dirent = dirent.h; then
25015 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25017 if test "${ac_cv_search_opendir+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25020 ac_func_search_save_LIBS=$LIBS
25021 cat >conftest.$ac_ext <<_ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25028 /* Override any GCC internal prototype to avoid an error.
25029 Use char because int might match the return type of a GCC
25030 builtin and then its argument prototype would still apply. */
25043 for ac_lib in '' dir; do
25044 if test -z "$ac_lib"; then
25045 ac_res="none required"
25048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (ac_try="$ac_link"
25052 case "(($ac_try" in
25053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054 *) ac_try_echo=$ac_try;;
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057 (eval "$ac_link") 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
25064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25065 { (case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_try") 2>&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; } &&
25074 { ac_try='test -s conftest$ac_exeext'
25075 { (case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_try") 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ac_cv_search_opendir=$ac_res
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25092 rm -f conftest.err conftest.$ac_objext \
25094 if test "${ac_cv_search_opendir+set}" = set; then
25098 if test "${ac_cv_search_opendir+set}" = set; then
25101 ac_cv_search_opendir=no
25103 rm conftest.$ac_ext
25104 LIBS=$ac_func_search_save_LIBS
25106 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25107 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25108 ac_res=$ac_cv_search_opendir
25109 if test "$ac_res" != no; then
25110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25115 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25117 if test "${ac_cv_search_opendir+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25120 ac_func_search_save_LIBS=$LIBS
25121 cat >conftest.$ac_ext <<_ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h. */
25128 /* Override any GCC internal prototype to avoid an error.
25129 Use char because int might match the return type of a GCC
25130 builtin and then its argument prototype would still apply. */
25143 for ac_lib in '' x; do
25144 if test -z "$ac_lib"; then
25145 ac_res="none required"
25148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25150 rm -f conftest.$ac_objext conftest$ac_exeext
25151 if { (ac_try="$ac_link"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_link") 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } &&
25164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25165 { (case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_try") 2>&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; } &&
25174 { ac_try='test -s conftest$ac_exeext'
25175 { (case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180 (eval "$ac_try") 2>&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; }; then
25184 ac_cv_search_opendir=$ac_res
25186 echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25192 rm -f conftest.err conftest.$ac_objext \
25194 if test "${ac_cv_search_opendir+set}" = set; then
25198 if test "${ac_cv_search_opendir+set}" = set; then
25201 ac_cv_search_opendir=no
25203 rm conftest.$ac_ext
25204 LIBS=$ac_func_search_save_LIBS
25206 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25207 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25208 ac_res=$ac_cv_search_opendir
25209 if test "$ac_res" != no; then
25210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25216 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25217 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25218 if test "${ac_cv_func_closedir_void+set}" = set; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25221 if test "$cross_compiling" = yes; then
25222 ac_cv_func_closedir_void=yes
25224 cat >conftest.$ac_ext <<_ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230 $ac_includes_default
25231 #include <$ac_header_dirent>
25232 #ifndef __cplusplus
25239 return closedir (opendir (".")) != 0;
25244 rm -f conftest$ac_exeext
25245 if { (ac_try="$ac_link"
25246 case "(($ac_try" in
25247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251 (eval "$ac_link") 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25255 { (case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260 (eval "$ac_try") 2>&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; }; then
25264 ac_cv_func_closedir_void=no
25266 echo "$as_me: program exited with status $ac_status" >&5
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25270 ( exit $ac_status )
25271 ac_cv_func_closedir_void=yes
25273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25278 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25279 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25280 if test $ac_cv_func_closedir_void = yes; then
25282 cat >>confdefs.h <<\_ACEOF
25283 #define CLOSEDIR_VOID 1
25288 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25289 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25290 if test "${ac_cv_lib_error_at_line+set}" = set; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25299 $ac_includes_default
25303 error_at_line (0, 0, "", 0, "");
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (ac_try="$ac_link"
25310 case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315 (eval "$ac_link") 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25323 { (case "(($ac_try" in
25324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325 *) ac_try_echo=$ac_try;;
25327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25328 (eval "$ac_try") 2>&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest$ac_exeext'
25333 { (case "(($ac_try" in
25334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335 *) ac_try_echo=$ac_try;;
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338 (eval "$ac_try") 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_lib_error_at_line=yes
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_cv_lib_error_at_line=no
25350 rm -f conftest.err conftest.$ac_objext \
25351 conftest$ac_exeext conftest.$ac_ext
25353 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25354 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25355 if test $ac_cv_lib_error_at_line = no; then
25356 case " $LIBOBJS " in
25357 *" error.$ac_objext "* ) ;;
25358 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25365 for ac_header in vfork.h
25367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25374 ac_res=`eval echo '${'$as_ac_Header'}'`
25375 { echo "$as_me:$LINENO: result: $ac_res" >&5
25376 echo "${ECHO_T}$ac_res" >&6; }
25378 # Is the header compilable?
25379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25388 #include <$ac_header>
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
25404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25405 { (case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_try") 2>&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try='test -s conftest.$ac_objext'
25415 { (case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_try") 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 ac_header_compiler=yes
25426 echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25429 ac_header_compiler=no
25432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25434 echo "${ECHO_T}$ac_header_compiler" >&6; }
25436 # Is the header present?
25437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25439 cat >conftest.$ac_ext <<_ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25445 #include <$ac_header>
25447 if { (ac_try="$ac_cpp conftest.$ac_ext"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25455 grep -v '^ *+' conftest.er1 >conftest.err
25457 cat conftest.err >&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } >/dev/null; then
25460 if test -s conftest.err; then
25461 ac_cpp_err=$ac_c_preproc_warn_flag
25462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25469 if test -z "$ac_cpp_err"; then
25470 ac_header_preproc=yes
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25475 ac_header_preproc=no
25478 rm -f conftest.err conftest.$ac_ext
25479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25480 echo "${ECHO_T}$ac_header_preproc" >&6; }
25482 # So? What about this header?
25483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25489 ac_header_preproc=yes
25492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25505 ## ------------------------------- ##
25506 ## Report this to nfs@lists.sf.net ##
25507 ## ------------------------------- ##
25509 ) | sed "s/^/$as_me: WARNING: /" >&2
25512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25517 eval "$as_ac_Header=\$ac_header_preproc"
25519 ac_res=`eval echo '${'$as_ac_Header'}'`
25520 { echo "$as_me:$LINENO: result: $ac_res" >&5
25521 echo "${ECHO_T}$ac_res" >&6; }
25524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25525 cat >>confdefs.h <<_ACEOF
25526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25535 for ac_func in fork vfork
25537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25551 #define $ac_func innocuous_$ac_func
25553 /* System header to define __stub macros and hopefully few prototypes,
25554 which can conflict with char $ac_func (); below.
25555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25556 <limits.h> exists even on freestanding compilers. */
25559 # include <limits.h>
25561 # include <assert.h>
25566 /* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25573 /* The GNU C library defines this for functions which it implements
25574 to always fail with ENOSYS. Some functions are actually named
25575 something starting with __ and the normal name is an alias. */
25576 #if defined __stub_$ac_func || defined __stub___$ac_func
25583 return $ac_func ();
25588 rm -f conftest.$ac_objext conftest$ac_exeext
25589 if { (ac_try="$ac_link"
25590 case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595 (eval "$ac_link") 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25603 { (case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_try") 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; } &&
25612 { ac_try='test -s conftest$ac_exeext'
25613 { (case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_try") 2>&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; }; then
25622 eval "$as_ac_var=yes"
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 eval "$as_ac_var=no"
25630 rm -f conftest.err conftest.$ac_objext \
25631 conftest$ac_exeext conftest.$ac_ext
25633 ac_res=`eval echo '${'$as_ac_var'}'`
25634 { echo "$as_me:$LINENO: result: $ac_res" >&5
25635 echo "${ECHO_T}$ac_res" >&6; }
25636 if test `eval echo '${'$as_ac_var'}'` = yes; then
25637 cat >>confdefs.h <<_ACEOF
25638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25644 if test "x$ac_cv_func_fork" = xyes; then
25645 { echo "$as_me:$LINENO: checking for working fork" >&5
25646 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25647 if test "${ac_cv_func_fork_works+set}" = set; then
25648 echo $ECHO_N "(cached) $ECHO_C" >&6
25650 if test "$cross_compiling" = yes; then
25651 ac_cv_func_fork_works=cross
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 $ac_includes_default
25664 /* By Ruediger Kuhlmann. */
25665 return fork () < 0;
25671 rm -f conftest$ac_exeext
25672 if { (ac_try="$ac_link"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678 (eval "$ac_link") 2>&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25682 { (case "(($ac_try" in
25683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684 *) ac_try_echo=$ac_try;;
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687 (eval "$ac_try") 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 ac_cv_func_fork_works=yes
25693 echo "$as_me: program exited with status $ac_status" >&5
25694 echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ( exit $ac_status )
25698 ac_cv_func_fork_works=no
25700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25705 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25706 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25709 ac_cv_func_fork_works=$ac_cv_func_fork
25711 if test "x$ac_cv_func_fork_works" = xcross; then
25713 *-*-amigaos* | *-*-msdosdjgpp*)
25714 # Override, as these systems have only a dummy fork() stub
25715 ac_cv_func_fork_works=no
25718 ac_cv_func_fork_works=yes
25721 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25722 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25724 ac_cv_func_vfork_works=$ac_cv_func_vfork
25725 if test "x$ac_cv_func_vfork" = xyes; then
25726 { echo "$as_me:$LINENO: checking for working vfork" >&5
25727 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25728 if test "${ac_cv_func_vfork_works+set}" = set; then
25729 echo $ECHO_N "(cached) $ECHO_C" >&6
25731 if test "$cross_compiling" = yes; then
25732 ac_cv_func_vfork_works=cross
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 /* Thanks to Paul Eggert for this test. */
25741 $ac_includes_default
25742 #include <sys/wait.h>
25744 # include <vfork.h>
25746 /* On some sparc systems, changes by the child to local and incoming
25747 argument registers are propagated back to the parent. The compiler
25748 is told about this with #include <vfork.h>, but some compilers
25749 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25750 static variable whose address is put into a register that is
25751 clobbered by the vfork. */
25754 sparc_address_test (int arg)
25756 sparc_address_test (arg) int arg;
25759 static pid_t child;
25777 pid_t parent = getpid ();
25780 sparc_address_test (0);
25785 /* Here is another test for sparc vfork register problems. This
25786 test uses lots of local variables, at least as many local
25787 variables as main has allocated so far including compiler
25788 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25789 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25790 reuse the register of parent for one of the local variables,
25791 since it will think that parent can't possibly be used any more
25792 in this routine. Assigning to the local variable will thus
25793 munge parent in the parent process. */
25795 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25796 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25797 /* Convince the compiler that p..p7 are live; otherwise, it might
25798 use the same hardware register for all 8 local variables. */
25799 if (p != p1 || p != p2 || p != p3 || p != p4
25800 || p != p5 || p != p6 || p != p7)
25803 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25804 from child file descriptors. If the child closes a descriptor
25805 before it execs or exits, this munges the parent's descriptor
25806 as well. Test for this by closing stdout in the child. */
25807 _exit(close(fileno(stdout)) != 0);
25812 while (wait(&status) != child)
25815 /* Was there some problem with vforking? */
25818 /* Did the child fail? (This shouldn't happen.) */
25821 /* Did the vfork/compiler bug occur? */
25822 || parent != getpid()
25824 /* Did the file descriptor bug occur? */
25825 || fstat(fileno(stdout), &st) != 0
25830 rm -f conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837 (eval "$ac_link") 2>&5
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25841 { (case "(($ac_try" in
25842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843 *) ac_try_echo=$ac_try;;
25845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25846 (eval "$ac_try") 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850 ac_cv_func_vfork_works=yes
25852 echo "$as_me: program exited with status $ac_status" >&5
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25856 ( exit $ac_status )
25857 ac_cv_func_vfork_works=no
25859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25864 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25865 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25868 if test "x$ac_cv_func_fork_works" = xcross; then
25869 ac_cv_func_vfork_works=$ac_cv_func_vfork
25870 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25871 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25874 if test "x$ac_cv_func_vfork_works" = xyes; then
25876 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_WORKING_VFORK 1
25882 cat >>confdefs.h <<\_ACEOF
25887 if test "x$ac_cv_func_fork_works" = xyes; then
25889 cat >>confdefs.h <<\_ACEOF
25890 #define HAVE_WORKING_FORK 1
25895 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25896 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25897 if test "${ac_cv_type_getgroups+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25900 if test "$cross_compiling" = yes; then
25901 ac_cv_type_getgroups=cross
25903 cat >conftest.$ac_ext <<_ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h. */
25909 /* Thanks to Mike Rendell for this test. */
25910 $ac_includes_default
25913 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25918 gid_t gidset[NGID];
25920 union { gid_t gval; long int lval; } val;
25923 for (i = 0; i < NGID; i++)
25924 gidset[i] = val.gval;
25925 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25927 /* Exit non-zero if getgroups seems to require an array of ints. This
25928 happens when gid_t is short int but getgroups modifies an array
25930 return n > 0 && gidset[n] != val.gval;
25933 rm -f conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940 (eval "$ac_link") 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25944 { (case "(($ac_try" in
25945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946 *) ac_try_echo=$ac_try;;
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949 (eval "$ac_try") 2>&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_type_getgroups=gid_t
25955 echo "$as_me: program exited with status $ac_status" >&5
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 ( exit $ac_status )
25960 ac_cv_type_getgroups=int
25962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966 if test $ac_cv_type_getgroups = cross; then
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25973 #include <unistd.h>
25976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25977 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25978 ac_cv_type_getgroups=gid_t
25980 ac_cv_type_getgroups=int
25986 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25987 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25989 cat >>confdefs.h <<_ACEOF
25990 #define GETGROUPS_T $ac_cv_type_getgroups
25994 { echo "$as_me:$LINENO: checking for getgroups" >&5
25995 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25996 if test "${ac_cv_func_getgroups+set}" = set; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26007 #define getgroups innocuous_getgroups
26009 /* System header to define __stub macros and hopefully few prototypes,
26010 which can conflict with char getgroups (); below.
26011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26012 <limits.h> exists even on freestanding compilers. */
26015 # include <limits.h>
26017 # include <assert.h>
26022 /* Override any GCC internal prototype to avoid an error.
26023 Use char because int might match the return type of a GCC
26024 builtin and then its argument prototype would still apply. */
26029 /* The GNU C library defines this for functions which it implements
26030 to always fail with ENOSYS. Some functions are actually named
26031 something starting with __ and the normal name is an alias. */
26032 #if defined __stub_getgroups || defined __stub___getgroups
26039 return getgroups ();
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (ac_try="$ac_link"
26046 case "(($ac_try" in
26047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048 *) ac_try_echo=$ac_try;;
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051 (eval "$ac_link") 2>conftest.er1
26053 grep -v '^ *+' conftest.er1 >conftest.err
26055 cat conftest.err >&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } &&
26058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26059 { (case "(($ac_try" in
26060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26061 *) ac_try_echo=$ac_try;;
26063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26064 (eval "$ac_try") 2>&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; } &&
26068 { ac_try='test -s conftest$ac_exeext'
26069 { (case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074 (eval "$ac_try") 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 ac_cv_func_getgroups=yes
26080 echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26083 ac_cv_func_getgroups=no
26086 rm -f conftest.err conftest.$ac_objext \
26087 conftest$ac_exeext conftest.$ac_ext
26089 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26090 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26093 # If we don't yet have getgroups, see if it's in -lbsd.
26094 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26096 if test $ac_cv_func_getgroups = no; then
26097 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26098 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26099 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 ac_check_lib_save_LIBS=$LIBS
26104 cat >conftest.$ac_ext <<_ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h. */
26111 /* Override any GCC internal prototype to avoid an error.
26112 Use char because int might match the return type of a GCC
26113 builtin and then its argument prototype would still apply. */
26121 return getgroups ();
26126 rm -f conftest.$ac_objext conftest$ac_exeext
26127 if { (ac_try="$ac_link"
26128 case "(($ac_try" in
26129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130 *) ac_try_echo=$ac_try;;
26132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26133 (eval "$ac_link") 2>conftest.er1
26135 grep -v '^ *+' conftest.er1 >conftest.err
26137 cat conftest.err >&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
26140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26141 { (case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_try") 2>&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; } &&
26150 { ac_try='test -s conftest$ac_exeext'
26151 { (case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156 (eval "$ac_try") 2>&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }; }; then
26160 ac_cv_lib_bsd_getgroups=yes
26162 echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26165 ac_cv_lib_bsd_getgroups=no
26168 rm -f conftest.err conftest.$ac_objext \
26169 conftest$ac_exeext conftest.$ac_ext
26170 LIBS=$ac_check_lib_save_LIBS
26172 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26173 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26174 if test $ac_cv_lib_bsd_getgroups = yes; then
26175 GETGROUPS_LIB=-lbsd
26180 # Run the program to test the functionality of the system-supplied
26181 # getgroups function only if there is such a function.
26182 if test $ac_cv_func_getgroups = yes; then
26183 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26184 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26185 if test "${ac_cv_func_getgroups_works+set}" = set; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 if test "$cross_compiling" = yes; then
26189 ac_cv_func_getgroups_works=no
26191 cat >conftest.$ac_ext <<_ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h. */
26197 $ac_includes_default
26201 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26202 return getgroups (0, 0) == -1;
26207 rm -f conftest$ac_exeext
26208 if { (ac_try="$ac_link"
26209 case "(($ac_try" in
26210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26211 *) ac_try_echo=$ac_try;;
26213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26214 (eval "$ac_link") 2>&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26218 { (case "(($ac_try" in
26219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26220 *) ac_try_echo=$ac_try;;
26222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26223 (eval "$ac_try") 2>&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 ac_cv_func_getgroups_works=yes
26229 echo "$as_me: program exited with status $ac_status" >&5
26230 echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26233 ( exit $ac_status )
26234 ac_cv_func_getgroups_works=no
26236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26242 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26243 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26244 if test $ac_cv_func_getgroups_works = yes; then
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_GETGROUPS 1
26254 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26255 # -lseq on Dynix/PTX, -lgen on Unixware.
26256 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26257 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26258 if test "${ac_cv_search_getmntent+set}" = set; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26261 ac_func_search_save_LIBS=$LIBS
26262 cat >conftest.$ac_ext <<_ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26269 /* Override any GCC internal prototype to avoid an error.
26270 Use char because int might match the return type of a GCC
26271 builtin and then its argument prototype would still apply. */
26279 return getmntent ();
26284 for ac_lib in '' sun seq gen; do
26285 if test -z "$ac_lib"; then
26286 ac_res="none required"
26289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26291 rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (ac_try="$ac_link"
26293 case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298 (eval "$ac_link") 2>conftest.er1
26300 grep -v '^ *+' conftest.er1 >conftest.err
26302 cat conftest.err >&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } &&
26305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26306 { (case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_try") 2>&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; } &&
26315 { ac_try='test -s conftest$ac_exeext'
26316 { (case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_try") 2>&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_cv_search_getmntent=$ac_res
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26333 rm -f conftest.err conftest.$ac_objext \
26335 if test "${ac_cv_search_getmntent+set}" = set; then
26339 if test "${ac_cv_search_getmntent+set}" = set; then
26342 ac_cv_search_getmntent=no
26344 rm conftest.$ac_ext
26345 LIBS=$ac_func_search_save_LIBS
26347 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26348 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26349 ac_res=$ac_cv_search_getmntent
26350 if test "$ac_res" != no; then
26351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26356 for ac_func in getmntent
26358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26372 #define $ac_func innocuous_$ac_func
26374 /* System header to define __stub macros and hopefully few prototypes,
26375 which can conflict with char $ac_func (); below.
26376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26377 <limits.h> exists even on freestanding compilers. */
26380 # include <limits.h>
26382 # include <assert.h>
26387 /* Override any GCC internal prototype to avoid an error.
26388 Use char because int might match the return type of a GCC
26389 builtin and then its argument prototype would still apply. */
26394 /* The GNU C library defines this for functions which it implements
26395 to always fail with ENOSYS. Some functions are actually named
26396 something starting with __ and the normal name is an alias. */
26397 #if defined __stub_$ac_func || defined __stub___$ac_func
26404 return $ac_func ();
26409 rm -f conftest.$ac_objext conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413 *) ac_try_echo=$ac_try;;
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_link") 2>conftest.er1
26418 grep -v '^ *+' conftest.er1 >conftest.err
26420 cat conftest.err >&5
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } &&
26423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26424 { (case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_try") 2>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest$ac_exeext'
26434 { (case "(($ac_try" in
26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439 (eval "$ac_try") 2>&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 eval "$as_ac_var=yes"
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 eval "$as_ac_var=no"
26451 rm -f conftest.err conftest.$ac_objext \
26452 conftest$ac_exeext conftest.$ac_ext
26454 ac_res=`eval echo '${'$as_ac_var'}'`
26455 { echo "$as_me:$LINENO: result: $ac_res" >&5
26456 echo "${ECHO_T}$ac_res" >&6; }
26457 if test `eval echo '${'$as_ac_var'}'` = yes; then
26458 cat >>confdefs.h <<_ACEOF
26459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26466 if test $ac_cv_c_compiler_gnu = yes; then
26467 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26468 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26469 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 ac_pattern="Autoconf.*'x'"
26473 cat >conftest.$ac_ext <<_ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h. */
26482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26483 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26484 ac_cv_prog_gcc_traditional=yes
26486 ac_cv_prog_gcc_traditional=no
26491 if test $ac_cv_prog_gcc_traditional = no; then
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 #include <termio.h>
26501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26502 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26503 ac_cv_prog_gcc_traditional=yes
26509 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26510 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26511 if test $ac_cv_prog_gcc_traditional = yes; then
26512 CC="$CC -traditional"
26516 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26517 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26518 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 rm -f conftest.sym conftest.file
26522 echo >conftest.file
26523 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26524 if test "$cross_compiling" = yes; then
26525 ac_cv_func_lstat_dereferences_slashed_symlink=no
26527 cat >conftest.$ac_ext <<_ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h. */
26533 $ac_includes_default
26538 /* Linux will dereference the symlink and fail.
26539 That is better in the sense that it means we will not
26540 have to compile and use the lstat wrapper. */
26541 return lstat ("conftest.sym/", &sbuf) == 0;
26546 rm -f conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26557 { (case "(($ac_try" in
26558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559 *) ac_try_echo=$ac_try;;
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562 (eval "$ac_try") 2>&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); }; }; then
26566 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26568 echo "$as_me: program exited with status $ac_status" >&5
26569 echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26572 ( exit $ac_status )
26573 ac_cv_func_lstat_dereferences_slashed_symlink=no
26575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26580 # If the `ln -s' command failed, then we probably don't even
26581 # have an lstat function.
26582 ac_cv_func_lstat_dereferences_slashed_symlink=no
26584 rm -f conftest.sym conftest.file
26587 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26588 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26590 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26592 cat >>confdefs.h <<_ACEOF
26593 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26597 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26598 case " $LIBOBJS " in
26599 *" lstat.$ac_objext "* ) ;;
26600 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26606 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26607 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26608 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
26611 if test "$cross_compiling" = yes; then
26612 ac_cv_func_lstat_empty_string_bug=yes
26614 cat >conftest.$ac_ext <<_ACEOF
26617 cat confdefs.h >>conftest.$ac_ext
26618 cat >>conftest.$ac_ext <<_ACEOF
26619 /* end confdefs.h. */
26620 $ac_includes_default
26625 return lstat ("", &sbuf) == 0;
26630 rm -f conftest$ac_exeext
26631 if { (ac_try="$ac_link"
26632 case "(($ac_try" in
26633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637 (eval "$ac_link") 2>&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26641 { (case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26646 (eval "$ac_try") 2>&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); }; }; then
26650 ac_cv_func_lstat_empty_string_bug=no
26652 echo "$as_me: program exited with status $ac_status" >&5
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ( exit $ac_status )
26657 ac_cv_func_lstat_empty_string_bug=yes
26659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26664 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26665 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26666 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26667 case " $LIBOBJS " in
26668 *" lstat.$ac_objext "* ) ;;
26669 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26674 cat >>confdefs.h <<_ACEOF
26675 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26680 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26681 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26682 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26683 echo $ECHO_N "(cached) $ECHO_C" >&6
26685 rm -f conftest.sym conftest.file
26686 echo >conftest.file
26687 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26688 if test "$cross_compiling" = yes; then
26689 ac_cv_func_lstat_dereferences_slashed_symlink=no
26691 cat >conftest.$ac_ext <<_ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h. */
26697 $ac_includes_default
26702 /* Linux will dereference the symlink and fail.
26703 That is better in the sense that it means we will not
26704 have to compile and use the lstat wrapper. */
26705 return lstat ("conftest.sym/", &sbuf) == 0;
26710 rm -f conftest$ac_exeext
26711 if { (ac_try="$ac_link"
26712 case "(($ac_try" in
26713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26714 *) ac_try_echo=$ac_try;;
26716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26717 (eval "$ac_link") 2>&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26721 { (case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726 (eval "$ac_try") 2>&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; }; then
26730 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26732 echo "$as_me: program exited with status $ac_status" >&5
26733 echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26736 ( exit $ac_status )
26737 ac_cv_func_lstat_dereferences_slashed_symlink=no
26739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26744 # If the `ln -s' command failed, then we probably don't even
26745 # have an lstat function.
26746 ac_cv_func_lstat_dereferences_slashed_symlink=no
26748 rm -f conftest.sym conftest.file
26751 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26752 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26754 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26756 cat >>confdefs.h <<_ACEOF
26757 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26761 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26762 case " $LIBOBJS " in
26763 *" lstat.$ac_objext "* ) ;;
26764 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26770 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26771 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26772 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 #include <sys/types.h>
26785 return makedev(0, 0);
26790 rm -f conftest.$ac_objext conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794 *) ac_try_echo=$ac_try;;
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797 (eval "$ac_link") 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
26804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26805 { (case "(($ac_try" in
26806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26807 *) ac_try_echo=$ac_try;;
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810 (eval "$ac_try") 2>&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; } &&
26814 { ac_try='test -s conftest$ac_exeext'
26815 { (case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_try") 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_cv_header_sys_types_h_makedev=yes
26826 echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26829 ac_cv_header_sys_types_h_makedev=no
26832 rm -f conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
26836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26839 if test $ac_cv_header_sys_types_h_makedev = no; then
26840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26841 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26844 echo $ECHO_N "(cached) $ECHO_C" >&6
26846 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26849 # Is the header compilable?
26850 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 $ac_includes_default
26859 #include <sys/mkdev.h>
26861 rm -f conftest.$ac_objext
26862 if { (ac_try="$ac_compile"
26863 case "(($ac_try" in
26864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865 *) ac_try_echo=$ac_try;;
26867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868 (eval "$ac_compile") 2>conftest.er1
26870 grep -v '^ *+' conftest.er1 >conftest.err
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
26875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26876 { (case "(($ac_try" in
26877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878 *) ac_try_echo=$ac_try;;
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881 (eval "$ac_try") 2>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; } &&
26885 { ac_try='test -s conftest.$ac_objext'
26886 { (case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_try") 2>&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 ac_header_compiler=yes
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ac_header_compiler=no
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6; }
26907 # Is the header present?
26908 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26909 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26916 #include <sys/mkdev.h>
26918 if { (ac_try="$ac_cpp conftest.$ac_ext"
26919 case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26926 grep -v '^ *+' conftest.er1 >conftest.err
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } >/dev/null; then
26931 if test -s conftest.err; then
26932 ac_cpp_err=$ac_c_preproc_warn_flag
26933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26940 if test -z "$ac_cpp_err"; then
26941 ac_header_preproc=yes
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ac_header_preproc=no
26949 rm -f conftest.err conftest.$ac_ext
26950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951 echo "${ECHO_T}$ac_header_preproc" >&6; }
26953 # So? What about this header?
26954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26960 ac_header_preproc=yes
26963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26976 ## ------------------------------- ##
26977 ## Report this to nfs@lists.sf.net ##
26978 ## ------------------------------- ##
26980 ) | sed "s/^/$as_me: WARNING: /" >&2
26983 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26984 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26985 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26988 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26994 if test $ac_cv_header_sys_mkdev_h = yes; then
26996 cat >>confdefs.h <<\_ACEOF
26997 #define MAJOR_IN_MKDEV 1
27004 if test $ac_cv_header_sys_mkdev_h = no; then
27005 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27006 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27007 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27008 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27012 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27014 # Is the header compilable?
27015 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27016 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 $ac_includes_default
27024 #include <sys/sysmacros.h>
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_compile") 2>conftest.er1
27035 grep -v '^ *+' conftest.er1 >conftest.err
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } &&
27040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27041 { (case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_try") 2>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest.$ac_objext'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_try") 2>&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; }; then
27060 ac_header_compiler=yes
27062 echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27065 ac_header_compiler=no
27068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27070 echo "${ECHO_T}$ac_header_compiler" >&6; }
27072 # Is the header present?
27073 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27074 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27075 cat >conftest.$ac_ext <<_ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h. */
27081 #include <sys/sysmacros.h>
27083 if { (ac_try="$ac_cpp conftest.$ac_ext"
27084 case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27091 grep -v '^ *+' conftest.er1 >conftest.err
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } >/dev/null; then
27096 if test -s conftest.err; then
27097 ac_cpp_err=$ac_c_preproc_warn_flag
27098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27105 if test -z "$ac_cpp_err"; then
27106 ac_header_preproc=yes
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ac_header_preproc=no
27114 rm -f conftest.err conftest.$ac_ext
27115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27116 echo "${ECHO_T}$ac_header_preproc" >&6; }
27118 # So? What about this header?
27119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27122 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27124 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27125 ac_header_preproc=yes
27128 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27129 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27130 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27131 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27132 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27133 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27135 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27136 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27137 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27139 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27141 ## ------------------------------- ##
27142 ## Report this to nfs@lists.sf.net ##
27143 ## ------------------------------- ##
27145 ) | sed "s/^/$as_me: WARNING: /" >&2
27148 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27149 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27150 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27156 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27159 if test $ac_cv_header_sys_sysmacros_h = yes; then
27161 cat >>confdefs.h <<\_ACEOF
27162 #define MAJOR_IN_SYSMACROS 1
27172 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27173 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27174 if test "${ac_cv_func_memcmp_working+set}" = set; then
27175 echo $ECHO_N "(cached) $ECHO_C" >&6
27177 if test "$cross_compiling" = yes; then
27178 ac_cv_func_memcmp_working=no
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
27191 /* Some versions of memcmp are not 8-bit clean. */
27192 char c0 = '\100', c1 = '\200', c2 = '\201';
27193 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27196 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27197 or more and with at least one buffer not starting on a 4-byte boundary.
27198 William Lewis provided this test program. */
27203 for (i = 0; i < 4; i++)
27207 strcpy (a, "--------01111111");
27208 strcpy (b, "--------10000000");
27209 if (memcmp (a, b, 16) >= 0)
27219 rm -f conftest$ac_exeext
27220 if { (ac_try="$ac_link"
27221 case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226 (eval "$ac_link") 2>&5
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27230 { (case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235 (eval "$ac_try") 2>&5
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 ac_cv_func_memcmp_working=yes
27241 echo "$as_me: program exited with status $ac_status" >&5
27242 echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27245 ( exit $ac_status )
27246 ac_cv_func_memcmp_working=no
27248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27253 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27254 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27255 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27256 *" memcmp.$ac_objext "* ) ;;
27257 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27265 for ac_header in sys/select.h sys/socket.h
27267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 ac_res=`eval echo '${'$as_ac_Header'}'`
27275 { echo "$as_me:$LINENO: result: $ac_res" >&5
27276 echo "${ECHO_T}$ac_res" >&6; }
27278 # Is the header compilable?
27279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27281 cat >conftest.$ac_ext <<_ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27287 $ac_includes_default
27288 #include <$ac_header>
27290 rm -f conftest.$ac_objext
27291 if { (ac_try="$ac_compile"
27292 case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297 (eval "$ac_compile") 2>conftest.er1
27299 grep -v '^ *+' conftest.er1 >conftest.err
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; } &&
27314 { ac_try='test -s conftest.$ac_objext'
27315 { (case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_try") 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 ac_header_compiler=yes
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27329 ac_header_compiler=no
27332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27334 echo "${ECHO_T}$ac_header_compiler" >&6; }
27336 # Is the header present?
27337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 #include <$ac_header>
27347 if { (ac_try="$ac_cpp conftest.$ac_ext"
27348 case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } >/dev/null; then
27360 if test -s conftest.err; then
27361 ac_cpp_err=$ac_c_preproc_warn_flag
27362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27369 if test -z "$ac_cpp_err"; then
27370 ac_header_preproc=yes
27372 echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27375 ac_header_preproc=no
27378 rm -f conftest.err conftest.$ac_ext
27379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27380 echo "${ECHO_T}$ac_header_preproc" >&6; }
27382 # So? What about this header?
27383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27389 ac_header_preproc=yes
27392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27405 ## ------------------------------- ##
27406 ## Report this to nfs@lists.sf.net ##
27407 ## ------------------------------- ##
27409 ) | sed "s/^/$as_me: WARNING: /" >&2
27412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27417 eval "$as_ac_Header=\$ac_header_preproc"
27419 ac_res=`eval echo '${'$as_ac_Header'}'`
27420 { echo "$as_me:$LINENO: result: $ac_res" >&5
27421 echo "${ECHO_T}$ac_res" >&6; }
27424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27425 cat >>confdefs.h <<_ACEOF
27426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27433 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27434 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27435 if test "${ac_cv_func_select_args+set}" = set; then
27436 echo $ECHO_N "(cached) $ECHO_C" >&6
27438 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27439 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27440 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27441 cat >conftest.$ac_ext <<_ACEOF
27444 cat confdefs.h >>conftest.$ac_ext
27445 cat >>conftest.$ac_ext <<_ACEOF
27446 /* end confdefs.h. */
27447 $ac_includes_default
27448 #if HAVE_SYS_SELECT_H
27449 # include <sys/select.h>
27451 #if HAVE_SYS_SOCKET_H
27452 # include <sys/socket.h>
27458 extern int select ($ac_arg1,
27459 $ac_arg234, $ac_arg234, $ac_arg234,
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_compile") 2>conftest.er1
27474 grep -v '^ *+' conftest.er1 >conftest.err
27476 cat conftest.err >&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } &&
27479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480 { (case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_try") 2>&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest.$ac_objext'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; }; then
27499 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27501 echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27511 # Provide a safe default value.
27512 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27515 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27516 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27517 ac_save_IFS=$IFS; IFS=','
27518 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27522 cat >>confdefs.h <<_ACEOF
27523 #define SELECT_TYPE_ARG1 $1
27527 cat >>confdefs.h <<_ACEOF
27528 #define SELECT_TYPE_ARG234 ($2)
27532 cat >>confdefs.h <<_ACEOF
27533 #define SELECT_TYPE_ARG5 ($3)
27538 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27539 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27540 if test "${ac_cv_type_signal+set}" = set; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27543 cat >conftest.$ac_ext <<_ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27549 #include <sys/types.h>
27550 #include <signal.h>
27555 return *(signal (0, 0)) (0) == 1;
27560 rm -f conftest.$ac_objext
27561 if { (ac_try="$ac_compile"
27562 case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_compile") 2>conftest.er1
27569 grep -v '^ *+' conftest.er1 >conftest.err
27571 cat conftest.err >&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); } &&
27574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27575 { (case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_try") 2>&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; } &&
27584 { ac_try='test -s conftest.$ac_objext'
27585 { (case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_try") 2>&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
27594 ac_cv_type_signal=int
27596 echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27599 ac_cv_type_signal=void
27602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27604 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27605 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27607 cat >>confdefs.h <<_ACEOF
27608 #define RETSIGTYPE $ac_cv_type_signal
27612 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27613 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27614 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 if test "$cross_compiling" = yes; then
27618 ac_cv_func_stat_empty_string_bug=yes
27620 cat >conftest.$ac_ext <<_ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27626 $ac_includes_default
27631 return stat ("", &sbuf) == 0;
27636 rm -f conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 ac_cv_func_stat_empty_string_bug=no
27658 echo "$as_me: program exited with status $ac_status" >&5
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ( exit $ac_status )
27663 ac_cv_func_stat_empty_string_bug=yes
27665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27670 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27671 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27672 if test $ac_cv_func_stat_empty_string_bug = yes; then
27673 case " $LIBOBJS " in
27674 *" stat.$ac_objext "* ) ;;
27675 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27680 cat >>confdefs.h <<_ACEOF
27681 #define HAVE_STAT_EMPTY_STRING_BUG 1
27687 for ac_func in vprintf
27689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27703 #define $ac_func innocuous_$ac_func
27705 /* System header to define __stub macros and hopefully few prototypes,
27706 which can conflict with char $ac_func (); below.
27707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27708 <limits.h> exists even on freestanding compilers. */
27711 # include <limits.h>
27713 # include <assert.h>
27718 /* Override any GCC internal prototype to avoid an error.
27719 Use char because int might match the return type of a GCC
27720 builtin and then its argument prototype would still apply. */
27725 /* The GNU C library defines this for functions which it implements
27726 to always fail with ENOSYS. Some functions are actually named
27727 something starting with __ and the normal name is an alias. */
27728 #if defined __stub_$ac_func || defined __stub___$ac_func
27735 return $ac_func ();
27740 rm -f conftest.$ac_objext conftest$ac_exeext
27741 if { (ac_try="$ac_link"
27742 case "(($ac_try" in
27743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744 *) ac_try_echo=$ac_try;;
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747 (eval "$ac_link") 2>conftest.er1
27749 grep -v '^ *+' conftest.er1 >conftest.err
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
27754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27755 { (case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_try") 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; } &&
27764 { ac_try='test -s conftest$ac_exeext'
27765 { (case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; }; then
27774 eval "$as_ac_var=yes"
27776 echo "$as_me: failed program was:" >&5
27777 sed 's/^/| /' conftest.$ac_ext >&5
27779 eval "$as_ac_var=no"
27782 rm -f conftest.err conftest.$ac_objext \
27783 conftest$ac_exeext conftest.$ac_ext
27785 ac_res=`eval echo '${'$as_ac_var'}'`
27786 { echo "$as_me:$LINENO: result: $ac_res" >&5
27787 echo "${ECHO_T}$ac_res" >&6; }
27788 if test `eval echo '${'$as_ac_var'}'` = yes; then
27789 cat >>confdefs.h <<_ACEOF
27790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27793 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27794 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27795 if test "${ac_cv_func__doprnt+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27804 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27806 #define _doprnt innocuous__doprnt
27808 /* System header to define __stub macros and hopefully few prototypes,
27809 which can conflict with char _doprnt (); below.
27810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811 <limits.h> exists even on freestanding compilers. */
27814 # include <limits.h>
27816 # include <assert.h>
27821 /* Override any GCC internal prototype to avoid an error.
27822 Use char because int might match the return type of a GCC
27823 builtin and then its argument prototype would still apply. */
27828 /* The GNU C library defines this for functions which it implements
27829 to always fail with ENOSYS. Some functions are actually named
27830 something starting with __ and the normal name is an alias. */
27831 #if defined __stub__doprnt || defined __stub____doprnt
27843 rm -f conftest.$ac_objext conftest$ac_exeext
27844 if { (ac_try="$ac_link"
27845 case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850 (eval "$ac_link") 2>conftest.er1
27852 grep -v '^ *+' conftest.er1 >conftest.err
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } &&
27857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858 { (case "(($ac_try" in
27859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860 *) ac_try_echo=$ac_try;;
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863 (eval "$ac_try") 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest$ac_exeext'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 ac_cv_func__doprnt=yes
27879 echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27882 ac_cv_func__doprnt=no
27885 rm -f conftest.err conftest.$ac_objext \
27886 conftest$ac_exeext conftest.$ac_ext
27888 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27889 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27890 if test $ac_cv_func__doprnt = yes; then
27892 cat >>confdefs.h <<\_ACEOF
27893 #define HAVE_DOPRNT 1
27931 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27932 gethostbyaddr gethostbyname gethostname getmntent \
27933 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27934 realpath rmdir select socket strcasecmp strchr strdup \
27935 strerror strrchr strtol strtoul sigprocmask
27937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27943 cat >conftest.$ac_ext <<_ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27951 #define $ac_func innocuous_$ac_func
27953 /* System header to define __stub macros and hopefully few prototypes,
27954 which can conflict with char $ac_func (); below.
27955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27956 <limits.h> exists even on freestanding compilers. */
27959 # include <limits.h>
27961 # include <assert.h>
27966 /* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27973 /* The GNU C library defines this for functions which it implements
27974 to always fail with ENOSYS. Some functions are actually named
27975 something starting with __ and the normal name is an alias. */
27976 #if defined __stub_$ac_func || defined __stub___$ac_func
27983 return $ac_func ();
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_link") 2>conftest.er1
27997 grep -v '^ *+' conftest.er1 >conftest.err
27999 cat conftest.err >&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); } &&
28002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28003 { (case "(($ac_try" in
28004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005 *) ac_try_echo=$ac_try;;
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_try") 2>&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); }; } &&
28012 { ac_try='test -s conftest$ac_exeext'
28013 { (case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_try") 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 eval "$as_ac_var=yes"
28024 echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28027 eval "$as_ac_var=no"
28030 rm -f conftest.err conftest.$ac_objext \
28031 conftest$ac_exeext conftest.$ac_ext
28033 ac_res=`eval echo '${'$as_ac_var'}'`
28034 { echo "$as_me:$LINENO: result: $ac_res" >&5
28035 echo "${ECHO_T}$ac_res" >&6; }
28036 if test `eval echo '${'$as_ac_var'}'` = yes; then
28037 cat >>confdefs.h <<_ACEOF
28038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28046 { echo "$as_me:$LINENO: checking for short" >&5
28047 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28048 if test "${ac_cv_type_short+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 cat >conftest.$ac_ext <<_ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28057 $ac_includes_default
28058 typedef short ac__type_new_;
28062 if ((ac__type_new_ *) 0)
28064 if (sizeof (ac__type_new_))
28070 rm -f conftest.$ac_objext
28071 if { (ac_try="$ac_compile"
28072 case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_compile") 2>conftest.er1
28079 grep -v '^ *+' conftest.er1 >conftest.err
28081 cat conftest.err >&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); } &&
28084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28085 { (case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_try") 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; } &&
28094 { ac_try='test -s conftest.$ac_objext'
28095 { (case "(($ac_try" in
28096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28097 *) ac_try_echo=$ac_try;;
28099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28100 (eval "$ac_try") 2>&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); }; }; then
28104 ac_cv_type_short=yes
28106 echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28109 ac_cv_type_short=no
28112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28114 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28115 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28117 { echo "$as_me:$LINENO: checking size of short" >&5
28118 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28119 if test "${ac_cv_sizeof_short+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28122 if test "$ac_cv_type_short" = yes; then
28123 # The cast to long int works around a bug in the HP C Compiler
28124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28126 # This bug is HP SR number 8606223364.
28127 if test "$cross_compiling" = yes; then
28128 # Depending upon the size, compute the lo and hi bounds.
28129 cat >conftest.$ac_ext <<_ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28135 $ac_includes_default
28136 typedef short ac__type_sizeof_;
28140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28147 rm -f conftest.$ac_objext
28148 if { (ac_try="$ac_compile"
28149 case "(($ac_try" in
28150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151 *) ac_try_echo=$ac_try;;
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154 (eval "$ac_compile") 2>conftest.er1
28156 grep -v '^ *+' conftest.er1 >conftest.err
28158 cat conftest.err >&5
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } &&
28161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28162 { (case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167 (eval "$ac_try") 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); }; } &&
28171 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); }; }; then
28183 cat >conftest.$ac_ext <<_ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h. */
28189 $ac_includes_default
28190 typedef short ac__type_sizeof_;
28194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28201 rm -f conftest.$ac_objext
28202 if { (ac_try="$ac_compile"
28203 case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_compile") 2>conftest.er1
28210 grep -v '^ *+' conftest.er1 >conftest.err
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } &&
28215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28216 { (case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_try") 2>&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; } &&
28225 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; }; then
28235 ac_hi=$ac_mid; break
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 ac_lo=`expr $ac_mid + 1`
28241 if test $ac_lo -le $ac_mid; then
28245 ac_mid=`expr 2 '*' $ac_mid + 1`
28248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28251 echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 cat >conftest.$ac_ext <<_ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h. */
28260 $ac_includes_default
28261 typedef short ac__type_sizeof_;
28265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28272 rm -f conftest.$ac_objext
28273 if { (ac_try="$ac_compile"
28274 case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_compile") 2>conftest.er1
28281 grep -v '^ *+' conftest.er1 >conftest.err
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } &&
28286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest.$ac_objext'
28297 { (case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_try") 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28308 cat >conftest.$ac_ext <<_ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h. */
28314 $ac_includes_default
28315 typedef short ac__type_sizeof_;
28319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28326 rm -f conftest.$ac_objext
28327 if { (ac_try="$ac_compile"
28328 case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_compile") 2>conftest.er1
28335 grep -v '^ *+' conftest.er1 >conftest.err
28337 cat conftest.err >&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); } &&
28340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28341 { (case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_try") 2>&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; } &&
28350 { ac_try='test -s conftest.$ac_objext'
28351 { (case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_try") 2>&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; }; then
28360 ac_lo=$ac_mid; break
28362 echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28365 ac_hi=`expr '(' $ac_mid ')' - 1`
28366 if test $ac_mid -le $ac_hi; then
28370 ac_mid=`expr 2 '*' $ac_mid`
28373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28386 # Binary search between lo and hi bounds.
28387 while test "x$ac_lo" != "x$ac_hi"; do
28388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28389 cat >conftest.$ac_ext <<_ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28395 $ac_includes_default
28396 typedef short ac__type_sizeof_;
28400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28407 rm -f conftest.$ac_objext
28408 if { (ac_try="$ac_compile"
28409 case "(($ac_try" in
28410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411 *) ac_try_echo=$ac_try;;
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_compile") 2>conftest.er1
28416 grep -v '^ *+' conftest.er1 >conftest.err
28418 cat conftest.err >&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } &&
28421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28422 { (case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_try") 2>&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; } &&
28431 { ac_try='test -s conftest.$ac_objext'
28432 { (case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_try") 2>&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; }; then
28443 echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28446 ac_lo=`expr '(' $ac_mid ')' + 1`
28449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28452 ?*) ac_cv_sizeof_short=$ac_lo;;
28453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28454 See \`config.log' for more details." >&5
28455 echo "$as_me: error: cannot compute sizeof (short)
28456 See \`config.log' for more details." >&2;}
28457 { (exit 77); exit 77; }; } ;;
28460 cat >conftest.$ac_ext <<_ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h. */
28466 $ac_includes_default
28467 typedef short ac__type_sizeof_;
28468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28471 #include <stdlib.h>
28476 FILE *f = fopen ("conftest.val", "w");
28479 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28481 long int i = longval ();
28482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28484 fprintf (f, "%ld\n", i);
28488 unsigned long int i = ulongval ();
28489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28491 fprintf (f, "%lu\n", i);
28493 return ferror (f) || fclose (f) != 0;
28499 rm -f conftest$ac_exeext
28500 if { (ac_try="$ac_link"
28501 case "(($ac_try" in
28502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28503 *) ac_try_echo=$ac_try;;
28505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28506 (eval "$ac_link") 2>&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_sizeof_short=`cat conftest.val`
28521 echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28525 ( exit $ac_status )
28526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28527 See \`config.log' for more details." >&5
28528 echo "$as_me: error: cannot compute sizeof (short)
28529 See \`config.log' for more details." >&2;}
28530 { (exit 77); exit 77; }; }
28532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28536 ac_cv_sizeof_short=0
28539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28540 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28541 cat >>confdefs.h <<_ACEOF
28542 #define SIZEOF_SHORT $ac_cv_sizeof_short
28546 { echo "$as_me:$LINENO: checking for int" >&5
28547 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28548 if test "${ac_cv_type_int+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28557 $ac_includes_default
28558 typedef int ac__type_new_;
28562 if ((ac__type_new_ *) 0)
28564 if (sizeof (ac__type_new_))
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577 (eval "$ac_compile") 2>conftest.er1
28579 grep -v '^ *+' conftest.er1 >conftest.err
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } &&
28584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28585 { (case "(($ac_try" in
28586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_try") 2>&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
28595 { (case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_try") 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28614 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28615 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28617 { echo "$as_me:$LINENO: checking size of int" >&5
28618 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28619 if test "${ac_cv_sizeof_int+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28622 if test "$ac_cv_type_int" = yes; then
28623 # The cast to long int works around a bug in the HP C Compiler
28624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28626 # This bug is HP SR number 8606223364.
28627 if test "$cross_compiling" = yes; then
28628 # Depending upon the size, compute the lo and hi bounds.
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 $ac_includes_default
28636 typedef int ac__type_sizeof_;
28640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28647 rm -f conftest.$ac_objext
28648 if { (ac_try="$ac_compile"
28649 case "(($ac_try" in
28650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651 *) ac_try_echo=$ac_try;;
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654 (eval "$ac_compile") 2>conftest.er1
28656 grep -v '^ *+' conftest.er1 >conftest.err
28658 cat conftest.err >&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } &&
28661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28662 { (case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_try") 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; } &&
28671 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; }; then
28683 cat >conftest.$ac_ext <<_ACEOF
28686 cat confdefs.h >>conftest.$ac_ext
28687 cat >>conftest.$ac_ext <<_ACEOF
28688 /* end confdefs.h. */
28689 $ac_includes_default
28690 typedef int ac__type_sizeof_;
28694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28701 rm -f conftest.$ac_objext
28702 if { (ac_try="$ac_compile"
28703 case "(($ac_try" in
28704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705 *) ac_try_echo=$ac_try;;
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708 (eval "$ac_compile") 2>conftest.er1
28710 grep -v '^ *+' conftest.er1 >conftest.err
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28716 { (case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_try") 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; }; then
28735 ac_hi=$ac_mid; break
28737 echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28740 ac_lo=`expr $ac_mid + 1`
28741 if test $ac_lo -le $ac_mid; then
28745 ac_mid=`expr 2 '*' $ac_mid + 1`
28748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28754 cat >conftest.$ac_ext <<_ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28760 $ac_includes_default
28761 typedef int ac__type_sizeof_;
28765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28772 rm -f conftest.$ac_objext
28773 if { (ac_try="$ac_compile"
28774 case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_compile") 2>conftest.er1
28781 grep -v '^ *+' conftest.er1 >conftest.err
28783 cat conftest.err >&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); } &&
28786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792 (eval "$ac_try") 2>&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest.$ac_objext'
28797 { (case "(($ac_try" in
28798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799 *) ac_try_echo=$ac_try;;
28801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28802 (eval "$ac_try") 2>&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
28808 cat >conftest.$ac_ext <<_ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h. */
28814 $ac_includes_default
28815 typedef int ac__type_sizeof_;
28819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28826 rm -f conftest.$ac_objext
28827 if { (ac_try="$ac_compile"
28828 case "(($ac_try" in
28829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_compile") 2>conftest.er1
28835 grep -v '^ *+' conftest.er1 >conftest.err
28837 cat conftest.err >&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } &&
28840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28841 { (case "(($ac_try" in
28842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843 *) ac_try_echo=$ac_try;;
28845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846 (eval "$ac_try") 2>&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; } &&
28850 { ac_try='test -s conftest.$ac_objext'
28851 { (case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_try") 2>&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; }; then
28860 ac_lo=$ac_mid; break
28862 echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28865 ac_hi=`expr '(' $ac_mid ')' - 1`
28866 if test $ac_mid -le $ac_hi; then
28870 ac_mid=`expr 2 '*' $ac_mid`
28873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28876 echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28886 # Binary search between lo and hi bounds.
28887 while test "x$ac_lo" != "x$ac_hi"; do
28888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28889 cat >conftest.$ac_ext <<_ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h. */
28895 $ac_includes_default
28896 typedef int ac__type_sizeof_;
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914 (eval "$ac_compile") 2>conftest.er1
28916 grep -v '^ *+' conftest.er1 >conftest.err
28918 cat conftest.err >&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
28921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28922 { (case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_try") 2>&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest.$ac_objext'
28932 { (case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_try") 2>&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; }; then
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28946 ac_lo=`expr '(' $ac_mid ')' + 1`
28949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28952 ?*) ac_cv_sizeof_int=$ac_lo;;
28953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28954 See \`config.log' for more details." >&5
28955 echo "$as_me: error: cannot compute sizeof (int)
28956 See \`config.log' for more details." >&2;}
28957 { (exit 77); exit 77; }; } ;;
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 $ac_includes_default
28967 typedef int ac__type_sizeof_;
28968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28971 #include <stdlib.h>
28976 FILE *f = fopen ("conftest.val", "w");
28979 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28981 long int i = longval ();
28982 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28984 fprintf (f, "%ld\n", i);
28988 unsigned long int i = ulongval ();
28989 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28991 fprintf (f, "%lu\n", i);
28993 return ferror (f) || fclose (f) != 0;
28999 rm -f conftest$ac_exeext
29000 if { (ac_try="$ac_link"
29001 case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_link") 2>&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29010 { (case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_try") 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 ac_cv_sizeof_int=`cat conftest.val`
29021 echo "$as_me: program exited with status $ac_status" >&5
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ( exit $ac_status )
29026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29027 See \`config.log' for more details." >&5
29028 echo "$as_me: error: cannot compute sizeof (int)
29029 See \`config.log' for more details." >&2;}
29030 { (exit 77); exit 77; }; }
29032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29040 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29041 cat >>confdefs.h <<_ACEOF
29042 #define SIZEOF_INT $ac_cv_sizeof_int
29046 { echo "$as_me:$LINENO: checking for long" >&5
29047 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29048 if test "${ac_cv_type_long+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 cat >conftest.$ac_ext <<_ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h. */
29057 $ac_includes_default
29058 typedef long ac__type_new_;
29062 if ((ac__type_new_ *) 0)
29064 if (sizeof (ac__type_new_))
29070 rm -f conftest.$ac_objext
29071 if { (ac_try="$ac_compile"
29072 case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_compile") 2>conftest.er1
29079 grep -v '^ *+' conftest.er1 >conftest.err
29081 cat conftest.err >&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } &&
29084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29085 { (case "(($ac_try" in
29086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087 *) ac_try_echo=$ac_try;;
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090 (eval "$ac_try") 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; } &&
29094 { ac_try='test -s conftest.$ac_objext'
29095 { (case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_try") 2>&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; }; then
29104 ac_cv_type_long=yes
29106 echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29115 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29117 { echo "$as_me:$LINENO: checking size of long" >&5
29118 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29119 if test "${ac_cv_sizeof_long+set}" = set; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 if test "$ac_cv_type_long" = yes; then
29123 # The cast to long int works around a bug in the HP C Compiler
29124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29126 # This bug is HP SR number 8606223364.
29127 if test "$cross_compiling" = yes; then
29128 # Depending upon the size, compute the lo and hi bounds.
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29135 $ac_includes_default
29136 typedef long ac__type_sizeof_;
29140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29147 rm -f conftest.$ac_objext
29148 if { (ac_try="$ac_compile"
29149 case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_compile") 2>conftest.er1
29156 grep -v '^ *+' conftest.er1 >conftest.err
29158 cat conftest.err >&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); } &&
29161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29162 { (case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_try") 2>&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; } &&
29171 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; }; then
29183 cat >conftest.$ac_ext <<_ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 $ac_includes_default
29190 typedef long ac__type_sizeof_;
29194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208 (eval "$ac_compile") 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
29235 ac_hi=$ac_mid; break
29237 echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ac_lo=`expr $ac_mid + 1`
29241 if test $ac_lo -le $ac_mid; then
29245 ac_mid=`expr 2 '*' $ac_mid + 1`
29248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251 echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29254 cat >conftest.$ac_ext <<_ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h. */
29260 $ac_includes_default
29261 typedef long ac__type_sizeof_;
29265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29272 rm -f conftest.$ac_objext
29273 if { (ac_try="$ac_compile"
29274 case "(($ac_try" in
29275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276 *) ac_try_echo=$ac_try;;
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279 (eval "$ac_compile") 2>conftest.er1
29281 grep -v '^ *+' conftest.er1 >conftest.err
29283 cat conftest.err >&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } &&
29286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29287 { (case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_try") 2>&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; } &&
29296 { ac_try='test -s conftest.$ac_objext'
29297 { (case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_try") 2>&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; }; then
29308 cat >conftest.$ac_ext <<_ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h. */
29314 $ac_includes_default
29315 typedef long ac__type_sizeof_;
29319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29326 rm -f conftest.$ac_objext
29327 if { (ac_try="$ac_compile"
29328 case "(($ac_try" in
29329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29330 *) ac_try_echo=$ac_try;;
29332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29333 (eval "$ac_compile") 2>conftest.er1
29335 grep -v '^ *+' conftest.er1 >conftest.err
29337 cat conftest.err >&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } &&
29340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29341 { (case "(($ac_try" in
29342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343 *) ac_try_echo=$ac_try;;
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_try") 2>&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; } &&
29350 { ac_try='test -s conftest.$ac_objext'
29351 { (case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_try") 2>&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; }; then
29360 ac_lo=$ac_mid; break
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_hi=`expr '(' $ac_mid ')' - 1`
29366 if test $ac_mid -le $ac_hi; then
29370 ac_mid=`expr 2 '*' $ac_mid`
29373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29376 echo "$as_me: failed program was:" >&5
29377 sed 's/^/| /' conftest.$ac_ext >&5
29382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29386 # Binary search between lo and hi bounds.
29387 while test "x$ac_lo" != "x$ac_hi"; do
29388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29389 cat >conftest.$ac_ext <<_ACEOF
29392 cat confdefs.h >>conftest.$ac_ext
29393 cat >>conftest.$ac_ext <<_ACEOF
29394 /* end confdefs.h. */
29395 $ac_includes_default
29396 typedef long ac__type_sizeof_;
29400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29407 rm -f conftest.$ac_objext
29408 if { (ac_try="$ac_compile"
29409 case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_compile") 2>conftest.er1
29416 grep -v '^ *+' conftest.er1 >conftest.err
29418 cat conftest.err >&5
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); } &&
29421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29422 { (case "(($ac_try" in
29423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424 *) ac_try_echo=$ac_try;;
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427 (eval "$ac_try") 2>&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; } &&
29431 { ac_try='test -s conftest.$ac_objext'
29432 { (case "(($ac_try" in
29433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29434 *) ac_try_echo=$ac_try;;
29436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29437 (eval "$ac_try") 2>&5
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; }; then
29443 echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29446 ac_lo=`expr '(' $ac_mid ')' + 1`
29449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29452 ?*) ac_cv_sizeof_long=$ac_lo;;
29453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29454 See \`config.log' for more details." >&5
29455 echo "$as_me: error: cannot compute sizeof (long)
29456 See \`config.log' for more details." >&2;}
29457 { (exit 77); exit 77; }; } ;;
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 $ac_includes_default
29467 typedef long ac__type_sizeof_;
29468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29471 #include <stdlib.h>
29476 FILE *f = fopen ("conftest.val", "w");
29479 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29481 long int i = longval ();
29482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29484 fprintf (f, "%ld\n", i);
29488 unsigned long int i = ulongval ();
29489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29491 fprintf (f, "%lu\n", i);
29493 return ferror (f) || fclose (f) != 0;
29499 rm -f conftest$ac_exeext
29500 if { (ac_try="$ac_link"
29501 case "(($ac_try" in
29502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503 *) ac_try_echo=$ac_try;;
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506 (eval "$ac_link") 2>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29510 { (case "(($ac_try" in
29511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512 *) ac_try_echo=$ac_try;;
29514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515 (eval "$ac_try") 2>&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_cv_sizeof_long=`cat conftest.val`
29521 echo "$as_me: program exited with status $ac_status" >&5
29522 echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29525 ( exit $ac_status )
29526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29527 See \`config.log' for more details." >&5
29528 echo "$as_me: error: cannot compute sizeof (long)
29529 See \`config.log' for more details." >&2;}
29530 { (exit 77); exit 77; }; }
29532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29536 ac_cv_sizeof_long=0
29539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29540 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29541 cat >>confdefs.h <<_ACEOF
29542 #define SIZEOF_LONG $ac_cv_sizeof_long
29546 { echo "$as_me:$LINENO: checking for size_t" >&5
29547 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29548 if test "${ac_cv_type_size_t+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 cat >conftest.$ac_ext <<_ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29557 $ac_includes_default
29558 typedef size_t ac__type_new_;
29562 if ((ac__type_new_ *) 0)
29564 if (sizeof (ac__type_new_))
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_compile") 2>conftest.er1
29579 grep -v '^ *+' conftest.er1 >conftest.err
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
29584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29585 { (case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_try") 2>&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; } &&
29594 { ac_try='test -s conftest.$ac_objext'
29595 { (case "(($ac_try" in
29596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597 *) ac_try_echo=$ac_try;;
29599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29600 (eval "$ac_try") 2>&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
29604 ac_cv_type_size_t=yes
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_cv_type_size_t=no
29612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29614 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29615 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29617 { echo "$as_me:$LINENO: checking size of size_t" >&5
29618 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29619 if test "${ac_cv_sizeof_size_t+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 if test "$ac_cv_type_size_t" = yes; then
29623 # The cast to long int works around a bug in the HP C Compiler
29624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29626 # This bug is HP SR number 8606223364.
29627 if test "$cross_compiling" = yes; then
29628 # Depending upon the size, compute the lo and hi bounds.
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 $ac_includes_default
29636 typedef size_t ac__type_sizeof_;
29640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_compile") 2>conftest.er1
29656 grep -v '^ *+' conftest.er1 >conftest.err
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } &&
29661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; } &&
29671 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
29683 cat >conftest.$ac_ext <<_ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h. */
29689 $ac_includes_default
29690 typedef size_t ac__type_sizeof_;
29694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705 *) ac_try_echo=$ac_try;;
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708 (eval "$ac_compile") 2>conftest.er1
29710 grep -v '^ *+' conftest.er1 >conftest.err
29712 cat conftest.err >&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } &&
29715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 ac_hi=$ac_mid; break
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29740 ac_lo=`expr $ac_mid + 1`
29741 if test $ac_lo -le $ac_mid; then
29745 ac_mid=`expr 2 '*' $ac_mid + 1`
29748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29751 echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29754 cat >conftest.$ac_ext <<_ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 $ac_includes_default
29761 typedef size_t ac__type_sizeof_;
29765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29772 rm -f conftest.$ac_objext
29773 if { (ac_try="$ac_compile"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_compile") 2>conftest.er1
29781 grep -v '^ *+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest.$ac_objext'
29797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_try") 2>&5
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29808 cat >conftest.$ac_ext <<_ACEOF
29811 cat confdefs.h >>conftest.$ac_ext
29812 cat >>conftest.$ac_ext <<_ACEOF
29813 /* end confdefs.h. */
29814 $ac_includes_default
29815 typedef size_t ac__type_sizeof_;
29819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_compile") 2>conftest.er1
29835 grep -v '^ *+' conftest.er1 >conftest.err
29837 cat conftest.err >&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } &&
29840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29841 { (case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_try") 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 ac_lo=$ac_mid; break
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 ac_hi=`expr '(' $ac_mid ')' - 1`
29866 if test $ac_mid -le $ac_hi; then
29870 ac_mid=`expr 2 '*' $ac_mid`
29873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29876 echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29886 # Binary search between lo and hi bounds.
29887 while test "x$ac_lo" != "x$ac_hi"; do
29888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29895 $ac_includes_default
29896 typedef size_t ac__type_sizeof_;
29900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29907 rm -f conftest.$ac_objext
29908 if { (ac_try="$ac_compile"
29909 case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_compile") 2>conftest.er1
29916 grep -v '^ *+' conftest.er1 >conftest.err
29918 cat conftest.err >&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } &&
29921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29922 { (case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_try") 2>&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; } &&
29931 { ac_try='test -s conftest.$ac_objext'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; }; then
29943 echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29946 ac_lo=`expr '(' $ac_mid ')' + 1`
29949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29952 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29954 See \`config.log' for more details." >&5
29955 echo "$as_me: error: cannot compute sizeof (size_t)
29956 See \`config.log' for more details." >&2;}
29957 { (exit 77); exit 77; }; } ;;
29960 cat >conftest.$ac_ext <<_ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h. */
29966 $ac_includes_default
29967 typedef size_t ac__type_sizeof_;
29968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29971 #include <stdlib.h>
29976 FILE *f = fopen ("conftest.val", "w");
29979 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29981 long int i = longval ();
29982 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29984 fprintf (f, "%ld\n", i);
29988 unsigned long int i = ulongval ();
29989 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29991 fprintf (f, "%lu\n", i);
29993 return ferror (f) || fclose (f) != 0;
29999 rm -f conftest$ac_exeext
30000 if { (ac_try="$ac_link"
30001 case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_link") 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_sizeof_size_t=`cat conftest.val`
30021 echo "$as_me: program exited with status $ac_status" >&5
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30025 ( exit $ac_status )
30026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
30027 See \`config.log' for more details." >&5
30028 echo "$as_me: error: cannot compute sizeof (size_t)
30029 See \`config.log' for more details." >&2;}
30030 { (exit 77); exit 77; }; }
30032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30036 ac_cv_sizeof_size_t=0
30039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30040 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
30041 cat >>confdefs.h <<_ACEOF
30042 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30046 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30047 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30048 if test "${ac_cv_type_socklen_t+set}" = set; then
30049 echo $ECHO_N "(cached) $ECHO_C" >&6
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30057 $ac_includes_default
30058 typedef socklen_t ac__type_new_;
30062 if ((ac__type_new_ *) 0)
30064 if (sizeof (ac__type_new_))
30070 rm -f conftest.$ac_objext
30071 if { (ac_try="$ac_compile"
30072 case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_compile") 2>conftest.er1
30079 grep -v '^ *+' conftest.er1 >conftest.err
30081 cat conftest.err >&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
30084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30085 { (case "(($ac_try" in
30086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087 *) ac_try_echo=$ac_try;;
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090 (eval "$ac_try") 2>&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; } &&
30094 { ac_try='test -s conftest.$ac_objext'
30095 { (case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_try") 2>&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; }; then
30104 ac_cv_type_socklen_t=yes
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 ac_cv_type_socklen_t=no
30112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30114 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30115 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30117 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30118 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30119 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30120 echo $ECHO_N "(cached) $ECHO_C" >&6
30122 if test "$ac_cv_type_socklen_t" = yes; then
30123 # The cast to long int works around a bug in the HP C Compiler
30124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30126 # This bug is HP SR number 8606223364.
30127 if test "$cross_compiling" = yes; then
30128 # Depending upon the size, compute the lo and hi bounds.
30129 cat >conftest.$ac_ext <<_ACEOF
30132 cat confdefs.h >>conftest.$ac_ext
30133 cat >>conftest.$ac_ext <<_ACEOF
30134 /* end confdefs.h. */
30135 $ac_includes_default
30136 typedef socklen_t ac__type_sizeof_;
30140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30147 rm -f conftest.$ac_objext
30148 if { (ac_try="$ac_compile"
30149 case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_compile") 2>conftest.er1
30156 grep -v '^ *+' conftest.er1 >conftest.err
30158 cat conftest.err >&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
30161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162 { (case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_try") 2>&5
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
30172 { (case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_try") 2>&5
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30183 cat >conftest.$ac_ext <<_ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30189 $ac_includes_default
30190 typedef socklen_t ac__type_sizeof_;
30194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30201 rm -f conftest.$ac_objext
30202 if { (ac_try="$ac_compile"
30203 case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_compile") 2>conftest.er1
30210 grep -v '^ *+' conftest.er1 >conftest.err
30212 cat conftest.err >&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); } &&
30215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30216 { (case "(($ac_try" in
30217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218 *) ac_try_echo=$ac_try;;
30220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30221 (eval "$ac_try") 2>&5
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); }; } &&
30225 { ac_try='test -s conftest.$ac_objext'
30226 { (case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_try") 2>&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; }; then
30235 ac_hi=$ac_mid; break
30237 echo "$as_me: failed program was:" >&5
30238 sed 's/^/| /' conftest.$ac_ext >&5
30240 ac_lo=`expr $ac_mid + 1`
30241 if test $ac_lo -le $ac_mid; then
30245 ac_mid=`expr 2 '*' $ac_mid + 1`
30248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30251 echo "$as_me: failed program was:" >&5
30252 sed 's/^/| /' conftest.$ac_ext >&5
30254 cat >conftest.$ac_ext <<_ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h. */
30260 $ac_includes_default
30261 typedef socklen_t ac__type_sizeof_;
30265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30272 rm -f conftest.$ac_objext
30273 if { (ac_try="$ac_compile"
30274 case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_compile") 2>conftest.er1
30281 grep -v '^ *+' conftest.er1 >conftest.err
30283 cat conftest.err >&5
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); } &&
30286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287 { (case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_try") 2>&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest.$ac_objext'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30308 cat >conftest.$ac_ext <<_ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30314 $ac_includes_default
30315 typedef socklen_t ac__type_sizeof_;
30319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30326 rm -f conftest.$ac_objext
30327 if { (ac_try="$ac_compile"
30328 case "(($ac_try" in
30329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330 *) ac_try_echo=$ac_try;;
30332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333 (eval "$ac_compile") 2>conftest.er1
30335 grep -v '^ *+' conftest.er1 >conftest.err
30337 cat conftest.err >&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); } &&
30340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30341 { (case "(($ac_try" in
30342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343 *) ac_try_echo=$ac_try;;
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346 (eval "$ac_try") 2>&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; } &&
30350 { ac_try='test -s conftest.$ac_objext'
30351 { (case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_try") 2>&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; }; then
30360 ac_lo=$ac_mid; break
30362 echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30365 ac_hi=`expr '(' $ac_mid ')' - 1`
30366 if test $ac_mid -le $ac_hi; then
30370 ac_mid=`expr 2 '*' $ac_mid`
30373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30386 # Binary search between lo and hi bounds.
30387 while test "x$ac_lo" != "x$ac_hi"; do
30388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30389 cat >conftest.$ac_ext <<_ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 $ac_includes_default
30396 typedef socklen_t ac__type_sizeof_;
30400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30407 rm -f conftest.$ac_objext
30408 if { (ac_try="$ac_compile"
30409 case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_compile") 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } &&
30421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422 { (case "(($ac_try" in
30423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424 *) ac_try_echo=$ac_try;;
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427 (eval "$ac_try") 2>&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
30432 { (case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_try") 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; }; then
30443 echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30446 ac_lo=`expr '(' $ac_mid ')' + 1`
30449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30452 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30454 See \`config.log' for more details." >&5
30455 echo "$as_me: error: cannot compute sizeof (socklen_t)
30456 See \`config.log' for more details." >&2;}
30457 { (exit 77); exit 77; }; } ;;
30460 cat >conftest.$ac_ext <<_ACEOF
30463 cat confdefs.h >>conftest.$ac_ext
30464 cat >>conftest.$ac_ext <<_ACEOF
30465 /* end confdefs.h. */
30466 $ac_includes_default
30467 typedef socklen_t ac__type_sizeof_;
30468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30471 #include <stdlib.h>
30476 FILE *f = fopen ("conftest.val", "w");
30479 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30481 long int i = longval ();
30482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30484 fprintf (f, "%ld\n", i);
30488 unsigned long int i = ulongval ();
30489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30491 fprintf (f, "%lu\n", i);
30493 return ferror (f) || fclose (f) != 0;
30499 rm -f conftest$ac_exeext
30500 if { (ac_try="$ac_link"
30501 case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_link") 2>&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30510 { (case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_try") 2>&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; }; then
30519 ac_cv_sizeof_socklen_t=`cat conftest.val`
30521 echo "$as_me: program exited with status $ac_status" >&5
30522 echo "$as_me: failed program was:" >&5
30523 sed 's/^/| /' conftest.$ac_ext >&5
30525 ( exit $ac_status )
30526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30527 See \`config.log' for more details." >&5
30528 echo "$as_me: error: cannot compute sizeof (socklen_t)
30529 See \`config.log' for more details." >&2;}
30530 { (exit 77); exit 77; }; }
30532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30536 ac_cv_sizeof_socklen_t=0
30539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30540 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30541 cat >>confdefs.h <<_ACEOF
30542 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30549 cat >>confdefs.h <<_ACEOF
30550 #define NFS_STATEDIR "$statedir"
30554 if test "x$cross_compiling" = "xno"; then
30555 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30556 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30557 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30558 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30560 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30561 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30562 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30563 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30578 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
30583 my_am_cflags="-Wall $ARCHFLAGS -pipe"
30585 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
30587 AM_CFLAGS="$my_am_cflags"
30590 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30591 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30594 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"
30596 cat >confcache <<\_ACEOF
30597 # This file is a shell script that caches the results of configure
30598 # tests run on this system so they can be shared between configure
30599 # scripts and configure runs, see configure's option --config-cache.
30600 # It is not useful on other systems. If it contains results you don't
30601 # want to keep, you may remove or edit it.
30603 # config.status only pays attention to the cache file if you give it
30604 # the --recheck option to rerun configure.
30606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30608 # following values.
30612 # The following way of writing the cache mishandles newlines in values,
30613 # but we know of no workaround that is simple, portable, and efficient.
30614 # So, we kill variables containing newlines.
30615 # Ultrix sh set writes to stderr and can't be redirected directly,
30616 # and sets the high bit in the cache file unless we assign to the vars.
30618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30619 eval ac_val=\$$ac_var
30623 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30624 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30627 _ | IFS | as_nl) ;; #(
30628 *) $as_unset $ac_var ;;
30634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30635 *${as_nl}ac_space=\ *)
30636 # `set' does not quote correctly, so add quotes (double-quote
30637 # substitution turns \\\\ into \\, and sed turns \\ into \).
30640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30643 # `set' quotes correctly as required by POSIX, so do not add quotes.
30644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30657 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30658 if test -w "$cache_file"; then
30659 test "x$cache_file" != "x/dev/null" &&
30660 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30661 echo "$as_me: updating cache $cache_file" >&6;}
30662 cat confcache >$cache_file
30664 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30665 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30671 # Let make expand exec_prefix.
30672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30674 DEFS=-DHAVE_CONFIG_H
30678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30679 # 1. Remove the extension, and $U if already installed.
30680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30681 ac_i=`echo "$ac_i" | sed "$ac_script"`
30682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30683 # will be set to the directory where LIBOBJS objects are built.
30684 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30685 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30687 LIBOBJS=$ac_libobjs
30689 LTLIBOBJS=$ac_ltlibobjs
30692 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30693 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30694 Usually this means the macro was only invoked conditionally." >&5
30695 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30696 Usually this means the macro was only invoked conditionally." >&2;}
30697 { (exit 1); exit 1; }; }
30699 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30700 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30701 Usually this means the macro was only invoked conditionally." >&5
30702 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30703 Usually this means the macro was only invoked conditionally." >&2;}
30704 { (exit 1); exit 1; }; }
30706 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30707 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30708 Usually this means the macro was only invoked conditionally." >&5
30709 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30710 Usually this means the macro was only invoked conditionally." >&2;}
30711 { (exit 1); exit 1; }; }
30713 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30714 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30715 Usually this means the macro was only invoked conditionally." >&5
30716 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30717 Usually this means the macro was only invoked conditionally." >&2;}
30718 { (exit 1); exit 1; }; }
30720 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30721 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30722 Usually this means the macro was only invoked conditionally." >&5
30723 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30724 Usually this means the macro was only invoked conditionally." >&2;}
30725 { (exit 1); exit 1; }; }
30727 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30728 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30729 Usually this means the macro was only invoked conditionally." >&5
30730 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30731 Usually this means the macro was only invoked conditionally." >&2;}
30732 { (exit 1); exit 1; }; }
30734 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30735 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30736 Usually this means the macro was only invoked conditionally." >&5
30737 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30738 Usually this means the macro was only invoked conditionally." >&2;}
30739 { (exit 1); exit 1; }; }
30741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30742 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30743 Usually this means the macro was only invoked conditionally." >&5
30744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30745 Usually this means the macro was only invoked conditionally." >&2;}
30746 { (exit 1); exit 1; }; }
30749 : ${CONFIG_STATUS=./config.status}
30750 ac_clean_files_save=$ac_clean_files
30751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30754 cat >$CONFIG_STATUS <<_ACEOF
30756 # Generated by $as_me.
30757 # Run this file to recreate the current configuration.
30758 # Compiler output produced by configure, useful for debugging
30759 # configure, is in config.log if it exists.
30762 ac_cs_recheck=false
30764 SHELL=\${CONFIG_SHELL-$SHELL}
30767 cat >>$CONFIG_STATUS <<\_ACEOF
30768 ## --------------------- ##
30769 ## M4sh Initialization. ##
30770 ## --------------------- ##
30772 # Be Bourne compatible
30773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30776 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30777 # is contrary to our usage. Disable this feature.
30778 alias -g '${1+"$@"}'='"$@"'
30779 setopt NO_GLOB_SUBST
30781 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30783 BIN_SH=xpg4; export BIN_SH # for Tru64
30784 DUALCASE=1; export DUALCASE # for MKS sh
30788 # Avoid depending upon Character Ranges.
30789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792 as_cr_digits='0123456789'
30793 as_cr_alnum=$as_cr_Letters$as_cr_digits
30795 # The user is always right.
30796 if test "${PATH_SEPARATOR+set}" != set; then
30797 echo "#! /bin/sh" >conf$$.sh
30798 echo "exit 0" >>conf$$.sh
30800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30808 # Support unset when possible.
30809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30817 # We need space, tab and new line, in precisely that order. Quoting is
30818 # there to prevent editors from complaining about space-tab.
30819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30820 # splitting by setting IFS to empty value.)
30825 # Find who we are. Look in the path if we contain no directory separator.
30827 *[\\/]* ) as_myself=$0 ;;
30828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829 for as_dir in $PATH
30832 test -z "$as_dir" && as_dir=.
30833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30839 # We did not find ourselves, most probably we were run as `sh COMMAND'
30840 # in which case we are not to be found in the path.
30841 if test "x$as_myself" = x; then
30844 if test ! -f "$as_myself"; then
30845 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30846 { (exit 1); exit 1; }
30849 # Work around bugs in pre-3.0 UWIN ksh.
30850 for as_var in ENV MAIL MAILPATH
30851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30859 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30860 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30861 LC_TELEPHONE LC_TIME
30863 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30864 eval $as_var=C; export $as_var
30866 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30870 # Required to use basename.
30871 if expr a : '\(a\)' >/dev/null 2>&1 &&
30872 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30879 as_basename=basename
30885 # Name of the executable.
30886 as_me=`$as_basename -- "$0" ||
30887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30888 X"$0" : 'X\(//\)$' \| \
30889 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30891 sed '/^.*\/\([^/][^/]*\)\/*$/{
30910 as_lineno_1=$LINENO
30911 as_lineno_2=$LINENO
30912 test "x$as_lineno_1" != "x$as_lineno_2" &&
30913 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30916 # uniformly replaced by the line number. The first 'sed' inserts a
30917 # line-number line after each line using $LINENO; the second 'sed'
30918 # does the real work. The second script uses 'N' to pair each
30919 # line-number line with the line containing $LINENO, and appends
30920 # trailing '-' during substitution so that $LINENO is not a special
30921 # case at line end.
30922 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30923 # scripts with optimization help from Paolo Bonzini. Blame Lee
30924 # E. McMahon (1931-1989) for sed's syntax. :-)
30936 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30939 ' >$as_me.lineno &&
30940 chmod +x "$as_me.lineno" ||
30941 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30942 { (exit 1); exit 1; }; }
30944 # Don't try to exec as it changes $[0], causing all sort of problems
30945 # (the dirname of $[0] is not the place where we might find the
30946 # original and so on. Autoconf is especially sensitive to this).
30947 . "./$as_me.lineno"
30948 # Exit status is that of the last command.
30953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30959 ECHO_C= ECHO_N= ECHO_T=
30960 case `echo -n x` in
30962 case `echo 'x\c'` in
30963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30970 if expr a : '\(a\)' >/dev/null 2>&1 &&
30971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30977 rm -f conf$$ conf$$.exe conf$$.file
30978 if test -d conf$$.dir; then
30979 rm -f conf$$.dir/conf$$.file
30985 if ln -s conf$$.file conf$$ 2>/dev/null; then
30987 # ... but there are two gotchas:
30988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30990 # In both cases, we have to default to `cp -p'.
30991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30993 elif ln conf$$.file conf$$ 2>/dev/null; then
30998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30999 rmdir conf$$.dir 2>/dev/null
31001 if mkdir -p . 2>/dev/null; then
31004 test -d ./-p && rmdir ./-p
31008 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
31009 # systems may use methods other than mode bits to determine executability.
31010 cat >conf$$.file <<_ASEOF
31014 chmod +x conf$$.file
31015 if test -x conf$$.file >/dev/null 2>&1; then
31016 as_executable_p="test -x"
31022 # Sed expression to map a string onto a valid CPP name.
31023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31025 # Sed expression to map a string onto a valid variable name.
31026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31031 # Save the log message, to keep $[0] and so on meaningful, and to
31032 # report actual input values of CONFIG_FILES etc. instead of their
31033 # values after options handling.
31035 This file was extended by linux nfs-utils $as_me 1.0.9, which was
31036 generated by GNU Autoconf 2.59e. Invocation command line was
31038 CONFIG_FILES = $CONFIG_FILES
31039 CONFIG_HEADERS = $CONFIG_HEADERS
31040 CONFIG_LINKS = $CONFIG_LINKS
31041 CONFIG_COMMANDS = $CONFIG_COMMANDS
31044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31049 cat >>$CONFIG_STATUS <<_ACEOF
31050 # Files that config.status was made for.
31051 config_files="$ac_config_files"
31052 config_headers="$ac_config_headers"
31053 config_commands="$ac_config_commands"
31057 cat >>$CONFIG_STATUS <<\_ACEOF
31059 \`$as_me' instantiates files from templates according to the
31060 current configuration.
31062 Usage: $0 [OPTIONS] [FILE]...
31064 -h, --help print this help, then exit
31065 -V, --version print version number, then exit
31066 -q, --quiet do not print progress messages
31067 -d, --debug don't remove temporary files
31068 --recheck update $as_me by reconfiguring in the same conditions
31069 --file=FILE[:TEMPLATE]
31070 instantiate the configuration file FILE
31071 --header=FILE[:TEMPLATE]
31072 instantiate the configuration header FILE
31074 Configuration files:
31077 Configuration headers:
31080 Configuration commands:
31083 Report bugs to <bug-autoconf@gnu.org>."
31086 cat >>$CONFIG_STATUS <<_ACEOF
31088 linux nfs-utils config.status 1.0.9
31089 configured by $0, generated by GNU Autoconf 2.59e,
31090 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31092 Copyright (C) 2006 Free Software Foundation, Inc.
31093 This config.status script is free software; the Free Software Foundation
31094 gives unlimited permission to copy, distribute and modify it."
31101 cat >>$CONFIG_STATUS <<\_ACEOF
31102 # If no file are specified by the user, then we need to provide default
31103 # value. By we need to know if files were specified by the user.
31109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31110 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31121 # Handling of the options.
31122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31125 echo "$ac_cs_version"; exit ;;
31126 --debug | --debu | --deb | --de | --d | -d )
31128 --file | --fil | --fi | --f )
31130 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31131 ac_need_defaults=false;;
31132 --header | --heade | --head | --hea )
31134 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31135 ac_need_defaults=false;;
31137 # Conflict between --help and --header
31138 { echo "$as_me: error: ambiguous option: $1
31139 Try \`$0 --help' for more information." >&2
31140 { (exit 1); exit 1; }; };;
31141 --help | --hel | -h )
31142 echo "$ac_cs_usage"; exit ;;
31143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31147 # This is an error.
31148 -*) { echo "$as_me: error: unrecognized option: $1
31149 Try \`$0 --help' for more information." >&2
31150 { (exit 1); exit 1; }; } ;;
31152 *) ac_config_targets="$ac_config_targets $1"
31153 ac_need_defaults=false ;;
31159 ac_configure_extra_args=
31161 if $ac_cs_silent; then
31163 ac_configure_extra_args="$ac_configure_extra_args --silent"
31167 cat >>$CONFIG_STATUS <<_ACEOF
31168 if \$ac_cs_recheck; then
31169 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31170 CONFIG_SHELL=$SHELL
31171 export CONFIG_SHELL
31172 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31180 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31181 ## Running $as_me. ##
31187 cat >>$CONFIG_STATUS <<_ACEOF
31191 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31195 cat >>$CONFIG_STATUS <<\_ACEOF
31197 # Handling of arguments.
31198 for ac_config_target in $ac_config_targets
31200 case $ac_config_target in
31201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31202 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31204 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31205 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31206 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31207 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31208 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31209 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31210 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31211 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31212 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31213 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31214 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31215 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
31216 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
31217 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31218 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31219 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31220 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31221 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31222 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31223 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31224 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31225 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
31226 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31227 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31228 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31229 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31230 "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
31231 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
31232 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31233 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31237 { (exit 1); exit 1; }; };;
31242 # If the user did not use the arguments to specify the items to instantiate,
31243 # then the envvar interface is used. Set only those that are not.
31244 # We use the long form for the default assignment because of an extremely
31245 # bizarre bug on SunOS 4.1.3.
31246 if $ac_need_defaults; then
31247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31252 # Have a temporary directory for convenience. Make it in the build tree
31253 # simply because there is no reason against having it here, and in addition,
31254 # creating and moving files from /tmp can sometimes cause problems.
31255 # Hook for its removal unless debugging.
31256 # Note that there is a small window in which the directory will not be cleaned:
31257 # after its creation but before its name has been assigned to `$tmp'.
31261 trap 'exit_status=$?
31262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31264 trap '{ (exit 1); exit 1; }' 1 2 13 15
31266 # Create a (secure) tmp directory for tmp files.
31269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31270 test -n "$tmp" && test -d "$tmp"
31273 tmp=./conf$$-$RANDOM
31274 (umask 077 && mkdir "$tmp")
31277 echo "$me: cannot create a temporary directory in ." >&2
31278 { (exit 1); exit 1; }
31282 # Set up the sed scripts for CONFIG_FILES section.
31285 # No need to generate the scripts if there are no CONFIG_FILES.
31286 # This happens for instance when ./config.status config.h
31287 if test -n "$CONFIG_FILES"; then
31294 for ac_last_try in false false false false false :; do
31295 cat >conf$$subs.sed <<_ACEOF
31296 SHELL!$SHELL$ac_delim
31297 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31298 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31299 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31300 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31301 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31302 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31303 exec_prefix!$exec_prefix$ac_delim
31304 prefix!$prefix$ac_delim
31305 program_transform_name!$program_transform_name$ac_delim
31306 bindir!$bindir$ac_delim
31307 sbindir!$sbindir$ac_delim
31308 libexecdir!$libexecdir$ac_delim
31309 datarootdir!$datarootdir$ac_delim
31310 datadir!$datadir$ac_delim
31311 sysconfdir!$sysconfdir$ac_delim
31312 sharedstatedir!$sharedstatedir$ac_delim
31313 localstatedir!$localstatedir$ac_delim
31314 includedir!$includedir$ac_delim
31315 oldincludedir!$oldincludedir$ac_delim
31316 docdir!$docdir$ac_delim
31317 infodir!$infodir$ac_delim
31318 htmldir!$htmldir$ac_delim
31319 dvidir!$dvidir$ac_delim
31320 pdfdir!$pdfdir$ac_delim
31321 psdir!$psdir$ac_delim
31322 libdir!$libdir$ac_delim
31323 localedir!$localedir$ac_delim
31324 mandir!$mandir$ac_delim
31325 DEFS!$DEFS$ac_delim
31326 ECHO_C!$ECHO_C$ac_delim
31327 ECHO_N!$ECHO_N$ac_delim
31328 ECHO_T!$ECHO_T$ac_delim
31329 LIBS!$LIBS$ac_delim
31330 build_alias!$build_alias$ac_delim
31331 host_alias!$host_alias$ac_delim
31332 target_alias!$target_alias$ac_delim
31333 build!$build$ac_delim
31334 build_cpu!$build_cpu$ac_delim
31335 build_vendor!$build_vendor$ac_delim
31336 build_os!$build_os$ac_delim
31337 host!$host$ac_delim
31338 host_cpu!$host_cpu$ac_delim
31339 host_vendor!$host_vendor$ac_delim
31340 host_os!$host_os$ac_delim
31341 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31342 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31343 INSTALL_DATA!$INSTALL_DATA$ac_delim
31344 CYGPATH_W!$CYGPATH_W$ac_delim
31345 PACKAGE!$PACKAGE$ac_delim
31346 VERSION!$VERSION$ac_delim
31347 ACLOCAL!$ACLOCAL$ac_delim
31348 AUTOCONF!$AUTOCONF$ac_delim
31349 AUTOMAKE!$AUTOMAKE$ac_delim
31350 AUTOHEADER!$AUTOHEADER$ac_delim
31351 MAKEINFO!$MAKEINFO$ac_delim
31352 install_sh!$install_sh$ac_delim
31353 STRIP!$STRIP$ac_delim
31354 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31355 mkdir_p!$mkdir_p$ac_delim
31357 SET_MAKE!$SET_MAKE$ac_delim
31358 am__leading_dot!$am__leading_dot$ac_delim
31359 AMTAR!$AMTAR$ac_delim
31360 am__tar!$am__tar$ac_delim
31361 am__untar!$am__untar$ac_delim
31362 RELEASE!$RELEASE$ac_delim
31363 statedir!$statedir$ac_delim
31364 statduser!$statduser$ac_delim
31365 enable_nfsv3!$enable_nfsv3$ac_delim
31366 IDMAPD!$IDMAPD$ac_delim
31367 enable_nfsv4!$enable_nfsv4$ac_delim
31368 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31369 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31370 GSSD!$GSSD$ac_delim
31371 SVCGSSD!$SVCGSSD$ac_delim
31372 enable_gss!$enable_gss$ac_delim
31373 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31374 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31375 kprefix!$kprefix$ac_delim
31376 secure_statd!$secure_statd$ac_delim
31377 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
31378 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
31379 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31380 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31382 CFLAGS!$CFLAGS$ac_delim
31383 LDFLAGS!$LDFLAGS$ac_delim
31384 CPPFLAGS!$CPPFLAGS$ac_delim
31385 ac_ct_CC!$ac_ct_CC$ac_delim
31386 EXEEXT!$EXEEXT$ac_delim
31387 OBJEXT!$OBJEXT$ac_delim
31388 DEPDIR!$DEPDIR$ac_delim
31389 am__include!$am__include$ac_delim
31390 am__quote!$am__quote$ac_delim
31391 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31392 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31395 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31397 elif $ac_last_try; then
31398 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31399 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31400 { (exit 1); exit 1; }; }
31402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31406 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31407 if test -n "$ac_eof"; then
31408 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31409 ac_eof=`expr $ac_eof + 1`
31412 cat >>$CONFIG_STATUS <<_ACEOF
31413 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31418 s/^/s,@/; s/!/@,|#_!!_#|/
31421 s/'"$ac_delim"'$/,g/; t
31423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31424 ' >>$CONFIG_STATUS <conf$$subs.sed
31425 rm -f conf$$subs.sed
31426 cat >>$CONFIG_STATUS <<_ACEOF
31432 for ac_last_try in false false false false false :; do
31433 cat >conf$$subs.sed <<_ACEOF
31434 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31435 CCDEPMODE!$CCDEPMODE$ac_delim
31436 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31437 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31438 LIBWRAP!$LIBWRAP$ac_delim
31439 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31440 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31442 CXXFLAGS!$CXXFLAGS$ac_delim
31443 ac_ct_CXX!$ac_ct_CXX$ac_delim
31444 CXXDEPMODE!$CXXDEPMODE$ac_delim
31445 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31446 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31448 LN_S!$LN_S$ac_delim
31449 GREP!$GREP$ac_delim
31450 EGREP!$EGREP$ac_delim
31451 ECHO!$ECHO$ac_delim
31453 RANLIB!$RANLIB$ac_delim
31454 CXXCPP!$CXXCPP$ac_delim
31456 FFLAGS!$FFLAGS$ac_delim
31457 ac_ct_F77!$ac_ct_F77$ac_delim
31458 LIBTOOL!$LIBTOOL$ac_delim
31459 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31461 PKG_CONFIG!$PKG_CONFIG$ac_delim
31462 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31463 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31464 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
31465 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
31466 LIBSOCKET!$LIBSOCKET$ac_delim
31467 LIBNSL!$LIBNSL$ac_delim
31468 LIBCRYPT!$LIBCRYPT$ac_delim
31469 LIBBSD!$LIBBSD$ac_delim
31470 KRBDIR!$KRBDIR$ac_delim
31471 KRBLIBS!$KRBLIBS$ac_delim
31472 KRBCFLAGS!$KRBCFLAGS$ac_delim
31473 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31474 K5VERS!$K5VERS$ac_delim
31475 ALLOCA!$ALLOCA$ac_delim
31476 LIBOBJS!$LIBOBJS$ac_delim
31477 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31478 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31479 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31480 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31481 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31482 AM_CFLAGS!$AM_CFLAGS$ac_delim
31483 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31484 LTLIBOBJS!$LTLIBOBJS$ac_delim
31487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
31489 elif $ac_last_try; then
31490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31492 { (exit 1); exit 1; }; }
31494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31499 if test -n "$ac_eof"; then
31500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31501 ac_eof=`expr $ac_eof + 1`
31504 cat >>$CONFIG_STATUS <<_ACEOF
31505 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31510 s/^/s,@/; s/!/@,|#_!!_#|/
31513 s/'"$ac_delim"'$/,g/; t
31515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31516 ' >>$CONFIG_STATUS <conf$$subs.sed
31517 rm -f conf$$subs.sed
31518 cat >>$CONFIG_STATUS <<_ACEOF
31525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31527 # trailing colons and then remove the whole line if VPATH becomes empty
31528 # (actually we leave an empty line to preserve line numbers).
31529 if test "x$srcdir" = x.; then
31530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31531 s/:*\$(srcdir):*/:/
31532 s/:*\${srcdir}:*/:/
31534 s/^\([^=]*=[ ]*\):*/\1/
31540 cat >>$CONFIG_STATUS <<\_ACEOF
31541 fi # test -n "$CONFIG_FILES"
31544 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31547 :[FHLC]) ac_mode=$ac_tag; continue;;
31549 case $ac_mode$ac_tag in
31551 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31552 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31553 { (exit 1); exit 1; }; };;
31554 :[FH]-) ac_tag=-:-;;
31555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31572 -) ac_f="$tmp/stdin";;
31573 *) # Look for the file first in the build tree, then in the source tree
31574 # (if the path is not absolute). The absolute path cannot be DOS-style,
31575 # because $ac_f cannot contain `:'.
31579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31581 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31582 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31583 { (exit 1); exit 1; }; };;
31585 ac_file_inputs="$ac_file_inputs $ac_f"
31588 # Let's still pretend it is `configure' which instantiates (i.e., don't
31589 # use $as_me), people would be surprised to read:
31590 # /* config.h. Generated by config.status. */
31591 configure_input="Generated from "`IFS=:
31592 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31593 if test x"$ac_file" != x-; then
31594 configure_input="$ac_file. $configure_input"
31595 { echo "$as_me:$LINENO: creating $ac_file" >&5
31596 echo "$as_me: creating $ac_file" >&6;}
31600 *:-:* | *:-) cat >"$tmp/stdin";;
31605 ac_dir=`$as_dirname -- "$ac_file" ||
31606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31607 X"$ac_file" : 'X\(//\)[^/]' \| \
31608 X"$ac_file" : 'X\(//\)$' \| \
31609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31615 /^X\(\/\/\)[^/].*/{
31630 -*) as_dir=./$as_dir;;
31632 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31636 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31637 *) as_qdir=$as_dir;;
31639 as_dirs="'$as_qdir' $as_dirs"
31640 as_dir=`$as_dirname -- "$as_dir" ||
31641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31642 X"$as_dir" : 'X\(//\)[^/]' \| \
31643 X"$as_dir" : 'X\(//\)$' \| \
31644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31650 /^X\(\/\/\)[^/].*/{
31663 test -d "$as_dir" && break
31665 test -z "$as_dirs" || eval "mkdir $as_dirs"
31666 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31667 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31668 { (exit 1); exit 1; }; }; }
31672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31675 # A ".." for each directory in $ac_dir_suffix.
31676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31677 case $ac_top_builddir_sub in
31678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31682 ac_abs_top_builddir=$ac_pwd
31683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31684 # for backward compatibility:
31685 ac_top_builddir=$ac_top_build_prefix
31688 .) # We are building in place.
31690 ac_top_srcdir=$ac_top_builddir_sub
31691 ac_abs_top_srcdir=$ac_pwd ;;
31692 [\\/]* | ?:[\\/]* ) # Absolute name.
31693 ac_srcdir=$srcdir$ac_dir_suffix;
31694 ac_top_srcdir=$srcdir
31695 ac_abs_top_srcdir=$srcdir ;;
31696 *) # Relative name.
31697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31698 ac_top_srcdir=$ac_top_build_prefix$srcdir
31699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31716 cat >>$CONFIG_STATUS <<\_ACEOF
31717 # If the template does not know about datarootdir, expand it.
31718 # FIXME: This hack should be removed a few years after 2.60.
31719 ac_datarootdir_hack=; ac_datarootdir_seen=
31721 case `sed -n '/datarootdir/ {
31730 ' $ac_file_inputs` in
31731 *datarootdir*) ac_datarootdir_seen=yes;;
31732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31733 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31734 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31736 cat >>$CONFIG_STATUS <<_ACEOF
31737 ac_datarootdir_hack='
31738 s&@datadir@&$datadir&g
31739 s&@docdir@&$docdir&g
31740 s&@infodir@&$infodir&g
31741 s&@localedir@&$localedir&g
31742 s&@mandir@&$mandir&g
31743 s&\\\${datarootdir}&$datarootdir&g' ;;
31747 # Neutralize VPATH when `$srcdir' = `.'.
31748 # Shell code in configure.ac might set extrasub.
31749 # FIXME: do we really want to maintain this feature?
31750 cat >>$CONFIG_STATUS <<_ACEOF
31754 cat >>$CONFIG_STATUS <<\_ACEOF
31756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31757 s&@configure_input@&$configure_input&;t t
31758 s&@top_builddir@&$ac_top_builddir_sub&;t t
31759 s&@srcdir@&$ac_srcdir&;t t
31760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31761 s&@top_srcdir@&$ac_top_srcdir&;t t
31762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31763 s&@builddir@&$ac_builddir&;t t
31764 s&@abs_builddir@&$ac_abs_builddir&;t t
31765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31766 s&@INSTALL@&$ac_INSTALL&;t t
31767 $ac_datarootdir_hack
31768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31772 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31773 which seems to be undefined. Please make sure it is defined." >&5
31774 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31775 which seems to be undefined. Please make sure it is defined." >&2;}
31779 -) cat "$tmp/out"; rm -f "$tmp/out";;
31780 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31789 # Transform confdefs.h into a sed script `conftest.defines', that
31790 # substitutes the proper values into config.h.in to produce config.h.
31791 rm -f conftest.defines conftest.tail
31792 # First, append a space to every undef/define line, to ease matching.
31793 echo 's/$/ /' >conftest.defines
31794 # Then, protect against being on the right side of a sed subst, or in
31795 # an unquoted here document, in config.status. If some macros were
31796 # called several times there might be several #defines for the same
31797 # symbol, which is useless. But do not sort them, since the last
31798 # AC_DEFINE must be honored.
31799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31800 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31801 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31802 # PARAMS is the parameter list in the macro definition--in most cases, it's
31803 # just an empty string.
31804 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31805 ac_dB='\\)[ (].*,\\1define\\2'
31813 s/^[ ]*#[ ]*define[ ][ ]*//
31818 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31819 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31820 ' >>conftest.defines
31822 # Remove the space that was appended to ease matching.
31823 # Then replace #undef with comments. This is necessary, for
31824 # example, in the case of _POSIX_SOURCE, which is predefined and required
31825 # on some systems where configure will not decide to define it.
31826 # (The regexp can be short, since the line contains either #define or #undef.)
31828 s,^[ #]*u.*,/* & */,' >>conftest.defines
31830 # Break up conftest.defines:
31831 ac_max_sed_lines=50
31833 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31834 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31835 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31837 ac_in='$ac_file_inputs'
31838 ac_out='"$tmp/out1"'
31839 ac_nxt='"$tmp/out2"'
31843 # Write a here document:
31844 cat >>$CONFIG_STATUS <<_ACEOF
31845 # First, check the format of the line:
31846 cat >"\$tmp/defines.sed" <<\\CEOF
31847 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31848 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31852 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31854 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31855 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31856 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31857 grep . conftest.tail >/dev/null || break
31858 rm -f conftest.defines
31859 mv conftest.tail conftest.defines
31861 rm -f conftest.defines conftest.tail
31863 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31864 cat >>$CONFIG_STATUS <<\_ACEOF
31865 if test x"$ac_file" != x-; then
31866 echo "/* $configure_input */" >"$tmp/config.h"
31867 cat "$ac_result" >>"$tmp/config.h"
31868 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31869 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31870 echo "$as_me: $ac_file is unchanged" >&6;}
31873 mv "$tmp/config.h" $ac_file
31876 echo "/* $configure_input */"
31880 # Compute $ac_file's index in $config_headers.
31882 for _am_header in $config_headers :; do
31883 case $_am_header in
31884 $ac_file | $ac_file:* )
31887 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31890 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31891 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31892 X$ac_file : 'X\(//\)[^/]' \| \
31893 X$ac_file : 'X\(//\)$' \| \
31894 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31900 /^X\(\/\/\)[^/].*/{
31912 s/.*/./; q'`/stamp-h$_am_stamp_count
31915 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31916 echo "$as_me: executing $ac_file commands" >&6;}
31921 case $ac_file$ac_mode in
31922 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31923 # Strip MF so we end up with the name of the file.
31924 mf=`echo "$mf" | sed -e 's/:.*$//'`
31925 # Check whether this is an Automake generated Makefile or not.
31926 # We used to match only the files named `Makefile.in', but
31927 # some people rename them; so instead we look at the file content.
31928 # Grep'ing the first line is not enough: some people post-process
31929 # each Makefile.in and add a new line on top of each file to say so.
31930 # So let's grep whole file.
31931 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31932 dirpart=`$as_dirname -- "$mf" ||
31933 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31934 X"$mf" : 'X\(//\)[^/]' \| \
31935 X"$mf" : 'X\(//\)$' \| \
31936 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31942 /^X\(\/\/\)[^/].*/{
31958 # Extract the definition of DEPDIR, am__include, and am__quote
31959 # from the Makefile without running `make'.
31960 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31961 test -z "$DEPDIR" && continue
31962 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31963 test -z "am__include" && continue
31964 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31965 # When using ansi2knr, U may be empty or an underscore; expand it
31966 U=`sed -n 's/^U = //p' < "$mf"`
31967 # Find all dependency output files, they are included files with
31968 # $(DEPDIR) in their names. We invoke sed twice because it is the
31969 # simplest approach to changing $(DEPDIR) to its actual value in the
31971 for file in `sed -n "
31972 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31973 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31974 # Make sure the directory exists.
31975 test -f "$dirpart/$file" && continue
31976 fdir=`$as_dirname -- "$file" ||
31977 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31978 X"$file" : 'X\(//\)[^/]' \| \
31979 X"$file" : 'X\(//\)$' \| \
31980 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31986 /^X\(\/\/\)[^/].*/{
31999 { as_dir=$dirpart/$fdir
32001 -*) as_dir=./$as_dir;;
32003 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32007 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32008 *) as_qdir=$as_dir;;
32010 as_dirs="'$as_qdir' $as_dirs"
32011 as_dir=`$as_dirname -- "$as_dir" ||
32012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32013 X"$as_dir" : 'X\(//\)[^/]' \| \
32014 X"$as_dir" : 'X\(//\)$' \| \
32015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32021 /^X\(\/\/\)[^/].*/{
32034 test -d "$as_dir" && break
32036 test -z "$as_dirs" || eval "mkdir $as_dirs"
32037 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32038 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32039 { (exit 1); exit 1; }; }; }
32040 # echo "creating $dirpart/$file"
32041 echo '# dummy' > "$dirpart/$file"
32050 { (exit 0); exit 0; }
32052 chmod +x $CONFIG_STATUS
32053 ac_clean_files=$ac_clean_files_save
32056 # configure is writing to config.log, and then calls config.status.
32057 # config.status does its own redirection, appending to config.log.
32058 # Unfortunately, on DOS this fails, as config.log is still kept open
32059 # by configure, so config.status won't be able to write to it; its
32060 # output is simply discarded. So we exec the FD to /dev/null,
32061 # effectively closing config.log, so it can be properly (re)opened and
32062 # appended to by config.status. When coming back to configure, we
32063 # need to make the FD available again.
32064 if test "$no_create" != yes; then
32066 ac_config_status_args=
32067 test "$silent" = yes &&
32068 ac_config_status_args="$ac_config_status_args --quiet"
32070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32073 # would make configure fail if this is the last instruction.
32074 $ac_cs_success || { (exit 1); exit 1; }