2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d for linux nfs-utils 1.0.8.
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 (dirname -- /) >/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.8'
717 PACKAGE_STRING='linux nfs-utils 1.0.8'
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
905 ac_precious_vars='build_alias
926 # Initialize some variables set by options.
928 ac_init_version=false
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1033 eval enable_$ac_feature=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1052 eval enable_$ac_feature=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package| sed 's/-/_/g'`
1249 eval with_$ac_package=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid package name: $ac_package" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_package=`echo $ac_package | sed 's/-/_/g'`
1258 eval with_$ac_package=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) { echo "$as_me: error: unrecognized option: $ac_option
1279 Try \`$0 --help' for more information." >&2
1280 { (exit 1); exit 1; }; }
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1288 { (exit 1); exit 1; }; }
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 { echo "$as_me: error: missing argument to $ac_option" >&2
1306 { (exit 1); exit 1; }; }
1309 # Be sure to have absolute directory names.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1321 { (exit 1); exit 1; }; }
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345 test "$silent" = yes && exec 6>/dev/null
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 { echo "$as_me: error: Working directory cannot be determined" >&2
1352 { (exit 1); exit 1; }; }
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 { echo "$as_me: error: pwd does not report name of working directory" >&2
1355 { (exit 1); exit 1; }; }
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$0" ||
1363 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$0" : 'X\(//\)[^/]' \| \
1365 X"$0" : 'X\(//\)$' \| \
1366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1390 ac_srcdir_defaulted=no
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1395 { (exit 1); exit 1; }; }
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1400 { (exit 1); exit 1; }; }
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1426 \`configure' configures linux nfs-utils 1.0.8 to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of linux nfs-utils 1.0.8:";;
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-nfsv3 enable support for NFSv3 [default=yes]
1504 --enable-nfsv4 enable support for NFSv4 [default=yes]
1505 --enable-gss enable support for rpcsec_gss [default=yes]
1506 --enable-kprefix install progs as rpc.knfsd etc
1507 --enable-secure-statd Only lockd can use statd (security)
1508 --enable-rquotad enable rquotad [default=yes]
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-release=XXX set release to XXX [1]
1521 --with-statedir=/foo use state dir /foo /var/lib/nfs
1522 --with-statduser=rpcuser
1523 statd to run under [rpcuser or nobody]
1524 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1525 (optionally in PATH)
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-pic try to use only PIC/non-PIC objects [default=use
1529 --with-tags[=TAGS] include additional configurations [automatic]
1530 --with-krb5=DIR use Kerberos v5 installation in DIR
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1543 F77 Fortran 77 compiler command
1544 FFLAGS Fortran 77 compiler flags
1545 PKG_CONFIG path to pkg-config utility
1547 C compiler flags for RPCSECGSS, overriding pkg-config
1549 linker flags for RPCSECGSS, overriding pkg-config
1551 C compiler flags for GSSAPI, overriding pkg-config
1552 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 Report bugs to <nfs@lists.sf.net>.
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d $ac_dir || continue
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f $ac_srcdir/configure.gnu; then
1604 $SHELL $ac_srcdir/configure.gnu --help=recursive
1605 elif test -f $ac_srcdir/configure; then
1607 $SHELL $ac_srcdir/configure --help=recursive
1609 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1618 linux nfs-utils configure 1.0.8
1619 generated by GNU Autoconf 2.59d
1621 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1622 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1628 cat >config.log <<_ACEOF
1629 This file contains any messages produced by compilers while
1630 running configure, to aid debugging if configure makes a mistake.
1632 It was created by linux nfs-utils $as_me 1.0.8, which was
1633 generated by GNU Autoconf 2.59d. Invocation command line was
1645 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1646 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1647 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1648 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1649 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1652 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1654 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1655 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1656 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1657 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1658 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1659 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1660 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 echo "PATH: $as_dir"
1685 # Keep a trace of the command line.
1686 # Strip out --no-create and --no-recursion so they do not pile up.
1687 # Strip out --silent because we don't want to record it for future runs.
1688 # Also quote any args containing shell meta-characters.
1689 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_must_keep_next=false
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723 -* ) ac_must_keep_next=true ;;
1726 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1727 # Get rid of the leading space.
1733 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736 # When interrupted or exit'd, cleanup temporary files, and complete
1737 # config.log. We remove comments because anyway the quotes in there
1738 # would cause problems or look ugly.
1739 # WARNING: Use '\'' to represent an apostrophe within the trap.
1740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741 trap 'exit_status=$?
1742 # Save into config.log some information that might help in debugging.
1747 ## ---------------- ##
1748 ## Cache variables. ##
1749 ## ---------------- ##
1752 # The following way of writing the cache mishandles newlines in values,
1754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755 eval ac_val=\$$ac_var
1759 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1760 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 _ | IFS | as_nl) ;; #(
1764 *) $as_unset $ac_var ;;
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1789 for ac_var in $ac_subst_vars
1791 eval ac_val=\$$ac_var
1792 echo "$ac_var='\''$ac_val'\''"
1796 if test -n "$ac_subst_files"; then
1798 ## ------------------- ##
1799 ## File substitutions. ##
1800 ## ------------------- ##
1803 for ac_var in $ac_subst_files
1805 eval ac_val=\$$ac_var
1806 echo "$ac_var='\''$ac_val'\''"
1811 if test -s confdefs.h; then
1821 test "$ac_signal" != 0 &&
1822 echo "$as_me: caught signal $ac_signal"
1823 echo "$as_me: exit $exit_status"
1825 rm -f core *.core core.conftest.* &&
1826 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 for ac_signal in 1 2 13 15; do
1830 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1835 rm -f -r conftest* confdefs.h
1837 # Predefined preprocessor variables.
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_NAME "$PACKAGE_NAME"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_STRING "$PACKAGE_STRING"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1864 # Let the site file select an alternate cache file if it wants to.
1865 # Prefer explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867 set x "$CONFIG_SITE"
1868 elif test "x$prefix" != xNONE; then
1869 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 set x "$ac_default_prefix/share/config.site" \
1872 "$ac_default_prefix/etc/config.site"
1877 if test -r "$ac_site_file"; then
1878 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1879 echo "$as_me: loading site script $ac_site_file" >&6;}
1880 sed 's/^/| /' "$ac_site_file" >&5
1885 if test -r "$cache_file"; then
1886 # Some versions of bash will fail to source /dev/null (special
1887 # files actually), so we avoid doing that.
1888 if test -f "$cache_file"; then
1889 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1890 echo "$as_me: loading cache $cache_file" >&6;}
1892 [\\/]* | ?:[\\/]* ) . $cache_file;;
1893 *) . ./$cache_file;;
1897 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1898 echo "$as_me: creating cache $cache_file" >&6;}
1902 # Check that the precious variables saved in the cache have kept the same
1904 ac_cache_corrupted=false
1905 for ac_var in $ac_precious_vars; do
1906 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1907 eval ac_new_set=\$ac_env_${ac_var}_set
1908 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1909 eval ac_new_val=\$ac_env_${ac_var}_value
1910 case $ac_old_set,$ac_new_set in
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1921 if test "x$ac_old_val" != "x$ac_new_val"; then
1922 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1925 echo "$as_me: former value: $ac_old_val" >&2;}
1926 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1927 echo "$as_me: current value: $ac_new_val" >&2;}
1928 ac_cache_corrupted=:
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1934 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 *) ac_arg=$ac_var=$ac_new_val ;;
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 if $ac_cache_corrupted; then
1944 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1984 if test -f $ac_dir/install-sh; then
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 elif test -f $ac_dir/install.sh; then
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 elif test -f $ac_dir/shtool; then
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2001 { (exit 1); exit 1; }; }
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2005 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2007 # Make sure we can run config.sub.
2008 $ac_config_sub sun4 >/dev/null 2>&1 ||
2009 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2010 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2011 { (exit 1); exit 1; }; }
2013 { echo "$as_me:$LINENO: checking build system type" >&5
2014 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2015 if test "${ac_cv_build+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 ac_build_alias=$build_alias
2019 test "x$ac_build_alias" = x &&
2020 ac_build_alias=`$ac_config_guess`
2021 test "x$ac_build_alias" = x &&
2022 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2023 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2024 { (exit 1); exit 1; }; }
2025 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
2026 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
2027 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2031 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2032 echo "${ECHO_T}$ac_cv_build" >&6; }
2033 case $ac_cv_build in
2035 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2036 echo "$as_me: error: invalid value of canonical build" >&2;}
2037 { (exit 1); exit 1; }; };;
2040 ac_save_IFS=$IFS; IFS='-'
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2050 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2053 { echo "$as_me:$LINENO: checking host system type" >&5
2054 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2055 if test "${ac_cv_host+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test "x$host_alias" = x; then
2059 ac_cv_host=$ac_cv_build
2061 ac_cv_host=`$ac_config_sub $host_alias` ||
2062 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
2063 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
2064 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2069 echo "${ECHO_T}$ac_cv_host" >&6; }
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2073 echo "$as_me: error: invalid value of canonical host" >&2;}
2074 { (exit 1); exit 1; }; };;
2077 ac_save_IFS=$IFS; IFS='-'
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2087 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2092 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
2093 *) ac_macro_dir=$srcdir/aclocal ;;
2095 test -d "$ac_macro_dir" ||
2096 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2097 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2098 { (exit 1); exit 1; }; }
2100 am__api_version="1.9"
2101 # Find a good install program. We prefer a C program (faster),
2102 # so one script is as good as another. But avoid the broken or
2103 # incompatible versions:
2104 # SysV /etc/install, /usr/sbin/install
2105 # SunOS /usr/etc/install
2106 # IRIX /sbin/install
2108 # AmigaOS /C/install, which installs bootblocks on floppy discs
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # OS/2's system install, which has a completely different semantic
2113 # ./install, which can be erroneously created by make from ./install.sh.
2114 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2115 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2116 if test -z "$INSTALL"; then
2117 if test "${ac_cv_path_install+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 # Account for people who put trailing slashes in PATH elements.
2127 ./ | .// | /cC/* | \
2128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2132 # OSF1 and SCO ODT 3.0 have their own names for install.
2133 # Don't use installbsd from OSF since it installs stuff as root
2135 for ac_prog in ginstall scoinst install; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2138 if test $ac_prog = install &&
2139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2140 # AIX install. It has an incompatible calling convention.
2142 elif test $ac_prog = install &&
2143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2144 # program-specific install script used by HP pwplus--don't use.
2147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2160 if test "${ac_cv_path_install+set}" = set; then
2161 INSTALL=$ac_cv_path_install
2163 # As a last resort, use the slow shell script. Don't cache a
2164 # value for INSTALL within a source directory, because that will
2165 # break other packages using the cache if that directory is
2166 # removed, or if the value is a relative name.
2167 INSTALL=$ac_install_sh
2170 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2171 echo "${ECHO_T}$INSTALL" >&6; }
2173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2174 # It thinks the first close brace ends the variable substitution.
2175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2181 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2182 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2185 echo timestamp > conftest.file
2186 # Do `set' in a subshell so we don't clobber the current shell's
2187 # arguments. Must try -L first in case configure is actually a
2188 # symlink; some systems play weird games with the mod time of symlinks
2189 # (eg FreeBSD returns the mod time of the symlink's containing
2192 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2193 if test "$*" = "X"; then
2195 set X `ls -t $srcdir/configure conftest.file`
2198 if test "$*" != "X $srcdir/configure conftest.file" \
2199 && test "$*" != "X conftest.file $srcdir/configure"; then
2201 # If neither matched, then we have a broken ls. This can happen
2202 # if, for instance, CONFIG_SHELL is bash and it inherits a
2203 # broken ls alias from the environment. This has actually
2204 # happened. Such a system could not be considered "sane".
2205 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2206 alias in your environment" >&5
2207 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2208 alias in your environment" >&2;}
2209 { (exit 1); exit 1; }; }
2212 test "$2" = conftest.file
2218 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2219 Check your system clock" >&5
2220 echo "$as_me: error: newly created file is older than distributed files!
2221 Check your system clock" >&2;}
2222 { (exit 1); exit 1; }; }
2224 { echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6; }
2226 test "$program_prefix" != NONE &&
2227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2228 # Use a double $ so make ignores it.
2229 test "$program_suffix" != NONE &&
2230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2231 # Double any \ or $. echo might interpret backslashes.
2232 # By default was `s,x,x', remove it if useless.
2233 cat <<\_ACEOF >conftest.sed
2234 s/[\\$]/&&/g;s/;s,x,x,$//
2236 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2239 # expand $ac_aux_dir to an absolute path
2240 am_aux_dir=`cd $ac_aux_dir && pwd`
2242 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2243 # Use eval to expand $SHELL
2244 if eval "$MISSING --run true"; then
2245 am_missing_run="$MISSING --run "
2248 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2252 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2253 # We used to keeping the `.' as first argument, in order to
2254 # allow $(mkdir_p) to be used without argument. As in
2255 # $(mkdir_p) $(somedir)
2256 # where $(somedir) is conditionally defined. However this is wrong
2258 # 1. if the package is installed by a user who cannot write `.'
2259 # make install will fail,
2260 # 2. the above comment should most certainly read
2261 # $(mkdir_p) $(DESTDIR)$(somedir)
2262 # so it does not work when $(somedir) is undefined and
2263 # $(DESTDIR) is not.
2264 # To support the latter case, we have to write
2265 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2266 # so the `.' trick is pointless.
2267 mkdir_p='mkdir -p --'
2269 # On NextStep and OpenStep, the `mkdir' command does not
2270 # recognize any option. It will interpret all options as
2271 # directories to create, and then abort because `.' already
2273 for d in ./-p ./--version;
2275 test -d $d && rmdir $d
2277 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2278 if test -f "$ac_aux_dir/mkinstalldirs"; then
2279 mkdir_p='$(mkinstalldirs)'
2281 mkdir_p='$(install_sh) -d'
2285 for ac_prog in gawk mawk nawk awk
2287 # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_AWK+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$AWK"; then
2295 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2304 ac_cv_prog_AWK="$ac_prog"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 if test -n "$AWK"; then
2316 { echo "$as_me:$LINENO: result: $AWK" >&5
2317 echo "${ECHO_T}$AWK" >&6; }
2319 { echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6; }
2324 test -n "$AWK" && break
2327 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2328 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2329 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.make <<\_ACEOF
2336 @echo 'ac_maketemp=X"$(MAKE)"'
2338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2339 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2340 if test "$ac_maketemp" != X ; then
2341 eval ac_cv_prog_make_${ac_make}_set=yes
2343 eval ac_cv_prog_make_${ac_make}_set=no
2347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2354 SET_MAKE="MAKE=${MAKE-make}"
2357 rm -rf .tst 2>/dev/null
2358 mkdir .tst 2>/dev/null
2359 if test -d .tst; then
2364 rmdir .tst 2>/dev/null
2366 # test to see if srcdir already configured
2367 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2368 test -f $srcdir/config.status; then
2369 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2370 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2371 { (exit 1); exit 1; }; }
2374 # test whether we have cygpath
2375 if test -z "$CYGPATH_W"; then
2376 if (cygpath --version) >/dev/null 2>/dev/null; then
2377 CYGPATH_W='cygpath -w'
2384 # Define the identity of the package.
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE "$PACKAGE"
2394 cat >>confdefs.h <<_ACEOF
2395 #define VERSION "$VERSION"
2398 # Some tools Automake needs.
2400 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2403 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2406 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2409 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2412 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2414 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2416 # Installed binaries are usually stripped using `strip' when the user
2417 # run `make install-strip'. However `strip' might not be the right
2418 # tool to use in cross-compilation environments, therefore Automake
2419 # will honor the `STRIP' environment variable to overrule this program.
2420 if test "$cross_compiling" != no; then
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}strip; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_STRIP+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -n "$STRIP"; then
2430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 STRIP=$ac_cv_prog_STRIP
2450 if test -n "$STRIP"; then
2451 { echo "$as_me:$LINENO: result: $STRIP" >&5
2452 echo "${ECHO_T}$STRIP" >&6; }
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2460 if test -z "$ac_cv_prog_STRIP"; then
2462 # Extract the first word of "strip", so it can be a program name with args.
2463 set dummy strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ac_ct_STRIP"; then
2470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_STRIP="strip"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2490 if test -n "$ac_ct_STRIP"; then
2491 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2492 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2498 if test "x$ac_ct_STRIP" = x; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2514 STRIP="$ac_cv_prog_STRIP"
2518 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2520 # We need awk for the "check" target. The system "awk" is bad on
2522 # Always define AMTAR for backward compatibility.
2524 AMTAR=${AMTAR-"${am_missing_run}tar"}
2526 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2536 # Check whether --with-release was given.
2537 if test "${with_release+set}" = set; then
2538 withval=$with_release; RELEASE=$withval
2545 # Check whether --with-statedir was given.
2546 if test "${with_statedir+set}" = set; then
2547 withval=$with_statedir; statedir=$withval
2549 statedir=/var/lib/nfs
2554 # Check whether --with-statduser was given.
2555 if test "${with_statduser+set}" = set; then
2556 withval=$with_statduser; statduser=$withval
2558 if test "x$cross_compiling" = "xno"; then
2559 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2570 # Check whether --enable-nfsv3 was given.
2571 if test "${enable_nfsv3+set}" = set; then
2572 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2577 if test "$enable_nfsv3" = yes; then
2579 cat >>confdefs.h <<\_ACEOF
2580 #define NFS3_SUPPORTED 1
2587 # Check whether --enable-nfsv4 was given.
2588 if test "${enable_nfsv4+set}" = set; then
2589 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2594 if test "$enable_nfsv4" = yes; then
2596 cat >>confdefs.h <<\_ACEOF
2597 #define NFS4_SUPPORTED 1
2609 if test "$enable_nfsv4" = "yes"; then
2611 CONFIG_NFSV4_FALSE='#'
2613 CONFIG_NFSV4_TRUE='#'
2617 # Check whether --enable-gss was given.
2618 if test "${enable_gss+set}" = set; then
2619 enableval=$enable_gss; enable_gss=$enableval
2624 if test "$enable_gss" = yes; then
2626 cat >>confdefs.h <<\_ACEOF
2627 #define GSS_SUPPORTED 1
2642 if test "$enable_gss" = "yes"; then
2644 CONFIG_GSS_FALSE='#'
2650 # Check whether --enable-kprefix was given.
2651 if test "${enable_kprefix+set}" = set; then
2652 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2658 # Check whether --enable-secure-statd was given.
2659 if test "${enable_secure_statd+set}" = set; then
2660 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2665 if test "$secure_statd" = yes; then
2667 cat >>confdefs.h <<\_ACEOF
2668 #define RESTRICTED_STATD 1
2673 # Check whether --enable-rquotad was given.
2674 if test "${enable_rquotad+set}" = set; then
2675 enableval=$enable_rquotad; enable_rquotad=$enableval
2680 if test "$enable_rquotad" = yes; then
2687 if test "$enable_rquotad" = "yes"; then
2688 CONFIG_RQUOTAD_TRUE=
2689 CONFIG_RQUOTAD_FALSE='#'
2691 CONFIG_RQUOTAD_TRUE='#'
2692 CONFIG_RQUOTAD_FALSE=
2696 # Check whether user wants TCP wrappers support
2697 DEPDIR="${am__leading_dot}deps"
2699 ac_config_commands="$ac_config_commands depfiles"
2702 am_make=${MAKE-make}
2703 cat > confinc << 'END'
2708 # If we don't find an include directive, just comment out the code.
2709 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2710 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2714 # First try GNU make style include.
2715 echo "include confinc" > confmf
2716 # We grep out `Entering directory' and `Leaving directory'
2717 # messages which can occur if `w' ends up in MAKEFLAGS.
2718 # In particular we don't look at `^make:' because GNU make might
2719 # be invoked under some other name (usually "gmake"), in which
2720 # case it prints its new name instead of `make'.
2721 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2726 # Now try BSD make style include.
2727 if test "$am__include" = "#"; then
2728 echo '.include "confinc"' > confmf
2729 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2730 am__include=.include
2737 { echo "$as_me:$LINENO: result: $_am_result" >&5
2738 echo "${ECHO_T}$_am_result" >&6; }
2739 rm -f confinc confmf
2741 # Check whether --enable-dependency-tracking was given.
2742 if test "${enable_dependency_tracking+set}" = set; then
2743 enableval=$enable_dependency_tracking;
2746 if test "x$enable_dependency_tracking" != xno; then
2747 am_depcomp="$ac_aux_dir/depcomp"
2752 if test "x$enable_dependency_tracking" != xno; then
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$CC"; then
2797 { echo "$as_me:$LINENO: result: $CC" >&5
2798 echo "${ECHO_T}$CC" >&6; }
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2806 if test -z "$ac_cv_prog_CC"; then
2808 # Extract the first word of "gcc", so it can be a program name with args.
2809 set dummy gcc; ac_word=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="gcc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6; }
2840 { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2844 if test "x$ac_ct_CC" = x; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned=yes ;;
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}cc; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_CC="${ac_tool_prefix}cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test -n "$CC"; then
2894 { echo "$as_me:$LINENO: result: $CC" >&5
2895 echo "${ECHO_T}$CC" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2904 if test -z "$CC"; then
2905 # Extract the first word of "cc", so it can be a program name with args.
2906 set dummy cc; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2924 ac_prog_rejected=yes
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test $ac_prog_rejected = yes; then
2936 # We found a bogon in the path, so make sure we never use it.
2937 set dummy $ac_cv_prog_CC
2939 if test $# != 0; then
2940 # We chose a different compiler from the bogus one.
2941 # However, it has the same basename, so the bogon will be chosen
2942 # first if we set CC to just the basename; use the full file name.
2944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 if test -n "$CC"; then
2951 { echo "$as_me:$LINENO: result: $CC" >&5
2952 echo "${ECHO_T}$CC" >&6; }
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 { echo "$as_me:$LINENO: result: $CC" >&5
2994 echo "${ECHO_T}$CC" >&6; }
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$CC" && break
3004 if test -z "$CC"; then
3006 for ac_prog in cl.exe
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_CC="$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3038 echo "${ECHO_T}$ac_ct_CC" >&6; }
3040 { echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6; }
3045 test -n "$ac_ct_CC" && break
3048 if test "x$ac_ct_CC" = x; then
3051 case $cross_compiling:$ac_tool_warned in
3053 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3054 whose name does not start with the host triplet. If you think this
3055 configuration is useful to you, please write to autoconf@gnu.org." >&5
3056 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3057 whose name does not start with the host triplet. If you think this
3058 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3059 ac_tool_warned=yes ;;
3068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: no acceptable C compiler found in \$PATH
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3074 # Provide some information about the compiler.
3075 echo "$as_me:$LINENO: checking for C compiler version" >&5
3076 ac_compiler=`set X $ac_compile; echo $2`
3077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3078 (eval $ac_compiler --version >&5) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }
3082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3083 (eval $ac_compiler -v >&5) 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3088 (eval $ac_compiler -V >&5) 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }
3094 # List of possible output files. We want to start from the most likely,
3095 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
3096 # also for foo.exe. b.out is created by i960 compilers.
3097 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
3098 # But we are not allowed to rm a.*, and we do not want always remove
3099 # conftest.*, so we will list them literally, when appropriate.
3100 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
3102 # The IRIX 6 linker writes into existing files which may not be
3103 # executable, retaining their permissions. Remove them first so a
3104 # subsequent execution test works.
3105 rm -f $ac_outfiles conftest.*
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files $ac_outfiles"
3126 # The following tests should remove their output except files matching conftest.*.
3127 # Try to create an executable without -o first, disregard a.out.
3128 # It will help us diagnose broken compilers, and finding out an intuition
3130 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3131 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3135 (eval $ac_link_default) 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; then
3139 for ac_file in $ac_outfiles a.* conftest.* NO
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3147 if test "$ac_file" = NO; then
3148 { { echo "$as_me:$LINENO: error: no output file found
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: no output file found
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&2;}
3164 { (exit 77); exit 77; }; }
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 # Check that the compiler produces executables we can run. If not, either
3170 # the compiler is broken, or we cross compile.
3171 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3174 # If not cross compiling, check that we can run a simple program.
3175 if test "$cross_compiling" != yes; then
3176 if { ac_try='./$ac_file'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 if test "$cross_compiling" = maybe; then
3187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3197 { echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6; }
3200 # Clean up; list also $ac_file, in case it matched a wildcard entry.
3201 rm -f $ac_outfiles $ac_file
3203 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3205 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3206 echo "${ECHO_T}$cross_compiling" >&6; }
3208 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3210 if test "${ac_cv_exeext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable),
3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
3221 for ac_file in conftest.exe conftest conftest.* NO; do
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 if test "$ac_file" = NO; then
3231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
3232 See \`config.log' for more details." >&5
3233 echo "$as_me: error: cannot compute suffix of executables: no output file found
3234 See \`config.log' for more details." >&2;}
3235 { (exit 1); exit 1; }; }
3238 # Clean up; list also $ac_file, in case it matched conftest.*.
3239 rm -f $ac_outfiles $ac_file
3242 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3252 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3253 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3254 EXEEXT=$ac_cv_exeext
3258 ac_clean_files=$ac_clean_files_save
3260 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3262 if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 rm -f conftest.o conftest.obj
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3291 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292 echo "${ECHO_T}$ac_cv_objext" >&6; }
3293 OBJEXT=$ac_cv_objext
3298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3321 rm -f conftest.$ac_objext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323 (eval $ac_compile) 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3356 GCC=`test $ac_compiler_gnu = yes && echo yes`
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3425 rm -f conftest.$ac_objext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3517 if test "$GCC" = yes; then
3523 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3524 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 ac_cv_prog_cc_c89=no
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3554 s = g (p, va_arg (v,int));
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3560 function prototypes and stuff, but not '\xHH' hex character constants.
3561 These don't provoke an error unfortunately, instead are silently treated
3562 as 'x'. The following induces an error, until -std is added to get
3563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3564 array size at least. It's necessary to write '\x00'==0 to get something
3565 that's true only with -std. */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 CC="$ac_save_CC $ac_arg"
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_prog_cc_c89=$ac_arg
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3615 rm -f conftest.err conftest.$ac_objext
3616 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 rm -f conftest.$ac_ext
3623 case "x$ac_cv_prog_cc_c89" in
3625 { echo "$as_me:$LINENO: result: none needed" >&5
3626 echo "${ECHO_T}none needed" >&6; } ;;
3628 { echo "$as_me:$LINENO: result: unsupported" >&5
3629 echo "${ECHO_T}unsupported" >&6; } ;;
3631 CC="$CC $ac_cv_prog_cc_c89"
3632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3633 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 depcc="$CC" am_compiler_list=
3645 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3646 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3647 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651 # We make a subdir and do the tests there. Otherwise we can end up
3652 # making bogus files that we don't know about and never remove. For
3653 # instance it was reported that on HP-UX the gcc test will end up
3654 # making a dummy file named `D' -- because `-MD' means `put the output
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3669 am_cv_CC_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3673 for depmode in $am_compiler_list; do
3674 # Setup a source with many dependencies, because some compilers
3675 # like to wrap large dependency lists on column 80 (with \), and
3676 # we should not choose a depcomp mode which is confused by this.
3678 # We need to recreate these files for each test, as the compiler may
3679 # overwrite some of them when testing with obscure command lines.
3680 # This happens at least with the AIX C compiler.
3682 for i in 1 2 3 4 5 6; do
3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3684 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3685 # Solaris 8's {/usr,}/bin/sh.
3686 touch sub/conftst$i.h
3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3692 # after this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested
3694 if test "x$enable_dependency_tracking" = xyes; then
3702 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3703 # mode. It turns out that the SunPro C++ compiler does not properly
3704 # handle `-M -o', and we need to detect this.
3705 if depmode=$depmode \
3706 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3708 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3709 >/dev/null 2>conftest.err &&
3710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713 # icc doesn't choke on unknown options, it will just issue warnings
3714 # or remarks (even with -Werror). So we grep stderr for any message
3715 # that says an option was ignored or not supported.
3716 # When given -MP, icc 7.0 and 7.1 complain thusly:
3717 # icc: Command line warning: ignoring option '-M'; no argument required
3718 # The diagnosis changed in icc 8.0:
3719 # icc: Command line remark: option '-MP' not supported
3720 if (grep 'ignoring option' conftest.err ||
3721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722 am_cv_CC_dependencies_compiler_type=$depmode
3731 am_cv_CC_dependencies_compiler_type=none
3735 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3736 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3737 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3742 test "x$enable_dependency_tracking" != xno \
3743 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3745 am__fastdepCC_FALSE='#'
3747 am__fastdepCC_TRUE='#'
3748 am__fastdepCC_FALSE=
3756 # Check whether --with-tcp-wrappers was given.
3757 if test "${with_tcp_wrappers+set}" = set; then
3758 withval=$with_tcp_wrappers;
3759 if test "x$withval" != "xno" ; then
3761 saved_LDFLAGS="$LDFLAGS"
3762 saved_CPPFLAGS="$CPPFLAGS"
3763 if test -n "${withval}" -a "${withval}" != "yes"; then
3764 if test -d "${withval}/lib"; then
3765 if test -n "${need_dash_r}"; then
3766 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3768 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3771 if test -n "${need_dash_r}"; then
3772 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3774 LDFLAGS="-L${withval} ${LDFLAGS}"
3777 if test -d "${withval}/include"; then
3778 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3780 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3784 LIBS="$LIBWRAP $LIBS"
3785 { echo "$as_me:$LINENO: checking for libwrap" >&5
3786 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3787 cat >conftest.$ac_ext <<_ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3795 int deny_severity = 0, allow_severity = 0;
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3827 { echo "$as_me:$LINENO: result: yes" >&5
3828 echo "${ECHO_T}yes" >&6; }
3831 cat >>confdefs.h <<\_ACEOF
3836 cat >>confdefs.h <<\_ACEOF
3837 #define HAVE_LIBWRAP 1
3841 cat >>confdefs.h <<\_ACEOF
3842 #define HAVE_TCP_WRAPPER 1
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3852 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3853 echo "$as_me: error: *** libwrap missing" >&2;}
3854 { (exit 1); exit 1; }; }
3859 rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3873 ac_config_headers="$ac_config_headers support/include/config.h"
3876 # Checks for programs.
3878 ac_cpp='$CXXCPP $CPPFLAGS'
3879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3882 if test -z "$CXX"; then
3883 if test -n "$CCC"; then
3886 if test -n "$ac_tool_prefix"; then
3887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893 if test "${ac_cv_prog_CXX+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test -n "$CXX"; then
3897 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$CXX"; then
3918 { echo "$as_me:$LINENO: result: $CXX" >&5
3919 echo "${ECHO_T}$CXX" >&6; }
3921 { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3926 test -n "$CXX" && break
3929 if test -z "$CXX"; then
3931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 if test -n "$ac_ct_CXX"; then
3941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_ac_ct_CXX="$ac_prog"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3961 if test -n "$ac_ct_CXX"; then
3962 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3963 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3965 { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3970 test -n "$ac_ct_CXX" && break
3973 if test "x$ac_ct_CXX" = x; then
3976 case $cross_compiling:$ac_tool_warned in
3978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet. If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&5
3981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet. If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3984 ac_tool_warned=yes ;;
3992 # Provide some information about the compiler.
3993 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3994 ac_compiler=`set X $ac_compile; echo $2`
3995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3996 (eval $ac_compiler --version >&5) 2>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }
4000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
4001 (eval $ac_compiler -v >&5) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }
4005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
4006 (eval $ac_compiler -V >&5) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }
4011 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4012 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4013 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4069 GXX=`test $ac_compiler_gnu = yes && echo yes`
4070 ac_test_CXXFLAGS=${CXXFLAGS+set}
4071 ac_save_CXXFLAGS=$CXXFLAGS
4072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4074 if test "${ac_cv_prog_cxx_g+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4078 ac_cxx_werror_flag=yes
4081 cat >conftest.$ac_ext <<_ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_prog_cxx_g=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_prog_cxx_g=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4220 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4221 if test "$ac_test_CXXFLAGS" = set; then
4222 CXXFLAGS=$ac_save_CXXFLAGS
4223 elif test $ac_cv_prog_cxx_g = yes; then
4224 if test "$GXX" = yes; then
4230 if test "$GXX" = yes; then
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 depcc="$CXX" am_compiler_list=
4244 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4245 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4246 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250 # We make a subdir and do the tests there. Otherwise we can end up
4251 # making bogus files that we don't know about and never remove. For
4252 # instance it was reported that on HP-UX the gcc test will end up
4253 # making a dummy file named `D' -- because `-MD' means `put the output
4256 # Copy depcomp to subdir because otherwise we won't find it if we're
4257 # using a relative directory.
4258 cp "$am_depcomp" conftest.dir
4260 # We will build objects and dependencies in a subdirectory because
4261 # it helps to detect inapplicable dependency modes. For instance
4262 # both Tru64's cc and ICC support -MD to output dependencies as a
4263 # side effect of compilation, but ICC will put the dependencies in
4264 # the current directory while Tru64 will put them in the object
4268 am_cv_CXX_dependencies_compiler_type=none
4269 if test "$am_compiler_list" = ""; then
4270 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4272 for depmode in $am_compiler_list; do
4273 # Setup a source with many dependencies, because some compilers
4274 # like to wrap large dependency lists on column 80 (with \), and
4275 # we should not choose a depcomp mode which is confused by this.
4277 # We need to recreate these files for each test, as the compiler may
4278 # overwrite some of them when testing with obscure command lines.
4279 # This happens at least with the AIX C compiler.
4281 for i in 1 2 3 4 5 6; do
4282 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4283 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4284 # Solaris 8's {/usr,}/bin/sh.
4285 touch sub/conftst$i.h
4287 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291 # after this tag, mechanisms are not by side-effect, so they'll
4292 # only be used when explicitly requested
4293 if test "x$enable_dependency_tracking" = xyes; then
4301 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4302 # mode. It turns out that the SunPro C++ compiler does not properly
4303 # handle `-M -o', and we need to detect this.
4304 if depmode=$depmode \
4305 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4308 >/dev/null 2>conftest.err &&
4309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312 # icc doesn't choke on unknown options, it will just issue warnings
4313 # or remarks (even with -Werror). So we grep stderr for any message
4314 # that says an option was ignored or not supported.
4315 # When given -MP, icc 7.0 and 7.1 complain thusly:
4316 # icc: Command line warning: ignoring option '-M'; no argument required
4317 # The diagnosis changed in icc 8.0:
4318 # icc: Command line remark: option '-MP' not supported
4319 if (grep 'ignoring option' conftest.err ||
4320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321 am_cv_CXX_dependencies_compiler_type=$depmode
4330 am_cv_CXX_dependencies_compiler_type=none
4334 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4335 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4336 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4341 test "x$enable_dependency_tracking" != xno \
4342 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4343 am__fastdepCXX_TRUE=
4344 am__fastdepCXX_FALSE='#'
4346 am__fastdepCXX_TRUE='#'
4347 am__fastdepCXX_FALSE=
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test -n "$CC"; then
4386 { echo "$as_me:$LINENO: result: $CC" >&5
4387 echo "${ECHO_T}$CC" >&6; }
4389 { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4395 if test -z "$ac_cv_prog_CC"; then
4397 # Extract the first word of "gcc", so it can be a program name with args.
4398 set dummy gcc; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -n "$ac_ct_CC"; then
4405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_ac_ct_CC="gcc"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425 if test -n "$ac_ct_CC"; then
4426 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4427 echo "${ECHO_T}$ac_ct_CC" >&6; }
4429 { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4433 if test "x$ac_ct_CC" = x; then
4436 case $cross_compiling:$ac_tool_warned in
4438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4439 whose name does not start with the host triplet. If you think this
4440 configuration is useful to you, please write to autoconf@gnu.org." >&5
4441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4442 whose name does not start with the host triplet. If you think this
4443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4444 ac_tool_warned=yes ;;
4452 if test -z "$CC"; then
4453 if test -n "$ac_tool_prefix"; then
4454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4455 set dummy ${ac_tool_prefix}cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_CC="${ac_tool_prefix}cc"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 if test -n "$CC"; then
4483 { echo "$as_me:$LINENO: result: $CC" >&5
4484 echo "${ECHO_T}$CC" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4493 if test -z "$CC"; then
4494 # Extract the first word of "cc", so it can be a program name with args.
4495 set dummy cc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4513 ac_prog_rejected=yes
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 if test $ac_prog_rejected = yes; then
4525 # We found a bogon in the path, so make sure we never use it.
4526 set dummy $ac_cv_prog_CC
4528 if test $# != 0; then
4529 # We chose a different compiler from the bogus one.
4530 # However, it has the same basename, so the bogon will be chosen
4531 # first if we set CC to just the basename; use the full file name.
4533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4539 if test -n "$CC"; then
4540 { echo "$as_me:$LINENO: result: $CC" >&5
4541 echo "${ECHO_T}$CC" >&6; }
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4549 if test -z "$CC"; then
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in cl.exe
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_prog_CC+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 if test -n "$CC"; then
4561 ac_cv_prog_CC="$CC" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 if test -n "$CC"; then
4582 { echo "$as_me:$LINENO: result: $CC" >&5
4583 echo "${ECHO_T}$CC" >&6; }
4585 { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4590 test -n "$CC" && break
4593 if test -z "$CC"; then
4595 for ac_prog in cl.exe
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$ac_ct_CC"; then
4605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_CC="$ac_prog"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4625 if test -n "$ac_ct_CC"; then
4626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4627 echo "${ECHO_T}$ac_ct_CC" >&6; }
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 test -n "$ac_ct_CC" && break
4637 if test "x$ac_ct_CC" = x; then
4640 case $cross_compiling:$ac_tool_warned in
4642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4643 whose name does not start with the host triplet. If you think this
4644 configuration is useful to you, please write to autoconf@gnu.org." >&5
4645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4646 whose name does not start with the host triplet. If you think this
4647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4648 ac_tool_warned=yes ;;
4657 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: no acceptable C compiler found in \$PATH
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; }
4663 # Provide some information about the compiler.
4664 echo "$as_me:$LINENO: checking for C compiler version" >&5
4665 ac_compiler=`set X $ac_compile; echo $2`
4666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
4667 (eval $ac_compiler --version >&5) 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }
4671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
4672 (eval $ac_compiler -v >&5) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }
4676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
4677 (eval $ac_compiler -V >&5) 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }
4682 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4740 GCC=`test $ac_compiler_gnu = yes && echo yes`
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4744 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_cc_g+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 ac_save_c_werror_flag=$ac_c_werror_flag
4749 ac_c_werror_flag=yes
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; } &&
4782 { ac_try='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 ac_c_werror_flag=$ac_save_c_werror_flag
4890 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4891 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4892 if test "$ac_test_CFLAGS" = set; then
4893 CFLAGS=$ac_save_CFLAGS
4894 elif test $ac_cv_prog_cc_g = yes; then
4895 if test "$GCC" = yes; then
4901 if test "$GCC" = yes; then
4907 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4908 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_cc_c89+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 ac_cv_prog_cc_c89=no
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4922 #include <sys/types.h>
4923 #include <sys/stat.h>
4924 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4925 struct buf { int x; };
4926 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4927 static char *e (p, i)
4933 static char *f (char * (*g) (char **, int), char **p, ...)
4938 s = g (p, va_arg (v,int));
4943 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4944 function prototypes and stuff, but not '\xHH' hex character constants.
4945 These don't provoke an error unfortunately, instead are silently treated
4946 as 'x'. The following induces an error, until -std is added to get
4947 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4948 array size at least. It's necessary to write '\x00'==0 to get something
4949 that's true only with -std. */
4950 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4952 int test (int i, double x);
4953 struct s1 {int (*f) (int a);};
4954 struct s2 {int (*f) (double a);};
4955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4969 CC="$ac_save_CC $ac_arg"
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_prog_cc_c89=$ac_arg
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4999 rm -f conftest.err conftest.$ac_objext
5000 test "x$ac_cv_prog_cc_c89" != "xno" && break
5002 rm -f conftest.$ac_ext
5007 case "x$ac_cv_prog_cc_c89" in
5009 { echo "$as_me:$LINENO: result: none needed" >&5
5010 echo "${ECHO_T}none needed" >&6; } ;;
5012 { echo "$as_me:$LINENO: result: unsupported" >&5
5013 echo "${ECHO_T}unsupported" >&6; } ;;
5015 CC="$CC $ac_cv_prog_cc_c89"
5016 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027 depcc="$CC" am_compiler_list=
5029 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5030 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5031 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named `D' -- because `-MD' means `put the output
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5053 am_cv_CC_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5057 for depmode in $am_compiler_list; do
5058 # Setup a source with many dependencies, because some compilers
5059 # like to wrap large dependency lists on column 80 (with \), and
5060 # we should not choose a depcomp mode which is confused by this.
5062 # We need to recreate these files for each test, as the compiler may
5063 # overwrite some of them when testing with obscure command lines.
5064 # This happens at least with the AIX C compiler.
5066 for i in 1 2 3 4 5 6; do
5067 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5068 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5069 # Solaris 8's {/usr,}/bin/sh.
5070 touch sub/conftst$i.h
5072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5076 # after this tag, mechanisms are not by side-effect, so they'll
5077 # only be used when explicitly requested
5078 if test "x$enable_dependency_tracking" = xyes; then
5086 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5087 # mode. It turns out that the SunPro C++ compiler does not properly
5088 # handle `-M -o', and we need to detect this.
5089 if depmode=$depmode \
5090 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5093 >/dev/null 2>conftest.err &&
5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097 # icc doesn't choke on unknown options, it will just issue warnings
5098 # or remarks (even with -Werror). So we grep stderr for any message
5099 # that says an option was ignored or not supported.
5100 # When given -MP, icc 7.0 and 7.1 complain thusly:
5101 # icc: Command line warning: ignoring option '-M'; no argument required
5102 # The diagnosis changed in icc 8.0:
5103 # icc: Command line remark: option '-MP' not supported
5104 if (grep 'ignoring option' conftest.err ||
5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106 am_cv_CC_dependencies_compiler_type=$depmode
5115 am_cv_CC_dependencies_compiler_type=none
5119 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5126 test "x$enable_dependency_tracking" != xno \
5127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5129 am__fastdepCC_FALSE='#'
5131 am__fastdepCC_TRUE='#'
5132 am__fastdepCC_FALSE=
5137 ac_cpp='$CPP $CPPFLAGS'
5138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5143 # On Suns, sometimes $CPP names a directory.
5144 if test -n "$CPP" && test -d "$CPP"; then
5147 if test -z "$CPP"; then
5148 if test "${ac_cv_prog_CPP+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 # Double quotes because CPP needs to be expanded
5152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5155 for ac_c_preproc_warn_flag in '' yes
5157 # Use a header file that comes with gcc, so configuring glibc
5158 # with a fresh cross-compiler works.
5159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 # <limits.h> exists even on freestanding compilers.
5161 # On the NeXT, cc -E runs the code through the compiler's parser,
5162 # not just through cpp. "Syntax error" is here to catch this case.
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 # include <limits.h>
5172 # include <assert.h>
5176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5179 grep -v '^ *+' conftest.er1 >conftest.err
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null; then
5184 if test -s conftest.err; then
5185 ac_cpp_err=$ac_c_preproc_warn_flag
5186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5193 if test -z "$ac_cpp_err"; then
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 # Broken: fails on valid input.
5203 rm -f conftest.err conftest.$ac_ext
5205 # OK, works on sane cases. Now check whether nonexistent headers
5206 # can be detected and how.
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null; then
5223 if test -s conftest.err; then
5224 ac_cpp_err=$ac_c_preproc_warn_flag
5225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5232 if test -z "$ac_cpp_err"; then
5233 # Broken: success on invalid input.
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 # Passes both tests.
5244 rm -f conftest.err conftest.$ac_ext
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5261 { echo "$as_me:$LINENO: result: $CPP" >&5
5262 echo "${ECHO_T}$CPP" >&6; }
5264 for ac_c_preproc_warn_flag in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 # include <limits.h>
5281 # include <assert.h>
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_c_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302 if test -z "$ac_cpp_err"; then
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 # Broken: fails on valid input.
5312 rm -f conftest.err conftest.$ac_ext
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } >/dev/null; then
5332 if test -s conftest.err; then
5333 ac_cpp_err=$ac_c_preproc_warn_flag
5334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5341 if test -z "$ac_cpp_err"; then
5342 # Broken: success on invalid input.
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 # Passes both tests.
5353 rm -f conftest.err conftest.$ac_ext
5356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5357 rm -f conftest.err conftest.$ac_ext
5358 if $ac_preproc_ok; then
5361 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5362 See \`config.log' for more details." >&5
5363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5364 See \`config.log' for more details." >&2;}
5365 { (exit 1); exit 1; }; }
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 # Find a good install program. We prefer a C program (faster),
5375 # so one script is as good as another. But avoid the broken or
5376 # incompatible versions:
5377 # SysV /etc/install, /usr/sbin/install
5378 # SunOS /usr/etc/install
5379 # IRIX /sbin/install
5381 # AmigaOS /C/install, which installs bootblocks on floppy discs
5382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5385 # OS/2's system install, which has a completely different semantic
5386 # ./install, which can be erroneously created by make from ./install.sh.
5387 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5389 if test -z "$INSTALL"; then
5390 if test "${ac_cv_path_install+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 # Account for people who put trailing slashes in PATH elements.
5400 ./ | .// | /cC/* | \
5401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5402 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5405 # OSF1 and SCO ODT 3.0 have their own names for install.
5406 # Don't use installbsd from OSF since it installs stuff as root
5408 for ac_prog in ginstall scoinst install; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5411 if test $ac_prog = install &&
5412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5413 # AIX install. It has an incompatible calling convention.
5415 elif test $ac_prog = install &&
5416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5417 # program-specific install script used by HP pwplus--don't use.
5420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5433 if test "${ac_cv_path_install+set}" = set; then
5434 INSTALL=$ac_cv_path_install
5436 # As a last resort, use the slow shell script. Don't cache a
5437 # value for INSTALL within a source directory, because that will
5438 # break other packages using the cache if that directory is
5439 # removed, or if the value is a relative name.
5440 INSTALL=$ac_install_sh
5443 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5444 echo "${ECHO_T}$INSTALL" >&6; }
5446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5447 # It thinks the first close brace ends the variable substitution.
5448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5454 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5457 if test "$LN_S" = "ln -s"; then
5458 { echo "$as_me:$LINENO: result: yes" >&5
5459 echo "${ECHO_T}yes" >&6; }
5461 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5462 echo "${ECHO_T}no, using $LN_S" >&6; }
5465 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5466 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5467 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5468 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 cat >conftest.make <<\_ACEOF
5474 @echo 'ac_maketemp=X"$(MAKE)"'
5476 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5477 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5478 if test "$ac_maketemp" != X ; then
5479 eval ac_cv_prog_make_${ac_make}_set=yes
5481 eval ac_cv_prog_make_${ac_make}_set=no
5485 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5486 { echo "$as_me:$LINENO: result: yes" >&5
5487 echo "${ECHO_T}yes" >&6; }
5490 { echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6; }
5492 SET_MAKE="MAKE=${MAKE-make}"
5495 # Check whether --enable-shared was given.
5496 if test "${enable_shared+set}" = set; then
5497 enableval=$enable_shared; p=${PACKAGE-default}
5499 yes) enable_shared=yes ;;
5500 no) enable_shared=no ;;
5503 # Look at the argument we got. We use all the common list separators.
5504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5505 for pkg in $enableval; do
5507 if test "X$pkg" = "X$p"; then
5519 # Check whether --enable-static was given.
5520 if test "${enable_static+set}" = set; then
5521 enableval=$enable_static; p=${PACKAGE-default}
5523 yes) enable_static=yes ;;
5524 no) enable_static=no ;;
5527 # Look at the argument we got. We use all the common list separators.
5528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5529 for pkg in $enableval; do
5531 if test "X$pkg" = "X$p"; then
5543 # Check whether --enable-fast-install was given.
5544 if test "${enable_fast_install+set}" = set; then
5545 enableval=$enable_fast_install; p=${PACKAGE-default}
5547 yes) enable_fast_install=yes ;;
5548 no) enable_fast_install=no ;;
5550 enable_fast_install=no
5551 # Look at the argument we got. We use all the common list separators.
5552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5553 for pkg in $enableval; do
5555 if test "X$pkg" = "X$p"; then
5556 enable_fast_install=yes
5563 enable_fast_install=yes
5567 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5568 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5569 if test "${lt_cv_path_SED+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 # Loop through the user's path and test for sed and gsed.
5573 # Then use that list of sed's as ones to test for truncation.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for lt_ac_prog in sed gsed; do
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5582 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5589 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5590 # along with /bin/sed that truncates output.
5591 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5592 test ! -f $lt_ac_sed && continue
5593 cat /dev/null > conftest.in
5595 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5596 # Check for GNU sed and select it if it is found.
5597 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5598 lt_cv_path_SED=$lt_ac_sed
5602 cat conftest.in conftest.in >conftest.tmp
5603 mv conftest.tmp conftest.in
5604 cp conftest.in conftest.nl
5606 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5607 cmp -s conftest.out conftest.nl || break
5608 # 10000 chars as input seems more than enough
5609 test $lt_ac_count -gt 10 && break
5610 lt_ac_count=`expr $lt_ac_count + 1`
5611 if test $lt_ac_count -gt $lt_ac_max; then
5612 lt_ac_max=$lt_ac_count
5613 lt_cv_path_SED=$lt_ac_sed
5621 { echo "$as_me:$LINENO: result: $SED" >&5
5622 echo "${ECHO_T}$SED" >&6; }
5624 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5625 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_GREP+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 # Extract the first word of "grep ggrep" to use in msg output
5630 if test -z "$GREP"; then
5631 set dummy grep ggrep; ac_prog_name=$2
5632 if test "${ac_cv_path_GREP+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_path_GREP_found=false
5636 # Loop through the user's path and test for each of PROGNAME-LIST
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641 test -z "$as_dir" && as_dir=.
5642 for ac_prog in grep ggrep; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5645 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5646 # Check for GNU ac_path_GREP and select it if it is found.
5647 # Check for GNU $ac_path_GREP
5648 case `"$ac_path_GREP" --version 2>&1` in
5650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5653 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5656 cat "conftest.in" "conftest.in" >"conftest.tmp"
5657 mv "conftest.tmp" "conftest.in"
5658 cp "conftest.in" "conftest.nl"
5659 echo 'GREP' >> "conftest.nl"
5660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662 ac_count=`expr $ac_count + 1`
5663 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5664 # Best one so far, save it but keep looking for a better one
5665 ac_cv_path_GREP="$ac_path_GREP"
5666 ac_path_GREP_max=$ac_count
5668 # 10*(2^10) chars as input seems more than enough
5669 test $ac_count -gt 10 && break
5675 $ac_path_GREP_found && break 3
5685 GREP="$ac_cv_path_GREP"
5686 if test -z "$GREP"; then
5687 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5688 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5689 { (exit 1); exit 1; }; }
5693 ac_cv_path_GREP=$GREP
5698 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5699 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5700 GREP="$ac_cv_path_GREP"
5703 { echo "$as_me:$LINENO: checking for egrep" >&5
5704 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5705 if test "${ac_cv_path_EGREP+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5709 then ac_cv_path_EGREP="$GREP -E"
5711 # Extract the first word of "egrep" to use in msg output
5712 if test -z "$EGREP"; then
5713 set dummy egrep; ac_prog_name=$2
5714 if test "${ac_cv_path_EGREP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_path_EGREP_found=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723 test -z "$as_dir" && as_dir=.
5724 for ac_prog in egrep; do
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5727 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5728 # Check for GNU ac_path_EGREP and select it if it is found.
5729 # Check for GNU $ac_path_EGREP
5730 case `"$ac_path_EGREP" --version 2>&1` in
5732 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5738 cat "conftest.in" "conftest.in" >"conftest.tmp"
5739 mv "conftest.tmp" "conftest.in"
5740 cp "conftest.in" "conftest.nl"
5741 echo 'EGREP' >> "conftest.nl"
5742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5744 ac_count=`expr $ac_count + 1`
5745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5746 # Best one so far, save it but keep looking for a better one
5747 ac_cv_path_EGREP="$ac_path_EGREP"
5748 ac_path_EGREP_max=$ac_count
5750 # 10*(2^10) chars as input seems more than enough
5751 test $ac_count -gt 10 && break
5757 $ac_path_EGREP_found && break 3
5767 EGREP="$ac_cv_path_EGREP"
5768 if test -z "$EGREP"; then
5769 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5770 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5771 { (exit 1); exit 1; }; }
5775 ac_cv_path_EGREP=$EGREP
5781 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5782 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5783 EGREP="$ac_cv_path_EGREP"
5787 # Check whether --with-gnu-ld was given.
5788 if test "${with_gnu_ld+set}" = set; then
5789 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5795 if test "$GCC" = yes; then
5796 # Check if gcc -print-prog-name=ld gives a path.
5797 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5801 # gcc leaves a trailing carriage return which upsets mingw
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5807 # Accept absolute paths.
5809 re_direlt='/[^/][^/]*/\.\./'
5810 # Canonicalize the pathname of ld
5811 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5813 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5815 test -z "$LD" && LD="$ac_prog"
5818 # If it fails, then pretend we aren't using GCC.
5822 # If it is relative, then search for the first ld in PATH.
5826 elif test "$with_gnu_ld" = yes; then
5827 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5830 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5833 if test "${lt_cv_path_LD+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 if test -z "$LD"; then
5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH; do
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842 lt_cv_path_LD="$ac_dir/$ac_prog"
5843 # Check to see if the program is GNU ld. I'd rather use --version,
5844 # but apparently some variants of GNU ld only accept -v.
5845 # Break only if it was the GNU/non-GNU ld that we prefer.
5846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847 *GNU* | *'with BFD'*)
5848 test "$with_gnu_ld" != no && break
5851 test "$with_gnu_ld" != yes && break
5858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5863 if test -n "$LD"; then
5864 { echo "$as_me:$LINENO: result: $LD" >&5
5865 echo "${ECHO_T}$LD" >&6; }
5867 { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872 { (exit 1); exit 1; }; }
5873 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5879 case `$LD -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 lt_cv_prog_gnu_ld=yes
5884 lt_cv_prog_gnu_ld=no
5888 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5890 with_gnu_ld=$lt_cv_prog_gnu_ld
5893 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5895 if test "${lt_cv_ld_reload_flag+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 lt_cv_ld_reload_flag='-r'
5900 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5902 reload_flag=$lt_cv_ld_reload_flag
5903 case $reload_flag in
5905 *) reload_flag=" $reload_flag" ;;
5907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5910 if test "$GCC" = yes; then
5911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5918 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5920 if test "${lt_cv_path_NM+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 if test -n "$NM"; then
5924 # Let the user override the test.
5927 lt_nm_to_check="${ac_tool_prefix}nm"
5928 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5929 lt_nm_to_check="$lt_nm_to_check nm"
5931 for lt_tmp_nm in $lt_nm_to_check; do
5932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5933 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5935 test -z "$ac_dir" && ac_dir=.
5936 tmp_nm="$ac_dir/$lt_tmp_nm"
5937 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5938 # Check to see if the nm accepts a BSD-compat flag.
5939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5940 # nm: unknown option "B" ignored
5941 # Tru64's nm complains that /dev/null is an invalid object file
5942 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5943 */dev/null* | *'Invalid file or object type'*)
5944 lt_cv_path_NM="$tmp_nm -B"
5948 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5950 lt_cv_path_NM="$tmp_nm -p"
5954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5955 continue # so that we can try to find one that supports BSD flags
5964 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5967 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5968 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5971 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5972 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5973 if test "${lt_cv_deplibs_check_method+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 lt_cv_file_magic_cmd='$MAGIC_CMD'
5977 lt_cv_file_magic_test_file=
5978 lt_cv_deplibs_check_method='unknown'
5979 # Need to set the preceding variable on all platforms that support
5980 # interlibrary dependencies.
5981 # 'none' -- dependencies not supported.
5982 # `unknown' -- same as none, but documents that we really don't know.
5983 # 'pass_all' -- all dependencies passed with no checks.
5984 # 'test_compile' -- check by making test program.
5985 # 'file_magic [[regex]]' -- check by looking for files in library path
5986 # which responds to the $file_magic_cmd with a given extended regex.
5987 # If you have `file' or equivalent on your system and you're not sure
5988 # whether `pass_all' will *always* work, you probably want this one.
5992 lt_cv_deplibs_check_method=pass_all
5996 lt_cv_deplibs_check_method=pass_all
6000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6001 lt_cv_file_magic_cmd='/usr/bin/file -L'
6002 lt_cv_file_magic_test_file=/shlib/libc.so
6006 # func_win32_libid is a shell function defined in ltmain.sh
6007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6008 lt_cv_file_magic_cmd='func_win32_libid'
6012 # Base MSYS/MinGW do not provide the 'file' command needed by
6013 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6014 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6018 darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6022 freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6034 lt_cv_deplibs_check_method=pass_all
6039 lt_cv_deplibs_check_method=pass_all
6042 hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065 irix5* | irix6* | nonstopux*)
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6072 lt_cv_deplibs_check_method=pass_all
6075 # This must be Linux ELF.
6076 linux* | k*bsd*-gnu)
6077 lt_cv_deplibs_check_method=pass_all
6080 netbsd* | netbsdelf*-gnu)
6081 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6095 lt_cv_deplibs_check_method=unknown
6099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106 osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6111 lt_cv_deplibs_check_method=pass_all
6115 case $host_vendor in
6117 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]'
6118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6121 lt_cv_deplibs_check_method=pass_all
6124 lt_cv_file_magic_cmd='/bin/file'
6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6130 lt_cv_file_magic_test_file=/lib/libc.so
6133 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method=pass_all
6141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6142 lt_cv_deplibs_check_method=pass_all
6147 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6149 file_magic_cmd=$lt_cv_file_magic_cmd
6150 deplibs_check_method=$lt_cv_deplibs_check_method
6151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6156 # If no C compiler was specified, use CC.
6159 # If no C compiler flags were specified, use CFLAGS.
6160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6162 # Allow CC to be a program name with arguments.
6165 # Check whether --enable-libtool-lock was given.
6166 if test "${enable_libtool_lock+set}" = set; then
6167 enableval=$enable_libtool_lock;
6170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172 # Some flags need to be propagated to the compiler or linker for good
6176 # Find out which ABI we are using.
6177 echo 'int i;' > conftest.$ac_ext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; then
6183 case `/usr/bin/file conftest.$ac_objext` in
6195 # Find out which ABI we are using.
6196 echo '#line 6196 "configure"' > conftest.$ac_ext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; then
6202 if test "$lt_cv_prog_gnu_ld" = yes; then
6203 case `/usr/bin/file conftest.$ac_objext` in
6205 LD="${LD-ld} -melf32bsmip"
6208 LD="${LD-ld} -melf32bmipn32"
6211 LD="${LD-ld} -melf64bmip"
6215 case `/usr/bin/file conftest.$ac_objext` in
6231 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6232 # Find out which ABI we are using.
6233 echo 'int i;' > conftest.$ac_ext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; then
6239 case `/usr/bin/file conftest.o` in
6243 LD="${LD-ld} -m elf_i386"
6245 ppc64-*linux*|powerpc64-*linux*)
6246 LD="${LD-ld} -m elf32ppclinux"
6249 LD="${LD-ld} -m elf_s390"
6252 LD="${LD-ld} -m elf32_sparc"
6259 LD="${LD-ld} -m elf_x86_64"
6261 ppc*-*linux*|powerpc*-*linux*)
6262 LD="${LD-ld} -m elf64ppc"
6265 LD="${LD-ld} -m elf64_s390"
6268 LD="${LD-ld} -m elf64_sparc"
6278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6279 SAVE_CFLAGS="$CFLAGS"
6280 CFLAGS="$CFLAGS -belf"
6281 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6282 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6283 if test "${lt_cv_cc_needs_belf+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest$ac_exeext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 lt_cv_cc_needs_belf=yes
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 lt_cv_cc_needs_belf=no
6336 rm -f conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6339 ac_cpp='$CPP $CPPFLAGS'
6340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6346 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6349 CFLAGS="$SAVE_CFLAGS"
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; then
6360 case `/usr/bin/file conftest.o` in
6362 case $lt_cv_prog_gnu_ld in
6363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6364 *) LD="${LD-ld} -64" ;;
6375 need_locks="$enable_libtool_lock"
6379 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6380 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6381 if test "${ac_cv_header_stdc+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_header_stdc=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_header_stdc=no
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 if test $ac_cv_header_stdc = yes; then
6435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6446 $EGREP "memchr" >/dev/null 2>&1; then
6449 ac_cv_header_stdc=no
6455 if test $ac_cv_header_stdc = yes; then
6456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "free" >/dev/null 2>&1; then
6470 ac_cv_header_stdc=no
6476 if test $ac_cv_header_stdc = yes; then
6477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6478 if test "$cross_compiling" = yes; then
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6489 #if ((' ' & 0x0FF) == 0x020)
6490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6493 # define ISLOWER(c) \
6494 (('a' <= (c) && (c) <= 'i') \
6495 || ('j' <= (c) && (c) <= 'r') \
6496 || ('s' <= (c) && (c) <= 'z'))
6497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6505 for (i = 0; i < 256; i++)
6506 if (XOR (islower (i), ISLOWER (i))
6507 || toupper (i) != TOUPPER (i))
6512 rm -f conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6525 echo "$as_me: program exited with status $ac_status" >&5
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_header_stdc=no
6532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6538 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6539 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6540 if test $ac_cv_header_stdc = yes; then
6542 cat >>confdefs.h <<\_ACEOF
6543 #define STDC_HEADERS 1
6548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6559 inttypes.h stdint.h unistd.h
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6575 #include <$ac_header>
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 eval "$as_ac_Header=yes"
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 eval "$as_ac_Header=no"
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608 ac_res=`eval echo '${'$as_ac_Header'}'`
6609 { echo "$as_me:$LINENO: result: $ac_res" >&5
6610 echo "${ECHO_T}$ac_res" >&6; }
6611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 for ac_header in dlfcn.h
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_res=`eval echo '${'$as_ac_Header'}'`
6632 { echo "$as_me:$LINENO: result: $ac_res" >&5
6633 echo "${ECHO_T}$ac_res" >&6; }
6635 # Is the header compilable?
6636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 $ac_includes_default
6645 #include <$ac_header>
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649 (eval $ac_compile) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_header_compiler=yes
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_header_compiler=no
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6678 echo "${ECHO_T}$ac_header_compiler" >&6; }
6680 # Is the header present?
6681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <$ac_header>
6691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694 grep -v '^ *+' conftest.er1 >conftest.err
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } >/dev/null; then
6699 if test -s conftest.err; then
6700 ac_cpp_err=$ac_c_preproc_warn_flag
6701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6708 if test -z "$ac_cpp_err"; then
6709 ac_header_preproc=yes
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_header_preproc=no
6717 rm -f conftest.err conftest.$ac_ext
6718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6719 echo "${ECHO_T}$ac_header_preproc" >&6; }
6721 # So? What about this header?
6722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6728 ac_header_preproc=yes
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6744 ## ------------------------------- ##
6745 ## Report this to nfs@lists.sf.net ##
6746 ## ------------------------------- ##
6748 ) | sed "s/^/$as_me: WARNING: /" >&2
6751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 eval "$as_ac_Header=\$ac_header_preproc"
6758 ac_res=`eval echo '${'$as_ac_Header'}'`
6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6764 cat >>confdefs.h <<_ACEOF
6765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6775 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6776 (test "X$CXX" != "Xg++"))) ; then
6778 ac_cpp='$CXXCPP $CPPFLAGS'
6779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6782 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6783 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6784 if test -z "$CXXCPP"; then
6785 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 # Double quotes because CXXCPP needs to be expanded
6789 for CXXCPP in "$CXX -E" "/lib/cpp"
6792 for ac_cxx_preproc_warn_flag in '' yes
6794 # Use a header file that comes with gcc, so configuring glibc
6795 # with a fresh cross-compiler works.
6796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6797 # <limits.h> exists even on freestanding compilers.
6798 # On the NeXT, cc -E runs the code through the compiler's parser,
6799 # not just through cpp. "Syntax error" is here to catch this case.
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6807 # include <limits.h>
6809 # include <assert.h>
6813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } >/dev/null; then
6821 if test -s conftest.err; then
6822 ac_cpp_err=$ac_cxx_preproc_warn_flag
6823 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6830 if test -z "$ac_cpp_err"; then
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 # Broken: fails on valid input.
6840 rm -f conftest.err conftest.$ac_ext
6842 # OK, works on sane cases. Now check whether nonexistent headers
6843 # can be detected and how.
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <ac_nonexistent.h>
6852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } >/dev/null; then
6860 if test -s conftest.err; then
6861 ac_cpp_err=$ac_cxx_preproc_warn_flag
6862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6869 if test -z "$ac_cpp_err"; then
6870 # Broken: success on invalid input.
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 # Passes both tests.
6881 rm -f conftest.err conftest.$ac_ext
6884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6885 rm -f conftest.err conftest.$ac_ext
6886 if $ac_preproc_ok; then
6891 ac_cv_prog_CXXCPP=$CXXCPP
6894 CXXCPP=$ac_cv_prog_CXXCPP
6896 ac_cv_prog_CXXCPP=$CXXCPP
6898 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6899 echo "${ECHO_T}$CXXCPP" >&6; }
6901 for ac_cxx_preproc_warn_flag in '' yes
6903 # Use a header file that comes with gcc, so configuring glibc
6904 # with a fresh cross-compiler works.
6905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906 # <limits.h> exists even on freestanding compilers.
6907 # On the NeXT, cc -E runs the code through the compiler's parser,
6908 # not just through cpp. "Syntax error" is here to catch this case.
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6916 # include <limits.h>
6918 # include <assert.h>
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1 >conftest.err
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev/null; then
6930 if test -s conftest.err; then
6931 ac_cpp_err=$ac_cxx_preproc_warn_flag
6932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6939 if test -z "$ac_cpp_err"; then
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 # Broken: fails on valid input.
6949 rm -f conftest.err conftest.$ac_ext
6951 # OK, works on sane cases. Now check whether nonexistent headers
6952 # can be detected and how.
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 #include <ac_nonexistent.h>
6961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev/null; then
6969 if test -s conftest.err; then
6970 ac_cpp_err=$ac_cxx_preproc_warn_flag
6971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6978 if test -z "$ac_cpp_err"; then
6979 # Broken: success on invalid input.
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 # Passes both tests.
6990 rm -f conftest.err conftest.$ac_ext
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
6998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6999 See \`config.log' for more details." >&5
7000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7001 See \`config.log' for more details." >&2;}
7002 { (exit 1); exit 1; }; }
7006 ac_cpp='$CXXCPP $CPPFLAGS'
7007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7015 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7016 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7018 if test -n "$ac_tool_prefix"; then
7019 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
7021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_F77+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 if test -n "$F77"; then
7029 ac_cv_prog_F77="$F77" # Let the user override the test.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 if test -n "$F77"; then
7050 { echo "$as_me:$LINENO: result: $F77" >&5
7051 echo "${ECHO_T}$F77" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 test -n "$F77" && break
7061 if test -z "$F77"; then
7063 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
7065 # Extract the first word of "$ac_prog", so it can be a program name with args.
7066 set dummy $ac_prog; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 if test -n "$ac_ct_F77"; then
7073 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7082 ac_cv_prog_ac_ct_F77="$ac_prog"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7093 if test -n "$ac_ct_F77"; then
7094 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7095 echo "${ECHO_T}$ac_ct_F77" >&6; }
7097 { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7102 test -n "$ac_ct_F77" && break
7105 if test "x$ac_ct_F77" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet. If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7123 # Provide some information about the compiler.
7124 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7125 ac_compiler=`set X $ac_compile; echo $2`
7126 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
7127 (eval $ac_compiler --version >&5) 2>&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }
7131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
7132 (eval $ac_compiler -v >&5) 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }
7136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
7137 (eval $ac_compiler -V >&5) 2>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }
7143 # If we don't use `.F' as extension, the preprocessor is not run on the
7144 # input file. (Note that this only needs to work for GNU compilers.)
7147 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7148 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7149 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; } &&
7175 { ac_try='test -s conftest.$ac_objext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7193 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7194 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7196 ac_test_FFLAGS=${FFLAGS+set}
7197 ac_save_FFLAGS=$FFLAGS
7199 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7200 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_f77_g+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 ac_cv_prog_f77_g=yes
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7243 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7244 if test "$ac_test_FFLAGS" = set; then
7245 FFLAGS=$ac_save_FFLAGS
7246 elif test $ac_cv_prog_f77_g = yes; then
7247 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7253 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7260 G77=`test $ac_compiler_gnu = yes && echo yes`
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7271 # find the maximum length of command line arguments
7272 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7273 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7274 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 # On DJGPP, this test can blow up pretty badly due to problems in libc
7283 # (any single argument exceeding 2000 bytes causes a buffer overrun
7284 # during glob expansion). Even if it were fixed, the result of this
7285 # check would be larger than it should be.
7286 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7290 # Under GNU Hurd, this test is not required because there is
7291 # no limit to the length of command line arguments.
7292 # Libtool will interpret -1 as no limit whatsoever
7293 lt_cv_sys_max_cmd_len=-1;
7297 # On Win9x/ME, this test blows up -- it succeeds, but takes
7298 # about 5 minutes as the teststring grows exponentially.
7299 # Worse, since 9x/ME are not pre-emptively multitasking,
7300 # you end up with a "frozen" computer, even though with patience
7301 # the test eventually succeeds (with a max line length of 256k).
7302 # Instead, let's just punt: use the minimum linelength reported by
7303 # all of the supported platforms: 8192 (on NT/2K/XP).
7304 lt_cv_sys_max_cmd_len=8192;
7308 # On AmigaOS with pdksh, this test takes hours, literally.
7309 # So we just punt and use a minimum line length of 8192.
7310 lt_cv_sys_max_cmd_len=8192;
7313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7314 # This has been around since 386BSD, at least. Likely further.
7315 if test -x /sbin/sysctl; then
7316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7317 elif test -x /usr/sbin/sysctl; then
7318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7322 # And add a safety zone
7323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7329 lt_cv_sys_max_cmd_len=196608
7333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7335 # nice to cause kernel panics so lets avoid the loop below.
7336 # First set a reasonable default.
7337 lt_cv_sys_max_cmd_len=16384
7339 if test -x /sbin/sysconfig; then
7340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7346 lt_cv_sys_max_cmd_len=102400
7348 sysv5* | sco5v6* | sysv4.2uw2*)
7349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7350 if test -n "$kargmax"; then
7351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7353 lt_cv_sys_max_cmd_len=32768
7357 # If test is not a shell built-in, we'll probably end up computing a
7358 # maximum length that is only half of the actual maximum length, but
7360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7361 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7362 = "XX$teststring") >/dev/null 2>&1 &&
7363 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7364 lt_cv_sys_max_cmd_len=$new_result &&
7365 test $i != 17 # 1/2 MB should be enough
7368 teststring=$teststring$teststring
7371 # Add a significant safety factor because C++ compilers can tack on massive
7372 # amounts of additional arguments before passing them to the linker.
7373 # It appears as though 1/2 is a usable value.
7374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7380 if test -n $lt_cv_sys_max_cmd_len ; then
7381 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7382 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7384 { echo "$as_me:$LINENO: result: none" >&5
7385 echo "${ECHO_T}none" >&6; }
7391 # Check for command to grab the raw symbol name followed by C symbol from nm.
7392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 # These are sane defaults that work on at least a few old systems.
7399 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7401 # Character class describing NM global symbol codes.
7402 symcode='[BCDEGRST]'
7404 # Regexp to match symbols that can be accessed directly from C.
7405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7407 # Transform an extracted symbol line into a proper C declaration
7408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7410 # Transform an extracted symbol line into symbol name and symbol address
7411 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'"
7413 # Define system-specific variables.
7418 cygwin* | mingw* | pw32*)
7419 symcode='[ABCDGISTW]'
7421 hpux*) # Its linker distinguishes data from code symbols
7422 if test "$host_cpu" = ia64; then
7423 symcode='[ABCDEGRST]'
7425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7426 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'"
7428 linux* | k*bsd*-gnu)
7429 if test "$host_cpu" = ia64; then
7430 symcode='[ABCDGIRSTW]'
7431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7432 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'"
7436 symcode='[BCDEGRST]'
7439 symcode='[BCDEGQRST]'
7450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7458 # Handle CRLF in mingw tool chain
7462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7466 # If we're using GNU nm, then use its standard symbol codes.
7467 case `$NM -V 2>&1` in
7468 *GNU* | *'with BFD'*)
7469 symcode='[ABCDGIRSTW]' ;;
7472 # Try without a prefix undercore, then with it.
7473 for ac_symprfx in "" "_"; do
7475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7476 symxfrm="\\1 $ac_symprfx\\2 \\2"
7478 # Write the raw and C identifiers.
7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7481 # Check to see that the pipe works correctly.
7485 cat > conftest.$ac_ext <<EOF
7490 void nm_test_func(){}
7494 int main(){nm_test_var='a';nm_test_func();return(0);}
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; then
7502 # Now try to grab the symbols.
7504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && test -s "$nlist"; then
7509 # Try sorting and uniquifying the output.
7510 if sort "$nlist" | uniq > "$nlist"T; then
7511 mv -f "$nlist"T "$nlist"
7516 # Make sure that we snagged all the symbols we need.
7517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7519 cat <<EOF > conftest.$ac_ext
7525 # Now generate the symbol file.
7526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7528 cat <<EOF >> conftest.$ac_ext
7529 #if defined (__STDC__) && __STDC__
7530 # define lt_ptr_t void *
7532 # define lt_ptr_t char *
7536 /* The mapping between symbol names and symbols. */
7541 lt_preloaded_symbols[] =
7544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7545 cat <<\EOF >> conftest.$ac_ext
7553 # Now try linking the two files.
7554 mv conftest.$ac_objext conftstm.$ac_objext
7555 lt_save_LIBS="$LIBS"
7556 lt_save_CFLAGS="$CFLAGS"
7557 LIBS="conftstm.$ac_objext"
7558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7566 LIBS="$lt_save_LIBS"
7567 CFLAGS="$lt_save_CFLAGS"
7569 echo "cannot find nm_test_func in $nlist" >&5
7572 echo "cannot find nm_test_var in $nlist" >&5
7575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7578 echo "$progname: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 rm -f conftest* conftst*
7583 # Do not use the global_symbol_pipe unless it works.
7584 if test "$pipe_works" = yes; then
7587 lt_cv_sys_global_symbol_pipe=
7593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7594 lt_cv_sys_global_symbol_to_cdecl=
7596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7597 { echo "$as_me:$LINENO: result: failed" >&5
7598 echo "${ECHO_T}failed" >&6; }
7600 { echo "$as_me:$LINENO: result: ok" >&5
7601 echo "${ECHO_T}ok" >&6; }
7604 { echo "$as_me:$LINENO: checking for objdir" >&5
7605 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7606 if test "${lt_cv_objdir+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 rm -f .libs 2>/dev/null
7610 mkdir .libs 2>/dev/null
7611 if test -d .libs; then
7614 # MS-DOS does not allow filenames that begin with a dot.
7617 rmdir .libs 2>/dev/null
7619 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7620 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7621 objdir=$lt_cv_objdir
7629 # AIX sometimes has problems with the GCC collect2 program. For some
7630 # reason, if we set the COLLECT_NAMES environment variable, the problems
7631 # vanish in a puff of smoke.
7632 if test "X${COLLECT_NAMES+set}" != Xset; then
7634 export COLLECT_NAMES
7639 # Sed substitution that helps us do robust quoting. It backslashifies
7640 # metacharacters that are still active within double-quoted strings.
7641 Xsed='sed -e 1s/^X//'
7642 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7651 # Sed substitution to avoid accidental globbing in evaled expressions
7652 no_glob_subst='s/\*/\\\*/g'
7658 default_ofile=libtool
7659 can_build_shared=yes
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7664 ltmain="$ac_aux_dir/ltmain.sh"
7665 ofile="$default_ofile"
7666 with_gnu_ld="$lt_cv_prog_gnu_ld"
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}ar; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_prog_AR+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 if test -n "$AR"; then
7677 ac_cv_prog_AR="$AR" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_AR="${ac_tool_prefix}ar"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 if test -n "$AR"; then
7698 { echo "$as_me:$LINENO: result: $AR" >&5
7699 echo "${ECHO_T}$AR" >&6; }
7701 { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7707 if test -z "$ac_cv_prog_AR"; then
7709 # Extract the first word of "ar", so it can be a program name with args.
7710 set dummy ar; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 if test -n "$ac_ct_AR"; then
7717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_ac_ct_AR="ar"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7737 if test -n "$ac_ct_AR"; then
7738 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7739 echo "${ECHO_T}$ac_ct_AR" >&6; }
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7745 if test "x$ac_ct_AR" = x; then
7748 case $cross_compiling:$ac_tool_warned in
7750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7751 whose name does not start with the host triplet. If you think this
7752 configuration is useful to you, please write to autoconf@gnu.org." >&5
7753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7754 whose name does not start with the host triplet. If you think this
7755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7756 ac_tool_warned=yes ;;
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_prog_RANLIB+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 if test -n "$RANLIB"; then
7773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 RANLIB=$ac_cv_prog_RANLIB
7793 if test -n "$RANLIB"; then
7794 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7795 echo "${ECHO_T}$RANLIB" >&6; }
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7803 if test -z "$ac_cv_prog_RANLIB"; then
7804 ac_ct_RANLIB=$RANLIB
7805 # Extract the first word of "ranlib", so it can be a program name with args.
7806 set dummy ranlib; ac_word=$2
7807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 if test -n "$ac_ct_RANLIB"; then
7813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_ac_ct_RANLIB="ranlib"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7833 if test -n "$ac_ct_RANLIB"; then
7834 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7835 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7841 if test "x$ac_ct_RANLIB" = x; then
7844 case $cross_compiling:$ac_tool_warned in
7846 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet. If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&5
7849 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7850 whose name does not start with the host triplet. If you think this
7851 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7852 ac_tool_warned=yes ;;
7854 RANLIB=$ac_ct_RANLIB
7857 RANLIB="$ac_cv_prog_RANLIB"
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}strip; ac_word=$2
7863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865 if test "${ac_cv_prog_STRIP+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 if test -n "$STRIP"; then
7869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 STRIP=$ac_cv_prog_STRIP
7889 if test -n "$STRIP"; then
7890 { echo "$as_me:$LINENO: result: $STRIP" >&5
7891 echo "${ECHO_T}$STRIP" >&6; }
7893 { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7899 if test -z "$ac_cv_prog_STRIP"; then
7901 # Extract the first word of "strip", so it can be a program name with args.
7902 set dummy strip; ac_word=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 if test -n "$ac_ct_STRIP"; then
7909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_ac_ct_STRIP="strip"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7929 if test -n "$ac_ct_STRIP"; then
7930 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7931 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7933 { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7937 if test "x$ac_ct_STRIP" = x; then
7940 case $cross_compiling:$ac_tool_warned in
7942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7943 whose name does not start with the host triplet. If you think this
7944 configuration is useful to you, please write to autoconf@gnu.org." >&5
7945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7946 whose name does not start with the host triplet. If you think this
7947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7948 ac_tool_warned=yes ;;
7953 STRIP="$ac_cv_prog_STRIP"
7958 old_CFLAGS="$CFLAGS"
7960 # Set sane defaults for various variables
7961 test -z "$AR" && AR=ar
7962 test -z "$AR_FLAGS" && AR_FLAGS=cru
7963 test -z "$AS" && AS=as
7964 test -z "$CC" && CC=cc
7965 test -z "$LTCC" && LTCC=$CC
7966 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7967 test -z "$DLLTOOL" && DLLTOOL=dlltool
7968 test -z "$LD" && LD=ld
7969 test -z "$LN_S" && LN_S="ln -s"
7970 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7971 test -z "$NM" && NM=nm
7972 test -z "$SED" && SED=sed
7973 test -z "$OBJDUMP" && OBJDUMP=objdump
7974 test -z "$RANLIB" && RANLIB=:
7975 test -z "$STRIP" && STRIP=:
7976 test -z "$ac_objext" && ac_objext=o
7978 # Determine commands to create old-style static archives.
7979 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7980 old_postinstall_cmds='chmod 644 $oldlib'
7981 old_postuninstall_cmds=
7983 if test -n "$RANLIB"; then
7986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7992 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7995 for cc_temp in $compiler""; do
7997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8006 # Only perform the check for file, if the check method requires it
8007 case $deplibs_check_method in
8009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8010 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8011 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8012 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8020 lt_save_MAGIC_CMD="$MAGIC_CMD"
8021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8023 for ac_dir in $ac_dummy; do
8025 test -z "$ac_dir" && ac_dir=.
8026 if test -f $ac_dir/${ac_tool_prefix}file; then
8027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8028 if test -n "$file_magic_test_file"; then
8029 case $deplibs_check_method in
8031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8034 $EGREP "$file_magic_regex" > /dev/null; then
8039 *** Warning: the command libtool uses to detect shared libraries,
8040 *** $file_magic_cmd, produces output that libtool cannot recognize.
8041 *** The result is that libtool may fail to recognize shared libraries
8042 *** as such. This will affect the creation of libtool libraries that
8043 *** depend on shared libraries, but programs linked with such libtool
8044 *** libraries will work regardless of this problem. Nevertheless, you
8045 *** may want to report the problem to your system manager and/or to
8046 *** bug-libtool@gnu.org
8056 MAGIC_CMD="$lt_save_MAGIC_CMD"
8061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062 if test -n "$MAGIC_CMD"; then
8063 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8064 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8066 { echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6; }
8070 if test -z "$lt_cv_path_MAGIC_CMD"; then
8071 if test -n "$ac_tool_prefix"; then
8072 { echo "$as_me:$LINENO: checking for file" >&5
8073 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8082 lt_save_MAGIC_CMD="$MAGIC_CMD"
8083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8085 for ac_dir in $ac_dummy; do
8087 test -z "$ac_dir" && ac_dir=.
8088 if test -f $ac_dir/file; then
8089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8090 if test -n "$file_magic_test_file"; then
8091 case $deplibs_check_method in
8093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8096 $EGREP "$file_magic_regex" > /dev/null; then
8101 *** Warning: the command libtool uses to detect shared libraries,
8102 *** $file_magic_cmd, produces output that libtool cannot recognize.
8103 *** The result is that libtool may fail to recognize shared libraries
8104 *** as such. This will affect the creation of libtool libraries that
8105 *** depend on shared libraries, but programs linked with such libtool
8106 *** libraries will work regardless of this problem. Nevertheless, you
8107 *** may want to report the problem to your system manager and/or to
8108 *** bug-libtool@gnu.org
8118 MAGIC_CMD="$lt_save_MAGIC_CMD"
8123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124 if test -n "$MAGIC_CMD"; then
8125 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8126 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8128 { echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6; }
8144 # Check whether --enable-libtool-lock was given.
8145 if test "${enable_libtool_lock+set}" = set; then
8146 enableval=$enable_libtool_lock;
8149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8152 # Check whether --with-pic was given.
8153 if test "${with_pic+set}" = set; then
8154 withval=$with_pic; pic_mode="$withval"
8159 test -z "$pic_mode" && pic_mode=default
8161 # Use C for the default configuration in the libtool script
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171 # Source file extension for C test sources.
8174 # Object file extension for compiled C test sources.
8178 # Code to be used in simple compile tests
8179 lt_simple_compile_test_code="int some_variable = 0;\n"
8181 # Code to be used in simple link tests
8182 lt_simple_link_test_code='int main(){return(0);}\n'
8185 # If no C compiler was specified, use CC.
8188 # If no C compiler flags were specified, use CFLAGS.
8189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8191 # Allow CC to be a program name with arguments.
8195 # save warnings/boilerplate of simple test code
8196 ac_outfile=conftest.$ac_objext
8197 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8198 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8199 _lt_compiler_boilerplate=`cat conftest.err`
8202 ac_outfile=conftest.$ac_objext
8203 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8204 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8205 _lt_linker_boilerplate=`cat conftest.err`
8210 lt_prog_compiler_no_builtin_flag=
8212 if test "$GCC" = yes; then
8213 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8216 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8217 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8218 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 lt_cv_prog_compiler_rtti_exceptions=no
8222 ac_outfile=conftest.$ac_objext
8223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8224 lt_compiler_flag="-fno-rtti -fno-exceptions"
8225 # Insert the option either (1) after the last *FLAGS variable, or
8226 # (2) before a word containing "conftest.", or (3) at the end.
8227 # Note that $ac_compile itself does not contain backslashes and begins
8228 # with a dollar sign (not a hyphen), so the echo should work correctly.
8229 # The option is referenced via a variable to avoid confusing sed.
8230 lt_compile=`echo "$ac_compile" | $SED \
8231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233 -e 's:$: $lt_compiler_flag:'`
8234 (eval echo "\"\$as_me:8234: $lt_compile\"" >&5)
8235 (eval "$lt_compile" 2>conftest.err)
8237 cat conftest.err >&5
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 if (exit $ac_status) && test -s "$ac_outfile"; then
8240 # The compiler can only warn and ignore the option if not recognized
8241 # So say no if there are warnings other than the usual output.
8242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8245 lt_cv_prog_compiler_rtti_exceptions=yes
8251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8252 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8254 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8262 lt_prog_compiler_wl=
8263 lt_prog_compiler_pic=
8264 lt_prog_compiler_static=
8266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8269 if test "$GCC" = yes; then
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_static='-static'
8275 # All AIX code is PIC.
8276 if test "$host_cpu" = ia64; then
8277 # AIX 5 now supports IA64 processor
8278 lt_prog_compiler_static='-Bstatic'
8283 # FIXME: we need at least 68020 code to build shared libraries, but
8284 # adding the `-m68020' flag to GCC prevents building anything better,
8286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8290 # PIC is the default for these OSes.
8293 mingw* | pw32* | os2*)
8294 # This hack is so that the source file can tell whether it is being
8295 # built for inclusion in a dll (and should export symbols for example).
8296 lt_prog_compiler_pic='-DDLL_EXPORT'
8299 darwin* | rhapsody*)
8300 # PIC is the default on this platform
8301 # Common symbols not allowed in MH_DYLIB files
8302 lt_prog_compiler_pic='-fno-common'
8306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8307 # Instead, we relocate shared libraries at runtime.
8311 # Just because we use GCC doesn't mean we suddenly get shared libraries
8312 # on systems that don't support them.
8313 lt_prog_compiler_can_build_shared=no
8318 if test -d /usr/nec; then
8319 lt_prog_compiler_pic=-Kconform_pic
8324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8331 lt_prog_compiler_pic='-fPIC'
8337 lt_prog_compiler_pic='-fPIC'
8341 # PORTME Check for flag to pass linker flags through the system compiler.
8344 lt_prog_compiler_wl='-Wl,'
8345 if test "$host_cpu" = ia64; then
8346 # AIX 5 now supports IA64 processor
8347 lt_prog_compiler_static='-Bstatic'
8349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8353 # PIC is the default on this platform
8354 # Common symbols not allowed in MH_DYLIB files
8355 case $cc_basename in
8357 lt_prog_compiler_pic='-qnocommon'
8358 lt_prog_compiler_wl='-Wl,'
8363 mingw* | pw32* | os2*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 lt_prog_compiler_pic='-DDLL_EXPORT'
8369 hpux9* | hpux10* | hpux11*)
8370 lt_prog_compiler_wl='-Wl,'
8371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8378 lt_prog_compiler_pic='+Z'
8381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382 lt_prog_compiler_static='${wl}-a ${wl}archive'
8385 irix5* | irix6* | nonstopux*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # PIC (with -KPIC) is the default.
8388 lt_prog_compiler_static='-non_shared'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8396 linux* | k*bsd*-gnu)
8397 case $cc_basename in
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-static'
8403 pgcc* | pgf77* | pgf90* | pgf95*)
8404 # Portland Group compilers (*not* the Pentium gcc compiler,
8405 # which looks to be a dead project)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-fpic'
8408 lt_prog_compiler_static='-Bstatic'
8411 lt_prog_compiler_wl='-Wl,'
8412 # All Alpha code is PIC.
8413 lt_prog_compiler_static='-non_shared'
8418 osf3* | osf4* | osf5*)
8419 lt_prog_compiler_wl='-Wl,'
8420 # All OSF/1 code is PIC.
8421 lt_prog_compiler_static='-non_shared'
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 case $cc_basename in
8429 lt_prog_compiler_wl='-Qoption ld ';;
8431 lt_prog_compiler_wl='-Wl,';;
8436 lt_prog_compiler_wl='-Qoption ld '
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8441 sysv4 | sysv4.2uw2* | sysv4.3*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8448 if test -d /usr/nec ;then
8449 lt_prog_compiler_pic='-Kconform_pic'
8450 lt_prog_compiler_static='-Bstatic'
8454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_can_build_shared=no
8466 lt_prog_compiler_pic='-pic'
8467 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_can_build_shared=no
8476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8477 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8480 # Check to make sure the PIC flag actually works.
8482 if test -n "$lt_prog_compiler_pic"; then
8484 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8486 if test "${lt_prog_compiler_pic_works+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 lt_prog_compiler_pic_works=no
8490 ac_outfile=conftest.$ac_objext
8491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err)
8505 cat conftest.err >&5
8506 echo "$as_me:8506: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_prog_compiler_pic_works=yes
8519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8520 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8522 if test x"$lt_prog_compiler_pic_works" = xyes; then
8523 case $lt_prog_compiler_pic in
8525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8528 lt_prog_compiler_pic=
8529 lt_prog_compiler_can_build_shared=no
8534 # For platforms which do not support PIC, -DPIC is meaningless:
8536 lt_prog_compiler_pic=
8539 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8544 # Check to make sure the static flag actually works.
8546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8547 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8548 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8549 if test "${lt_prog_compiler_static_works+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 lt_prog_compiler_static_works=no
8553 save_LDFLAGS="$LDFLAGS"
8554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8557 # The linker can only warn and ignore the option if not recognized
8558 # So say no if there are warnings
8559 if test -s conftest.err; then
8560 # Append any errors to the config.log.
8561 cat conftest.err 1>&5
8562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564 if diff conftest.exp conftest.er2 >/dev/null; then
8565 lt_prog_compiler_static_works=yes
8568 lt_prog_compiler_static_works=yes
8572 LDFLAGS="$save_LDFLAGS"
8575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8576 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8578 if test x"$lt_prog_compiler_static_works" = xyes; then
8581 lt_prog_compiler_static=
8585 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8587 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 lt_cv_prog_compiler_c_o=no
8591 $rm -r conftest 2>/dev/null
8595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607 (eval "$lt_compile" 2>out/conftest.err)
8609 cat out/conftest.err >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8626 $rm out/* && rmdir out
8632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8636 hard_links="nottested"
8637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8638 # do not overwrite the value of need_locks provided by the user
8639 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8645 ln conftest.a conftest.b 2>&5 || hard_links=no
8646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8647 { echo "$as_me:$LINENO: result: $hard_links" >&5
8648 echo "${ECHO_T}$hard_links" >&6; }
8649 if test "$hard_links" = no; then
8650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8662 allow_undefined_flag=
8663 enable_shared_with_static_runtimes=no
8665 archive_expsym_cmds=
8666 old_archive_From_new_cmds=
8667 old_archive_from_expsyms_cmds=
8668 export_dynamic_flag_spec=
8669 whole_archive_flag_spec=
8670 thread_safe_flag_spec=
8671 hardcode_libdir_flag_spec=
8672 hardcode_libdir_flag_spec_ld=
8673 hardcode_libdir_separator=
8676 hardcode_shlibpath_var=unsupported
8677 link_all_deplibs=unknown
8678 hardcode_automatic=no
8681 always_export_symbols=no
8682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683 # include_expsyms should be a list of space-separated symbols to be *always*
8684 # included in the symbol list
8686 # exclude_expsyms can be an extended regexp of symbols to exclude
8687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8689 # as well as any symbol that contains `d'.
8690 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8692 # platforms (ab)use it in PIC code, but their linkers get confused if
8693 # the symbol is explicitly referenced. Since portable code cannot
8694 # rely on this symbol name, it's probably fine to never include it in
8695 # preloaded symbol tables.
8696 extract_expsyms_cmds=
8697 # Just being paranoid about ensuring that cc_basename is set.
8698 for cc_temp in $compiler""; do
8700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8709 cygwin* | mingw* | pw32*)
8710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8711 # When not using gcc, we currently assume that we are using
8712 # Microsoft Visual C++.
8713 if test "$GCC" != yes; then
8718 # we just hope/assume this is gcc and not c89 (= MSVC++)
8727 if test "$with_gnu_ld" = yes; then
8728 # If archive_cmds runs LD, not CC, wlarc should be empty
8731 # Set some defaults for GNU ld with shared library support. These
8732 # are reset later if shared libraries are not supported. Putting them
8733 # here allows them to be overridden if necessary.
8734 runpath_var=LD_RUN_PATH
8735 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8736 export_dynamic_flag_spec='${wl}--export-dynamic'
8737 # ancient GNU ld didn't support --whole-archive et. al.
8738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8741 whole_archive_flag_spec=
8743 supports_anon_versioning=no
8744 case `$LD -v 2>/dev/null` in
8745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8748 *\ 2.11.*) ;; # other 2.11 versions
8749 *) supports_anon_versioning=yes ;;
8752 # See if GNU ld supports shared libraries.
8754 aix3* | aix4* | aix5*)
8755 # On AIX/PPC, the GNU linker is very broken
8756 if test "$host_cpu" != ia64; then
8760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8761 *** to be unable to reliably create shared libraries on AIX.
8762 *** Therefore, libtool is disabling shared libraries support. If you
8763 *** really care for shared libraries, you may want to modify your PATH
8764 *** so that a non-GNU linker is found, and then restart.
8771 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)'
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_minus_L=yes
8775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8776 # that the semantics of dynamic libraries on AmigaOS, at least up
8777 # to version 4, is to share data among multiple programs linked
8778 # with the same dynamic library. Since this doesn't match the
8779 # behavior of shared libraries on other platforms, we can't use
8785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8786 allow_undefined_flag=unsupported
8787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8788 # support --undefined. This deserves some investigation. FIXME
8789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 cygwin* | mingw* | pw32*)
8796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8797 # as there is no search path for DLLs.
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 allow_undefined_flag=unsupported
8800 always_export_symbols=no
8801 enable_shared_with_static_runtimes=yes
8802 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8806 # If the export-symbols file already is a .def file (1st line
8807 # is EXPORTS), use it as is; otherwise, prepend...
8808 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8809 cp $export_symbols $output_objdir/$soname.def;
8811 echo EXPORTS > $output_objdir/$soname.def;
8812 cat $export_symbols >> $output_objdir/$soname.def;
8814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8822 hardcode_shlibpath_var=no
8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824 export_dynamic_flag_spec='${wl}-E'
8825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8826 # Instead, shared libraries are loaded at an image base (0x10000000 by
8827 # default) and relocated if they conflict, which is a slow very memory
8828 # consuming and fragmenting process. To avoid this, we pick a random,
8829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8832 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'
8835 linux* | k*bsd*-gnu)
8836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8838 case $cc_basename,$host_cpu in
8839 pgcc*) # Portland Group C compiler
8840 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'
8841 tmp_addflag=' $pic_flag'
8843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8844 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'
8845 tmp_addflag=' $pic_flag -Mnomain' ;;
8846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8847 tmp_addflag=' -i_dynamic' ;;
8848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8849 tmp_addflag=' -i_dynamic -nofor_main' ;;
8850 ifc* | ifort*) # Intel Fortran compiler
8851 tmp_addflag=' -nofor_main' ;;
8853 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 if test $supports_anon_versioning = yes; then
8856 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858 $echo "local: *; };" >> $output_objdir/$libname.ver~
8859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8867 netbsd* | netbsdelf*-gnu)
8868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883 *** create shared libraries on Solaris systems. Therefore, libtool
8884 *** is disabling shared libraries support. We urge you to upgrade GNU
8885 *** binutils to release 2.9.1 or newer. Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8890 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899 case `$LD -v 2>&1` in
8900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905 *** reliably create shared libraries on SCO systems. Therefore, libtool
8906 *** is disabling shared libraries support. We urge you to upgrade GNU
8907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8908 *** your PATH or compiler configuration so that the native linker is
8909 *** used, and then restart.
8914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8915 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8926 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8929 hardcode_shlibpath_var=no
8933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942 if test "$ld_shlibs" = no; then
8944 hardcode_libdir_flag_spec=
8945 export_dynamic_flag_spec=
8946 whole_archive_flag_spec=
8949 # PORTME fill in a description of your system's linker (not GNU ld)
8952 allow_undefined_flag=unsupported
8953 always_export_symbols=yes
8954 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'
8955 # Note: this linker hardcodes the directories in LIBPATH if there
8956 # are no directories specified by -L.
8957 hardcode_minus_L=yes
8958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8959 # Neither direct hardcoding nor static linking is supported with a
8961 hardcode_direct=unsupported
8966 if test "$host_cpu" = ia64; then
8967 # On IA64, the linker does run time linking by default, so we don't
8968 # have to do anything special.
8969 aix_use_runtimelinking=no
8970 exp_sym_flag='-Bexport'
8973 # If we're using GNU nm, then we don't want the "-C" option.
8974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8976 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'
8978 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'
8980 aix_use_runtimelinking=no
8982 # Test if we are trying to use run time linking or normal
8983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8984 # need to do runtime linking.
8985 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8986 for ld_flag in $LDFLAGS; do
8987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8988 aix_use_runtimelinking=yes
8995 exp_sym_flag='-bexport'
8996 no_entry_flag='-bnoentry'
8999 # When large executables or shared objects are built, AIX ld can
9000 # have problems creating the table of contents. If linking a library
9001 # or program results in "error TOC overflow" add -mminimal-toc to
9002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9007 hardcode_libdir_separator=':'
9008 link_all_deplibs=yes
9010 if test "$GCC" = yes; then
9011 case $host_os in aix4.[012]|aix4.[012].*)
9012 # We only want to do this on AIX 4.2 and lower, the check
9013 # below for broken collect2 doesn't work under 4.3+
9014 collect2name=`${CC} -print-prog-name=collect2`
9015 if test -f "$collect2name" && \
9016 strings "$collect2name" | grep resolve_lib_name >/dev/null
9018 # We have reworked collect2
9021 # We have old collect2
9022 hardcode_direct=unsupported
9023 # It fails to find uninstalled libraries when the uninstalled
9024 # path is not listed in the libpath. Setting hardcode_minus_L
9025 # to unsupported forces relinking
9026 hardcode_minus_L=yes
9027 hardcode_libdir_flag_spec='-L$libdir'
9028 hardcode_libdir_separator=
9032 shared_flag='-shared'
9033 if test "$aix_use_runtimelinking" = yes; then
9034 shared_flag="$shared_flag "'${wl}-G'
9038 if test "$host_cpu" = ia64; then
9039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9040 # chokes on -Wl,-G. The following line is correct:
9043 if test "$aix_use_runtimelinking" = yes; then
9044 shared_flag='${wl}-G'
9046 shared_flag='${wl}-bM:SRE'
9051 # It seems that -bexpall does not export symbols beginning with
9052 # underscore (_), so it is better to generate a list of symbols to export.
9053 always_export_symbols=yes
9054 if test "$aix_use_runtimelinking" = yes; then
9055 # Warning - without using the other runtime loading flags (-brtl),
9056 # -berok will link without error, but may produce a broken library.
9057 allow_undefined_flag='-berok'
9058 # Determine the default libpath from the value encoded in an empty executable.
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076 (eval $ac_link) 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9098 # Check for a 64-bit object if we didn't find anything.
9099 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; }
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9108 rm -f conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9112 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113 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"
9115 if test "$host_cpu" = ia64; then
9116 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9117 allow_undefined_flag="-z nodefs"
9118 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"
9120 # Determine the default libpath from the value encoded in an empty executable.
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest$ac_exeext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9160 # Check for a 64-bit object if we didn't find anything.
9161 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; }
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9170 rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9175 # Warning - without using the other run time loading flags,
9176 # -berok will link without error, but may produce a broken library.
9177 no_undefined_flag=' ${wl}-bernotok'
9178 allow_undefined_flag=' ${wl}-berok'
9179 # Exported symbols can be pulled into shared objects from archives
9180 whole_archive_flag_spec='$convenience'
9181 archive_cmds_need_lc=yes
9182 # This is similar to how AIX traditionally builds its shared libraries.
9183 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'
9189 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)'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_minus_L=yes
9192 # see comment about different semantics on the GNU ld section
9197 export_dynamic_flag_spec=-rdynamic
9200 cygwin* | mingw* | pw32*)
9201 # When not using gcc, we currently assume that we are using
9202 # Microsoft Visual C++.
9203 # hardcode_libdir_flag_spec is actually meaningless, as there is
9204 # no search path for DLLs.
9205 hardcode_libdir_flag_spec=' '
9206 allow_undefined_flag=unsupported
9207 # Tell ltmain to make .lib files, not .a files.
9209 # Tell ltmain to make .dll files, not .so files.
9211 # FIXME: Setting linknames here is a bad hack.
9212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9213 # The linker will automatically build a .lib file if we build a DLL.
9214 old_archive_From_new_cmds='true'
9215 # FIXME: Should let the user specify the lib program.
9216 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9217 fix_srcfile_path='`cygpath -w "$srcfile"`'
9218 enable_shared_with_static_runtimes=yes
9221 darwin* | rhapsody*)
9223 rhapsody* | darwin1.[012])
9224 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9228 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9230 case ${MACOSX_DEPLOYMENT_TARGET} in
9232 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9235 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9241 archive_cmds_need_lc=no
9243 hardcode_automatic=yes
9244 hardcode_shlibpath_var=unsupported
9245 whole_archive_flag_spec=''
9246 link_all_deplibs=yes
9247 if test "$GCC" = yes ; then
9248 output_verbose_link_cmd='echo'
9249 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9250 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9252 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}'
9253 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}'
9255 case $cc_basename in
9257 output_verbose_link_cmd='echo'
9258 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9259 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9261 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}'
9262 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}'
9272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_shlibpath_var=no
9281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9282 # support. Future versions do this automatically, but an explicit c++rt0.o
9283 # does not break anything, and helps significantly (at the cost of a little
9286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9287 hardcode_libdir_flag_spec='-R$libdir'
9289 hardcode_shlibpath_var=no
9292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_minus_L=yes
9297 hardcode_shlibpath_var=no
9300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9301 freebsd* | dragonfly*)
9302 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9303 hardcode_libdir_flag_spec='-R$libdir'
9305 hardcode_shlibpath_var=no
9309 if test "$GCC" = yes; then
9310 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'
9312 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'
9314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9315 hardcode_libdir_separator=:
9318 # hardcode_minus_L: Not really in the search PATH,
9319 # but as the default location of the library.
9320 hardcode_minus_L=yes
9321 export_dynamic_flag_spec='${wl}-E'
9325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9326 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9330 if test "$with_gnu_ld" = no; then
9331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9332 hardcode_libdir_separator=:
9335 export_dynamic_flag_spec='${wl}-E'
9337 # hardcode_minus_L: Not really in the search PATH,
9338 # but as the default location of the library.
9339 hardcode_minus_L=yes
9344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9347 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9369 if test "$with_gnu_ld" = no; then
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9375 hardcode_libdir_flag_spec_ld='+b $libdir'
9377 hardcode_shlibpath_var=no
9381 export_dynamic_flag_spec='${wl}-E'
9383 # hardcode_minus_L: Not really in the search PATH,
9384 # but as the default location of the library.
9385 hardcode_minus_L=yes
9391 irix5* | irix6* | nonstopux*)
9392 if test "$GCC" = yes; then
9393 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'
9395 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'
9396 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9399 hardcode_libdir_separator=:
9400 link_all_deplibs=yes
9403 netbsd* | netbsdelf*-gnu)
9404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9407 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9409 hardcode_libdir_flag_spec='-R$libdir'
9411 hardcode_shlibpath_var=no
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_shlibpath_var=no
9424 hardcode_shlibpath_var=no
9425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9426 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429 export_dynamic_flag_spec='${wl}-E'
9432 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_libdir_flag_spec='-R$libdir'
9437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9438 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_minus_L=yes
9447 allow_undefined_flag=unsupported
9448 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'
9449 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9453 if test "$GCC" = yes; then
9454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9455 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'
9457 allow_undefined_flag=' -expect_unresolved \*'
9458 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'
9460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461 hardcode_libdir_separator=:
9464 osf4* | osf5*) # as osf3* with the addition of -msym flag
9465 if test "$GCC" = yes; then
9466 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9467 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'
9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470 allow_undefined_flag=' -expect_unresolved \*'
9471 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'
9472 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9473 $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'
9475 # Both c and cxx compiler support -rpath directly
9476 hardcode_libdir_flag_spec='-rpath $libdir'
9478 hardcode_libdir_separator=:
9482 no_undefined_flag=' -z text'
9483 if test "$GCC" = yes; then
9485 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9487 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9490 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9492 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_shlibpath_var=no
9497 solaris2.[0-5] | solaris2.[0-5].*) ;;
9499 # The compiler driver will combine linker options so we
9500 # cannot just pass the convience library names through
9501 # without $wl, iff we do not link with $LD.
9502 # Luckily, gcc supports the same syntax we need for Sun Studio.
9503 # Supported since Solaris 2.6 (maybe 2.5.1?)
9506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9508 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' ;;
9511 link_all_deplibs=yes
9515 if test "x$host_vendor" = xsequent; then
9516 # Use $CC to link under sequent, because it throws in some extra .o
9517 # files that make .init and .fini sections work.
9518 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_minus_L=yes
9525 hardcode_shlibpath_var=no
9529 case $host_vendor in
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=yes # is this really true???
9535 ## LD is ld it makes a PLAMLIB
9536 ## CC just makes a GrossModule.
9537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9538 reload_cmds='$CC -r -o $output$reload_objs'
9542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9546 runpath_var='LD_RUN_PATH'
9547 hardcode_shlibpath_var=no
9551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_shlibpath_var=no
9553 export_dynamic_flag_spec='-Bexport'
9557 if test -d /usr/nec; then
9558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_shlibpath_var=no
9560 runpath_var=LD_RUN_PATH
9561 hardcode_runpath_var=yes
9566 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9567 no_undefined_flag='${wl}-z,text'
9568 archive_cmds_need_lc=no
9569 hardcode_shlibpath_var=no
9570 runpath_var='LD_RUN_PATH'
9572 if test "$GCC" = yes; then
9573 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 sysv5* | sco3.2v5* | sco5v6*)
9582 # Note: We can NOT use -z defs as we might desire, because we do not
9583 # link with -lc, and that would cause any symbols used from libc to
9584 # always be unresolved, which means just about no library would
9585 # ever link correctly. If we're not using GNU ld we use -z text
9586 # though, which does catch some bad symbols but isn't as heavy-handed
9588 no_undefined_flag='${wl}-z,text'
9589 allow_undefined_flag='${wl}-z,nodefs'
9590 archive_cmds_need_lc=no
9591 hardcode_shlibpath_var=no
9592 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9593 hardcode_libdir_separator=':'
9594 link_all_deplibs=yes
9595 export_dynamic_flag_spec='${wl}-Bexport'
9596 runpath_var='LD_RUN_PATH'
9598 if test "$GCC" = yes; then
9599 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_libdir_flag_spec='-L$libdir'
9610 hardcode_shlibpath_var=no
9619 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9620 echo "${ECHO_T}$ld_shlibs" >&6; }
9621 test "$ld_shlibs" = no && can_build_shared=no
9624 # Do we need to explicitly link libc?
9626 case "x$archive_cmds_need_lc" in
9628 # Assume -lc should be added
9629 archive_cmds_need_lc=yes
9631 if test "$enable_shared" = yes && test "$GCC" = yes; then
9632 case $archive_cmds in
9634 # FIXME: we may have to deal with multi-command sequences.
9637 # Test whether the compiler implicitly links with -lc since on some
9638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9639 # to ld, don't add -lc before -lgcc.
9640 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9646 (eval $ac_compile) 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } 2>conftest.err; then
9652 libobjs=conftest.$ac_objext
9654 wl=$lt_prog_compiler_wl
9655 pic_flag=$lt_prog_compiler_pic
9661 lt_save_allow_undefined_flag=$allow_undefined_flag
9662 allow_undefined_flag=
9663 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9664 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }
9669 archive_cmds_need_lc=no
9671 archive_cmds_need_lc=yes
9673 allow_undefined_flag=$lt_save_allow_undefined_flag
9675 cat conftest.err 1>&5
9678 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9679 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9686 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9689 libname_spec='lib$name'
9697 shlibpath_overrides_runpath=unknown
9699 dynamic_linker="$host_os ld.so"
9700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9701 if test "$GCC" = yes; then
9702 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9703 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9704 # if the path contains ";" then we assume it to be the separator
9705 # otherwise default to the standard path separator (i.e. ":") - it is
9706 # assumed that no part of a normal pathname contains ";" but that should
9707 # okay in the real world where ";" in dirpaths is itself problematic.
9708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9713 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726 shlibpath_var=LIBPATH
9728 # AIX 3 has no versioning support, so we append a major version to the name.
9729 soname_spec='${libname}${release}${shared_ext}$major'
9736 hardcode_into_libs=yes
9737 if test "$host_cpu" = ia64; then
9738 # AIX 5 supports IA64
9739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740 shlibpath_var=LD_LIBRARY_PATH
9742 # With GCC up to 2.95.x, collect2 would create an import file
9743 # for dependence libraries. The import file would start with
9744 # the line `#! .'. This would cause the generated library to
9745 # depend on `.', always an invalid library. This was fixed in
9746 # development snapshots of GCC prior to 3.0.
9748 aix4 | aix4.[01] | aix4.[01].*)
9749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759 # soname into executable. Probably we can add versioning support to
9760 # collect2, so additional links can be useful in future.
9761 if test "$aix_use_runtimelinking" = yes; then
9762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763 # instead of lib<name>.a to let people know that these are not
9764 # typical AIX shared libraries.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767 # We preserve .a as extension for shared libraries through AIX4.2
9768 # and later when we are not doing run time linking.
9769 library_names_spec='${libname}${release}.a $libname.a'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LIBPATH
9777 library_names_spec='$libname.ixlibrary $libname.a'
9778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9779 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'
9783 library_names_spec='${libname}${shared_ext}'
9784 dynamic_linker="$host_os ld.so"
9785 shlibpath_var=LIBRARY_PATH
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9797 # the default ld.so.conf also contains /usr/contrib/lib and
9798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9799 # libtool to hard-code these into programs
9802 cygwin* | mingw* | pw32*)
9803 version_type=windows
9808 case $GCC,$host_os in
9809 yes,cygwin* | yes,mingw* | yes,pw32*)
9810 library_names_spec='$libname.dll.a'
9811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9812 postinstall_cmds='base_file=`basename \${file}`~
9813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9814 dldir=$destdir/`dirname \$dlpath`~
9815 test -d \$dldir || mkdir -p \$dldir~
9816 $install_prog $dir/$dlname \$dldir/$dlname~
9817 chmod a+x \$dldir/$dlname'
9818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9819 dlpath=$dir/\$dldll~
9821 shlibpath_overrides_runpath=yes
9825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9830 # MinGW DLLs use traditional 'lib' prefix
9831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9834 # It is most probably a Windows format PATH printed by
9835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9836 # path with ; separators, and with drive letters. We can handle the
9837 # drive letters (cygwin fileutils understands them), so leave them,
9838 # especially as we might pass files found there to a mingw objdump,
9839 # which wouldn't understand a cygwinified path. Ahh.
9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9846 # pw32 DLLs use 'pw' prefix rather than 'lib'
9847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9856 dynamic_linker='Win32 ld.exe'
9857 # FIXME: first we should search . and the directory the executable is in
9861 darwin* | rhapsody*)
9862 dynamic_linker="$host_os dyld"
9866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9867 soname_spec='${libname}${release}${major}$shared_ext'
9868 shlibpath_overrides_runpath=yes
9869 shlibpath_var=DYLD_LIBRARY_PATH
9870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9872 if test "$GCC" = yes; then
9873 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"`
9875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 shlibpath_var=LD_LIBRARY_PATH
9893 freebsd* | dragonfly*)
9894 # DragonFly does not have aout. When/if they implement a new
9895 # versioning mechanism, adjust this.
9896 if test -x /usr/bin/objformat; then
9897 objformat=`/usr/bin/objformat`
9900 freebsd[123]*) objformat=aout ;;
9904 version_type=freebsd-$objformat
9905 case $version_type in
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9916 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes
9921 freebsd3.[01]* | freebsdelf3.[01]*)
9922 shlibpath_overrides_runpath=yes
9923 hardcode_into_libs=yes
9925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9927 shlibpath_overrides_runpath=no
9928 hardcode_into_libs=yes
9930 freebsd*) # from 4.6 on
9931 shlibpath_overrides_runpath=yes
9932 hardcode_into_libs=yes
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 hardcode_into_libs=yes
9947 hpux9* | hpux10* | hpux11*)
9948 # Give a soname corresponding to the major version so that dld.sl refuses to
9949 # link against other versions.
9956 hardcode_into_libs=yes
9957 dynamic_linker="$host_os dld.so"
9958 shlibpath_var=LD_LIBRARY_PATH
9959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 if test "X$HPUX_IA64_MODE" = X32; then
9963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9971 hardcode_into_libs=yes
9972 dynamic_linker="$host_os dld.sl"
9973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9982 dynamic_linker="$host_os dld.sl"
9983 shlibpath_var=SHLIB_PATH
9984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9990 postinstall_cmds='chmod 555 $lib'
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=no
10002 hardcode_into_libs=yes
10005 irix5* | irix6* | nonstopux*)
10007 nonstopux*) version_type=nonstopux ;;
10009 if test "$lt_cv_prog_gnu_ld" = yes; then
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10020 irix5* | nonstopux*)
10021 libsuff= shlibsuff=
10024 case $LD in # libtool.m4 will add one of these switches to LD
10025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10026 libsuff= shlibsuff= libmagic=32-bit;;
10027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10028 libsuff=32 shlibsuff=N32 libmagic=N32;;
10029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10031 *) libsuff= shlibsuff= libmagic=never-match;;
10035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10036 shlibpath_overrides_runpath=no
10037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10039 hardcode_into_libs=yes
10042 # No shared lib support for Linux oldld, aout, or coff.
10043 linux*oldld* | linux*aout* | linux*coff*)
10047 # This must be Linux ELF.
10048 linux* | k*bsd*-gnu)
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=no
10057 # This implies no fast_install, which is unacceptable.
10058 # Some rework will be needed to allow for fast_install
10059 # before this can be enabled.
10060 hardcode_into_libs=yes
10062 # Append ld.so.conf contents to the search path
10063 if test -f /etc/ld.so.conf; then
10064 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' ' '`
10065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10068 # We used to test for /lib/ld.so.1 and disable shared libraries on
10069 # powerpc, because MkLinux only supported shared libraries with the
10070 # GNU dynamic linker. Since this was broken with cross compilers,
10071 # most powerpc-linux boxes support dynamic linking these days and
10072 # people can always --disable-shared, the test was removed, and we
10073 # assume the GNU/Linux dynamic linker is in use.
10074 dynamic_linker='GNU/Linux ld.so'
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath=no
10085 hardcode_into_libs=yes
10086 dynamic_linker='NetBSD ld.elf_so'
10093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10096 dynamic_linker='NetBSD (a.out) ld.so'
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 dynamic_linker='NetBSD ld.elf_so'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes
10104 hardcode_into_libs=yes
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=yes
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes
10126 sys_lib_dlsearch_path_spec="/usr/lib"
10128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10131 *) need_version=no ;;
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10138 openbsd2.[89] | openbsd2.[89].*)
10139 shlibpath_overrides_runpath=no
10142 shlibpath_overrides_runpath=yes
10146 shlibpath_overrides_runpath=yes
10151 libname_spec='$name'
10154 library_names_spec='$libname${shared_ext} $libname.a'
10155 dynamic_linker='OS/2 ld.exe'
10156 shlibpath_var=LIBPATH
10159 osf3* | osf4* | osf5*)
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10179 # ldd complains unless libraries are executable
10180 postinstall_cmds='chmod +x $lib'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
10189 if test "$with_gnu_ld" = yes; then
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 case $host_vendor in
10202 shlibpath_overrides_runpath=no
10204 export_dynamic_flag_spec='${wl}-Blargedynsym'
10205 runpath_var=LD_RUN_PATH
10213 shlibpath_overrides_runpath=no
10214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10220 if test -d /usr/nec ;then
10222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10223 soname_spec='$libname${shared_ext}.$major'
10224 shlibpath_var=LD_LIBRARY_PATH
10228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10229 version_type=freebsd-elf
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 hardcode_into_libs=yes
10236 if test "$with_gnu_ld" = yes; then
10237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10238 shlibpath_overrides_runpath=no
10240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10241 shlibpath_overrides_runpath=yes
10244 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10248 sys_lib_dlsearch_path_spec='/usr/lib'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10262 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10263 echo "${ECHO_T}$dynamic_linker" >&6; }
10264 test "$dynamic_linker" = no && can_build_shared=no
10266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10267 if test "$GCC" = yes; then
10268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10271 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10274 if test -n "$hardcode_libdir_flag_spec" || \
10275 test -n "$runpath_var" || \
10276 test "X$hardcode_automatic" = "Xyes" ; then
10278 # We can hardcode non-existant directories.
10279 if test "$hardcode_direct" != no &&
10280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10281 # have to relink, otherwise we might link with an installed library
10282 # when we should be linking with a yet-to-be-installed one
10283 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10284 test "$hardcode_minus_L" != no; then
10285 # Linking always hardcodes the temporary library directory.
10286 hardcode_action=relink
10288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10289 hardcode_action=immediate
10292 # We cannot hardcode anything, or else we can only hardcode existing
10294 hardcode_action=unsupported
10296 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10297 echo "${ECHO_T}$hardcode_action" >&6; }
10299 if test "$hardcode_action" = relink; then
10300 # Fast installation is not supported
10301 enable_fast_install=no
10302 elif test "$shlibpath_overrides_runpath" = yes ||
10303 test "$enable_shared" = no; then
10304 # Fast installation is not necessary
10305 enable_fast_install=needless
10310 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10311 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10312 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10313 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10314 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10315 { echo "$as_me:$LINENO: result: yes" >&5
10316 echo "${ECHO_T}yes" >&6; }
10318 # FIXME - insert some real tests, host_os isn't really good enough
10321 if test -n "$STRIP" ; then
10322 striplib="$STRIP -x"
10323 { echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6; }
10326 { echo "$as_me:$LINENO: result: no" >&5
10327 echo "${ECHO_T}no" >&6; }
10331 { echo "$as_me:$LINENO: result: no" >&5
10332 echo "${ECHO_T}no" >&6; }
10337 if test "x$enable_dlopen" != xyes; then
10338 enable_dlopen=unknown
10339 enable_dlopen_self=unknown
10340 enable_dlopen_self_static=unknown
10347 lt_cv_dlopen="load_add_on"
10349 lt_cv_dlopen_self=yes
10353 lt_cv_dlopen="LoadLibrary"
10358 lt_cv_dlopen="dlopen"
10363 # if libdl is installed we need to link against it
10364 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 ac_check_lib_save_LIBS=$LIBS
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10397 grep -v '^ *+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_lib_dl_dlopen=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_lib_dl_dlopen=no
10422 rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10428 if test $ac_cv_lib_dl_dlopen = yes; then
10429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10432 lt_cv_dlopen="dyld"
10434 lt_cv_dlopen_self=yes
10441 { echo "$as_me:$LINENO: checking for shl_load" >&5
10442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10443 if test "${ac_cv_func_shl_load+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10454 #define shl_load innocuous_shl_load
10456 /* System header to define __stub macros and hopefully few prototypes,
10457 which can conflict with char shl_load (); below.
10458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10459 <limits.h> exists even on freestanding compilers. */
10462 # include <limits.h>
10464 # include <assert.h>
10469 /* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10476 /* The GNU C library defines this for functions which it implements
10477 to always fail with ENOSYS. Some functions are actually named
10478 something starting with __ and the normal name is an alias. */
10479 #if defined __stub_shl_load || defined __stub___shl_load
10486 return shl_load ();
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest$ac_exeext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_func_shl_load=yes
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_cv_func_shl_load=no
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10523 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10524 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10525 if test $ac_cv_func_shl_load = yes; then
10526 lt_cv_dlopen="shl_load"
10528 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10529 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10552 return shl_load ();
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_dld_shl_load=yes
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_cv_lib_dld_shl_load=no
10586 rm -f conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10591 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10592 if test $ac_cv_lib_dld_shl_load = yes; then
10593 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10595 { echo "$as_me:$LINENO: checking for dlopen" >&5
10596 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10597 if test "${ac_cv_func_dlopen+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608 #define dlopen innocuous_dlopen
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char dlopen (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10616 # include <limits.h>
10618 # include <assert.h>
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10630 /* The GNU C library defines this for functions which it implements
10631 to always fail with ENOSYS. Some functions are actually named
10632 something starting with __ and the normal name is an alias. */
10633 #if defined __stub_dlopen || defined __stub___dlopen
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest$ac_exeext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_func_dlopen=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_func_dlopen=no
10674 rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10678 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10679 if test $ac_cv_func_dlopen = yes; then
10680 lt_cv_dlopen="dlopen"
10682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 ac_check_lib_save_LIBS=$LIBS
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713 (eval $ac_link) 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_lib_dl_dlopen=yes
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ac_cv_lib_dl_dlopen=no
10740 rm -f conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10746 if test $ac_cv_lib_dl_dlopen = yes; then
10747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lsvld $LIBS"
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_cv_lib_svld_dlopen=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_cv_lib_svld_dlopen=no
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10812 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10813 if test $ac_cv_lib_svld_dlopen = yes; then
10814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10816 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 ac_check_lib_save_LIBS=$LIBS
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10840 return dld_link ();
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847 (eval $ac_link) 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_lib_dld_dld_link=yes
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 ac_cv_lib_dld_dld_link=no
10874 rm -f conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10879 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10880 if test $ac_cv_lib_dld_dld_link = yes; then
10881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10902 if test "x$lt_cv_dlopen" != xno; then
10908 case $lt_cv_dlopen in
10910 save_CPPFLAGS="$CPPFLAGS"
10911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10913 save_LDFLAGS="$LDFLAGS"
10914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10917 LIBS="$lt_cv_dlopen_libs $LIBS"
10919 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10920 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10921 if test "${lt_cv_dlopen_self+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 if test "$cross_compiling" = yes; then :
10925 lt_cv_dlopen_self=cross
10927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10928 lt_status=$lt_dlunknown
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10930 "configure"
10931 #include "confdefs.h"
10940 # define LT_DLGLOBAL RTLD_GLOBAL
10943 # define LT_DLGLOBAL DL_GLOBAL
10945 # define LT_DLGLOBAL 0
10949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10950 find out it does not work in some platform. */
10951 #ifndef LT_DLLAZY_OR_NOW
10953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10956 # define LT_DLLAZY_OR_NOW DL_LAZY
10959 # define LT_DLLAZY_OR_NOW RTLD_NOW
10962 # define LT_DLLAZY_OR_NOW DL_NOW
10964 # define LT_DLLAZY_OR_NOW 0
10972 extern "C" void exit (int);
10975 void fnord() { int i=42;}
10978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10979 int status = $lt_dlunknown;
10983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10984 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10985 /* dlclose (self); */
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10998 (./conftest; exit; ) >&5 2>/dev/null
11000 case x$lt_status in
11001 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11002 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11003 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11006 # compilation failed
11007 lt_cv_dlopen_self=no
11014 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11015 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11017 if test "x$lt_cv_dlopen_self" = xyes; then
11018 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11019 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11020 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11021 if test "${lt_cv_dlopen_self_static+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 if test "$cross_compiling" = yes; then :
11025 lt_cv_dlopen_self_static=cross
11027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11028 lt_status=$lt_dlunknown
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11030 "configure"
11031 #include "confdefs.h"
11040 # define LT_DLGLOBAL RTLD_GLOBAL
11043 # define LT_DLGLOBAL DL_GLOBAL
11045 # define LT_DLGLOBAL 0
11049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11050 find out it does not work in some platform. */
11051 #ifndef LT_DLLAZY_OR_NOW
11053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11056 # define LT_DLLAZY_OR_NOW DL_LAZY
11059 # define LT_DLLAZY_OR_NOW RTLD_NOW
11062 # define LT_DLLAZY_OR_NOW DL_NOW
11064 # define LT_DLLAZY_OR_NOW 0
11072 extern "C" void exit (int);
11075 void fnord() { int i=42;}
11078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11079 int status = $lt_dlunknown;
11083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11085 /* dlclose (self); */
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11098 (./conftest; exit; ) >&5 2>/dev/null
11100 case x$lt_status in
11101 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11102 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11103 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11106 # compilation failed
11107 lt_cv_dlopen_self_static=no
11114 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11115 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11118 CPPFLAGS="$save_CPPFLAGS"
11119 LDFLAGS="$save_LDFLAGS"
11124 case $lt_cv_dlopen_self in
11125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11126 *) enable_dlopen_self=unknown ;;
11129 case $lt_cv_dlopen_self_static in
11130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11131 *) enable_dlopen_self_static=unknown ;;
11136 # Report which library types will actually be built
11137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11140 echo "${ECHO_T}$can_build_shared" >&6; }
11142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11144 test "$can_build_shared" = "no" && enable_shared=no
11146 # On AIX, shared libraries and static libraries use the same namespace, and
11147 # are all built from PIC.
11150 test "$enable_shared" = yes && enable_static=no
11151 if test -n "$RANLIB"; then
11152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11153 postinstall_cmds='$RANLIB $lib'
11158 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11159 test "$enable_shared" = yes && enable_static=no
11163 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11164 echo "${ECHO_T}$enable_shared" >&6; }
11166 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11167 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11168 # Make sure either enable_shared or enable_static is yes.
11169 test "$enable_shared" = yes || enable_static=yes
11170 { echo "$as_me:$LINENO: result: $enable_static" >&5
11171 echo "${ECHO_T}$enable_static" >&6; }
11173 # The else clause should only fire when bootstrapping the
11174 # libtool distribution, otherwise you forgot to ship ltmain.sh
11175 # with your package, and you will get complaints that there are
11176 # no rules to generate ltmain.sh.
11177 if test -f "$ltmain"; then
11178 # See if we are running on zsh, and set the options which allow our commands through
11179 # without removal of \ escapes.
11180 if test -n "${ZSH_VERSION+set}" ; then
11181 setopt NO_GLOB_SUBST
11183 # Now quote all the things that may contain metacharacters while being
11184 # careful not to overquote the AC_SUBSTed values. We take copies of the
11185 # variables and quote the copies for generation of the libtool script.
11186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11190 deplibs_check_method reload_flag reload_cmds need_locks \
11191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11192 lt_cv_sys_global_symbol_to_c_name_address \
11193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11194 old_postinstall_cmds old_postuninstall_cmds \
11198 lt_prog_compiler_wl \
11199 lt_prog_compiler_pic \
11200 lt_prog_compiler_static \
11201 lt_prog_compiler_no_builtin_flag \
11202 export_dynamic_flag_spec \
11203 thread_safe_flag_spec \
11204 whole_archive_flag_spec \
11205 enable_shared_with_static_runtimes \
11207 old_archive_from_new_cmds \
11212 compiler_lib_search_path \
11214 archive_expsym_cmds \
11216 postuninstall_cmds \
11217 old_archive_from_expsyms_cmds \
11218 allow_undefined_flag \
11219 no_undefined_flag \
11220 export_symbols_cmds \
11221 hardcode_libdir_flag_spec \
11222 hardcode_libdir_flag_spec_ld \
11223 hardcode_libdir_separator \
11224 hardcode_automatic \
11226 module_expsym_cmds \
11227 lt_cv_prog_compiler_c_o \
11229 include_expsyms; do
11232 old_archive_cmds | \
11233 old_archive_from_new_cmds | \
11235 archive_expsym_cmds | \
11237 module_expsym_cmds | \
11238 old_archive_from_expsyms_cmds | \
11239 export_symbols_cmds | \
11240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11241 postinstall_cmds | postuninstall_cmds | \
11242 old_postinstall_cmds | old_postuninstall_cmds | \
11243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11244 # Double-quote double-evaled strings.
11245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11254 *'\$0 --fallback-echo"')
11255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11259 cfgfile="${ofile}T"
11260 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11262 { echo "$as_me:$LINENO: creating $ofile" >&5
11263 echo "$as_me: creating $ofile" >&6;}
11265 cat <<__EOF__ >> "$cfgfile"
11268 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11269 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11273 # Free Software Foundation, Inc.
11275 # This file is part of GNU Libtool:
11276 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11278 # This program is free software; you can redistribute it and/or modify
11279 # it under the terms of the GNU General Public License as published by
11280 # the Free Software Foundation; either version 2 of the License, or
11281 # (at your option) any later version.
11283 # This program is distributed in the hope that it will be useful, but
11284 # WITHOUT ANY WARRANTY; without even the implied warranty of
11285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11286 # General Public License for more details.
11288 # You should have received a copy of the GNU General Public License
11289 # along with this program; if not, write to the Free Software
11290 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11292 # As a special exception to the GNU General Public License, if you
11293 # distribute this file as part of a program that contains a
11294 # configuration script generated by Autoconf, you may include it under
11295 # the same distribution terms that you use for the rest of that program.
11297 # A sed program that does not truncate output.
11300 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11301 Xsed="$SED -e 1s/^X//"
11303 # The HP-UX ksh and POSIX shell print the target directory to stdout
11304 # if CDPATH is set.
11305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11307 # The names of the tagged configurations supported by this script.
11310 # ### BEGIN LIBTOOL CONFIG
11312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11314 # Shell to use when invoking shell scripts.
11317 # Whether or not to build shared libraries.
11318 build_libtool_libs=$enable_shared
11320 # Whether or not to build static libraries.
11321 build_old_libs=$enable_static
11323 # Whether or not to add -lc for building shared libraries.
11324 build_libtool_need_lc=$archive_cmds_need_lc
11326 # Whether or not to disallow shared libs when runtime libs are static
11327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11329 # Whether or not to optimize for fast installation.
11330 fast_install=$enable_fast_install
11333 host_alias=$host_alias
11337 # The build system.
11338 build_alias=$build_alias
11342 # An echo program that does not interpret backslashes.
11347 AR_FLAGS=$lt_AR_FLAGS
11352 # LTCC compiler flags.
11353 LTCFLAGS=$lt_LTCFLAGS
11355 # A language-specific compiler.
11358 # Is the compiler the GNU C compiler?
11364 # The linker used to build libraries.
11367 # Whether we need hard or soft links.
11370 # A BSD-compatible nm program.
11373 # A symbol stripping program
11376 # Used to examine libraries when file_magic_cmd begins "file"
11377 MAGIC_CMD=$MAGIC_CMD
11379 # Used on cygwin: DLL creation program.
11382 # Used on cygwin: object dumper.
11385 # Used on cygwin: assembler.
11388 # The name of the directory that contains temporary libtool files.
11391 # How to create reloadable object files.
11392 reload_flag=$lt_reload_flag
11393 reload_cmds=$lt_reload_cmds
11395 # How to pass a linker flag through the compiler.
11396 wl=$lt_lt_prog_compiler_wl
11398 # Object file suffix (normally "o").
11399 objext="$ac_objext"
11401 # Old archive suffix (normally "a").
11404 # Shared library suffix (normally ".so").
11405 shrext_cmds='$shrext_cmds'
11407 # Executable file suffix (normally "").
11410 # Additional compiler flags for building library objects.
11411 pic_flag=$lt_lt_prog_compiler_pic
11414 # What is the maximum length of a command?
11415 max_cmd_len=$lt_cv_sys_max_cmd_len
11417 # Does compiler simultaneously support -c and -o options?
11418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11420 # Must we lock files when doing compilation?
11421 need_locks=$lt_need_locks
11423 # Do we need the lib prefix for modules?
11424 need_lib_prefix=$need_lib_prefix
11426 # Do we need a version for libraries?
11427 need_version=$need_version
11429 # Whether dlopen is supported.
11430 dlopen_support=$enable_dlopen
11432 # Whether dlopen of programs is supported.
11433 dlopen_self=$enable_dlopen_self
11435 # Whether dlopen of statically linked programs is supported.
11436 dlopen_self_static=$enable_dlopen_self_static
11438 # Compiler flag to prevent dynamic linking.
11439 link_static_flag=$lt_lt_prog_compiler_static
11441 # Compiler flag to turn off builtin functions.
11442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11444 # Compiler flag to allow reflexive dlopens.
11445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11447 # Compiler flag to generate shared objects directly from archives.
11448 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11450 # Compiler flag to generate thread-safe objects.
11451 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11453 # Library versioning type.
11454 version_type=$version_type
11456 # Format of library name prefix.
11457 libname_spec=$lt_libname_spec
11459 # List of archive names. First name is the real one, the rest are links.
11460 # The last name is the one that the linker finds with -lNAME.
11461 library_names_spec=$lt_library_names_spec
11463 # The coded name of the library, if different from the real name.
11464 soname_spec=$lt_soname_spec
11466 # Commands used to build and install an old-style archive.
11468 old_archive_cmds=$lt_old_archive_cmds
11469 old_postinstall_cmds=$lt_old_postinstall_cmds
11470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11472 # Create an old-style archive from a shared archive.
11473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11475 # Create a temporary old-style archive to link instead of a shared archive.
11476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11478 # Commands used to build and install a shared archive.
11479 archive_cmds=$lt_archive_cmds
11480 archive_expsym_cmds=$lt_archive_expsym_cmds
11481 postinstall_cmds=$lt_postinstall_cmds
11482 postuninstall_cmds=$lt_postuninstall_cmds
11484 # Commands used to build a loadable module (assumed same as above if empty)
11485 module_cmds=$lt_module_cmds
11486 module_expsym_cmds=$lt_module_expsym_cmds
11488 # Commands to strip libraries.
11489 old_striplib=$lt_old_striplib
11490 striplib=$lt_striplib
11492 # Dependencies to place before the objects being linked to create a
11494 predep_objects=$lt_predep_objects
11496 # Dependencies to place after the objects being linked to create a
11498 postdep_objects=$lt_postdep_objects
11500 # Dependencies to place before the objects being linked to create a
11502 predeps=$lt_predeps
11504 # Dependencies to place after the objects being linked to create a
11506 postdeps=$lt_postdeps
11508 # The library search path used internally by the compiler when linking
11509 # a shared library.
11510 compiler_lib_search_path=$lt_compiler_lib_search_path
11512 # Method to check whether dependent libraries are shared objects.
11513 deplibs_check_method=$lt_deplibs_check_method
11515 # Command to use when deplibs_check_method == file_magic.
11516 file_magic_cmd=$lt_file_magic_cmd
11518 # Flag that allows shared libraries with undefined symbols to be built.
11519 allow_undefined_flag=$lt_allow_undefined_flag
11521 # Flag that forces no undefined symbols.
11522 no_undefined_flag=$lt_no_undefined_flag
11524 # Commands used to finish a libtool library installation in a directory.
11525 finish_cmds=$lt_finish_cmds
11527 # Same as above, but a single script fragment to be evaled but not shown.
11528 finish_eval=$lt_finish_eval
11530 # Take the output of nm and produce a listing of raw symbols and C names.
11531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11533 # Transform the output of nm in a proper C declaration
11534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11536 # Transform the output of nm in a C name address pair
11537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11539 # This is the shared library runtime path variable.
11540 runpath_var=$runpath_var
11542 # This is the shared library path variable.
11543 shlibpath_var=$shlibpath_var
11545 # Is shlibpath searched before the hard-coded library search path?
11546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11548 # How to hardcode a shared library path into an executable.
11549 hardcode_action=$hardcode_action
11551 # Whether we should hardcode library paths into libraries.
11552 hardcode_into_libs=$hardcode_into_libs
11554 # Flag to hardcode \$libdir into a binary during linking.
11555 # This must work even if \$libdir does not exist.
11556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11558 # If ld is used when linking, flag to hardcode \$libdir into
11559 # a binary during linking. This must work even if \$libdir does
11561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11563 # Whether we need a single -rpath flag with a separated argument.
11564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11567 # resulting binary.
11568 hardcode_direct=$hardcode_direct
11570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11571 # resulting binary.
11572 hardcode_minus_L=$hardcode_minus_L
11574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11575 # the resulting binary.
11576 hardcode_shlibpath_var=$hardcode_shlibpath_var
11578 # Set to yes if building a shared library automatically hardcodes DIR into the library
11579 # and all subsequent libraries and executables linked against it.
11580 hardcode_automatic=$hardcode_automatic
11582 # Variables whose values should be saved in libtool wrapper scripts and
11583 # restored at relink time.
11584 variables_saved_for_relink="$variables_saved_for_relink"
11586 # Whether libtool must link a program against all its dependency libraries.
11587 link_all_deplibs=$link_all_deplibs
11589 # Compile-time system search path for libraries
11590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11592 # Run-time system search path for libraries
11593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11595 # Fix the shell variable \$srcfile for the compiler.
11596 fix_srcfile_path="$fix_srcfile_path"
11598 # Set to yes if exported symbols are required.
11599 always_export_symbols=$always_export_symbols
11601 # The commands to list exported symbols.
11602 export_symbols_cmds=$lt_export_symbols_cmds
11604 # The commands to extract the exported symbol list from a shared archive.
11605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11607 # Symbols that should not be listed in the preloaded symbols.
11608 exclude_expsyms=$lt_exclude_expsyms
11610 # Symbols that must always be exported.
11611 include_expsyms=$lt_include_expsyms
11613 # ### END LIBTOOL CONFIG
11620 cat <<\EOF >> "$cfgfile"
11622 # AIX sometimes has problems with the GCC collect2 program. For some
11623 # reason, if we set the COLLECT_NAMES environment variable, the problems
11624 # vanish in a puff of smoke.
11625 if test "X${COLLECT_NAMES+set}" != Xset; then
11627 export COLLECT_NAMES
11633 # We use sed instead of cat because bash on DJGPP gets confused if
11634 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11635 # text mode, it properly converts lines to CR/LF. This bash problem
11636 # is reportedly fixed, but why not run on old versions too?
11637 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11639 mv -f "$cfgfile" "$ofile" || \
11640 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11644 # If there is no Makefile yet, we rely on a make rule to execute
11645 # `config.status --recheck' to rerun these tests and create the
11646 # libtool script then.
11647 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11648 if test -f "$ltmain_in"; then
11649 test -f Makefile && make "$ltmain"
11655 ac_cpp='$CPP $CPPFLAGS'
11656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663 # Check whether --with-tags was given.
11664 if test "${with_tags+set}" = set; then
11665 withval=$with_tags; tagnames="$withval"
11669 if test -f "$ltmain" && test -n "$tagnames"; then
11670 if test ! -f "${ofile}"; then
11671 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11672 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11675 if test -z "$LTCC"; then
11676 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11677 if test -z "$LTCC"; then
11678 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11679 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11681 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11682 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11685 if test -z "$LTCFLAGS"; then
11686 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11689 # Extract list of available tagged configurations in $ofile.
11690 # Note that this assumes the entire list is on one line.
11691 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11694 for tagname in $tagnames; do
11696 # Check whether tagname contains only valid characters
11697 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11699 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11700 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11701 { (exit 1); exit 1; }; }
11705 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11707 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11708 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11709 { (exit 1); exit 1; }; }
11712 # Update the list of available tags.
11713 if test -n "$tagname"; then
11714 echo appending configuration tag \"$tagname\" to $ofile
11718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11720 (test "X$CXX" != "Xg++"))) ; then
11722 ac_cpp='$CXXCPP $CPPFLAGS'
11723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11730 archive_cmds_need_lc_CXX=no
11731 allow_undefined_flag_CXX=
11732 always_export_symbols_CXX=no
11733 archive_expsym_cmds_CXX=
11734 export_dynamic_flag_spec_CXX=
11735 hardcode_direct_CXX=no
11736 hardcode_libdir_flag_spec_CXX=
11737 hardcode_libdir_flag_spec_ld_CXX=
11738 hardcode_libdir_separator_CXX=
11739 hardcode_minus_L_CXX=no
11740 hardcode_shlibpath_var_CXX=unsupported
11741 hardcode_automatic_CXX=no
11743 module_expsym_cmds_CXX=
11744 link_all_deplibs_CXX=unknown
11745 old_archive_cmds_CXX=$old_archive_cmds
11746 no_undefined_flag_CXX=
11747 whole_archive_flag_spec_CXX=
11748 enable_shared_with_static_runtimes_CXX=no
11750 # Dependencies to place before and after the object being linked:
11751 predep_objects_CXX=
11752 postdep_objects_CXX=
11755 compiler_lib_search_path_CXX=
11757 # Source file extension for C++ test sources.
11760 # Object file extension for compiled C++ test sources.
11764 # Code to be used in simple compile tests
11765 lt_simple_compile_test_code="int some_variable = 0;\n"
11767 # Code to be used in simple link tests
11768 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11772 # If no C compiler was specified, use CC.
11775 # If no C compiler flags were specified, use CFLAGS.
11776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11778 # Allow CC to be a program name with arguments.
11782 # save warnings/boilerplate of simple test code
11783 ac_outfile=conftest.$ac_objext
11784 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11785 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11786 _lt_compiler_boilerplate=`cat conftest.err`
11789 ac_outfile=conftest.$ac_objext
11790 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11791 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11792 _lt_linker_boilerplate=`cat conftest.err`
11796 # Allow CC to be a program name with arguments.
11801 lt_save_with_gnu_ld=$with_gnu_ld
11802 lt_save_path_LD=$lt_cv_path_LD
11803 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11804 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11806 $as_unset lt_cv_prog_gnu_ld
11808 if test -n "${lt_cv_path_LDCXX+set}"; then
11809 lt_cv_path_LD=$lt_cv_path_LDCXX
11811 $as_unset lt_cv_path_LD
11813 test -z "${LDCXX+set}" || LD=$LDCXX
11817 for cc_temp in $compiler""; do
11819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11828 # We don't want -fno-exception wen compiling C++ code, so set the
11829 # no_builtin_flag separately
11830 if test "$GXX" = yes; then
11831 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11833 lt_prog_compiler_no_builtin_flag_CXX=
11836 if test "$GXX" = yes; then
11837 # Set up default GNU C++ configuration
11840 # Check whether --with-gnu-ld was given.
11841 if test "${with_gnu_ld+set}" = set; then
11842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11848 if test "$GCC" = yes; then
11849 # Check if gcc -print-prog-name=ld gives a path.
11850 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11854 # gcc leaves a trailing carriage return which upsets mingw
11855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11860 # Accept absolute paths.
11862 re_direlt='/[^/][^/]*/\.\./'
11863 # Canonicalize the pathname of ld
11864 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11866 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11868 test -z "$LD" && LD="$ac_prog"
11871 # If it fails, then pretend we aren't using GCC.
11875 # If it is relative, then search for the first ld in PATH.
11876 with_gnu_ld=unknown
11879 elif test "$with_gnu_ld" = yes; then
11880 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11883 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11886 if test "${lt_cv_path_LD+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 if test -z "$LD"; then
11890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11891 for ac_dir in $PATH; do
11893 test -z "$ac_dir" && ac_dir=.
11894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11895 lt_cv_path_LD="$ac_dir/$ac_prog"
11896 # Check to see if the program is GNU ld. I'd rather use --version,
11897 # but apparently some variants of GNU ld only accept -v.
11898 # Break only if it was the GNU/non-GNU ld that we prefer.
11899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11900 *GNU* | *'with BFD'*)
11901 test "$with_gnu_ld" != no && break
11904 test "$with_gnu_ld" != yes && break
11911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11915 LD="$lt_cv_path_LD"
11916 if test -n "$LD"; then
11917 { echo "$as_me:$LINENO: result: $LD" >&5
11918 echo "${ECHO_T}$LD" >&6; }
11920 { echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6; }
11923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11925 { (exit 1); exit 1; }; }
11926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11932 case `$LD -v 2>&1 </dev/null` in
11933 *GNU* | *'with BFD'*)
11934 lt_cv_prog_gnu_ld=yes
11937 lt_cv_prog_gnu_ld=no
11941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11943 with_gnu_ld=$lt_cv_prog_gnu_ld
11947 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11948 # archiving commands below assume that GNU ld is being used.
11949 if test "$with_gnu_ld" = yes; then
11950 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11951 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'
11953 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11954 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11956 # If archive_cmds runs LD, not CC, wlarc should be empty
11957 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11958 # investigate it a little bit more. (MM)
11961 # ancient GNU ld didn't support --whole-archive et. al.
11962 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11963 grep 'no-whole-archive' > /dev/null; then
11964 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11966 whole_archive_flag_spec_CXX=
11972 # A generic and very simple default shared library creation
11973 # command for GNU C++ for the case where it uses the native
11974 # linker, instead of GNU ld. If possible, this setting should
11975 # overridden to take advantage of the native linker features on
11976 # the platform it is being used on.
11977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11980 # Commands to make compiler produce verbose output that lists
11981 # what "hidden" libraries, object files and flags are used when
11982 # linking a shared library.
11983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11991 # PORTME: fill in a description of your system's C++ link characteristics
11992 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11997 # FIXME: insert proper C++ library support
12001 if test "$host_cpu" = ia64; then
12002 # On IA64, the linker does run time linking by default, so we don't
12003 # have to do anything special.
12004 aix_use_runtimelinking=no
12005 exp_sym_flag='-Bexport'
12008 aix_use_runtimelinking=no
12010 # Test if we are trying to use run time linking or normal
12011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12012 # need to do runtime linking.
12013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12014 for ld_flag in $LDFLAGS; do
12017 aix_use_runtimelinking=yes
12025 exp_sym_flag='-bexport'
12026 no_entry_flag='-bnoentry'
12029 # When large executables or shared objects are built, AIX ld can
12030 # have problems creating the table of contents. If linking a library
12031 # or program results in "error TOC overflow" add -mminimal-toc to
12032 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12033 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12035 archive_cmds_CXX=''
12036 hardcode_direct_CXX=yes
12037 hardcode_libdir_separator_CXX=':'
12038 link_all_deplibs_CXX=yes
12040 if test "$GXX" = yes; then
12041 case $host_os in aix4.[012]|aix4.[012].*)
12042 # We only want to do this on AIX 4.2 and lower, the check
12043 # below for broken collect2 doesn't work under 4.3+
12044 collect2name=`${CC} -print-prog-name=collect2`
12045 if test -f "$collect2name" && \
12046 strings "$collect2name" | grep resolve_lib_name >/dev/null
12048 # We have reworked collect2
12049 hardcode_direct_CXX=yes
12051 # We have old collect2
12052 hardcode_direct_CXX=unsupported
12053 # It fails to find uninstalled libraries when the uninstalled
12054 # path is not listed in the libpath. Setting hardcode_minus_L
12055 # to unsupported forces relinking
12056 hardcode_minus_L_CXX=yes
12057 hardcode_libdir_flag_spec_CXX='-L$libdir'
12058 hardcode_libdir_separator_CXX=
12062 shared_flag='-shared'
12063 if test "$aix_use_runtimelinking" = yes; then
12064 shared_flag="$shared_flag "'${wl}-G'
12068 if test "$host_cpu" = ia64; then
12069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12070 # chokes on -Wl,-G. The following line is correct:
12073 if test "$aix_use_runtimelinking" = yes; then
12074 shared_flag='${wl}-G'
12076 shared_flag='${wl}-bM:SRE'
12081 # It seems that -bexpall does not export symbols beginning with
12082 # underscore (_), so it is better to generate a list of symbols to export.
12083 always_export_symbols_CXX=yes
12084 if test "$aix_use_runtimelinking" = yes; then
12085 # Warning - without using the other runtime loading flags (-brtl),
12086 # -berok will link without error, but may produce a broken library.
12087 allow_undefined_flag_CXX='-berok'
12088 # Determine the default libpath from the value encoded in an empty executable.
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 (eval $ac_link) 2>conftest.er1
12108 grep -v '^ *+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12128 # Check for a 64-bit object if we didn't find anything.
12129 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; }
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12138 rm -f conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12142 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12144 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"
12146 if test "$host_cpu" = ia64; then
12147 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12148 allow_undefined_flag_CXX="-z nodefs"
12149 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"
12151 # Determine the default libpath from the value encoded in an empty executable.
12152 cat >conftest.$ac_ext <<_ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12191 # Check for a 64-bit object if we didn't find anything.
12192 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; }
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12201 rm -f conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12205 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12206 # Warning - without using the other run time loading flags,
12207 # -berok will link without error, but may produce a broken library.
12208 no_undefined_flag_CXX=' ${wl}-bernotok'
12209 allow_undefined_flag_CXX=' ${wl}-berok'
12210 # Exported symbols can be pulled into shared objects from archives
12211 whole_archive_flag_spec_CXX='$convenience'
12212 archive_cmds_need_lc_CXX=yes
12213 # This is similar to how AIX traditionally builds its shared libraries.
12214 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'
12220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12221 allow_undefined_flag_CXX=unsupported
12222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12223 # support --undefined. This deserves some investigation. FIXME
12224 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 case $cc_basename in
12233 # FIXME: insert proper C++ library support
12239 cygwin* | mingw* | pw32*)
12240 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12241 # as there is no search path for DLLs.
12242 hardcode_libdir_flag_spec_CXX='-L$libdir'
12243 allow_undefined_flag_CXX=unsupported
12244 always_export_symbols_CXX=no
12245 enable_shared_with_static_runtimes_CXX=yes
12247 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12248 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'
12249 # If the export-symbols file already is a .def file (1st line
12250 # is EXPORTS), use it as is; otherwise, prepend...
12251 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12252 cp $export_symbols $output_objdir/$soname.def;
12254 echo EXPORTS > $output_objdir/$soname.def;
12255 cat $export_symbols >> $output_objdir/$soname.def;
12257 $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'
12262 darwin* | rhapsody*)
12264 rhapsody* | darwin1.[012])
12265 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12268 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12269 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12271 case ${MACOSX_DEPLOYMENT_TARGET} in
12273 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12276 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12282 archive_cmds_need_lc_CXX=no
12283 hardcode_direct_CXX=no
12284 hardcode_automatic_CXX=yes
12285 hardcode_shlibpath_var_CXX=unsupported
12286 whole_archive_flag_spec_CXX=''
12287 link_all_deplibs_CXX=yes
12289 if test "$GXX" = yes ; then
12290 lt_int_apple_cc_single_mod=no
12291 output_verbose_link_cmd='echo'
12292 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12293 lt_int_apple_cc_single_mod=yes
12295 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12296 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12298 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'
12300 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12301 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12303 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}'
12305 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}'
12307 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}'
12309 case $cc_basename in
12311 output_verbose_link_cmd='echo'
12312 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'
12313 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12315 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}'
12316 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}'
12326 case $cc_basename in
12328 # FIXME: insert proper C++ library support
12332 # Green Hills C++ Compiler
12333 # FIXME: insert proper C++ library support
12337 # FIXME: insert proper C++ library support
12343 # C++ shared libraries reported to be fairly broken before switch to ELF
12347 archive_cmds_need_lc_CXX=no
12349 freebsd* | dragonfly*)
12350 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12357 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12358 hardcode_libdir_separator_CXX=:
12359 export_dynamic_flag_spec_CXX='${wl}-E'
12360 hardcode_direct_CXX=yes
12361 hardcode_minus_L_CXX=yes # Not in the search PATH,
12362 # but as the default
12363 # location of the library.
12365 case $cc_basename in
12367 # FIXME: insert proper C++ library support
12371 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'
12372 # Commands to make compiler produce verbose output that lists
12373 # what "hidden" libraries, object files and flags are used when
12374 # linking a shared library.
12376 # There doesn't appear to be a way to prevent this compiler from
12377 # explicitly linking system object files so we need to strip them
12378 # from the output so that they don't get included in the library
12380 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'
12383 if test "$GXX" = yes; then
12384 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'
12386 # FIXME: insert proper C++ library support
12393 if test $with_gnu_ld = no; then
12394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12395 hardcode_libdir_separator_CXX=:
12399 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12402 export_dynamic_flag_spec_CXX='${wl}-E'
12408 hardcode_direct_CXX=no
12409 hardcode_shlibpath_var_CXX=no
12412 hardcode_direct_CXX=yes
12413 hardcode_minus_L_CXX=yes # Not in the search PATH,
12414 # but as the default
12415 # location of the library.
12419 case $cc_basename in
12421 # FIXME: insert proper C++ library support
12427 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12430 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12433 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12436 # Commands to make compiler produce verbose output that lists
12437 # what "hidden" libraries, object files and flags are used when
12438 # linking a shared library.
12440 # There doesn't appear to be a way to prevent this compiler from
12441 # explicitly linking system object files so we need to strip them
12442 # from the output so that they don't get included in the library
12444 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'
12447 if test "$GXX" = yes; then
12448 if test $with_gnu_ld = no; then
12451 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12457 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'
12462 # FIXME: insert proper C++ library support
12469 hardcode_direct_CXX=no
12470 hardcode_shlibpath_var_CXX=no
12471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12472 export_dynamic_flag_spec_CXX='${wl}-E'
12473 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12474 # Instead, shared libraries are loaded at an image base (0x10000000 by
12475 # default) and relocated if they conflict, which is a slow very memory
12476 # consuming and fragmenting process. To avoid this, we pick a random,
12477 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12478 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12479 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'
12480 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'
12483 case $cc_basename in
12486 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'
12488 # Archives containing C++ object files must be created using
12489 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12490 # necessary to make sure instantiated templates are included
12492 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12495 if test "$GXX" = yes; then
12496 if test "$with_gnu_ld" = no; then
12497 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'
12499 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'
12502 link_all_deplibs_CXX=yes
12505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12506 hardcode_libdir_separator_CXX=:
12508 linux* | k*bsd*-gnu)
12509 case $cc_basename in
12511 # Kuck and Associates, Inc. (KAI) C++ Compiler
12513 # KCC will only create a shared library if the output file
12514 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12515 # to its proper name (with version) after linking.
12516 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'
12517 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'
12518 # Commands to make compiler produce verbose output that lists
12519 # what "hidden" libraries, object files and flags are used when
12520 # linking a shared library.
12522 # There doesn't appear to be a way to prevent this compiler from
12523 # explicitly linking system object files so we need to strip them
12524 # from the output so that they don't get included in the library
12526 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'
12528 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12531 # Archives containing C++ object files must be created using
12532 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12533 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12538 # version 8.0 and above of icpc choke on multiply defined symbols
12539 # if we add $predep_objects and $postdep_objects, however 7.1 and
12540 # earlier do not add the objects themselves.
12541 case `$CC -V 2>&1` in
12543 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12544 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'
12546 *) # Version 8.0 or newer
12549 ia64*) tmp_idyn=' -i_dynamic';;
12551 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12552 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'
12555 archive_cmds_need_lc_CXX=no
12556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12558 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12561 # Portland Group C++ compiler
12562 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12563 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'
12565 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12566 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12567 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'
12571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572 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'
12574 runpath_var=LD_RUN_PATH
12575 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12576 hardcode_libdir_separator_CXX=:
12578 # Commands to make compiler produce verbose output that lists
12579 # what "hidden" libraries, object files and flags are used when
12580 # linking a shared library.
12582 # There doesn't appear to be a way to prevent this compiler from
12583 # explicitly linking system object files so we need to strip them
12584 # from the output so that they don't get included in the library
12586 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'
12591 # FIXME: insert proper C++ library support
12595 # FIXME: insert proper C++ library support
12599 case $cc_basename in
12601 # FIXME: insert proper C++ library support
12605 # FIXME: insert proper C++ library support
12610 netbsd* | netbsdelf*-gnu)
12611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12612 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12614 hardcode_libdir_flag_spec_CXX='-R$libdir'
12615 hardcode_direct_CXX=yes
12616 hardcode_shlibpath_var_CXX=no
12618 # Workaround some broken pre-1.5 toolchains
12619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12622 # C++ shared libraries are fairly broken
12626 hardcode_direct_CXX=yes
12627 hardcode_shlibpath_var_CXX=no
12628 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12631 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12632 export_dynamic_flag_spec_CXX='${wl}-E'
12633 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12635 output_verbose_link_cmd='echo'
12638 case $cc_basename in
12640 # Kuck and Associates, Inc. (KAI) C++ Compiler
12642 # KCC will only create a shared library if the output file
12643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12644 # to its proper name (with version) after linking.
12645 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'
12647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648 hardcode_libdir_separator_CXX=:
12650 # Archives containing C++ object files must be created using
12651 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12652 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12656 # Rational C++ 2.4.1
12657 # FIXME: insert proper C++ library support
12661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12662 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'
12664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665 hardcode_libdir_separator_CXX=:
12667 # Commands to make compiler produce verbose output that lists
12668 # what "hidden" libraries, object files and flags are used when
12669 # linking a shared library.
12671 # There doesn't appear to be a way to prevent this compiler from
12672 # explicitly linking system object files so we need to strip them
12673 # from the output so that they don't get included in the library
12675 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'
12678 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12680 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'
12682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12683 hardcode_libdir_separator_CXX=:
12685 # Commands to make compiler produce verbose output that lists
12686 # what "hidden" libraries, object files and flags are used when
12687 # linking a shared library.
12688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12691 # FIXME: insert proper C++ library support
12698 case $cc_basename in
12700 # Kuck and Associates, Inc. (KAI) C++ Compiler
12702 # KCC will only create a shared library if the output file
12703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12704 # to its proper name (with version) after linking.
12705 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'
12707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12708 hardcode_libdir_separator_CXX=:
12710 # Archives containing C++ object files must be created using
12711 # the KAI C++ compiler.
12712 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12715 # Rational C++ 2.4.1
12716 # FIXME: insert proper C++ library support
12720 allow_undefined_flag_CXX=' -expect_unresolved \*'
12721 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'
12722 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12723 echo "-hidden">> $lib.exp~
12724 $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~
12727 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12728 hardcode_libdir_separator_CXX=:
12730 # Commands to make compiler produce verbose output that lists
12731 # what "hidden" libraries, object files and flags are used when
12732 # linking a shared library.
12734 # There doesn't appear to be a way to prevent this compiler from
12735 # explicitly linking system object files so we need to strip them
12736 # from the output so that they don't get included in the library
12738 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'
12741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12742 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12743 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'
12745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12746 hardcode_libdir_separator_CXX=:
12748 # Commands to make compiler produce verbose output that lists
12749 # what "hidden" libraries, object files and flags are used when
12750 # linking a shared library.
12751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12754 # FIXME: insert proper C++ library support
12761 # FIXME: insert proper C++ library support
12765 case $cc_basename in
12768 # FIXME: insert proper C++ library support
12773 # FIXME: insert proper C++ library support
12777 # FIXME: insert proper C++ library support
12783 case $cc_basename in
12785 # Sun C++ 4.2, 5.x and Centerline C++
12786 archive_cmds_need_lc_CXX=yes
12787 no_undefined_flag_CXX=' -zdefs'
12788 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12790 $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'
12792 hardcode_libdir_flag_spec_CXX='-R$libdir'
12793 hardcode_shlibpath_var_CXX=no
12795 solaris2.[0-5] | solaris2.[0-5].*) ;;
12797 # The C++ compiler is used as linker so we must use $wl
12798 # flag to pass the commands to the underlying system
12799 # linker. We must also pass each convience library through
12800 # to the system linker between allextract/defaultextract.
12801 # The C++ compiler will combine linker options so we
12802 # cannot just pass the convience library names through
12804 # Supported since Solaris 2.6 (maybe 2.5.1?)
12805 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'
12808 link_all_deplibs_CXX=yes
12810 output_verbose_link_cmd='echo'
12812 # Archives containing C++ object files must be created using
12813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12814 # necessary to make sure instantiated templates are included
12816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12819 # Green Hills C++ Compiler
12820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12822 # The C++ compiler must be used to create the archive.
12823 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12826 # GNU C++ compiler with Solaris linker
12827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12828 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12829 if $CC --version | grep -v '^2\.7' > /dev/null; then
12830 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12831 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12832 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12834 # Commands to make compiler produce verbose output that lists
12835 # what "hidden" libraries, object files and flags are used when
12836 # linking a shared library.
12837 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12841 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12842 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12845 # Commands to make compiler produce verbose output that lists
12846 # what "hidden" libraries, object files and flags are used when
12847 # linking a shared library.
12848 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12851 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12857 no_undefined_flag_CXX='${wl}-z,text'
12858 archive_cmds_need_lc_CXX=no
12859 hardcode_shlibpath_var_CXX=no
12860 runpath_var='LD_RUN_PATH'
12862 case $cc_basename in
12864 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12865 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12868 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12869 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873 sysv5* | sco3.2v5* | sco5v6*)
12874 # Note: We can NOT use -z defs as we might desire, because we do not
12875 # link with -lc, and that would cause any symbols used from libc to
12876 # always be unresolved, which means just about no library would
12877 # ever link correctly. If we're not using GNU ld we use -z text
12878 # though, which does catch some bad symbols but isn't as heavy-handed
12880 # For security reasons, it is highly recommended that you always
12881 # use absolute paths for naming shared libraries, and exclude the
12882 # DT_RUNPATH tag from executables and libraries. But doing so
12883 # requires that you compile everything twice, which is a pain.
12884 # So that behaviour is only enabled if SCOABSPATH is set to a
12885 # non-empty value in the environment. Most likely only useful for
12886 # creating official distributions of packages.
12887 # This is a hack until libtool officially supports absolute path
12888 # names for shared libraries.
12889 no_undefined_flag_CXX='${wl}-z,text'
12890 allow_undefined_flag_CXX='${wl}-z,nodefs'
12891 archive_cmds_need_lc_CXX=no
12892 hardcode_shlibpath_var_CXX=no
12893 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12894 hardcode_libdir_separator_CXX=':'
12895 link_all_deplibs_CXX=yes
12896 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12897 runpath_var='LD_RUN_PATH'
12899 case $cc_basename in
12901 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12902 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12905 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12911 case $cc_basename in
12913 # NonStop-UX NCC 3.20
12914 # FIXME: insert proper C++ library support
12918 # FIXME: insert proper C++ library support
12924 # FIXME: insert proper C++ library support
12928 # FIXME: insert proper C++ library support
12932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12934 test "$ld_shlibs_CXX" = no && can_build_shared=no
12940 cat > conftest.$ac_ext <<EOF
12944 Foo (void) { a = 0; }
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; then
12955 # Parse the compiler output and extract the necessary
12956 # objects, libraries and library flags.
12958 # Sentinel used to keep track of whether or not we are before
12959 # the conftest object file.
12960 pre_test_object_deps_done=no
12962 # The `*' in the case matches for architectures that use `case' in
12963 # $output_verbose_cmd can trigger glob expansion during the loop
12964 # eval without this substitution.
12965 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12967 for p in `eval $output_verbose_link_cmd`; do
12971 # Some compilers place space between "-{L,R}" and the path.
12972 # Remove the space.
12973 if test $p = "-L" \
12974 || test $p = "-R"; then
12981 if test "$pre_test_object_deps_done" = no; then
12984 # Internal compiler library paths should come after those
12985 # provided the user. The postdeps already come after the
12986 # user supplied libs so there is no need to process them.
12987 if test -z "$compiler_lib_search_path_CXX"; then
12988 compiler_lib_search_path_CXX="${prev}${p}"
12990 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12993 # The "-l" case would never come before the object being
12994 # linked, so don't bother handling this case.
12997 if test -z "$postdeps_CXX"; then
12998 postdeps_CXX="${prev}${p}"
13000 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13006 # This assumes that the test object file only shows up
13007 # once in the compiler output.
13008 if test "$p" = "conftest.$objext"; then
13009 pre_test_object_deps_done=yes
13013 if test "$pre_test_object_deps_done" = no; then
13014 if test -z "$predep_objects_CXX"; then
13015 predep_objects_CXX="$p"
13017 predep_objects_CXX="$predep_objects_CXX $p"
13020 if test -z "$postdep_objects_CXX"; then
13021 postdep_objects_CXX="$p"
13023 postdep_objects_CXX="$postdep_objects_CXX $p"
13028 *) ;; # Ignore the rest.
13036 echo "libtool.m4: error: problem compiling CXX test program"
13039 $rm -f confest.$objext
13041 # PORTME: override above test on systems where it is broken
13044 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13045 # hack all around it, let's just trust "g++" to DTRT.
13046 predep_objects_CXX=
13047 postdep_objects_CXX=
13052 case $cc_basename in
13054 # Adding this requires a known-good setup of shared libraries for
13055 # Sun compiler versions before 5.6, else PIC objects from an old
13056 # archive will be linked into the output, leading to subtle bugs.
13057 postdeps_CXX='-lCstd -lCrun'
13064 case " $postdeps_CXX " in
13065 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13068 lt_prog_compiler_wl_CXX=
13069 lt_prog_compiler_pic_CXX=
13070 lt_prog_compiler_static_CXX=
13072 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13073 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13075 # C++ specific cases for pic, static, wl, etc.
13076 if test "$GXX" = yes; then
13077 lt_prog_compiler_wl_CXX='-Wl,'
13078 lt_prog_compiler_static_CXX='-static'
13082 # All AIX code is PIC.
13083 if test "$host_cpu" = ia64; then
13084 # AIX 5 now supports IA64 processor
13085 lt_prog_compiler_static_CXX='-Bstatic'
13089 # FIXME: we need at least 68020 code to build shared libraries, but
13090 # adding the `-m68020' flag to GCC prevents building anything better,
13092 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13094 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13095 # PIC is the default for these OSes.
13097 mingw* | os2* | pw32*)
13098 # This hack is so that the source file can tell whether it is being
13099 # built for inclusion in a dll (and should export symbols for example).
13100 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13102 darwin* | rhapsody*)
13103 # PIC is the default on this platform
13104 # Common symbols not allowed in MH_DYLIB files
13105 lt_prog_compiler_pic_CXX='-fno-common'
13108 # DJGPP does not support shared libraries at all
13109 lt_prog_compiler_pic_CXX=
13112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13113 # Instead, we relocate shared libraries at runtime.
13116 if test -d /usr/nec; then
13117 lt_prog_compiler_pic_CXX=-Kconform_pic
13121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13122 # not for PA HP-UX.
13127 lt_prog_compiler_pic_CXX='-fPIC'
13132 lt_prog_compiler_pic_CXX='-fPIC'
13138 # All AIX code is PIC.
13139 if test "$host_cpu" = ia64; then
13140 # AIX 5 now supports IA64 processor
13141 lt_prog_compiler_static_CXX='-Bstatic'
13143 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13147 case $cc_basename in
13149 # Green Hills C++ Compiler
13150 # _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"
13155 # PIC is the default on this platform
13156 # Common symbols not allowed in MH_DYLIB files
13157 case $cc_basename in
13159 lt_prog_compiler_pic_CXX='-qnocommon'
13160 lt_prog_compiler_wl_CXX='-Wl,'
13165 case $cc_basename in
13167 lt_prog_compiler_pic_CXX='-KPIC'
13170 # Green Hills C++ Compiler
13171 lt_prog_compiler_pic_CXX='-pic'
13177 freebsd* | dragonfly*)
13178 # FreeBSD uses GNU C++
13180 hpux9* | hpux10* | hpux11*)
13181 case $cc_basename in
13183 lt_prog_compiler_wl_CXX='-Wl,'
13184 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13185 if test "$host_cpu" != ia64; then
13186 lt_prog_compiler_pic_CXX='+Z'
13190 lt_prog_compiler_wl_CXX='-Wl,'
13191 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13197 lt_prog_compiler_pic_CXX='+Z'
13206 # This is c89, which is MS Visual C++ (no shared libs)
13207 # Anyone wants to do a port?
13209 irix5* | irix6* | nonstopux*)
13210 case $cc_basename in
13212 lt_prog_compiler_wl_CXX='-Wl,'
13213 lt_prog_compiler_static_CXX='-non_shared'
13214 # CC pic flag -KPIC is the default.
13220 linux* | k*bsd*-gnu)
13221 case $cc_basename in
13224 lt_prog_compiler_wl_CXX='--backend -Wl,'
13225 lt_prog_compiler_pic_CXX='-fPIC'
13229 lt_prog_compiler_wl_CXX='-Wl,'
13230 lt_prog_compiler_pic_CXX='-KPIC'
13231 lt_prog_compiler_static_CXX='-static'
13234 # Portland Group C++ compiler.
13235 lt_prog_compiler_wl_CXX='-Wl,'
13236 lt_prog_compiler_pic_CXX='-fpic'
13237 lt_prog_compiler_static_CXX='-Bstatic'
13241 # Make sure the PIC flag is empty. It appears that all Alpha
13242 # Linux and Compaq Tru64 Unix objects are PIC.
13243 lt_prog_compiler_pic_CXX=
13244 lt_prog_compiler_static_CXX='-non_shared'
13255 case $cc_basename in
13257 lt_prog_compiler_pic_CXX='-W c,exportall'
13263 netbsd* | netbsdelf*-gnu)
13265 osf3* | osf4* | osf5*)
13266 case $cc_basename in
13268 lt_prog_compiler_wl_CXX='--backend -Wl,'
13271 # Rational C++ 2.4.1
13272 lt_prog_compiler_pic_CXX='-pic'
13275 # Digital/Compaq C++
13276 lt_prog_compiler_wl_CXX='-Wl,'
13277 # Make sure the PIC flag is empty. It appears that all Alpha
13278 # Linux and Compaq Tru64 Unix objects are PIC.
13279 lt_prog_compiler_pic_CXX=
13280 lt_prog_compiler_static_CXX='-non_shared'
13289 case $cc_basename in
13291 # Sun C++ 4.2, 5.x and Centerline C++
13292 lt_prog_compiler_pic_CXX='-KPIC'
13293 lt_prog_compiler_static_CXX='-Bstatic'
13294 lt_prog_compiler_wl_CXX='-Qoption ld '
13297 # Green Hills C++ Compiler
13298 lt_prog_compiler_pic_CXX='-PIC'
13305 case $cc_basename in
13308 lt_prog_compiler_pic_CXX='-pic'
13309 lt_prog_compiler_static_CXX='-Bstatic'
13313 lt_prog_compiler_pic_CXX='-pic'
13320 case $cc_basename in
13322 # NonStop-UX NCC 3.20
13323 lt_prog_compiler_pic_CXX='-KPIC'
13329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13330 case $cc_basename in
13332 lt_prog_compiler_wl_CXX='-Wl,'
13333 lt_prog_compiler_pic_CXX='-KPIC'
13334 lt_prog_compiler_static_CXX='-Bstatic'
13341 lt_prog_compiler_can_build_shared_CXX=no
13346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13347 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13350 # Check to make sure the PIC flag actually works.
13352 if test -n "$lt_prog_compiler_pic_CXX"; then
13354 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13355 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13356 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 lt_prog_compiler_pic_works_CXX=no
13360 ac_outfile=conftest.$ac_objext
13361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13362 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13363 # Insert the option either (1) after the last *FLAGS variable, or
13364 # (2) before a word containing "conftest.", or (3) at the end.
13365 # Note that $ac_compile itself does not contain backslashes and begins
13366 # with a dollar sign (not a hyphen), so the echo should work correctly.
13367 # The option is referenced via a variable to avoid confusing sed.
13368 lt_compile=`echo "$ac_compile" | $SED \
13369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13371 -e 's:$: $lt_compiler_flag:'`
13372 (eval echo "\"\$as_me:13372: $lt_compile\"" >&5)
13373 (eval "$lt_compile" 2>conftest.err)
13375 cat conftest.err >&5
13376 echo "$as_me:13376: \$? = $ac_status" >&5
13377 if (exit $ac_status) && test -s "$ac_outfile"; then
13378 # The compiler can only warn and ignore the option if not recognized
13379 # So say no if there are warnings other than the usual output.
13380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13383 lt_prog_compiler_pic_works_CXX=yes
13389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13390 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13392 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13393 case $lt_prog_compiler_pic_CXX in
13395 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13398 lt_prog_compiler_pic_CXX=
13399 lt_prog_compiler_can_build_shared_CXX=no
13404 # For platforms which do not support PIC, -DPIC is meaningless:
13406 lt_prog_compiler_pic_CXX=
13409 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13414 # Check to make sure the static flag actually works.
13416 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13417 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13418 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13419 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 lt_prog_compiler_static_works_CXX=no
13423 save_LDFLAGS="$LDFLAGS"
13424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13425 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13427 # The linker can only warn and ignore the option if not recognized
13428 # So say no if there are warnings
13429 if test -s conftest.err; then
13430 # Append any errors to the config.log.
13431 cat conftest.err 1>&5
13432 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13434 if diff conftest.exp conftest.er2 >/dev/null; then
13435 lt_prog_compiler_static_works_CXX=yes
13438 lt_prog_compiler_static_works_CXX=yes
13442 LDFLAGS="$save_LDFLAGS"
13445 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13446 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13448 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13451 lt_prog_compiler_static_CXX=
13455 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13457 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 lt_cv_prog_compiler_c_o_CXX=no
13461 $rm -r conftest 2>/dev/null
13465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13467 lt_compiler_flag="-o out/conftest2.$ac_objext"
13468 # Insert the option either (1) after the last *FLAGS variable, or
13469 # (2) before a word containing "conftest.", or (3) at the end.
13470 # Note that $ac_compile itself does not contain backslashes and begins
13471 # with a dollar sign (not a hyphen), so the echo should work correctly.
13472 lt_compile=`echo "$ac_compile" | $SED \
13473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475 -e 's:$: $lt_compiler_flag:'`
13476 (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477 (eval "$lt_compile" 2>out/conftest.err)
13479 cat out/conftest.err >&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13483 # The compiler can only warn and ignore the option if not recognized
13484 # So say no if there are warnings
13485 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13488 lt_cv_prog_compiler_c_o_CXX=yes
13493 # SGI C++ compiler will create directory out/ii_files/ for
13494 # template instantiation
13495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496 $rm out/* && rmdir out
13502 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13508 # do not overwrite the value of need_locks provided by the user
13509 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13515 ln conftest.a conftest.b 2>&5 || hard_links=no
13516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517 { echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6; }
13519 if test "$hard_links" = no; then
13520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13534 # If we're using GNU nm, then we don't want the "-C" option.
13535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13537 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'
13539 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'
13543 export_symbols_cmds_CXX="$ltdll_cmds"
13546 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'
13548 linux* | k*bsd*-gnu)
13549 link_all_deplibs_CXX=no
13552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13557 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13558 test "$ld_shlibs_CXX" = no && can_build_shared=no
13561 # Do we need to explicitly link libc?
13563 case "x$archive_cmds_need_lc_CXX" in
13565 # Assume -lc should be added
13566 archive_cmds_need_lc_CXX=yes
13568 if test "$enable_shared" = yes && test "$GCC" = yes; then
13569 case $archive_cmds_CXX in
13571 # FIXME: we may have to deal with multi-command sequences.
13574 # Test whether the compiler implicitly links with -lc since on some
13575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576 # to ld, don't add -lc before -lgcc.
13577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } 2>conftest.err; then
13589 libobjs=conftest.$ac_objext
13591 wl=$lt_prog_compiler_wl_CXX
13592 pic_flag=$lt_prog_compiler_pic_CXX
13598 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13599 allow_undefined_flag_CXX=
13600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13601 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }
13606 archive_cmds_need_lc_CXX=no
13608 archive_cmds_need_lc_CXX=yes
13610 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13612 cat conftest.err 1>&5
13615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13616 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13625 library_names_spec=
13626 libname_spec='lib$name'
13630 postuninstall_cmds=
13634 shlibpath_overrides_runpath=unknown
13636 dynamic_linker="$host_os ld.so"
13637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13638 if test "$GCC" = yes; then
13639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13641 # if the path contains ";" then we assume it to be the separator
13642 # otherwise default to the standard path separator (i.e. ":") - it is
13643 # assumed that no part of a normal pathname contains ";" but that should
13644 # okay in the real world where ";" in dirpaths is itself problematic.
13645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13652 need_lib_prefix=unknown
13653 hardcode_into_libs=no
13655 # when you set need_version to no, make sure it does not cause -set_version
13656 # flags to be left without arguments
13657 need_version=unknown
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13663 shlibpath_var=LIBPATH
13665 # AIX 3 has no versioning support, so we append a major version to the name.
13666 soname_spec='${libname}${release}${shared_ext}$major'
13673 hardcode_into_libs=yes
13674 if test "$host_cpu" = ia64; then
13675 # AIX 5 supports IA64
13676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13677 shlibpath_var=LD_LIBRARY_PATH
13679 # With GCC up to 2.95.x, collect2 would create an import file
13680 # for dependence libraries. The import file would start with
13681 # the line `#! .'. This would cause the generated library to
13682 # depend on `.', always an invalid library. This was fixed in
13683 # development snapshots of GCC prior to 3.0.
13685 aix4 | aix4.[01] | aix4.[01].*)
13686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13691 can_build_shared=no
13695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13696 # soname into executable. Probably we can add versioning support to
13697 # collect2, so additional links can be useful in future.
13698 if test "$aix_use_runtimelinking" = yes; then
13699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13700 # instead of lib<name>.a to let people know that these are not
13701 # typical AIX shared libraries.
13702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704 # We preserve .a as extension for shared libraries through AIX4.2
13705 # and later when we are not doing run time linking.
13706 library_names_spec='${libname}${release}.a $libname.a'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13709 shlibpath_var=LIBPATH
13714 library_names_spec='$libname.ixlibrary $libname.a'
13715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13716 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'
13720 library_names_spec='${libname}${shared_ext}'
13721 dynamic_linker="$host_os ld.so"
13722 shlibpath_var=LIBRARY_PATH
13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13729 soname_spec='${libname}${release}${shared_ext}$major'
13730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13734 # the default ld.so.conf also contains /usr/contrib/lib and
13735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13736 # libtool to hard-code these into programs
13739 cygwin* | mingw* | pw32*)
13740 version_type=windows
13745 case $GCC,$host_os in
13746 yes,cygwin* | yes,mingw* | yes,pw32*)
13747 library_names_spec='$libname.dll.a'
13748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13749 postinstall_cmds='base_file=`basename \${file}`~
13750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13751 dldir=$destdir/`dirname \$dlpath`~
13752 test -d \$dldir || mkdir -p \$dldir~
13753 $install_prog $dir/$dlname \$dldir/$dlname~
13754 chmod a+x \$dldir/$dlname'
13755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13756 dlpath=$dir/\$dldll~
13758 shlibpath_overrides_runpath=yes
13762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13767 # MinGW DLLs use traditional 'lib' prefix
13768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13771 # It is most probably a Windows format PATH printed by
13772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13773 # path with ; separators, and with drive letters. We can handle the
13774 # drive letters (cygwin fileutils understands them), so leave them,
13775 # especially as we might pass files found there to a mingw objdump,
13776 # which wouldn't understand a cygwinified path. Ahh.
13777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13783 # pw32 DLLs use 'pw' prefix rather than 'lib'
13784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13793 dynamic_linker='Win32 ld.exe'
13794 # FIXME: first we should search . and the directory the executable is in
13798 darwin* | rhapsody*)
13799 dynamic_linker="$host_os dyld"
13800 version_type=darwin
13803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13804 soname_spec='${libname}${release}${major}$shared_ext'
13805 shlibpath_overrides_runpath=yes
13806 shlibpath_var=DYLD_LIBRARY_PATH
13807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13809 if test "$GCC" = yes; then
13810 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"`
13812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 shlibpath_var=LD_LIBRARY_PATH
13830 freebsd* | dragonfly*)
13831 # DragonFly does not have aout. When/if they implement a new
13832 # versioning mechanism, adjust this.
13833 if test -x /usr/bin/objformat; then
13834 objformat=`/usr/bin/objformat`
13837 freebsd[123]*) objformat=aout ;;
13838 *) objformat=elf ;;
13841 version_type=freebsd-$objformat
13842 case $version_type in
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13853 shlibpath_var=LD_LIBRARY_PATH
13856 shlibpath_overrides_runpath=yes
13858 freebsd3.[01]* | freebsdelf3.[01]*)
13859 shlibpath_overrides_runpath=yes
13860 hardcode_into_libs=yes
13862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13864 shlibpath_overrides_runpath=no
13865 hardcode_into_libs=yes
13867 freebsd*) # from 4.6 on
13868 shlibpath_overrides_runpath=yes
13869 hardcode_into_libs=yes
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 hardcode_into_libs=yes
13884 hpux9* | hpux10* | hpux11*)
13885 # Give a soname corresponding to the major version so that dld.sl refuses to
13886 # link against other versions.
13893 hardcode_into_libs=yes
13894 dynamic_linker="$host_os dld.so"
13895 shlibpath_var=LD_LIBRARY_PATH
13896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 if test "X$HPUX_IA64_MODE" = X32; then
13900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13908 hardcode_into_libs=yes
13909 dynamic_linker="$host_os dld.sl"
13910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13919 dynamic_linker="$host_os dld.sl"
13920 shlibpath_var=SHLIB_PATH
13921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13927 postinstall_cmds='chmod 555 $lib'
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 shlibpath_overrides_runpath=no
13939 hardcode_into_libs=yes
13942 irix5* | irix6* | nonstopux*)
13944 nonstopux*) version_type=nonstopux ;;
13946 if test "$lt_cv_prog_gnu_ld" = yes; then
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13957 irix5* | nonstopux*)
13958 libsuff= shlibsuff=
13961 case $LD in # libtool.m4 will add one of these switches to LD
13962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13963 libsuff= shlibsuff= libmagic=32-bit;;
13964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13965 libsuff=32 shlibsuff=N32 libmagic=N32;;
13966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13968 *) libsuff= shlibsuff= libmagic=never-match;;
13972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13973 shlibpath_overrides_runpath=no
13974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13976 hardcode_into_libs=yes
13979 # No shared lib support for Linux oldld, aout, or coff.
13980 linux*oldld* | linux*aout* | linux*coff*)
13984 # This must be Linux ELF.
13985 linux* | k*bsd*-gnu)
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=no
13994 # This implies no fast_install, which is unacceptable.
13995 # Some rework will be needed to allow for fast_install
13996 # before this can be enabled.
13997 hardcode_into_libs=yes
13999 # Append ld.so.conf contents to the search path
14000 if test -f /etc/ld.so.conf; then
14001 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' ' '`
14002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14005 # We used to test for /lib/ld.so.1 and disable shared libraries on
14006 # powerpc, because MkLinux only supported shared libraries with the
14007 # GNU dynamic linker. Since this was broken with cross compilers,
14008 # most powerpc-linux boxes support dynamic linking these days and
14009 # people can always --disable-shared, the test was removed, and we
14010 # assume the GNU/Linux dynamic linker is in use.
14011 dynamic_linker='GNU/Linux ld.so'
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LD_LIBRARY_PATH
14021 shlibpath_overrides_runpath=no
14022 hardcode_into_libs=yes
14023 dynamic_linker='NetBSD ld.elf_so'
14030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14033 dynamic_linker='NetBSD (a.out) ld.so'
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 dynamic_linker='NetBSD ld.elf_so'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=yes
14041 hardcode_into_libs=yes
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047 shlibpath_var=LD_LIBRARY_PATH
14048 shlibpath_overrides_runpath=yes
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056 soname_spec='${libname}${release}${shared_ext}$major'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=yes
14063 sys_lib_dlsearch_path_spec="/usr/lib"
14065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14068 *) need_version=no ;;
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14075 openbsd2.[89] | openbsd2.[89].*)
14076 shlibpath_overrides_runpath=no
14079 shlibpath_overrides_runpath=yes
14083 shlibpath_overrides_runpath=yes
14088 libname_spec='$name'
14091 library_names_spec='$libname${shared_ext} $libname.a'
14092 dynamic_linker='OS/2 ld.exe'
14093 shlibpath_var=LIBPATH
14096 osf3* | osf4* | osf5*)
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 shlibpath_var=LD_LIBRARY_PATH
14103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14116 # ldd complains unless libraries are executable
14117 postinstall_cmds='chmod +x $lib'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 if test "$with_gnu_ld" = yes; then
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 soname_spec='${libname}${release}${shared_ext}$major'
14136 shlibpath_var=LD_LIBRARY_PATH
14137 case $host_vendor in
14139 shlibpath_overrides_runpath=no
14141 export_dynamic_flag_spec='${wl}-Blargedynsym'
14142 runpath_var=LD_RUN_PATH
14150 shlibpath_overrides_runpath=no
14151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14157 if test -d /usr/nec ;then
14159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14160 soname_spec='$libname${shared_ext}.$major'
14161 shlibpath_var=LD_LIBRARY_PATH
14165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14166 version_type=freebsd-elf
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 hardcode_into_libs=yes
14173 if test "$with_gnu_ld" = yes; then
14174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14175 shlibpath_overrides_runpath=no
14177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14178 shlibpath_overrides_runpath=yes
14181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14185 sys_lib_dlsearch_path_spec='/usr/lib'
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14200 echo "${ECHO_T}$dynamic_linker" >&6; }
14201 test "$dynamic_linker" = no && can_build_shared=no
14203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14204 if test "$GCC" = yes; then
14205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14208 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14209 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14210 hardcode_action_CXX=
14211 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14212 test -n "$runpath_var_CXX" || \
14213 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14215 # We can hardcode non-existant directories.
14216 if test "$hardcode_direct_CXX" != no &&
14217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14218 # have to relink, otherwise we might link with an installed library
14219 # when we should be linking with a yet-to-be-installed one
14220 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14221 test "$hardcode_minus_L_CXX" != no; then
14222 # Linking always hardcodes the temporary library directory.
14223 hardcode_action_CXX=relink
14225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14226 hardcode_action_CXX=immediate
14229 # We cannot hardcode anything, or else we can only hardcode existing
14231 hardcode_action_CXX=unsupported
14233 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14234 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14236 if test "$hardcode_action_CXX" = relink; then
14237 # Fast installation is not supported
14238 enable_fast_install=no
14239 elif test "$shlibpath_overrides_runpath" = yes ||
14240 test "$enable_shared" = no; then
14241 # Fast installation is not necessary
14242 enable_fast_install=needless
14246 # The else clause should only fire when bootstrapping the
14247 # libtool distribution, otherwise you forgot to ship ltmain.sh
14248 # with your package, and you will get complaints that there are
14249 # no rules to generate ltmain.sh.
14250 if test -f "$ltmain"; then
14251 # See if we are running on zsh, and set the options which allow our commands through
14252 # without removal of \ escapes.
14253 if test -n "${ZSH_VERSION+set}" ; then
14254 setopt NO_GLOB_SUBST
14256 # Now quote all the things that may contain metacharacters while being
14257 # careful not to overquote the AC_SUBSTed values. We take copies of the
14258 # variables and quote the copies for generation of the libtool script.
14259 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14261 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14262 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14263 deplibs_check_method reload_flag reload_cmds need_locks \
14264 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14265 lt_cv_sys_global_symbol_to_c_name_address \
14266 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14267 old_postinstall_cmds old_postuninstall_cmds \
14271 lt_prog_compiler_wl_CXX \
14272 lt_prog_compiler_pic_CXX \
14273 lt_prog_compiler_static_CXX \
14274 lt_prog_compiler_no_builtin_flag_CXX \
14275 export_dynamic_flag_spec_CXX \
14276 thread_safe_flag_spec_CXX \
14277 whole_archive_flag_spec_CXX \
14278 enable_shared_with_static_runtimes_CXX \
14279 old_archive_cmds_CXX \
14280 old_archive_from_new_cmds_CXX \
14281 predep_objects_CXX \
14282 postdep_objects_CXX \
14285 compiler_lib_search_path_CXX \
14287 archive_expsym_cmds_CXX \
14288 postinstall_cmds_CXX \
14289 postuninstall_cmds_CXX \
14290 old_archive_from_expsyms_cmds_CXX \
14291 allow_undefined_flag_CXX \
14292 no_undefined_flag_CXX \
14293 export_symbols_cmds_CXX \
14294 hardcode_libdir_flag_spec_CXX \
14295 hardcode_libdir_flag_spec_ld_CXX \
14296 hardcode_libdir_separator_CXX \
14297 hardcode_automatic_CXX \
14299 module_expsym_cmds_CXX \
14300 lt_cv_prog_compiler_c_o_CXX \
14301 exclude_expsyms_CXX \
14302 include_expsyms_CXX; do
14305 old_archive_cmds_CXX | \
14306 old_archive_from_new_cmds_CXX | \
14307 archive_cmds_CXX | \
14308 archive_expsym_cmds_CXX | \
14309 module_cmds_CXX | \
14310 module_expsym_cmds_CXX | \
14311 old_archive_from_expsyms_cmds_CXX | \
14312 export_symbols_cmds_CXX | \
14313 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14314 postinstall_cmds | postuninstall_cmds | \
14315 old_postinstall_cmds | old_postuninstall_cmds | \
14316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14317 # Double-quote double-evaled strings.
14318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14327 *'\$0 --fallback-echo"')
14328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14334 cat <<__EOF__ >> "$cfgfile"
14335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14339 # Shell to use when invoking shell scripts.
14342 # Whether or not to build shared libraries.
14343 build_libtool_libs=$enable_shared
14345 # Whether or not to build static libraries.
14346 build_old_libs=$enable_static
14348 # Whether or not to add -lc for building shared libraries.
14349 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14351 # Whether or not to disallow shared libs when runtime libs are static
14352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14354 # Whether or not to optimize for fast installation.
14355 fast_install=$enable_fast_install
14358 host_alias=$host_alias
14362 # The build system.
14363 build_alias=$build_alias
14367 # An echo program that does not interpret backslashes.
14372 AR_FLAGS=$lt_AR_FLAGS
14377 # LTCC compiler flags.
14378 LTCFLAGS=$lt_LTCFLAGS
14380 # A language-specific compiler.
14381 CC=$lt_compiler_CXX
14383 # Is the compiler the GNU C compiler?
14389 # The linker used to build libraries.
14392 # Whether we need hard or soft links.
14395 # A BSD-compatible nm program.
14398 # A symbol stripping program
14401 # Used to examine libraries when file_magic_cmd begins "file"
14402 MAGIC_CMD=$MAGIC_CMD
14404 # Used on cygwin: DLL creation program.
14407 # Used on cygwin: object dumper.
14410 # Used on cygwin: assembler.
14413 # The name of the directory that contains temporary libtool files.
14416 # How to create reloadable object files.
14417 reload_flag=$lt_reload_flag
14418 reload_cmds=$lt_reload_cmds
14420 # How to pass a linker flag through the compiler.
14421 wl=$lt_lt_prog_compiler_wl_CXX
14423 # Object file suffix (normally "o").
14424 objext="$ac_objext"
14426 # Old archive suffix (normally "a").
14429 # Shared library suffix (normally ".so").
14430 shrext_cmds='$shrext_cmds'
14432 # Executable file suffix (normally "").
14435 # Additional compiler flags for building library objects.
14436 pic_flag=$lt_lt_prog_compiler_pic_CXX
14439 # What is the maximum length of a command?
14440 max_cmd_len=$lt_cv_sys_max_cmd_len
14442 # Does compiler simultaneously support -c and -o options?
14443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14445 # Must we lock files when doing compilation?
14446 need_locks=$lt_need_locks
14448 # Do we need the lib prefix for modules?
14449 need_lib_prefix=$need_lib_prefix
14451 # Do we need a version for libraries?
14452 need_version=$need_version
14454 # Whether dlopen is supported.
14455 dlopen_support=$enable_dlopen
14457 # Whether dlopen of programs is supported.
14458 dlopen_self=$enable_dlopen_self
14460 # Whether dlopen of statically linked programs is supported.
14461 dlopen_self_static=$enable_dlopen_self_static
14463 # Compiler flag to prevent dynamic linking.
14464 link_static_flag=$lt_lt_prog_compiler_static_CXX
14466 # Compiler flag to turn off builtin functions.
14467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14469 # Compiler flag to allow reflexive dlopens.
14470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14472 # Compiler flag to generate shared objects directly from archives.
14473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14475 # Compiler flag to generate thread-safe objects.
14476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14478 # Library versioning type.
14479 version_type=$version_type
14481 # Format of library name prefix.
14482 libname_spec=$lt_libname_spec
14484 # List of archive names. First name is the real one, the rest are links.
14485 # The last name is the one that the linker finds with -lNAME.
14486 library_names_spec=$lt_library_names_spec
14488 # The coded name of the library, if different from the real name.
14489 soname_spec=$lt_soname_spec
14491 # Commands used to build and install an old-style archive.
14493 old_archive_cmds=$lt_old_archive_cmds_CXX
14494 old_postinstall_cmds=$lt_old_postinstall_cmds
14495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14497 # Create an old-style archive from a shared archive.
14498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14500 # Create a temporary old-style archive to link instead of a shared archive.
14501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14503 # Commands used to build and install a shared archive.
14504 archive_cmds=$lt_archive_cmds_CXX
14505 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14506 postinstall_cmds=$lt_postinstall_cmds
14507 postuninstall_cmds=$lt_postuninstall_cmds
14509 # Commands used to build a loadable module (assumed same as above if empty)
14510 module_cmds=$lt_module_cmds_CXX
14511 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14513 # Commands to strip libraries.
14514 old_striplib=$lt_old_striplib
14515 striplib=$lt_striplib
14517 # Dependencies to place before the objects being linked to create a
14519 predep_objects=$lt_predep_objects_CXX
14521 # Dependencies to place after the objects being linked to create a
14523 postdep_objects=$lt_postdep_objects_CXX
14525 # Dependencies to place before the objects being linked to create a
14527 predeps=$lt_predeps_CXX
14529 # Dependencies to place after the objects being linked to create a
14531 postdeps=$lt_postdeps_CXX
14533 # The library search path used internally by the compiler when linking
14534 # a shared library.
14535 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14537 # Method to check whether dependent libraries are shared objects.
14538 deplibs_check_method=$lt_deplibs_check_method
14540 # Command to use when deplibs_check_method == file_magic.
14541 file_magic_cmd=$lt_file_magic_cmd
14543 # Flag that allows shared libraries with undefined symbols to be built.
14544 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14546 # Flag that forces no undefined symbols.
14547 no_undefined_flag=$lt_no_undefined_flag_CXX
14549 # Commands used to finish a libtool library installation in a directory.
14550 finish_cmds=$lt_finish_cmds
14552 # Same as above, but a single script fragment to be evaled but not shown.
14553 finish_eval=$lt_finish_eval
14555 # Take the output of nm and produce a listing of raw symbols and C names.
14556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14558 # Transform the output of nm in a proper C declaration
14559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14561 # Transform the output of nm in a C name address pair
14562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14564 # This is the shared library runtime path variable.
14565 runpath_var=$runpath_var
14567 # This is the shared library path variable.
14568 shlibpath_var=$shlibpath_var
14570 # Is shlibpath searched before the hard-coded library search path?
14571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14573 # How to hardcode a shared library path into an executable.
14574 hardcode_action=$hardcode_action_CXX
14576 # Whether we should hardcode library paths into libraries.
14577 hardcode_into_libs=$hardcode_into_libs
14579 # Flag to hardcode \$libdir into a binary during linking.
14580 # This must work even if \$libdir does not exist.
14581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14583 # If ld is used when linking, flag to hardcode \$libdir into
14584 # a binary during linking. This must work even if \$libdir does
14586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14588 # Whether we need a single -rpath flag with a separated argument.
14589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14592 # resulting binary.
14593 hardcode_direct=$hardcode_direct_CXX
14595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14596 # resulting binary.
14597 hardcode_minus_L=$hardcode_minus_L_CXX
14599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14600 # the resulting binary.
14601 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14603 # Set to yes if building a shared library automatically hardcodes DIR into the library
14604 # and all subsequent libraries and executables linked against it.
14605 hardcode_automatic=$hardcode_automatic_CXX
14607 # Variables whose values should be saved in libtool wrapper scripts and
14608 # restored at relink time.
14609 variables_saved_for_relink="$variables_saved_for_relink"
14611 # Whether libtool must link a program against all its dependency libraries.
14612 link_all_deplibs=$link_all_deplibs_CXX
14614 # Compile-time system search path for libraries
14615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14617 # Run-time system search path for libraries
14618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14620 # Fix the shell variable \$srcfile for the compiler.
14621 fix_srcfile_path="$fix_srcfile_path_CXX"
14623 # Set to yes if exported symbols are required.
14624 always_export_symbols=$always_export_symbols_CXX
14626 # The commands to list exported symbols.
14627 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14629 # The commands to extract the exported symbol list from a shared archive.
14630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14632 # Symbols that should not be listed in the preloaded symbols.
14633 exclude_expsyms=$lt_exclude_expsyms_CXX
14635 # Symbols that must always be exported.
14636 include_expsyms=$lt_include_expsyms_CXX
14638 # ### END LIBTOOL TAG CONFIG: $tagname
14644 # If there is no Makefile yet, we rely on a make rule to execute
14645 # `config.status --recheck' to rerun these tests and create the
14646 # libtool script then.
14647 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14648 if test -f "$ltmain_in"; then
14649 test -f Makefile && make "$ltmain"
14655 ac_cpp='$CPP $CPPFLAGS'
14656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14664 with_gnu_ldcxx=$with_gnu_ld
14665 with_gnu_ld=$lt_save_with_gnu_ld
14666 lt_cv_path_LDCXX=$lt_cv_path_LD
14667 lt_cv_path_LD=$lt_save_path_LD
14668 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14669 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14677 if test -n "$F77" && test "X$F77" != "Xno"; then
14680 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14681 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14682 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14685 archive_cmds_need_lc_F77=no
14686 allow_undefined_flag_F77=
14687 always_export_symbols_F77=no
14688 archive_expsym_cmds_F77=
14689 export_dynamic_flag_spec_F77=
14690 hardcode_direct_F77=no
14691 hardcode_libdir_flag_spec_F77=
14692 hardcode_libdir_flag_spec_ld_F77=
14693 hardcode_libdir_separator_F77=
14694 hardcode_minus_L_F77=no
14695 hardcode_automatic_F77=no
14697 module_expsym_cmds_F77=
14698 link_all_deplibs_F77=unknown
14699 old_archive_cmds_F77=$old_archive_cmds
14700 no_undefined_flag_F77=
14701 whole_archive_flag_spec_F77=
14702 enable_shared_with_static_runtimes_F77=no
14704 # Source file extension for f77 test sources.
14707 # Object file extension for compiled f77 test sources.
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code=" program t\n end\n"
14717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14719 # If no C compiler was specified, use CC.
14722 # If no C compiler flags were specified, use CFLAGS.
14723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14725 # Allow CC to be a program name with arguments.
14729 # save warnings/boilerplate of simple test code
14730 ac_outfile=conftest.$ac_objext
14731 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14733 _lt_compiler_boilerplate=`cat conftest.err`
14736 ac_outfile=conftest.$ac_objext
14737 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14739 _lt_linker_boilerplate=`cat conftest.err`
14743 # Allow CC to be a program name with arguments.
14748 for cc_temp in $compiler""; do
14750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14759 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14760 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14761 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14762 echo "${ECHO_T}$can_build_shared" >&6; }
14764 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14765 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14766 test "$can_build_shared" = "no" && enable_shared=no
14768 # On AIX, shared libraries and static libraries use the same namespace, and
14769 # are all built from PIC.
14772 test "$enable_shared" = yes && enable_static=no
14773 if test -n "$RANLIB"; then
14774 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14775 postinstall_cmds='$RANLIB $lib'
14779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14780 test "$enable_shared" = yes && enable_static=no
14784 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14785 echo "${ECHO_T}$enable_shared" >&6; }
14787 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14788 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14789 # Make sure either enable_shared or enable_static is yes.
14790 test "$enable_shared" = yes || enable_static=yes
14791 { echo "$as_me:$LINENO: result: $enable_static" >&5
14792 echo "${ECHO_T}$enable_static" >&6; }
14797 lt_prog_compiler_wl_F77=
14798 lt_prog_compiler_pic_F77=
14799 lt_prog_compiler_static_F77=
14801 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14804 if test "$GCC" = yes; then
14805 lt_prog_compiler_wl_F77='-Wl,'
14806 lt_prog_compiler_static_F77='-static'
14810 # All AIX code is PIC.
14811 if test "$host_cpu" = ia64; then
14812 # AIX 5 now supports IA64 processor
14813 lt_prog_compiler_static_F77='-Bstatic'
14818 # FIXME: we need at least 68020 code to build shared libraries, but
14819 # adding the `-m68020' flag to GCC prevents building anything better,
14821 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14824 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14825 # PIC is the default for these OSes.
14828 mingw* | pw32* | os2*)
14829 # This hack is so that the source file can tell whether it is being
14830 # built for inclusion in a dll (and should export symbols for example).
14831 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14834 darwin* | rhapsody*)
14835 # PIC is the default on this platform
14836 # Common symbols not allowed in MH_DYLIB files
14837 lt_prog_compiler_pic_F77='-fno-common'
14841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14842 # Instead, we relocate shared libraries at runtime.
14846 # Just because we use GCC doesn't mean we suddenly get shared libraries
14847 # on systems that don't support them.
14848 lt_prog_compiler_can_build_shared_F77=no
14853 if test -d /usr/nec; then
14854 lt_prog_compiler_pic_F77=-Kconform_pic
14859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14860 # not for PA HP-UX.
14866 lt_prog_compiler_pic_F77='-fPIC'
14872 lt_prog_compiler_pic_F77='-fPIC'
14876 # PORTME Check for flag to pass linker flags through the system compiler.
14879 lt_prog_compiler_wl_F77='-Wl,'
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static_F77='-Bstatic'
14884 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14888 # PIC is the default on this platform
14889 # Common symbols not allowed in MH_DYLIB files
14890 case $cc_basename in
14892 lt_prog_compiler_pic_F77='-qnocommon'
14893 lt_prog_compiler_wl_F77='-Wl,'
14898 mingw* | pw32* | os2*)
14899 # This hack is so that the source file can tell whether it is being
14900 # built for inclusion in a dll (and should export symbols for example).
14901 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14904 hpux9* | hpux10* | hpux11*)
14905 lt_prog_compiler_wl_F77='-Wl,'
14906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14907 # not for PA HP-UX.
14913 lt_prog_compiler_pic_F77='+Z'
14916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14917 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14920 irix5* | irix6* | nonstopux*)
14921 lt_prog_compiler_wl_F77='-Wl,'
14922 # PIC (with -KPIC) is the default.
14923 lt_prog_compiler_static_F77='-non_shared'
14927 lt_prog_compiler_pic_F77='-KPIC'
14928 lt_prog_compiler_static_F77='-Bstatic'
14931 linux* | k*bsd*-gnu)
14932 case $cc_basename in
14934 lt_prog_compiler_wl_F77='-Wl,'
14935 lt_prog_compiler_pic_F77='-KPIC'
14936 lt_prog_compiler_static_F77='-static'
14938 pgcc* | pgf77* | pgf90* | pgf95*)
14939 # Portland Group compilers (*not* the Pentium gcc compiler,
14940 # which looks to be a dead project)
14941 lt_prog_compiler_wl_F77='-Wl,'
14942 lt_prog_compiler_pic_F77='-fpic'
14943 lt_prog_compiler_static_F77='-Bstatic'
14946 lt_prog_compiler_wl_F77='-Wl,'
14947 # All Alpha code is PIC.
14948 lt_prog_compiler_static_F77='-non_shared'
14953 osf3* | osf4* | osf5*)
14954 lt_prog_compiler_wl_F77='-Wl,'
14955 # All OSF/1 code is PIC.
14956 lt_prog_compiler_static_F77='-non_shared'
14960 lt_prog_compiler_pic_F77='-KPIC'
14961 lt_prog_compiler_static_F77='-Bstatic'
14962 case $cc_basename in
14963 f77* | f90* | f95*)
14964 lt_prog_compiler_wl_F77='-Qoption ld ';;
14966 lt_prog_compiler_wl_F77='-Wl,';;
14971 lt_prog_compiler_wl_F77='-Qoption ld '
14972 lt_prog_compiler_pic_F77='-PIC'
14973 lt_prog_compiler_static_F77='-Bstatic'
14976 sysv4 | sysv4.2uw2* | sysv4.3*)
14977 lt_prog_compiler_wl_F77='-Wl,'
14978 lt_prog_compiler_pic_F77='-KPIC'
14979 lt_prog_compiler_static_F77='-Bstatic'
14983 if test -d /usr/nec ;then
14984 lt_prog_compiler_pic_F77='-Kconform_pic'
14985 lt_prog_compiler_static_F77='-Bstatic'
14989 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14990 lt_prog_compiler_wl_F77='-Wl,'
14991 lt_prog_compiler_pic_F77='-KPIC'
14992 lt_prog_compiler_static_F77='-Bstatic'
14996 lt_prog_compiler_wl_F77='-Wl,'
14997 lt_prog_compiler_can_build_shared_F77=no
15001 lt_prog_compiler_pic_F77='-pic'
15002 lt_prog_compiler_static_F77='-Bstatic'
15006 lt_prog_compiler_can_build_shared_F77=no
15011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15012 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15015 # Check to make sure the PIC flag actually works.
15017 if test -n "$lt_prog_compiler_pic_F77"; then
15019 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15020 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15021 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 lt_prog_compiler_pic_works_F77=no
15025 ac_outfile=conftest.$ac_objext
15026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15027 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15028 # Insert the option either (1) after the last *FLAGS variable, or
15029 # (2) before a word containing "conftest.", or (3) at the end.
15030 # Note that $ac_compile itself does not contain backslashes and begins
15031 # with a dollar sign (not a hyphen), so the echo should work correctly.
15032 # The option is referenced via a variable to avoid confusing sed.
15033 lt_compile=`echo "$ac_compile" | $SED \
15034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15036 -e 's:$: $lt_compiler_flag:'`
15037 (eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
15038 (eval "$lt_compile" 2>conftest.err)
15040 cat conftest.err >&5
15041 echo "$as_me:15041: \$? = $ac_status" >&5
15042 if (exit $ac_status) && test -s "$ac_outfile"; then
15043 # The compiler can only warn and ignore the option if not recognized
15044 # So say no if there are warnings other than the usual output.
15045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15048 lt_prog_compiler_pic_works_F77=yes
15054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15055 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15057 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15058 case $lt_prog_compiler_pic_F77 in
15060 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15063 lt_prog_compiler_pic_F77=
15064 lt_prog_compiler_can_build_shared_F77=no
15069 # For platforms which do not support PIC, -DPIC is meaningless:
15071 lt_prog_compiler_pic_F77=
15074 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15079 # Check to make sure the static flag actually works.
15081 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15082 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15083 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15084 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 lt_prog_compiler_static_works_F77=no
15088 save_LDFLAGS="$LDFLAGS"
15089 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15090 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15092 # The linker can only warn and ignore the option if not recognized
15093 # So say no if there are warnings
15094 if test -s conftest.err; then
15095 # Append any errors to the config.log.
15096 cat conftest.err 1>&5
15097 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15099 if diff conftest.exp conftest.er2 >/dev/null; then
15100 lt_prog_compiler_static_works_F77=yes
15103 lt_prog_compiler_static_works_F77=yes
15107 LDFLAGS="$save_LDFLAGS"
15110 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15111 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15113 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15116 lt_prog_compiler_static_F77=
15120 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15121 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15122 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 lt_cv_prog_compiler_c_o_F77=no
15126 $rm -r conftest 2>/dev/null
15130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15132 lt_compiler_flag="-o out/conftest2.$ac_objext"
15133 # Insert the option either (1) after the last *FLAGS variable, or
15134 # (2) before a word containing "conftest.", or (3) at the end.
15135 # Note that $ac_compile itself does not contain backslashes and begins
15136 # with a dollar sign (not a hyphen), so the echo should work correctly.
15137 lt_compile=`echo "$ac_compile" | $SED \
15138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140 -e 's:$: $lt_compiler_flag:'`
15141 (eval echo "\"\$as_me:15141: $lt_compile\"" >&5)
15142 (eval "$lt_compile" 2>out/conftest.err)
15144 cat out/conftest.err >&5
15145 echo "$as_me:15145: \$? = $ac_status" >&5
15146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15148 # The compiler can only warn and ignore the option if not recognized
15149 # So say no if there are warnings
15150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15153 lt_cv_prog_compiler_c_o_F77=yes
15158 # SGI C++ compiler will create directory out/ii_files/ for
15159 # template instantiation
15160 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15161 $rm out/* && rmdir out
15167 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15168 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15171 hard_links="nottested"
15172 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15173 # do not overwrite the value of need_locks provided by the user
15174 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15175 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 ln conftest.a conftest.b 2>&5 || hard_links=no
15181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182 { echo "$as_me:$LINENO: result: $hard_links" >&5
15183 echo "${ECHO_T}$hard_links" >&6; }
15184 if test "$hard_links" = no; then
15185 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15186 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15193 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15194 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15197 allow_undefined_flag_F77=
15198 enable_shared_with_static_runtimes_F77=no
15200 archive_expsym_cmds_F77=
15201 old_archive_From_new_cmds_F77=
15202 old_archive_from_expsyms_cmds_F77=
15203 export_dynamic_flag_spec_F77=
15204 whole_archive_flag_spec_F77=
15205 thread_safe_flag_spec_F77=
15206 hardcode_libdir_flag_spec_F77=
15207 hardcode_libdir_flag_spec_ld_F77=
15208 hardcode_libdir_separator_F77=
15209 hardcode_direct_F77=no
15210 hardcode_minus_L_F77=no
15211 hardcode_shlibpath_var_F77=unsupported
15212 link_all_deplibs_F77=unknown
15213 hardcode_automatic_F77=no
15215 module_expsym_cmds_F77=
15216 always_export_symbols_F77=no
15217 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15218 # include_expsyms should be a list of space-separated symbols to be *always*
15219 # included in the symbol list
15220 include_expsyms_F77=
15221 # exclude_expsyms can be an extended regexp of symbols to exclude
15222 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15223 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15224 # as well as any symbol that contains `d'.
15225 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15226 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15227 # platforms (ab)use it in PIC code, but their linkers get confused if
15228 # the symbol is explicitly referenced. Since portable code cannot
15229 # rely on this symbol name, it's probably fine to never include it in
15230 # preloaded symbol tables.
15231 extract_expsyms_cmds=
15232 # Just being paranoid about ensuring that cc_basename is set.
15233 for cc_temp in $compiler""; do
15235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15244 cygwin* | mingw* | pw32*)
15245 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15246 # When not using gcc, we currently assume that we are using
15247 # Microsoft Visual C++.
15248 if test "$GCC" != yes; then
15253 # we just hope/assume this is gcc and not c89 (= MSVC++)
15262 if test "$with_gnu_ld" = yes; then
15263 # If archive_cmds runs LD, not CC, wlarc should be empty
15266 # Set some defaults for GNU ld with shared library support. These
15267 # are reset later if shared libraries are not supported. Putting them
15268 # here allows them to be overridden if necessary.
15269 runpath_var=LD_RUN_PATH
15270 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15271 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15272 # ancient GNU ld didn't support --whole-archive et. al.
15273 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15274 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15276 whole_archive_flag_spec_F77=
15278 supports_anon_versioning=no
15279 case `$LD -v 2>/dev/null` in
15280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15283 *\ 2.11.*) ;; # other 2.11 versions
15284 *) supports_anon_versioning=yes ;;
15287 # See if GNU ld supports shared libraries.
15289 aix3* | aix4* | aix5*)
15290 # On AIX/PPC, the GNU linker is very broken
15291 if test "$host_cpu" != ia64; then
15295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15296 *** to be unable to reliably create shared libraries on AIX.
15297 *** Therefore, libtool is disabling shared libraries support. If you
15298 *** really care for shared libraries, you may want to modify your PATH
15299 *** so that a non-GNU linker is found, and then restart.
15306 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)'
15307 hardcode_libdir_flag_spec_F77='-L$libdir'
15308 hardcode_minus_L_F77=yes
15310 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15311 # that the semantics of dynamic libraries on AmigaOS, at least up
15312 # to version 4, is to share data among multiple programs linked
15313 # with the same dynamic library. Since this doesn't match the
15314 # behavior of shared libraries on other platforms, we can't use
15320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15321 allow_undefined_flag_F77=unsupported
15322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15323 # support --undefined. This deserves some investigation. FIXME
15324 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330 cygwin* | mingw* | pw32*)
15331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15332 # as there is no search path for DLLs.
15333 hardcode_libdir_flag_spec_F77='-L$libdir'
15334 allow_undefined_flag_F77=unsupported
15335 always_export_symbols_F77=no
15336 enable_shared_with_static_runtimes_F77=yes
15337 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15339 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15341 # If the export-symbols file already is a .def file (1st line
15342 # is EXPORTS), use it as is; otherwise, prepend...
15343 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15344 cp $export_symbols $output_objdir/$soname.def;
15346 echo EXPORTS > $output_objdir/$soname.def;
15347 cat $export_symbols >> $output_objdir/$soname.def;
15349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15356 hardcode_direct_F77=no
15357 hardcode_shlibpath_var_F77=no
15358 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15359 export_dynamic_flag_spec_F77='${wl}-E'
15360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15361 # Instead, shared libraries are loaded at an image base (0x10000000 by
15362 # default) and relocated if they conflict, which is a slow very memory
15363 # consuming and fragmenting process. To avoid this, we pick a random,
15364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15365 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15366 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'
15367 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'
15370 linux* | k*bsd*-gnu)
15371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15373 case $cc_basename,$host_cpu in
15374 pgcc*) # Portland Group C compiler
15375 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'
15376 tmp_addflag=' $pic_flag'
15378 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15379 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'
15380 tmp_addflag=' $pic_flag -Mnomain' ;;
15381 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15382 tmp_addflag=' -i_dynamic' ;;
15383 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15384 tmp_addflag=' -i_dynamic -nofor_main' ;;
15385 ifc* | ifort*) # Intel Fortran compiler
15386 tmp_addflag=' -nofor_main' ;;
15388 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15390 if test $supports_anon_versioning = yes; then
15391 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15393 $echo "local: *; };" >> $output_objdir/$libname.ver~
15394 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15396 link_all_deplibs_F77=no
15402 netbsd* | netbsdelf*-gnu)
15403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15404 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15407 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15413 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15418 *** create shared libraries on Solaris systems. Therefore, libtool
15419 *** is disabling shared libraries support. We urge you to upgrade GNU
15420 *** binutils to release 2.9.1 or newer. Another option is to modify
15421 *** your PATH or compiler configuration so that the native linker is
15422 *** used, and then restart.
15425 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15434 case `$LD -v 2>&1` in
15435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15440 *** reliably create shared libraries on SCO systems. Therefore, libtool
15441 *** is disabling shared libraries support. We urge you to upgrade GNU
15442 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15443 *** your PATH or compiler configuration so that the native linker is
15444 *** used, and then restart.
15449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15451 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15452 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15461 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_direct_F77=yes
15464 hardcode_shlibpath_var_F77=no
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15477 if test "$ld_shlibs_F77" = no; then
15479 hardcode_libdir_flag_spec_F77=
15480 export_dynamic_flag_spec_F77=
15481 whole_archive_flag_spec_F77=
15484 # PORTME fill in a description of your system's linker (not GNU ld)
15487 allow_undefined_flag_F77=unsupported
15488 always_export_symbols_F77=yes
15489 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'
15490 # Note: this linker hardcodes the directories in LIBPATH if there
15491 # are no directories specified by -L.
15492 hardcode_minus_L_F77=yes
15493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15494 # Neither direct hardcoding nor static linking is supported with a
15496 hardcode_direct_F77=unsupported
15501 if test "$host_cpu" = ia64; then
15502 # On IA64, the linker does run time linking by default, so we don't
15503 # have to do anything special.
15504 aix_use_runtimelinking=no
15505 exp_sym_flag='-Bexport'
15508 # If we're using GNU nm, then we don't want the "-C" option.
15509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15510 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15511 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'
15513 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'
15515 aix_use_runtimelinking=no
15517 # Test if we are trying to use run time linking or normal
15518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15519 # need to do runtime linking.
15520 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15521 for ld_flag in $LDFLAGS; do
15522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15523 aix_use_runtimelinking=yes
15530 exp_sym_flag='-bexport'
15531 no_entry_flag='-bnoentry'
15534 # When large executables or shared objects are built, AIX ld can
15535 # have problems creating the table of contents. If linking a library
15536 # or program results in "error TOC overflow" add -mminimal-toc to
15537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15540 archive_cmds_F77=''
15541 hardcode_direct_F77=yes
15542 hardcode_libdir_separator_F77=':'
15543 link_all_deplibs_F77=yes
15545 if test "$GCC" = yes; then
15546 case $host_os in aix4.[012]|aix4.[012].*)
15547 # We only want to do this on AIX 4.2 and lower, the check
15548 # below for broken collect2 doesn't work under 4.3+
15549 collect2name=`${CC} -print-prog-name=collect2`
15550 if test -f "$collect2name" && \
15551 strings "$collect2name" | grep resolve_lib_name >/dev/null
15553 # We have reworked collect2
15554 hardcode_direct_F77=yes
15556 # We have old collect2
15557 hardcode_direct_F77=unsupported
15558 # It fails to find uninstalled libraries when the uninstalled
15559 # path is not listed in the libpath. Setting hardcode_minus_L
15560 # to unsupported forces relinking
15561 hardcode_minus_L_F77=yes
15562 hardcode_libdir_flag_spec_F77='-L$libdir'
15563 hardcode_libdir_separator_F77=
15567 shared_flag='-shared'
15568 if test "$aix_use_runtimelinking" = yes; then
15569 shared_flag="$shared_flag "'${wl}-G'
15573 if test "$host_cpu" = ia64; then
15574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15575 # chokes on -Wl,-G. The following line is correct:
15578 if test "$aix_use_runtimelinking" = yes; then
15579 shared_flag='${wl}-G'
15581 shared_flag='${wl}-bM:SRE'
15586 # It seems that -bexpall does not export symbols beginning with
15587 # underscore (_), so it is better to generate a list of symbols to export.
15588 always_export_symbols_F77=yes
15589 if test "$aix_use_runtimelinking" = yes; then
15590 # Warning - without using the other runtime loading flags (-brtl),
15591 # -berok will link without error, but may produce a broken library.
15592 allow_undefined_flag_F77='-berok'
15593 # Determine the default libpath from the value encoded in an empty executable.
15594 cat >conftest.$ac_ext <<_ACEOF
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest$ac_exeext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15623 # Check for a 64-bit object if we didn't find anything.
15624 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; }
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15633 rm -f conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15637 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15638 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"
15640 if test "$host_cpu" = ia64; then
15641 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15642 allow_undefined_flag_F77="-z nodefs"
15643 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"
15645 # Determine the default libpath from the value encoded in an empty executable.
15646 cat >conftest.$ac_ext <<_ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15653 (eval $ac_link) 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15675 # Check for a 64-bit object if we didn't find anything.
15676 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; }
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15685 rm -f conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15689 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15690 # Warning - without using the other run time loading flags,
15691 # -berok will link without error, but may produce a broken library.
15692 no_undefined_flag_F77=' ${wl}-bernotok'
15693 allow_undefined_flag_F77=' ${wl}-berok'
15694 # Exported symbols can be pulled into shared objects from archives
15695 whole_archive_flag_spec_F77='$convenience'
15696 archive_cmds_need_lc_F77=yes
15697 # This is similar to how AIX traditionally builds its shared libraries.
15698 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'
15704 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)'
15705 hardcode_libdir_flag_spec_F77='-L$libdir'
15706 hardcode_minus_L_F77=yes
15707 # see comment about different semantics on the GNU ld section
15712 export_dynamic_flag_spec_F77=-rdynamic
15715 cygwin* | mingw* | pw32*)
15716 # When not using gcc, we currently assume that we are using
15717 # Microsoft Visual C++.
15718 # hardcode_libdir_flag_spec is actually meaningless, as there is
15719 # no search path for DLLs.
15720 hardcode_libdir_flag_spec_F77=' '
15721 allow_undefined_flag_F77=unsupported
15722 # Tell ltmain to make .lib files, not .a files.
15724 # Tell ltmain to make .dll files, not .so files.
15726 # FIXME: Setting linknames here is a bad hack.
15727 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15728 # The linker will automatically build a .lib file if we build a DLL.
15729 old_archive_From_new_cmds_F77='true'
15730 # FIXME: Should let the user specify the lib program.
15731 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15732 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15733 enable_shared_with_static_runtimes_F77=yes
15736 darwin* | rhapsody*)
15738 rhapsody* | darwin1.[012])
15739 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15742 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15743 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15745 case ${MACOSX_DEPLOYMENT_TARGET} in
15747 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15750 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15756 archive_cmds_need_lc_F77=no
15757 hardcode_direct_F77=no
15758 hardcode_automatic_F77=yes
15759 hardcode_shlibpath_var_F77=unsupported
15760 whole_archive_flag_spec_F77=''
15761 link_all_deplibs_F77=yes
15762 if test "$GCC" = yes ; then
15763 output_verbose_link_cmd='echo'
15764 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15765 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15767 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}'
15768 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}'
15770 case $cc_basename in
15772 output_verbose_link_cmd='echo'
15773 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15774 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15776 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}'
15777 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}'
15787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 hardcode_libdir_flag_spec_F77='-L$libdir'
15789 hardcode_shlibpath_var_F77=no
15796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15797 # support. Future versions do this automatically, but an explicit c++rt0.o
15798 # does not break anything, and helps significantly (at the cost of a little
15801 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15802 hardcode_libdir_flag_spec_F77='-R$libdir'
15803 hardcode_direct_F77=yes
15804 hardcode_shlibpath_var_F77=no
15807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_direct_F77=yes
15811 hardcode_minus_L_F77=yes
15812 hardcode_shlibpath_var_F77=no
15815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15816 freebsd* | dragonfly*)
15817 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15818 hardcode_libdir_flag_spec_F77='-R$libdir'
15819 hardcode_direct_F77=yes
15820 hardcode_shlibpath_var_F77=no
15824 if test "$GCC" = yes; then
15825 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'
15827 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'
15829 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15830 hardcode_libdir_separator_F77=:
15831 hardcode_direct_F77=yes
15833 # hardcode_minus_L: Not really in the search PATH,
15834 # but as the default location of the library.
15835 hardcode_minus_L_F77=yes
15836 export_dynamic_flag_spec_F77='${wl}-E'
15840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15845 if test "$with_gnu_ld" = no; then
15846 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15847 hardcode_libdir_separator_F77=:
15849 hardcode_direct_F77=yes
15850 export_dynamic_flag_spec_F77='${wl}-E'
15852 # hardcode_minus_L: Not really in the search PATH,
15853 # but as the default location of the library.
15854 hardcode_minus_L_F77=yes
15859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15862 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15884 if test "$with_gnu_ld" = no; then
15885 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15886 hardcode_libdir_separator_F77=:
15890 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15891 hardcode_direct_F77=no
15892 hardcode_shlibpath_var_F77=no
15895 hardcode_direct_F77=yes
15896 export_dynamic_flag_spec_F77='${wl}-E'
15898 # hardcode_minus_L: Not really in the search PATH,
15899 # but as the default location of the library.
15900 hardcode_minus_L_F77=yes
15906 irix5* | irix6* | nonstopux*)
15907 if test "$GCC" = yes; then
15908 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'
15910 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'
15911 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15914 hardcode_libdir_separator_F77=:
15915 link_all_deplibs_F77=yes
15918 netbsd* | netbsdelf*-gnu)
15919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15920 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15922 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15924 hardcode_libdir_flag_spec_F77='-R$libdir'
15925 hardcode_direct_F77=yes
15926 hardcode_shlibpath_var_F77=no
15930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931 hardcode_direct_F77=yes
15932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15933 hardcode_libdir_separator_F77=:
15934 hardcode_shlibpath_var_F77=no
15938 hardcode_direct_F77=yes
15939 hardcode_shlibpath_var_F77=no
15940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15941 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15942 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15943 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15944 export_dynamic_flag_spec_F77='${wl}-E'
15947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15948 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15949 hardcode_libdir_flag_spec_F77='-R$libdir'
15952 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15953 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15960 hardcode_libdir_flag_spec_F77='-L$libdir'
15961 hardcode_minus_L_F77=yes
15962 allow_undefined_flag_F77=unsupported
15963 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'
15964 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968 if test "$GCC" = yes; then
15969 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15970 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'
15972 allow_undefined_flag_F77=' -expect_unresolved \*'
15973 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'
15975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator_F77=:
15979 osf4* | osf5*) # as osf3* with the addition of -msym flag
15980 if test "$GCC" = yes; then
15981 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15982 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'
15983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15985 allow_undefined_flag_F77=' -expect_unresolved \*'
15986 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'
15987 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~
15988 $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'
15990 # Both c and cxx compiler support -rpath directly
15991 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15993 hardcode_libdir_separator_F77=:
15997 no_undefined_flag_F77=' -z text'
15998 if test "$GCC" = yes; then
16000 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16001 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16002 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16005 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16006 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16009 hardcode_libdir_flag_spec_F77='-R$libdir'
16010 hardcode_shlibpath_var_F77=no
16012 solaris2.[0-5] | solaris2.[0-5].*) ;;
16014 # The compiler driver will combine linker options so we
16015 # cannot just pass the convience library names through
16016 # without $wl, iff we do not link with $LD.
16017 # Luckily, gcc supports the same syntax we need for Sun Studio.
16018 # Supported since Solaris 2.6 (maybe 2.5.1?)
16021 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16023 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' ;;
16026 link_all_deplibs_F77=yes
16030 if test "x$host_vendor" = xsequent; then
16031 # Use $CC to link under sequent, because it throws in some extra .o
16032 # files that make .init and .fini sections work.
16033 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16035 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16037 hardcode_libdir_flag_spec_F77='-L$libdir'
16038 hardcode_direct_F77=yes
16039 hardcode_minus_L_F77=yes
16040 hardcode_shlibpath_var_F77=no
16044 case $host_vendor in
16046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_direct_F77=yes # is this really true???
16050 ## LD is ld it makes a PLAMLIB
16051 ## CC just makes a GrossModule.
16052 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16053 reload_cmds_F77='$CC -r -o $output$reload_objs'
16054 hardcode_direct_F77=no
16057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16061 runpath_var='LD_RUN_PATH'
16062 hardcode_shlibpath_var_F77=no
16066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_shlibpath_var_F77=no
16068 export_dynamic_flag_spec_F77='-Bexport'
16072 if test -d /usr/nec; then
16073 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_shlibpath_var_F77=no
16075 runpath_var=LD_RUN_PATH
16076 hardcode_runpath_var=yes
16081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16082 no_undefined_flag_F77='${wl}-z,text'
16083 archive_cmds_need_lc_F77=no
16084 hardcode_shlibpath_var_F77=no
16085 runpath_var='LD_RUN_PATH'
16087 if test "$GCC" = yes; then
16088 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096 sysv5* | sco3.2v5* | sco5v6*)
16097 # Note: We can NOT use -z defs as we might desire, because we do not
16098 # link with -lc, and that would cause any symbols used from libc to
16099 # always be unresolved, which means just about no library would
16100 # ever link correctly. If we're not using GNU ld we use -z text
16101 # though, which does catch some bad symbols but isn't as heavy-handed
16103 no_undefined_flag_F77='${wl}-z,text'
16104 allow_undefined_flag_F77='${wl}-z,nodefs'
16105 archive_cmds_need_lc_F77=no
16106 hardcode_shlibpath_var_F77=no
16107 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16108 hardcode_libdir_separator_F77=':'
16109 link_all_deplibs_F77=yes
16110 export_dynamic_flag_spec_F77='${wl}-Bexport'
16111 runpath_var='LD_RUN_PATH'
16113 if test "$GCC" = yes; then
16114 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16115 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_libdir_flag_spec_F77='-L$libdir'
16125 hardcode_shlibpath_var_F77=no
16134 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16135 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16136 test "$ld_shlibs_F77" = no && can_build_shared=no
16139 # Do we need to explicitly link libc?
16141 case "x$archive_cmds_need_lc_F77" in
16143 # Assume -lc should be added
16144 archive_cmds_need_lc_F77=yes
16146 if test "$enable_shared" = yes && test "$GCC" = yes; then
16147 case $archive_cmds_F77 in
16149 # FIXME: we may have to deal with multi-command sequences.
16152 # Test whether the compiler implicitly links with -lc since on some
16153 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16154 # to ld, don't add -lc before -lgcc.
16155 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16156 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161 (eval $ac_compile) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } 2>conftest.err; then
16167 libobjs=conftest.$ac_objext
16169 wl=$lt_prog_compiler_wl_F77
16170 pic_flag=$lt_prog_compiler_pic_F77
16176 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16177 allow_undefined_flag_F77=
16178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16179 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }
16184 archive_cmds_need_lc_F77=no
16186 archive_cmds_need_lc_F77=yes
16188 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16190 cat conftest.err 1>&5
16193 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16194 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16201 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16202 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16203 library_names_spec=
16204 libname_spec='lib$name'
16208 postuninstall_cmds=
16212 shlibpath_overrides_runpath=unknown
16214 dynamic_linker="$host_os ld.so"
16215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16216 if test "$GCC" = yes; then
16217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16218 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16219 # if the path contains ";" then we assume it to be the separator
16220 # otherwise default to the standard path separator (i.e. ":") - it is
16221 # assumed that no part of a normal pathname contains ";" but that should
16222 # okay in the real world where ";" in dirpaths is itself problematic.
16223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16228 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16230 need_lib_prefix=unknown
16231 hardcode_into_libs=no
16233 # when you set need_version to no, make sure it does not cause -set_version
16234 # flags to be left without arguments
16235 need_version=unknown
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16241 shlibpath_var=LIBPATH
16243 # AIX 3 has no versioning support, so we append a major version to the name.
16244 soname_spec='${libname}${release}${shared_ext}$major'
16251 hardcode_into_libs=yes
16252 if test "$host_cpu" = ia64; then
16253 # AIX 5 supports IA64
16254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16255 shlibpath_var=LD_LIBRARY_PATH
16257 # With GCC up to 2.95.x, collect2 would create an import file
16258 # for dependence libraries. The import file would start with
16259 # the line `#! .'. This would cause the generated library to
16260 # depend on `.', always an invalid library. This was fixed in
16261 # development snapshots of GCC prior to 3.0.
16263 aix4 | aix4.[01] | aix4.[01].*)
16264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16266 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16269 can_build_shared=no
16273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16274 # soname into executable. Probably we can add versioning support to
16275 # collect2, so additional links can be useful in future.
16276 if test "$aix_use_runtimelinking" = yes; then
16277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16278 # instead of lib<name>.a to let people know that these are not
16279 # typical AIX shared libraries.
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 # We preserve .a as extension for shared libraries through AIX4.2
16283 # and later when we are not doing run time linking.
16284 library_names_spec='${libname}${release}.a $libname.a'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16287 shlibpath_var=LIBPATH
16292 library_names_spec='$libname.ixlibrary $libname.a'
16293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16294 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'
16298 library_names_spec='${libname}${shared_ext}'
16299 dynamic_linker="$host_os ld.so"
16300 shlibpath_var=LIBRARY_PATH
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16312 # the default ld.so.conf also contains /usr/contrib/lib and
16313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16314 # libtool to hard-code these into programs
16317 cygwin* | mingw* | pw32*)
16318 version_type=windows
16323 case $GCC,$host_os in
16324 yes,cygwin* | yes,mingw* | yes,pw32*)
16325 library_names_spec='$libname.dll.a'
16326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16327 postinstall_cmds='base_file=`basename \${file}`~
16328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16329 dldir=$destdir/`dirname \$dlpath`~
16330 test -d \$dldir || mkdir -p \$dldir~
16331 $install_prog $dir/$dlname \$dldir/$dlname~
16332 chmod a+x \$dldir/$dlname'
16333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16334 dlpath=$dir/\$dldll~
16336 shlibpath_overrides_runpath=yes
16340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16345 # MinGW DLLs use traditional 'lib' prefix
16346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16349 # It is most probably a Windows format PATH printed by
16350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16351 # path with ; separators, and with drive letters. We can handle the
16352 # drive letters (cygwin fileutils understands them), so leave them,
16353 # especially as we might pass files found there to a mingw objdump,
16354 # which wouldn't understand a cygwinified path. Ahh.
16355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 # pw32 DLLs use 'pw' prefix rather than 'lib'
16362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16371 dynamic_linker='Win32 ld.exe'
16372 # FIXME: first we should search . and the directory the executable is in
16376 darwin* | rhapsody*)
16377 dynamic_linker="$host_os dyld"
16378 version_type=darwin
16381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16382 soname_spec='${libname}${release}${major}$shared_ext'
16383 shlibpath_overrides_runpath=yes
16384 shlibpath_var=DYLD_LIBRARY_PATH
16385 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16386 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16387 if test "$GCC" = yes; then
16388 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"`
16390 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16408 freebsd* | dragonfly*)
16409 # DragonFly does not have aout. When/if they implement a new
16410 # versioning mechanism, adjust this.
16411 if test -x /usr/bin/objformat; then
16412 objformat=`/usr/bin/objformat`
16415 freebsd[123]*) objformat=aout ;;
16416 *) objformat=elf ;;
16419 version_type=freebsd-$objformat
16420 case $version_type in
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16431 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=yes
16436 freebsd3.[01]* | freebsdelf3.[01]*)
16437 shlibpath_overrides_runpath=yes
16438 hardcode_into_libs=yes
16440 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16441 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16442 shlibpath_overrides_runpath=no
16443 hardcode_into_libs=yes
16445 freebsd*) # from 4.6 on
16446 shlibpath_overrides_runpath=yes
16447 hardcode_into_libs=yes
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16457 soname_spec='${libname}${release}${shared_ext}$major'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 hardcode_into_libs=yes
16462 hpux9* | hpux10* | hpux11*)
16463 # Give a soname corresponding to the major version so that dld.sl refuses to
16464 # link against other versions.
16471 hardcode_into_libs=yes
16472 dynamic_linker="$host_os dld.so"
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 if test "X$HPUX_IA64_MODE" = X32; then
16478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16486 hardcode_into_libs=yes
16487 dynamic_linker="$host_os dld.sl"
16488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16497 dynamic_linker="$host_os dld.sl"
16498 shlibpath_var=SHLIB_PATH
16499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16504 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16505 postinstall_cmds='chmod 555 $lib'
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 shlibpath_overrides_runpath=no
16517 hardcode_into_libs=yes
16520 irix5* | irix6* | nonstopux*)
16522 nonstopux*) version_type=nonstopux ;;
16524 if test "$lt_cv_prog_gnu_ld" = yes; then
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16535 irix5* | nonstopux*)
16536 libsuff= shlibsuff=
16539 case $LD in # libtool.m4 will add one of these switches to LD
16540 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16541 libsuff= shlibsuff= libmagic=32-bit;;
16542 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16543 libsuff=32 shlibsuff=N32 libmagic=N32;;
16544 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16545 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16546 *) libsuff= shlibsuff= libmagic=never-match;;
16550 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16551 shlibpath_overrides_runpath=no
16552 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16553 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16554 hardcode_into_libs=yes
16557 # No shared lib support for Linux oldld, aout, or coff.
16558 linux*oldld* | linux*aout* | linux*coff*)
16562 # This must be Linux ELF.
16563 linux* | k*bsd*-gnu)
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 # This implies no fast_install, which is unacceptable.
16573 # Some rework will be needed to allow for fast_install
16574 # before this can be enabled.
16575 hardcode_into_libs=yes
16577 # Append ld.so.conf contents to the search path
16578 if test -f /etc/ld.so.conf; then
16579 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' ' '`
16580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16583 # We used to test for /lib/ld.so.1 and disable shared libraries on
16584 # powerpc, because MkLinux only supported shared libraries with the
16585 # GNU dynamic linker. Since this was broken with cross compilers,
16586 # most powerpc-linux boxes support dynamic linking these days and
16587 # people can always --disable-shared, the test was removed, and we
16588 # assume the GNU/Linux dynamic linker is in use.
16589 dynamic_linker='GNU/Linux ld.so'
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=no
16600 hardcode_into_libs=yes
16601 dynamic_linker='NetBSD ld.elf_so'
16608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16611 dynamic_linker='NetBSD (a.out) ld.so'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 dynamic_linker='NetBSD ld.elf_so'
16617 shlibpath_var=LD_LIBRARY_PATH
16618 shlibpath_overrides_runpath=yes
16619 hardcode_into_libs=yes
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=yes
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes
16641 sys_lib_dlsearch_path_spec="/usr/lib"
16643 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16645 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16646 *) need_version=no ;;
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16653 openbsd2.[89] | openbsd2.[89].*)
16654 shlibpath_overrides_runpath=no
16657 shlibpath_overrides_runpath=yes
16661 shlibpath_overrides_runpath=yes
16666 libname_spec='$name'
16669 library_names_spec='$libname${shared_ext} $libname.a'
16670 dynamic_linker='OS/2 ld.exe'
16671 shlibpath_var=LIBPATH
16674 osf3* | osf4* | osf5*)
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 shlibpath_var=LD_LIBRARY_PATH
16692 shlibpath_overrides_runpath=yes
16693 hardcode_into_libs=yes
16694 # ldd complains unless libraries are executable
16695 postinstall_cmds='chmod +x $lib'
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=yes
16704 if test "$with_gnu_ld" = yes; then
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 case $host_vendor in
16717 shlibpath_overrides_runpath=no
16719 export_dynamic_flag_spec='${wl}-Blargedynsym'
16720 runpath_var=LD_RUN_PATH
16728 shlibpath_overrides_runpath=no
16729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16735 if test -d /usr/nec ;then
16737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16738 soname_spec='$libname${shared_ext}.$major'
16739 shlibpath_var=LD_LIBRARY_PATH
16743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16744 version_type=freebsd-elf
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 hardcode_into_libs=yes
16751 if test "$with_gnu_ld" = yes; then
16752 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16753 shlibpath_overrides_runpath=no
16755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16756 shlibpath_overrides_runpath=yes
16759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16763 sys_lib_dlsearch_path_spec='/usr/lib'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 shlibpath_var=LD_LIBRARY_PATH
16777 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16778 echo "${ECHO_T}$dynamic_linker" >&6; }
16779 test "$dynamic_linker" = no && can_build_shared=no
16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782 if test "$GCC" = yes; then
16783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16786 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16788 hardcode_action_F77=
16789 if test -n "$hardcode_libdir_flag_spec_F77" || \
16790 test -n "$runpath_var_F77" || \
16791 test "X$hardcode_automatic_F77" = "Xyes" ; then
16793 # We can hardcode non-existant directories.
16794 if test "$hardcode_direct_F77" != no &&
16795 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16796 # have to relink, otherwise we might link with an installed library
16797 # when we should be linking with a yet-to-be-installed one
16798 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16799 test "$hardcode_minus_L_F77" != no; then
16800 # Linking always hardcodes the temporary library directory.
16801 hardcode_action_F77=relink
16803 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16804 hardcode_action_F77=immediate
16807 # We cannot hardcode anything, or else we can only hardcode existing
16809 hardcode_action_F77=unsupported
16811 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16812 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16814 if test "$hardcode_action_F77" = relink; then
16815 # Fast installation is not supported
16816 enable_fast_install=no
16817 elif test "$shlibpath_overrides_runpath" = yes ||
16818 test "$enable_shared" = no; then
16819 # Fast installation is not necessary
16820 enable_fast_install=needless
16824 # The else clause should only fire when bootstrapping the
16825 # libtool distribution, otherwise you forgot to ship ltmain.sh
16826 # with your package, and you will get complaints that there are
16827 # no rules to generate ltmain.sh.
16828 if test -f "$ltmain"; then
16829 # See if we are running on zsh, and set the options which allow our commands through
16830 # without removal of \ escapes.
16831 if test -n "${ZSH_VERSION+set}" ; then
16832 setopt NO_GLOB_SUBST
16834 # Now quote all the things that may contain metacharacters while being
16835 # careful not to overquote the AC_SUBSTed values. We take copies of the
16836 # variables and quote the copies for generation of the libtool script.
16837 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16839 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16840 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16841 deplibs_check_method reload_flag reload_cmds need_locks \
16842 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16843 lt_cv_sys_global_symbol_to_c_name_address \
16844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16845 old_postinstall_cmds old_postuninstall_cmds \
16849 lt_prog_compiler_wl_F77 \
16850 lt_prog_compiler_pic_F77 \
16851 lt_prog_compiler_static_F77 \
16852 lt_prog_compiler_no_builtin_flag_F77 \
16853 export_dynamic_flag_spec_F77 \
16854 thread_safe_flag_spec_F77 \
16855 whole_archive_flag_spec_F77 \
16856 enable_shared_with_static_runtimes_F77 \
16857 old_archive_cmds_F77 \
16858 old_archive_from_new_cmds_F77 \
16859 predep_objects_F77 \
16860 postdep_objects_F77 \
16863 compiler_lib_search_path_F77 \
16865 archive_expsym_cmds_F77 \
16866 postinstall_cmds_F77 \
16867 postuninstall_cmds_F77 \
16868 old_archive_from_expsyms_cmds_F77 \
16869 allow_undefined_flag_F77 \
16870 no_undefined_flag_F77 \
16871 export_symbols_cmds_F77 \
16872 hardcode_libdir_flag_spec_F77 \
16873 hardcode_libdir_flag_spec_ld_F77 \
16874 hardcode_libdir_separator_F77 \
16875 hardcode_automatic_F77 \
16877 module_expsym_cmds_F77 \
16878 lt_cv_prog_compiler_c_o_F77 \
16879 exclude_expsyms_F77 \
16880 include_expsyms_F77; do
16883 old_archive_cmds_F77 | \
16884 old_archive_from_new_cmds_F77 | \
16885 archive_cmds_F77 | \
16886 archive_expsym_cmds_F77 | \
16887 module_cmds_F77 | \
16888 module_expsym_cmds_F77 | \
16889 old_archive_from_expsyms_cmds_F77 | \
16890 export_symbols_cmds_F77 | \
16891 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16892 postinstall_cmds | postuninstall_cmds | \
16893 old_postinstall_cmds | old_postuninstall_cmds | \
16894 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16895 # Double-quote double-evaled strings.
16896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16899 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16905 *'\$0 --fallback-echo"')
16906 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16912 cat <<__EOF__ >> "$cfgfile"
16913 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16915 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16917 # Shell to use when invoking shell scripts.
16920 # Whether or not to build shared libraries.
16921 build_libtool_libs=$enable_shared
16923 # Whether or not to build static libraries.
16924 build_old_libs=$enable_static
16926 # Whether or not to add -lc for building shared libraries.
16927 build_libtool_need_lc=$archive_cmds_need_lc_F77
16929 # Whether or not to disallow shared libs when runtime libs are static
16930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16932 # Whether or not to optimize for fast installation.
16933 fast_install=$enable_fast_install
16936 host_alias=$host_alias
16940 # The build system.
16941 build_alias=$build_alias
16945 # An echo program that does not interpret backslashes.
16950 AR_FLAGS=$lt_AR_FLAGS
16955 # LTCC compiler flags.
16956 LTCFLAGS=$lt_LTCFLAGS
16958 # A language-specific compiler.
16959 CC=$lt_compiler_F77
16961 # Is the compiler the GNU C compiler?
16967 # The linker used to build libraries.
16970 # Whether we need hard or soft links.
16973 # A BSD-compatible nm program.
16976 # A symbol stripping program
16979 # Used to examine libraries when file_magic_cmd begins "file"
16980 MAGIC_CMD=$MAGIC_CMD
16982 # Used on cygwin: DLL creation program.
16985 # Used on cygwin: object dumper.
16988 # Used on cygwin: assembler.
16991 # The name of the directory that contains temporary libtool files.
16994 # How to create reloadable object files.
16995 reload_flag=$lt_reload_flag
16996 reload_cmds=$lt_reload_cmds
16998 # How to pass a linker flag through the compiler.
16999 wl=$lt_lt_prog_compiler_wl_F77
17001 # Object file suffix (normally "o").
17002 objext="$ac_objext"
17004 # Old archive suffix (normally "a").
17007 # Shared library suffix (normally ".so").
17008 shrext_cmds='$shrext_cmds'
17010 # Executable file suffix (normally "").
17013 # Additional compiler flags for building library objects.
17014 pic_flag=$lt_lt_prog_compiler_pic_F77
17017 # What is the maximum length of a command?
17018 max_cmd_len=$lt_cv_sys_max_cmd_len
17020 # Does compiler simultaneously support -c and -o options?
17021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17023 # Must we lock files when doing compilation?
17024 need_locks=$lt_need_locks
17026 # Do we need the lib prefix for modules?
17027 need_lib_prefix=$need_lib_prefix
17029 # Do we need a version for libraries?
17030 need_version=$need_version
17032 # Whether dlopen is supported.
17033 dlopen_support=$enable_dlopen
17035 # Whether dlopen of programs is supported.
17036 dlopen_self=$enable_dlopen_self
17038 # Whether dlopen of statically linked programs is supported.
17039 dlopen_self_static=$enable_dlopen_self_static
17041 # Compiler flag to prevent dynamic linking.
17042 link_static_flag=$lt_lt_prog_compiler_static_F77
17044 # Compiler flag to turn off builtin functions.
17045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17047 # Compiler flag to allow reflexive dlopens.
17048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17050 # Compiler flag to generate shared objects directly from archives.
17051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17053 # Compiler flag to generate thread-safe objects.
17054 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17056 # Library versioning type.
17057 version_type=$version_type
17059 # Format of library name prefix.
17060 libname_spec=$lt_libname_spec
17062 # List of archive names. First name is the real one, the rest are links.
17063 # The last name is the one that the linker finds with -lNAME.
17064 library_names_spec=$lt_library_names_spec
17066 # The coded name of the library, if different from the real name.
17067 soname_spec=$lt_soname_spec
17069 # Commands used to build and install an old-style archive.
17071 old_archive_cmds=$lt_old_archive_cmds_F77
17072 old_postinstall_cmds=$lt_old_postinstall_cmds
17073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17075 # Create an old-style archive from a shared archive.
17076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17078 # Create a temporary old-style archive to link instead of a shared archive.
17079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17081 # Commands used to build and install a shared archive.
17082 archive_cmds=$lt_archive_cmds_F77
17083 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17084 postinstall_cmds=$lt_postinstall_cmds
17085 postuninstall_cmds=$lt_postuninstall_cmds
17087 # Commands used to build a loadable module (assumed same as above if empty)
17088 module_cmds=$lt_module_cmds_F77
17089 module_expsym_cmds=$lt_module_expsym_cmds_F77
17091 # Commands to strip libraries.
17092 old_striplib=$lt_old_striplib
17093 striplib=$lt_striplib
17095 # Dependencies to place before the objects being linked to create a
17097 predep_objects=$lt_predep_objects_F77
17099 # Dependencies to place after the objects being linked to create a
17101 postdep_objects=$lt_postdep_objects_F77
17103 # Dependencies to place before the objects being linked to create a
17105 predeps=$lt_predeps_F77
17107 # Dependencies to place after the objects being linked to create a
17109 postdeps=$lt_postdeps_F77
17111 # The library search path used internally by the compiler when linking
17112 # a shared library.
17113 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17115 # Method to check whether dependent libraries are shared objects.
17116 deplibs_check_method=$lt_deplibs_check_method
17118 # Command to use when deplibs_check_method == file_magic.
17119 file_magic_cmd=$lt_file_magic_cmd
17121 # Flag that allows shared libraries with undefined symbols to be built.
17122 allow_undefined_flag=$lt_allow_undefined_flag_F77
17124 # Flag that forces no undefined symbols.
17125 no_undefined_flag=$lt_no_undefined_flag_F77
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17130 # Same as above, but a single script fragment to be evaled but not shown.
17131 finish_eval=$lt_finish_eval
17133 # Take the output of nm and produce a listing of raw symbols and C names.
17134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17136 # Transform the output of nm in a proper C declaration
17137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17139 # Transform the output of nm in a C name address pair
17140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17142 # This is the shared library runtime path variable.
17143 runpath_var=$runpath_var
17145 # This is the shared library path variable.
17146 shlibpath_var=$shlibpath_var
17148 # Is shlibpath searched before the hard-coded library search path?
17149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17151 # How to hardcode a shared library path into an executable.
17152 hardcode_action=$hardcode_action_F77
17154 # Whether we should hardcode library paths into libraries.
17155 hardcode_into_libs=$hardcode_into_libs
17157 # Flag to hardcode \$libdir into a binary during linking.
17158 # This must work even if \$libdir does not exist.
17159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17161 # If ld is used when linking, flag to hardcode \$libdir into
17162 # a binary during linking. This must work even if \$libdir does
17164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17166 # Whether we need a single -rpath flag with a separated argument.
17167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17170 # resulting binary.
17171 hardcode_direct=$hardcode_direct_F77
17173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17174 # resulting binary.
17175 hardcode_minus_L=$hardcode_minus_L_F77
17177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17178 # the resulting binary.
17179 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17181 # Set to yes if building a shared library automatically hardcodes DIR into the library
17182 # and all subsequent libraries and executables linked against it.
17183 hardcode_automatic=$hardcode_automatic_F77
17185 # Variables whose values should be saved in libtool wrapper scripts and
17186 # restored at relink time.
17187 variables_saved_for_relink="$variables_saved_for_relink"
17189 # Whether libtool must link a program against all its dependency libraries.
17190 link_all_deplibs=$link_all_deplibs_F77
17192 # Compile-time system search path for libraries
17193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17195 # Run-time system search path for libraries
17196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17198 # Fix the shell variable \$srcfile for the compiler.
17199 fix_srcfile_path="$fix_srcfile_path_F77"
17201 # Set to yes if exported symbols are required.
17202 always_export_symbols=$always_export_symbols_F77
17204 # The commands to list exported symbols.
17205 export_symbols_cmds=$lt_export_symbols_cmds_F77
17207 # The commands to extract the exported symbol list from a shared archive.
17208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17210 # Symbols that should not be listed in the preloaded symbols.
17211 exclude_expsyms=$lt_exclude_expsyms_F77
17213 # Symbols that must always be exported.
17214 include_expsyms=$lt_include_expsyms_F77
17216 # ### END LIBTOOL TAG CONFIG: $tagname
17222 # If there is no Makefile yet, we rely on a make rule to execute
17223 # `config.status --recheck' to rerun these tests and create the
17224 # libtool script then.
17225 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17226 if test -f "$ltmain_in"; then
17227 test -f Makefile && make "$ltmain"
17233 ac_cpp='$CPP $CPPFLAGS'
17234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17246 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17249 # Source file extension for Java test sources.
17252 # Object file extension for compiled Java test sources.
17256 # Code to be used in simple compile tests
17257 lt_simple_compile_test_code="class foo {}\n"
17259 # Code to be used in simple link tests
17260 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17264 # If no C compiler was specified, use CC.
17267 # If no C compiler flags were specified, use CFLAGS.
17268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17270 # Allow CC to be a program name with arguments.
17274 # save warnings/boilerplate of simple test code
17275 ac_outfile=conftest.$ac_objext
17276 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17278 _lt_compiler_boilerplate=`cat conftest.err`
17281 ac_outfile=conftest.$ac_objext
17282 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17284 _lt_linker_boilerplate=`cat conftest.err`
17288 # Allow CC to be a program name with arguments.
17293 for cc_temp in $compiler""; do
17295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17304 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17305 archive_cmds_need_lc_GCJ=no
17307 old_archive_cmds_GCJ=$old_archive_cmds
17310 lt_prog_compiler_no_builtin_flag_GCJ=
17312 if test "$GCC" = yes; then
17313 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17316 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17317 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17318 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 lt_cv_prog_compiler_rtti_exceptions=no
17322 ac_outfile=conftest.$ac_objext
17323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17324 lt_compiler_flag="-fno-rtti -fno-exceptions"
17325 # Insert the option either (1) after the last *FLAGS variable, or
17326 # (2) before a word containing "conftest.", or (3) at the end.
17327 # Note that $ac_compile itself does not contain backslashes and begins
17328 # with a dollar sign (not a hyphen), so the echo should work correctly.
17329 # The option is referenced via a variable to avoid confusing sed.
17330 lt_compile=`echo "$ac_compile" | $SED \
17331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17333 -e 's:$: $lt_compiler_flag:'`
17334 (eval echo "\"\$as_me:17334: $lt_compile\"" >&5)
17335 (eval "$lt_compile" 2>conftest.err)
17337 cat conftest.err >&5
17338 echo "$as_me:17338: \$? = $ac_status" >&5
17339 if (exit $ac_status) && test -s "$ac_outfile"; then
17340 # The compiler can only warn and ignore the option if not recognized
17341 # So say no if there are warnings other than the usual output.
17342 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17345 lt_cv_prog_compiler_rtti_exceptions=yes
17351 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17352 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17354 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17355 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17362 lt_prog_compiler_wl_GCJ=
17363 lt_prog_compiler_pic_GCJ=
17364 lt_prog_compiler_static_GCJ=
17366 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17367 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17369 if test "$GCC" = yes; then
17370 lt_prog_compiler_wl_GCJ='-Wl,'
17371 lt_prog_compiler_static_GCJ='-static'
17375 # All AIX code is PIC.
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 now supports IA64 processor
17378 lt_prog_compiler_static_GCJ='-Bstatic'
17383 # FIXME: we need at least 68020 code to build shared libraries, but
17384 # adding the `-m68020' flag to GCC prevents building anything better,
17386 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17389 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17390 # PIC is the default for these OSes.
17393 mingw* | pw32* | os2*)
17394 # This hack is so that the source file can tell whether it is being
17395 # built for inclusion in a dll (and should export symbols for example).
17396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17399 darwin* | rhapsody*)
17400 # PIC is the default on this platform
17401 # Common symbols not allowed in MH_DYLIB files
17402 lt_prog_compiler_pic_GCJ='-fno-common'
17406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17407 # Instead, we relocate shared libraries at runtime.
17411 # Just because we use GCC doesn't mean we suddenly get shared libraries
17412 # on systems that don't support them.
17413 lt_prog_compiler_can_build_shared_GCJ=no
17418 if test -d /usr/nec; then
17419 lt_prog_compiler_pic_GCJ=-Kconform_pic
17424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17425 # not for PA HP-UX.
17431 lt_prog_compiler_pic_GCJ='-fPIC'
17437 lt_prog_compiler_pic_GCJ='-fPIC'
17441 # PORTME Check for flag to pass linker flags through the system compiler.
17444 lt_prog_compiler_wl_GCJ='-Wl,'
17445 if test "$host_cpu" = ia64; then
17446 # AIX 5 now supports IA64 processor
17447 lt_prog_compiler_static_GCJ='-Bstatic'
17449 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17453 # PIC is the default on this platform
17454 # Common symbols not allowed in MH_DYLIB files
17455 case $cc_basename in
17457 lt_prog_compiler_pic_GCJ='-qnocommon'
17458 lt_prog_compiler_wl_GCJ='-Wl,'
17463 mingw* | pw32* | os2*)
17464 # This hack is so that the source file can tell whether it is being
17465 # built for inclusion in a dll (and should export symbols for example).
17466 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17469 hpux9* | hpux10* | hpux11*)
17470 lt_prog_compiler_wl_GCJ='-Wl,'
17471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17472 # not for PA HP-UX.
17478 lt_prog_compiler_pic_GCJ='+Z'
17481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17482 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17485 irix5* | irix6* | nonstopux*)
17486 lt_prog_compiler_wl_GCJ='-Wl,'
17487 # PIC (with -KPIC) is the default.
17488 lt_prog_compiler_static_GCJ='-non_shared'
17492 lt_prog_compiler_pic_GCJ='-KPIC'
17493 lt_prog_compiler_static_GCJ='-Bstatic'
17496 linux* | k*bsd*-gnu)
17497 case $cc_basename in
17499 lt_prog_compiler_wl_GCJ='-Wl,'
17500 lt_prog_compiler_pic_GCJ='-KPIC'
17501 lt_prog_compiler_static_GCJ='-static'
17503 pgcc* | pgf77* | pgf90* | pgf95*)
17504 # Portland Group compilers (*not* the Pentium gcc compiler,
17505 # which looks to be a dead project)
17506 lt_prog_compiler_wl_GCJ='-Wl,'
17507 lt_prog_compiler_pic_GCJ='-fpic'
17508 lt_prog_compiler_static_GCJ='-Bstatic'
17511 lt_prog_compiler_wl_GCJ='-Wl,'
17512 # All Alpha code is PIC.
17513 lt_prog_compiler_static_GCJ='-non_shared'
17518 osf3* | osf4* | osf5*)
17519 lt_prog_compiler_wl_GCJ='-Wl,'
17520 # All OSF/1 code is PIC.
17521 lt_prog_compiler_static_GCJ='-non_shared'
17525 lt_prog_compiler_pic_GCJ='-KPIC'
17526 lt_prog_compiler_static_GCJ='-Bstatic'
17527 case $cc_basename in
17528 f77* | f90* | f95*)
17529 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17531 lt_prog_compiler_wl_GCJ='-Wl,';;
17536 lt_prog_compiler_wl_GCJ='-Qoption ld '
17537 lt_prog_compiler_pic_GCJ='-PIC'
17538 lt_prog_compiler_static_GCJ='-Bstatic'
17541 sysv4 | sysv4.2uw2* | sysv4.3*)
17542 lt_prog_compiler_wl_GCJ='-Wl,'
17543 lt_prog_compiler_pic_GCJ='-KPIC'
17544 lt_prog_compiler_static_GCJ='-Bstatic'
17548 if test -d /usr/nec ;then
17549 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17550 lt_prog_compiler_static_GCJ='-Bstatic'
17554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17555 lt_prog_compiler_wl_GCJ='-Wl,'
17556 lt_prog_compiler_pic_GCJ='-KPIC'
17557 lt_prog_compiler_static_GCJ='-Bstatic'
17561 lt_prog_compiler_wl_GCJ='-Wl,'
17562 lt_prog_compiler_can_build_shared_GCJ=no
17566 lt_prog_compiler_pic_GCJ='-pic'
17567 lt_prog_compiler_static_GCJ='-Bstatic'
17571 lt_prog_compiler_can_build_shared_GCJ=no
17576 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17577 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17580 # Check to make sure the PIC flag actually works.
17582 if test -n "$lt_prog_compiler_pic_GCJ"; then
17584 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17586 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 lt_prog_compiler_pic_works_GCJ=no
17590 ac_outfile=conftest.$ac_objext
17591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17592 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17593 # Insert the option either (1) after the last *FLAGS variable, or
17594 # (2) before a word containing "conftest.", or (3) at the end.
17595 # Note that $ac_compile itself does not contain backslashes and begins
17596 # with a dollar sign (not a hyphen), so the echo should work correctly.
17597 # The option is referenced via a variable to avoid confusing sed.
17598 lt_compile=`echo "$ac_compile" | $SED \
17599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17601 -e 's:$: $lt_compiler_flag:'`
17602 (eval echo "\"\$as_me:17602: $lt_compile\"" >&5)
17603 (eval "$lt_compile" 2>conftest.err)
17605 cat conftest.err >&5
17606 echo "$as_me:17606: \$? = $ac_status" >&5
17607 if (exit $ac_status) && test -s "$ac_outfile"; then
17608 # The compiler can only warn and ignore the option if not recognized
17609 # So say no if there are warnings other than the usual output.
17610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17613 lt_prog_compiler_pic_works_GCJ=yes
17619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17620 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17622 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17623 case $lt_prog_compiler_pic_GCJ in
17625 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17628 lt_prog_compiler_pic_GCJ=
17629 lt_prog_compiler_can_build_shared_GCJ=no
17634 # For platforms which do not support PIC, -DPIC is meaningless:
17636 lt_prog_compiler_pic_GCJ=
17639 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17644 # Check to make sure the static flag actually works.
17646 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17647 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17648 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17649 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 lt_prog_compiler_static_works_GCJ=no
17653 save_LDFLAGS="$LDFLAGS"
17654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17655 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17657 # The linker can only warn and ignore the option if not recognized
17658 # So say no if there are warnings
17659 if test -s conftest.err; then
17660 # Append any errors to the config.log.
17661 cat conftest.err 1>&5
17662 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17664 if diff conftest.exp conftest.er2 >/dev/null; then
17665 lt_prog_compiler_static_works_GCJ=yes
17668 lt_prog_compiler_static_works_GCJ=yes
17672 LDFLAGS="$save_LDFLAGS"
17675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17676 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17678 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17681 lt_prog_compiler_static_GCJ=
17685 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17686 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17687 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 lt_cv_prog_compiler_c_o_GCJ=no
17691 $rm -r conftest 2>/dev/null
17695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17697 lt_compiler_flag="-o out/conftest2.$ac_objext"
17698 # Insert the option either (1) after the last *FLAGS variable, or
17699 # (2) before a word containing "conftest.", or (3) at the end.
17700 # Note that $ac_compile itself does not contain backslashes and begins
17701 # with a dollar sign (not a hyphen), so the echo should work correctly.
17702 lt_compile=`echo "$ac_compile" | $SED \
17703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17705 -e 's:$: $lt_compiler_flag:'`
17706 (eval echo "\"\$as_me:17706: $lt_compile\"" >&5)
17707 (eval "$lt_compile" 2>out/conftest.err)
17709 cat out/conftest.err >&5
17710 echo "$as_me:17710: \$? = $ac_status" >&5
17711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17713 # The compiler can only warn and ignore the option if not recognized
17714 # So say no if there are warnings
17715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17718 lt_cv_prog_compiler_c_o_GCJ=yes
17723 # SGI C++ compiler will create directory out/ii_files/ for
17724 # template instantiation
17725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17726 $rm out/* && rmdir out
17732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17736 hard_links="nottested"
17737 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17738 # do not overwrite the value of need_locks provided by the user
17739 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17745 ln conftest.a conftest.b 2>&5 || hard_links=no
17746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17747 { echo "$as_me:$LINENO: result: $hard_links" >&5
17748 echo "${ECHO_T}$hard_links" >&6; }
17749 if test "$hard_links" = no; then
17750 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17758 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17762 allow_undefined_flag_GCJ=
17763 enable_shared_with_static_runtimes_GCJ=no
17765 archive_expsym_cmds_GCJ=
17766 old_archive_From_new_cmds_GCJ=
17767 old_archive_from_expsyms_cmds_GCJ=
17768 export_dynamic_flag_spec_GCJ=
17769 whole_archive_flag_spec_GCJ=
17770 thread_safe_flag_spec_GCJ=
17771 hardcode_libdir_flag_spec_GCJ=
17772 hardcode_libdir_flag_spec_ld_GCJ=
17773 hardcode_libdir_separator_GCJ=
17774 hardcode_direct_GCJ=no
17775 hardcode_minus_L_GCJ=no
17776 hardcode_shlibpath_var_GCJ=unsupported
17777 link_all_deplibs_GCJ=unknown
17778 hardcode_automatic_GCJ=no
17780 module_expsym_cmds_GCJ=
17781 always_export_symbols_GCJ=no
17782 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17783 # include_expsyms should be a list of space-separated symbols to be *always*
17784 # included in the symbol list
17785 include_expsyms_GCJ=
17786 # exclude_expsyms can be an extended regexp of symbols to exclude
17787 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17788 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17789 # as well as any symbol that contains `d'.
17790 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17792 # platforms (ab)use it in PIC code, but their linkers get confused if
17793 # the symbol is explicitly referenced. Since portable code cannot
17794 # rely on this symbol name, it's probably fine to never include it in
17795 # preloaded symbol tables.
17796 extract_expsyms_cmds=
17797 # Just being paranoid about ensuring that cc_basename is set.
17798 for cc_temp in $compiler""; do
17800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17809 cygwin* | mingw* | pw32*)
17810 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17811 # When not using gcc, we currently assume that we are using
17812 # Microsoft Visual C++.
17813 if test "$GCC" != yes; then
17818 # we just hope/assume this is gcc and not c89 (= MSVC++)
17827 if test "$with_gnu_ld" = yes; then
17828 # If archive_cmds runs LD, not CC, wlarc should be empty
17831 # Set some defaults for GNU ld with shared library support. These
17832 # are reset later if shared libraries are not supported. Putting them
17833 # here allows them to be overridden if necessary.
17834 runpath_var=LD_RUN_PATH
17835 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17836 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17837 # ancient GNU ld didn't support --whole-archive et. al.
17838 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17839 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17841 whole_archive_flag_spec_GCJ=
17843 supports_anon_versioning=no
17844 case `$LD -v 2>/dev/null` in
17845 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17848 *\ 2.11.*) ;; # other 2.11 versions
17849 *) supports_anon_versioning=yes ;;
17852 # See if GNU ld supports shared libraries.
17854 aix3* | aix4* | aix5*)
17855 # On AIX/PPC, the GNU linker is very broken
17856 if test "$host_cpu" != ia64; then
17860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17861 *** to be unable to reliably create shared libraries on AIX.
17862 *** Therefore, libtool is disabling shared libraries support. If you
17863 *** really care for shared libraries, you may want to modify your PATH
17864 *** so that a non-GNU linker is found, and then restart.
17871 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)'
17872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17873 hardcode_minus_L_GCJ=yes
17875 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17876 # that the semantics of dynamic libraries on AmigaOS, at least up
17877 # to version 4, is to share data among multiple programs linked
17878 # with the same dynamic library. Since this doesn't match the
17879 # behavior of shared libraries on other platforms, we can't use
17885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17886 allow_undefined_flag_GCJ=unsupported
17887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17888 # support --undefined. This deserves some investigation. FIXME
17889 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17895 cygwin* | mingw* | pw32*)
17896 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17897 # as there is no search path for DLLs.
17898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899 allow_undefined_flag_GCJ=unsupported
17900 always_export_symbols_GCJ=no
17901 enable_shared_with_static_runtimes_GCJ=yes
17902 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17904 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17906 # If the export-symbols file already is a .def file (1st line
17907 # is EXPORTS), use it as is; otherwise, prepend...
17908 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17909 cp $export_symbols $output_objdir/$soname.def;
17911 echo EXPORTS > $output_objdir/$soname.def;
17912 cat $export_symbols >> $output_objdir/$soname.def;
17914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17921 hardcode_direct_GCJ=no
17922 hardcode_shlibpath_var_GCJ=no
17923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17924 export_dynamic_flag_spec_GCJ='${wl}-E'
17925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17926 # Instead, shared libraries are loaded at an image base (0x10000000 by
17927 # default) and relocated if they conflict, which is a slow very memory
17928 # consuming and fragmenting process. To avoid this, we pick a random,
17929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17931 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'
17932 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'
17935 linux* | k*bsd*-gnu)
17936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17938 case $cc_basename,$host_cpu in
17939 pgcc*) # Portland Group C compiler
17940 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'
17941 tmp_addflag=' $pic_flag'
17943 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17944 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'
17945 tmp_addflag=' $pic_flag -Mnomain' ;;
17946 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17947 tmp_addflag=' -i_dynamic' ;;
17948 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17949 tmp_addflag=' -i_dynamic -nofor_main' ;;
17950 ifc* | ifort*) # Intel Fortran compiler
17951 tmp_addflag=' -nofor_main' ;;
17953 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17955 if test $supports_anon_versioning = yes; then
17956 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17958 $echo "local: *; };" >> $output_objdir/$libname.ver~
17959 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17961 link_all_deplibs_GCJ=no
17967 netbsd* | netbsdelf*-gnu)
17968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17969 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17973 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17978 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17982 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17983 *** create shared libraries on Solaris systems. Therefore, libtool
17984 *** is disabling shared libraries support. We urge you to upgrade GNU
17985 *** binutils to release 2.9.1 or newer. Another option is to modify
17986 *** your PATH or compiler configuration so that the native linker is
17987 *** used, and then restart.
17990 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17999 case `$LD -v 2>&1` in
18000 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18004 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18005 *** reliably create shared libraries on SCO systems. Therefore, libtool
18006 *** is disabling shared libraries support. We urge you to upgrade GNU
18007 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18008 *** your PATH or compiler configuration so that the native linker is
18009 *** used, and then restart.
18014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18015 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18017 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18026 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18028 hardcode_direct_GCJ=yes
18029 hardcode_shlibpath_var_GCJ=no
18033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18035 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18042 if test "$ld_shlibs_GCJ" = no; then
18044 hardcode_libdir_flag_spec_GCJ=
18045 export_dynamic_flag_spec_GCJ=
18046 whole_archive_flag_spec_GCJ=
18049 # PORTME fill in a description of your system's linker (not GNU ld)
18052 allow_undefined_flag_GCJ=unsupported
18053 always_export_symbols_GCJ=yes
18054 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'
18055 # Note: this linker hardcodes the directories in LIBPATH if there
18056 # are no directories specified by -L.
18057 hardcode_minus_L_GCJ=yes
18058 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18059 # Neither direct hardcoding nor static linking is supported with a
18061 hardcode_direct_GCJ=unsupported
18066 if test "$host_cpu" = ia64; then
18067 # On IA64, the linker does run time linking by default, so we don't
18068 # have to do anything special.
18069 aix_use_runtimelinking=no
18070 exp_sym_flag='-Bexport'
18073 # If we're using GNU nm, then we don't want the "-C" option.
18074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18075 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18076 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'
18078 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'
18080 aix_use_runtimelinking=no
18082 # Test if we are trying to use run time linking or normal
18083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18084 # need to do runtime linking.
18085 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18086 for ld_flag in $LDFLAGS; do
18087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18088 aix_use_runtimelinking=yes
18095 exp_sym_flag='-bexport'
18096 no_entry_flag='-bnoentry'
18099 # When large executables or shared objects are built, AIX ld can
18100 # have problems creating the table of contents. If linking a library
18101 # or program results in "error TOC overflow" add -mminimal-toc to
18102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18105 archive_cmds_GCJ=''
18106 hardcode_direct_GCJ=yes
18107 hardcode_libdir_separator_GCJ=':'
18108 link_all_deplibs_GCJ=yes
18110 if test "$GCC" = yes; then
18111 case $host_os in aix4.[012]|aix4.[012].*)
18112 # We only want to do this on AIX 4.2 and lower, the check
18113 # below for broken collect2 doesn't work under 4.3+
18114 collect2name=`${CC} -print-prog-name=collect2`
18115 if test -f "$collect2name" && \
18116 strings "$collect2name" | grep resolve_lib_name >/dev/null
18118 # We have reworked collect2
18119 hardcode_direct_GCJ=yes
18121 # We have old collect2
18122 hardcode_direct_GCJ=unsupported
18123 # It fails to find uninstalled libraries when the uninstalled
18124 # path is not listed in the libpath. Setting hardcode_minus_L
18125 # to unsupported forces relinking
18126 hardcode_minus_L_GCJ=yes
18127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18128 hardcode_libdir_separator_GCJ=
18132 shared_flag='-shared'
18133 if test "$aix_use_runtimelinking" = yes; then
18134 shared_flag="$shared_flag "'${wl}-G'
18138 if test "$host_cpu" = ia64; then
18139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18140 # chokes on -Wl,-G. The following line is correct:
18143 if test "$aix_use_runtimelinking" = yes; then
18144 shared_flag='${wl}-G'
18146 shared_flag='${wl}-bM:SRE'
18151 # It seems that -bexpall does not export symbols beginning with
18152 # underscore (_), so it is better to generate a list of symbols to export.
18153 always_export_symbols_GCJ=yes
18154 if test "$aix_use_runtimelinking" = yes; then
18155 # Warning - without using the other runtime loading flags (-brtl),
18156 # -berok will link without error, but may produce a broken library.
18157 allow_undefined_flag_GCJ='-berok'
18158 # Determine the default libpath from the value encoded in an empty executable.
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176 (eval $ac_link) 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18198 # Check for a 64-bit object if we didn't find anything.
18199 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; }
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18208 rm -f conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18212 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18213 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"
18215 if test "$host_cpu" = ia64; then
18216 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18217 allow_undefined_flag_GCJ="-z nodefs"
18218 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"
18220 # Determine the default libpath from the value encoded in an empty executable.
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18236 rm -f conftest.$ac_objext conftest$ac_exeext
18237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18238 (eval $ac_link) 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18260 # Check for a 64-bit object if we didn't find anything.
18261 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; }
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18270 rm -f conftest.err conftest.$ac_objext \
18271 conftest$ac_exeext conftest.$ac_ext
18272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18274 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18275 # Warning - without using the other run time loading flags,
18276 # -berok will link without error, but may produce a broken library.
18277 no_undefined_flag_GCJ=' ${wl}-bernotok'
18278 allow_undefined_flag_GCJ=' ${wl}-berok'
18279 # Exported symbols can be pulled into shared objects from archives
18280 whole_archive_flag_spec_GCJ='$convenience'
18281 archive_cmds_need_lc_GCJ=yes
18282 # This is similar to how AIX traditionally builds its shared libraries.
18283 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'
18289 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)'
18290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291 hardcode_minus_L_GCJ=yes
18292 # see comment about different semantics on the GNU ld section
18297 export_dynamic_flag_spec_GCJ=-rdynamic
18300 cygwin* | mingw* | pw32*)
18301 # When not using gcc, we currently assume that we are using
18302 # Microsoft Visual C++.
18303 # hardcode_libdir_flag_spec is actually meaningless, as there is
18304 # no search path for DLLs.
18305 hardcode_libdir_flag_spec_GCJ=' '
18306 allow_undefined_flag_GCJ=unsupported
18307 # Tell ltmain to make .lib files, not .a files.
18309 # Tell ltmain to make .dll files, not .so files.
18311 # FIXME: Setting linknames here is a bad hack.
18312 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18313 # The linker will automatically build a .lib file if we build a DLL.
18314 old_archive_From_new_cmds_GCJ='true'
18315 # FIXME: Should let the user specify the lib program.
18316 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18317 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18318 enable_shared_with_static_runtimes_GCJ=yes
18321 darwin* | rhapsody*)
18323 rhapsody* | darwin1.[012])
18324 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18327 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18328 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18330 case ${MACOSX_DEPLOYMENT_TARGET} in
18332 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18335 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18341 archive_cmds_need_lc_GCJ=no
18342 hardcode_direct_GCJ=no
18343 hardcode_automatic_GCJ=yes
18344 hardcode_shlibpath_var_GCJ=unsupported
18345 whole_archive_flag_spec_GCJ=''
18346 link_all_deplibs_GCJ=yes
18347 if test "$GCC" = yes ; then
18348 output_verbose_link_cmd='echo'
18349 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18350 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18352 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}'
18353 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}'
18355 case $cc_basename in
18357 output_verbose_link_cmd='echo'
18358 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18359 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18360 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18361 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}'
18362 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}'
18372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18374 hardcode_shlibpath_var_GCJ=no
18381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18382 # support. Future versions do this automatically, but an explicit c++rt0.o
18383 # does not break anything, and helps significantly (at the cost of a little
18386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18388 hardcode_direct_GCJ=yes
18389 hardcode_shlibpath_var_GCJ=no
18392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18394 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18395 hardcode_direct_GCJ=yes
18396 hardcode_minus_L_GCJ=yes
18397 hardcode_shlibpath_var_GCJ=no
18400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18401 freebsd* | dragonfly*)
18402 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18404 hardcode_direct_GCJ=yes
18405 hardcode_shlibpath_var_GCJ=no
18409 if test "$GCC" = yes; then
18410 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'
18412 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'
18414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18415 hardcode_libdir_separator_GCJ=:
18416 hardcode_direct_GCJ=yes
18418 # hardcode_minus_L: Not really in the search PATH,
18419 # but as the default location of the library.
18420 hardcode_minus_L_GCJ=yes
18421 export_dynamic_flag_spec_GCJ='${wl}-E'
18425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18426 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18428 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18430 if test "$with_gnu_ld" = no; then
18431 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18432 hardcode_libdir_separator_GCJ=:
18434 hardcode_direct_GCJ=yes
18435 export_dynamic_flag_spec_GCJ='${wl}-E'
18437 # hardcode_minus_L: Not really in the search PATH,
18438 # but as the default location of the library.
18439 hardcode_minus_L_GCJ=yes
18444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18447 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18450 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18453 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18459 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18462 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18465 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18469 if test "$with_gnu_ld" = no; then
18470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18471 hardcode_libdir_separator_GCJ=:
18475 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18476 hardcode_direct_GCJ=no
18477 hardcode_shlibpath_var_GCJ=no
18480 hardcode_direct_GCJ=yes
18481 export_dynamic_flag_spec_GCJ='${wl}-E'
18483 # hardcode_minus_L: Not really in the search PATH,
18484 # but as the default location of the library.
18485 hardcode_minus_L_GCJ=yes
18491 irix5* | irix6* | nonstopux*)
18492 if test "$GCC" = yes; then
18493 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'
18495 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'
18496 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499 hardcode_libdir_separator_GCJ=:
18500 link_all_deplibs_GCJ=yes
18503 netbsd* | netbsdelf*-gnu)
18504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18507 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18510 hardcode_direct_GCJ=yes
18511 hardcode_shlibpath_var_GCJ=no
18515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516 hardcode_direct_GCJ=yes
18517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18518 hardcode_libdir_separator_GCJ=:
18519 hardcode_shlibpath_var_GCJ=no
18523 hardcode_direct_GCJ=yes
18524 hardcode_shlibpath_var_GCJ=no
18525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18526 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18527 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18529 export_dynamic_flag_spec_GCJ='${wl}-E'
18532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18533 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18537 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18538 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18545 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18546 hardcode_minus_L_GCJ=yes
18547 allow_undefined_flag_GCJ=unsupported
18548 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'
18549 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18553 if test "$GCC" = yes; then
18554 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18555 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'
18557 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18558 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'
18560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18561 hardcode_libdir_separator_GCJ=:
18564 osf4* | osf5*) # as osf3* with the addition of -msym flag
18565 if test "$GCC" = yes; then
18566 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18567 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'
18568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18570 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18571 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'
18572 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~
18573 $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'
18575 # Both c and cxx compiler support -rpath directly
18576 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18578 hardcode_libdir_separator_GCJ=:
18582 no_undefined_flag_GCJ=' -z text'
18583 if test "$GCC" = yes; then
18585 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18586 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18587 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18590 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18595 hardcode_shlibpath_var_GCJ=no
18597 solaris2.[0-5] | solaris2.[0-5].*) ;;
18599 # The compiler driver will combine linker options so we
18600 # cannot just pass the convience library names through
18601 # without $wl, iff we do not link with $LD.
18602 # Luckily, gcc supports the same syntax we need for Sun Studio.
18603 # Supported since Solaris 2.6 (maybe 2.5.1?)
18606 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18608 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' ;;
18611 link_all_deplibs_GCJ=yes
18615 if test "x$host_vendor" = xsequent; then
18616 # Use $CC to link under sequent, because it throws in some extra .o
18617 # files that make .init and .fini sections work.
18618 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18620 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18623 hardcode_direct_GCJ=yes
18624 hardcode_minus_L_GCJ=yes
18625 hardcode_shlibpath_var_GCJ=no
18629 case $host_vendor in
18631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18632 hardcode_direct_GCJ=yes # is this really true???
18635 ## LD is ld it makes a PLAMLIB
18636 ## CC just makes a GrossModule.
18637 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18638 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18639 hardcode_direct_GCJ=no
18642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18646 runpath_var='LD_RUN_PATH'
18647 hardcode_shlibpath_var_GCJ=no
18651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18652 hardcode_shlibpath_var_GCJ=no
18653 export_dynamic_flag_spec_GCJ='-Bexport'
18657 if test -d /usr/nec; then
18658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18659 hardcode_shlibpath_var_GCJ=no
18660 runpath_var=LD_RUN_PATH
18661 hardcode_runpath_var=yes
18666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18667 no_undefined_flag_GCJ='${wl}-z,text'
18668 archive_cmds_need_lc_GCJ=no
18669 hardcode_shlibpath_var_GCJ=no
18670 runpath_var='LD_RUN_PATH'
18672 if test "$GCC" = yes; then
18673 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18674 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18676 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18681 sysv5* | sco3.2v5* | sco5v6*)
18682 # Note: We can NOT use -z defs as we might desire, because we do not
18683 # link with -lc, and that would cause any symbols used from libc to
18684 # always be unresolved, which means just about no library would
18685 # ever link correctly. If we're not using GNU ld we use -z text
18686 # though, which does catch some bad symbols but isn't as heavy-handed
18688 no_undefined_flag_GCJ='${wl}-z,text'
18689 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18690 archive_cmds_need_lc_GCJ=no
18691 hardcode_shlibpath_var_GCJ=no
18692 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18693 hardcode_libdir_separator_GCJ=':'
18694 link_all_deplibs_GCJ=yes
18695 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18696 runpath_var='LD_RUN_PATH'
18698 if test "$GCC" = yes; then
18699 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18700 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18703 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18710 hardcode_shlibpath_var_GCJ=no
18719 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18724 # Do we need to explicitly link libc?
18726 case "x$archive_cmds_need_lc_GCJ" in
18728 # Assume -lc should be added
18729 archive_cmds_need_lc_GCJ=yes
18731 if test "$enable_shared" = yes && test "$GCC" = yes; then
18732 case $archive_cmds_GCJ in
18734 # FIXME: we may have to deal with multi-command sequences.
18737 # Test whether the compiler implicitly links with -lc since on some
18738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18739 # to ld, don't add -lc before -lgcc.
18740 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18741 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18746 (eval $ac_compile) 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } 2>conftest.err; then
18752 libobjs=conftest.$ac_objext
18754 wl=$lt_prog_compiler_wl_GCJ
18755 pic_flag=$lt_prog_compiler_pic_GCJ
18761 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18762 allow_undefined_flag_GCJ=
18763 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18764 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }
18769 archive_cmds_need_lc_GCJ=no
18771 archive_cmds_need_lc_GCJ=yes
18773 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18775 cat conftest.err 1>&5
18778 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18779 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18786 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18787 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18788 library_names_spec=
18789 libname_spec='lib$name'
18793 postuninstall_cmds=
18797 shlibpath_overrides_runpath=unknown
18799 dynamic_linker="$host_os ld.so"
18800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18801 if test "$GCC" = yes; then
18802 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18803 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18804 # if the path contains ";" then we assume it to be the separator
18805 # otherwise default to the standard path separator (i.e. ":") - it is
18806 # assumed that no part of a normal pathname contains ";" but that should
18807 # okay in the real world where ";" in dirpaths is itself problematic.
18808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18815 need_lib_prefix=unknown
18816 hardcode_into_libs=no
18818 # when you set need_version to no, make sure it does not cause -set_version
18819 # flags to be left without arguments
18820 need_version=unknown
18825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18826 shlibpath_var=LIBPATH
18828 # AIX 3 has no versioning support, so we append a major version to the name.
18829 soname_spec='${libname}${release}${shared_ext}$major'
18836 hardcode_into_libs=yes
18837 if test "$host_cpu" = ia64; then
18838 # AIX 5 supports IA64
18839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18840 shlibpath_var=LD_LIBRARY_PATH
18842 # With GCC up to 2.95.x, collect2 would create an import file
18843 # for dependence libraries. The import file would start with
18844 # the line `#! .'. This would cause the generated library to
18845 # depend on `.', always an invalid library. This was fixed in
18846 # development snapshots of GCC prior to 3.0.
18848 aix4 | aix4.[01] | aix4.[01].*)
18849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18851 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18854 can_build_shared=no
18858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18859 # soname into executable. Probably we can add versioning support to
18860 # collect2, so additional links can be useful in future.
18861 if test "$aix_use_runtimelinking" = yes; then
18862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18863 # instead of lib<name>.a to let people know that these are not
18864 # typical AIX shared libraries.
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867 # We preserve .a as extension for shared libraries through AIX4.2
18868 # and later when we are not doing run time linking.
18869 library_names_spec='${libname}${release}.a $libname.a'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18872 shlibpath_var=LIBPATH
18877 library_names_spec='$libname.ixlibrary $libname.a'
18878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18879 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'
18883 library_names_spec='${libname}${shared_ext}'
18884 dynamic_linker="$host_os ld.so"
18885 shlibpath_var=LIBRARY_PATH
18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892 soname_spec='${libname}${release}${shared_ext}$major'
18893 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18894 shlibpath_var=LD_LIBRARY_PATH
18895 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18896 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18897 # the default ld.so.conf also contains /usr/contrib/lib and
18898 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18899 # libtool to hard-code these into programs
18902 cygwin* | mingw* | pw32*)
18903 version_type=windows
18908 case $GCC,$host_os in
18909 yes,cygwin* | yes,mingw* | yes,pw32*)
18910 library_names_spec='$libname.dll.a'
18911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18912 postinstall_cmds='base_file=`basename \${file}`~
18913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18914 dldir=$destdir/`dirname \$dlpath`~
18915 test -d \$dldir || mkdir -p \$dldir~
18916 $install_prog $dir/$dlname \$dldir/$dlname~
18917 chmod a+x \$dldir/$dlname'
18918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18919 dlpath=$dir/\$dldll~
18921 shlibpath_overrides_runpath=yes
18925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18930 # MinGW DLLs use traditional 'lib' prefix
18931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18934 # It is most probably a Windows format PATH printed by
18935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18936 # path with ; separators, and with drive letters. We can handle the
18937 # drive letters (cygwin fileutils understands them), so leave them,
18938 # especially as we might pass files found there to a mingw objdump,
18939 # which wouldn't understand a cygwinified path. Ahh.
18940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18946 # pw32 DLLs use 'pw' prefix rather than 'lib'
18947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18956 dynamic_linker='Win32 ld.exe'
18957 # FIXME: first we should search . and the directory the executable is in
18961 darwin* | rhapsody*)
18962 dynamic_linker="$host_os dyld"
18963 version_type=darwin
18966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18967 soname_spec='${libname}${release}${major}$shared_ext'
18968 shlibpath_overrides_runpath=yes
18969 shlibpath_var=DYLD_LIBRARY_PATH
18970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18971 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18972 if test "$GCC" = yes; then
18973 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"`
18975 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18985 soname_spec='${libname}${release}${shared_ext}$major'
18986 shlibpath_var=LD_LIBRARY_PATH
18993 freebsd* | dragonfly*)
18994 # DragonFly does not have aout. When/if they implement a new
18995 # versioning mechanism, adjust this.
18996 if test -x /usr/bin/objformat; then
18997 objformat=`/usr/bin/objformat`
19000 freebsd[123]*) objformat=aout ;;
19001 *) objformat=elf ;;
19004 version_type=freebsd-$objformat
19005 case $version_type in
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19016 shlibpath_var=LD_LIBRARY_PATH
19019 shlibpath_overrides_runpath=yes
19021 freebsd3.[01]* | freebsdelf3.[01]*)
19022 shlibpath_overrides_runpath=yes
19023 hardcode_into_libs=yes
19025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19027 shlibpath_overrides_runpath=no
19028 hardcode_into_libs=yes
19030 freebsd*) # from 4.6 on
19031 shlibpath_overrides_runpath=yes
19032 hardcode_into_libs=yes
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19042 soname_spec='${libname}${release}${shared_ext}$major'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 hardcode_into_libs=yes
19047 hpux9* | hpux10* | hpux11*)
19048 # Give a soname corresponding to the major version so that dld.sl refuses to
19049 # link against other versions.
19056 hardcode_into_libs=yes
19057 dynamic_linker="$host_os dld.so"
19058 shlibpath_var=LD_LIBRARY_PATH
19059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061 soname_spec='${libname}${release}${shared_ext}$major'
19062 if test "X$HPUX_IA64_MODE" = X32; then
19063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19071 hardcode_into_libs=yes
19072 dynamic_linker="$host_os dld.sl"
19073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19076 soname_spec='${libname}${release}${shared_ext}$major'
19077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19082 dynamic_linker="$host_os dld.sl"
19083 shlibpath_var=SHLIB_PATH
19084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086 soname_spec='${libname}${release}${shared_ext}$major'
19089 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19090 postinstall_cmds='chmod 555 $lib'
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19100 shlibpath_var=LD_LIBRARY_PATH
19101 shlibpath_overrides_runpath=no
19102 hardcode_into_libs=yes
19105 irix5* | irix6* | nonstopux*)
19107 nonstopux*) version_type=nonstopux ;;
19109 if test "$lt_cv_prog_gnu_ld" = yes; then
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19120 irix5* | nonstopux*)
19121 libsuff= shlibsuff=
19124 case $LD in # libtool.m4 will add one of these switches to LD
19125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19126 libsuff= shlibsuff= libmagic=32-bit;;
19127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19128 libsuff=32 shlibsuff=N32 libmagic=N32;;
19129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19131 *) libsuff= shlibsuff= libmagic=never-match;;
19135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19136 shlibpath_overrides_runpath=no
19137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19139 hardcode_into_libs=yes
19142 # No shared lib support for Linux oldld, aout, or coff.
19143 linux*oldld* | linux*aout* | linux*coff*)
19147 # This must be Linux ELF.
19148 linux* | k*bsd*-gnu)
19152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19153 soname_spec='${libname}${release}${shared_ext}$major'
19154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19155 shlibpath_var=LD_LIBRARY_PATH
19156 shlibpath_overrides_runpath=no
19157 # This implies no fast_install, which is unacceptable.
19158 # Some rework will be needed to allow for fast_install
19159 # before this can be enabled.
19160 hardcode_into_libs=yes
19162 # Append ld.so.conf contents to the search path
19163 if test -f /etc/ld.so.conf; then
19164 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' ' '`
19165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19168 # We used to test for /lib/ld.so.1 and disable shared libraries on
19169 # powerpc, because MkLinux only supported shared libraries with the
19170 # GNU dynamic linker. Since this was broken with cross compilers,
19171 # most powerpc-linux boxes support dynamic linking these days and
19172 # people can always --disable-shared, the test was removed, and we
19173 # assume the GNU/Linux dynamic linker is in use.
19174 dynamic_linker='GNU/Linux ld.so'
19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 shlibpath_var=LD_LIBRARY_PATH
19184 shlibpath_overrides_runpath=no
19185 hardcode_into_libs=yes
19186 dynamic_linker='NetBSD ld.elf_so'
19193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19196 dynamic_linker='NetBSD (a.out) ld.so'
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 dynamic_linker='NetBSD ld.elf_so'
19202 shlibpath_var=LD_LIBRARY_PATH
19203 shlibpath_overrides_runpath=yes
19204 hardcode_into_libs=yes
19209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19210 shlibpath_var=LD_LIBRARY_PATH
19211 shlibpath_overrides_runpath=yes
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 shlibpath_var=LD_LIBRARY_PATH
19221 shlibpath_overrides_runpath=yes
19226 sys_lib_dlsearch_path_spec="/usr/lib"
19228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19231 *) need_version=no ;;
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235 shlibpath_var=LD_LIBRARY_PATH
19236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19238 openbsd2.[89] | openbsd2.[89].*)
19239 shlibpath_overrides_runpath=no
19242 shlibpath_overrides_runpath=yes
19246 shlibpath_overrides_runpath=yes
19251 libname_spec='$name'
19254 library_names_spec='$libname${shared_ext} $libname.a'
19255 dynamic_linker='OS/2 ld.exe'
19256 shlibpath_var=LIBPATH
19259 osf3* | osf4* | osf5*)
19263 soname_spec='${libname}${release}${shared_ext}$major'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265 shlibpath_var=LD_LIBRARY_PATH
19266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 soname_spec='${libname}${release}${shared_ext}$major'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath=yes
19278 hardcode_into_libs=yes
19279 # ldd complains unless libraries are executable
19280 postinstall_cmds='chmod +x $lib'
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19287 shlibpath_var=LD_LIBRARY_PATH
19288 shlibpath_overrides_runpath=yes
19289 if test "$with_gnu_ld" = yes; then
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 shlibpath_var=LD_LIBRARY_PATH
19300 case $host_vendor in
19302 shlibpath_overrides_runpath=no
19304 export_dynamic_flag_spec='${wl}-Blargedynsym'
19305 runpath_var=LD_RUN_PATH
19313 shlibpath_overrides_runpath=no
19314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19320 if test -d /usr/nec ;then
19322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19323 soname_spec='$libname${shared_ext}.$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19329 version_type=freebsd-elf
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 hardcode_into_libs=yes
19336 if test "$with_gnu_ld" = yes; then
19337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19338 shlibpath_overrides_runpath=no
19340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19341 shlibpath_overrides_runpath=yes
19344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19348 sys_lib_dlsearch_path_spec='/usr/lib'
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 shlibpath_var=LD_LIBRARY_PATH
19362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19363 echo "${ECHO_T}$dynamic_linker" >&6; }
19364 test "$dynamic_linker" = no && can_build_shared=no
19366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19367 if test "$GCC" = yes; then
19368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19371 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19373 hardcode_action_GCJ=
19374 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19375 test -n "$runpath_var_GCJ" || \
19376 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19378 # We can hardcode non-existant directories.
19379 if test "$hardcode_direct_GCJ" != no &&
19380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19381 # have to relink, otherwise we might link with an installed library
19382 # when we should be linking with a yet-to-be-installed one
19383 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19384 test "$hardcode_minus_L_GCJ" != no; then
19385 # Linking always hardcodes the temporary library directory.
19386 hardcode_action_GCJ=relink
19388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19389 hardcode_action_GCJ=immediate
19392 # We cannot hardcode anything, or else we can only hardcode existing
19394 hardcode_action_GCJ=unsupported
19396 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19397 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19399 if test "$hardcode_action_GCJ" = relink; then
19400 # Fast installation is not supported
19401 enable_fast_install=no
19402 elif test "$shlibpath_overrides_runpath" = yes ||
19403 test "$enable_shared" = no; then
19404 # Fast installation is not necessary
19405 enable_fast_install=needless
19409 # The else clause should only fire when bootstrapping the
19410 # libtool distribution, otherwise you forgot to ship ltmain.sh
19411 # with your package, and you will get complaints that there are
19412 # no rules to generate ltmain.sh.
19413 if test -f "$ltmain"; then
19414 # See if we are running on zsh, and set the options which allow our commands through
19415 # without removal of \ escapes.
19416 if test -n "${ZSH_VERSION+set}" ; then
19417 setopt NO_GLOB_SUBST
19419 # Now quote all the things that may contain metacharacters while being
19420 # careful not to overquote the AC_SUBSTed values. We take copies of the
19421 # variables and quote the copies for generation of the libtool script.
19422 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19424 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19425 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19426 deplibs_check_method reload_flag reload_cmds need_locks \
19427 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19428 lt_cv_sys_global_symbol_to_c_name_address \
19429 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19430 old_postinstall_cmds old_postuninstall_cmds \
19434 lt_prog_compiler_wl_GCJ \
19435 lt_prog_compiler_pic_GCJ \
19436 lt_prog_compiler_static_GCJ \
19437 lt_prog_compiler_no_builtin_flag_GCJ \
19438 export_dynamic_flag_spec_GCJ \
19439 thread_safe_flag_spec_GCJ \
19440 whole_archive_flag_spec_GCJ \
19441 enable_shared_with_static_runtimes_GCJ \
19442 old_archive_cmds_GCJ \
19443 old_archive_from_new_cmds_GCJ \
19444 predep_objects_GCJ \
19445 postdep_objects_GCJ \
19448 compiler_lib_search_path_GCJ \
19450 archive_expsym_cmds_GCJ \
19451 postinstall_cmds_GCJ \
19452 postuninstall_cmds_GCJ \
19453 old_archive_from_expsyms_cmds_GCJ \
19454 allow_undefined_flag_GCJ \
19455 no_undefined_flag_GCJ \
19456 export_symbols_cmds_GCJ \
19457 hardcode_libdir_flag_spec_GCJ \
19458 hardcode_libdir_flag_spec_ld_GCJ \
19459 hardcode_libdir_separator_GCJ \
19460 hardcode_automatic_GCJ \
19462 module_expsym_cmds_GCJ \
19463 lt_cv_prog_compiler_c_o_GCJ \
19464 exclude_expsyms_GCJ \
19465 include_expsyms_GCJ; do
19468 old_archive_cmds_GCJ | \
19469 old_archive_from_new_cmds_GCJ | \
19470 archive_cmds_GCJ | \
19471 archive_expsym_cmds_GCJ | \
19472 module_cmds_GCJ | \
19473 module_expsym_cmds_GCJ | \
19474 old_archive_from_expsyms_cmds_GCJ | \
19475 export_symbols_cmds_GCJ | \
19476 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19477 postinstall_cmds | postuninstall_cmds | \
19478 old_postinstall_cmds | old_postuninstall_cmds | \
19479 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19480 # Double-quote double-evaled strings.
19481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19490 *'\$0 --fallback-echo"')
19491 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19497 cat <<__EOF__ >> "$cfgfile"
19498 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19502 # Shell to use when invoking shell scripts.
19505 # Whether or not to build shared libraries.
19506 build_libtool_libs=$enable_shared
19508 # Whether or not to build static libraries.
19509 build_old_libs=$enable_static
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19514 # Whether or not to disallow shared libs when runtime libs are static
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19517 # Whether or not to optimize for fast installation.
19518 fast_install=$enable_fast_install
19521 host_alias=$host_alias
19525 # The build system.
19526 build_alias=$build_alias
19530 # An echo program that does not interpret backslashes.
19535 AR_FLAGS=$lt_AR_FLAGS
19540 # LTCC compiler flags.
19541 LTCFLAGS=$lt_LTCFLAGS
19543 # A language-specific compiler.
19544 CC=$lt_compiler_GCJ
19546 # Is the compiler the GNU C compiler?
19552 # The linker used to build libraries.
19555 # Whether we need hard or soft links.
19558 # A BSD-compatible nm program.
19561 # A symbol stripping program
19564 # Used to examine libraries when file_magic_cmd begins "file"
19565 MAGIC_CMD=$MAGIC_CMD
19567 # Used on cygwin: DLL creation program.
19570 # Used on cygwin: object dumper.
19573 # Used on cygwin: assembler.
19576 # The name of the directory that contains temporary libtool files.
19579 # How to create reloadable object files.
19580 reload_flag=$lt_reload_flag
19581 reload_cmds=$lt_reload_cmds
19583 # How to pass a linker flag through the compiler.
19584 wl=$lt_lt_prog_compiler_wl_GCJ
19586 # Object file suffix (normally "o").
19587 objext="$ac_objext"
19589 # Old archive suffix (normally "a").
19592 # Shared library suffix (normally ".so").
19593 shrext_cmds='$shrext_cmds'
19595 # Executable file suffix (normally "").
19598 # Additional compiler flags for building library objects.
19599 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19602 # What is the maximum length of a command?
19603 max_cmd_len=$lt_cv_sys_max_cmd_len
19605 # Does compiler simultaneously support -c and -o options?
19606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19608 # Must we lock files when doing compilation?
19609 need_locks=$lt_need_locks
19611 # Do we need the lib prefix for modules?
19612 need_lib_prefix=$need_lib_prefix
19614 # Do we need a version for libraries?
19615 need_version=$need_version
19617 # Whether dlopen is supported.
19618 dlopen_support=$enable_dlopen
19620 # Whether dlopen of programs is supported.
19621 dlopen_self=$enable_dlopen_self
19623 # Whether dlopen of statically linked programs is supported.
19624 dlopen_self_static=$enable_dlopen_self_static
19626 # Compiler flag to prevent dynamic linking.
19627 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19629 # Compiler flag to turn off builtin functions.
19630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19632 # Compiler flag to allow reflexive dlopens.
19633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19635 # Compiler flag to generate shared objects directly from archives.
19636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19638 # Compiler flag to generate thread-safe objects.
19639 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19641 # Library versioning type.
19642 version_type=$version_type
19644 # Format of library name prefix.
19645 libname_spec=$lt_libname_spec
19647 # List of archive names. First name is the real one, the rest are links.
19648 # The last name is the one that the linker finds with -lNAME.
19649 library_names_spec=$lt_library_names_spec
19651 # The coded name of the library, if different from the real name.
19652 soname_spec=$lt_soname_spec
19654 # Commands used to build and install an old-style archive.
19656 old_archive_cmds=$lt_old_archive_cmds_GCJ
19657 old_postinstall_cmds=$lt_old_postinstall_cmds
19658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19660 # Create an old-style archive from a shared archive.
19661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19663 # Create a temporary old-style archive to link instead of a shared archive.
19664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19666 # Commands used to build and install a shared archive.
19667 archive_cmds=$lt_archive_cmds_GCJ
19668 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19669 postinstall_cmds=$lt_postinstall_cmds
19670 postuninstall_cmds=$lt_postuninstall_cmds
19672 # Commands used to build a loadable module (assumed same as above if empty)
19673 module_cmds=$lt_module_cmds_GCJ
19674 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19676 # Commands to strip libraries.
19677 old_striplib=$lt_old_striplib
19678 striplib=$lt_striplib
19680 # Dependencies to place before the objects being linked to create a
19682 predep_objects=$lt_predep_objects_GCJ
19684 # Dependencies to place after the objects being linked to create a
19686 postdep_objects=$lt_postdep_objects_GCJ
19688 # Dependencies to place before the objects being linked to create a
19690 predeps=$lt_predeps_GCJ
19692 # Dependencies to place after the objects being linked to create a
19694 postdeps=$lt_postdeps_GCJ
19696 # The library search path used internally by the compiler when linking
19697 # a shared library.
19698 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19700 # Method to check whether dependent libraries are shared objects.
19701 deplibs_check_method=$lt_deplibs_check_method
19703 # Command to use when deplibs_check_method == file_magic.
19704 file_magic_cmd=$lt_file_magic_cmd
19706 # Flag that allows shared libraries with undefined symbols to be built.
19707 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19709 # Flag that forces no undefined symbols.
19710 no_undefined_flag=$lt_no_undefined_flag_GCJ
19712 # Commands used to finish a libtool library installation in a directory.
19713 finish_cmds=$lt_finish_cmds
19715 # Same as above, but a single script fragment to be evaled but not shown.
19716 finish_eval=$lt_finish_eval
19718 # Take the output of nm and produce a listing of raw symbols and C names.
19719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19721 # Transform the output of nm in a proper C declaration
19722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19724 # Transform the output of nm in a C name address pair
19725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19727 # This is the shared library runtime path variable.
19728 runpath_var=$runpath_var
19730 # This is the shared library path variable.
19731 shlibpath_var=$shlibpath_var
19733 # Is shlibpath searched before the hard-coded library search path?
19734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19736 # How to hardcode a shared library path into an executable.
19737 hardcode_action=$hardcode_action_GCJ
19739 # Whether we should hardcode library paths into libraries.
19740 hardcode_into_libs=$hardcode_into_libs
19742 # Flag to hardcode \$libdir into a binary during linking.
19743 # This must work even if \$libdir does not exist.
19744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19746 # If ld is used when linking, flag to hardcode \$libdir into
19747 # a binary during linking. This must work even if \$libdir does
19749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19751 # Whether we need a single -rpath flag with a separated argument.
19752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19755 # resulting binary.
19756 hardcode_direct=$hardcode_direct_GCJ
19758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19759 # resulting binary.
19760 hardcode_minus_L=$hardcode_minus_L_GCJ
19762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19763 # the resulting binary.
19764 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19766 # Set to yes if building a shared library automatically hardcodes DIR into the library
19767 # and all subsequent libraries and executables linked against it.
19768 hardcode_automatic=$hardcode_automatic_GCJ
19770 # Variables whose values should be saved in libtool wrapper scripts and
19771 # restored at relink time.
19772 variables_saved_for_relink="$variables_saved_for_relink"
19774 # Whether libtool must link a program against all its dependency libraries.
19775 link_all_deplibs=$link_all_deplibs_GCJ
19777 # Compile-time system search path for libraries
19778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19780 # Run-time system search path for libraries
19781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19783 # Fix the shell variable \$srcfile for the compiler.
19784 fix_srcfile_path="$fix_srcfile_path_GCJ"
19786 # Set to yes if exported symbols are required.
19787 always_export_symbols=$always_export_symbols_GCJ
19789 # The commands to list exported symbols.
19790 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19792 # The commands to extract the exported symbol list from a shared archive.
19793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19795 # Symbols that should not be listed in the preloaded symbols.
19796 exclude_expsyms=$lt_exclude_expsyms_GCJ
19798 # Symbols that must always be exported.
19799 include_expsyms=$lt_include_expsyms_GCJ
19801 # ### END LIBTOOL TAG CONFIG: $tagname
19807 # If there is no Makefile yet, we rely on a make rule to execute
19808 # `config.status --recheck' to rerun these tests and create the
19809 # libtool script then.
19810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19811 if test -f "$ltmain_in"; then
19812 test -f Makefile && make "$ltmain"
19818 ac_cpp='$CPP $CPPFLAGS'
19819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833 # Source file extension for RC test sources.
19836 # Object file extension for compiled RC test sources.
19840 # Code to be used in simple compile tests
19841 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19843 # Code to be used in simple link tests
19844 lt_simple_link_test_code="$lt_simple_compile_test_code"
19846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19848 # If no C compiler was specified, use CC.
19851 # If no C compiler flags were specified, use CFLAGS.
19852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19854 # Allow CC to be a program name with arguments.
19858 # save warnings/boilerplate of simple test code
19859 ac_outfile=conftest.$ac_objext
19860 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19862 _lt_compiler_boilerplate=`cat conftest.err`
19865 ac_outfile=conftest.$ac_objext
19866 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19868 _lt_linker_boilerplate=`cat conftest.err`
19872 # Allow CC to be a program name with arguments.
19877 for cc_temp in $compiler""; do
19879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19885 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19887 lt_cv_prog_compiler_c_o_RC=yes
19889 # The else clause should only fire when bootstrapping the
19890 # libtool distribution, otherwise you forgot to ship ltmain.sh
19891 # with your package, and you will get complaints that there are
19892 # no rules to generate ltmain.sh.
19893 if test -f "$ltmain"; then
19894 # See if we are running on zsh, and set the options which allow our commands through
19895 # without removal of \ escapes.
19896 if test -n "${ZSH_VERSION+set}" ; then
19897 setopt NO_GLOB_SUBST
19899 # Now quote all the things that may contain metacharacters while being
19900 # careful not to overquote the AC_SUBSTed values. We take copies of the
19901 # variables and quote the copies for generation of the libtool script.
19902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19906 deplibs_check_method reload_flag reload_cmds need_locks \
19907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19908 lt_cv_sys_global_symbol_to_c_name_address \
19909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19910 old_postinstall_cmds old_postuninstall_cmds \
19914 lt_prog_compiler_wl_RC \
19915 lt_prog_compiler_pic_RC \
19916 lt_prog_compiler_static_RC \
19917 lt_prog_compiler_no_builtin_flag_RC \
19918 export_dynamic_flag_spec_RC \
19919 thread_safe_flag_spec_RC \
19920 whole_archive_flag_spec_RC \
19921 enable_shared_with_static_runtimes_RC \
19922 old_archive_cmds_RC \
19923 old_archive_from_new_cmds_RC \
19924 predep_objects_RC \
19925 postdep_objects_RC \
19928 compiler_lib_search_path_RC \
19930 archive_expsym_cmds_RC \
19931 postinstall_cmds_RC \
19932 postuninstall_cmds_RC \
19933 old_archive_from_expsyms_cmds_RC \
19934 allow_undefined_flag_RC \
19935 no_undefined_flag_RC \
19936 export_symbols_cmds_RC \
19937 hardcode_libdir_flag_spec_RC \
19938 hardcode_libdir_flag_spec_ld_RC \
19939 hardcode_libdir_separator_RC \
19940 hardcode_automatic_RC \
19942 module_expsym_cmds_RC \
19943 lt_cv_prog_compiler_c_o_RC \
19944 exclude_expsyms_RC \
19945 include_expsyms_RC; do
19948 old_archive_cmds_RC | \
19949 old_archive_from_new_cmds_RC | \
19950 archive_cmds_RC | \
19951 archive_expsym_cmds_RC | \
19953 module_expsym_cmds_RC | \
19954 old_archive_from_expsyms_cmds_RC | \
19955 export_symbols_cmds_RC | \
19956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19957 postinstall_cmds | postuninstall_cmds | \
19958 old_postinstall_cmds | old_postuninstall_cmds | \
19959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19960 # Double-quote double-evaled strings.
19961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19970 *'\$0 --fallback-echo"')
19971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19977 cat <<__EOF__ >> "$cfgfile"
19978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19982 # Shell to use when invoking shell scripts.
19985 # Whether or not to build shared libraries.
19986 build_libtool_libs=$enable_shared
19988 # Whether or not to build static libraries.
19989 build_old_libs=$enable_static
19991 # Whether or not to add -lc for building shared libraries.
19992 build_libtool_need_lc=$archive_cmds_need_lc_RC
19994 # Whether or not to disallow shared libs when runtime libs are static
19995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19997 # Whether or not to optimize for fast installation.
19998 fast_install=$enable_fast_install
20001 host_alias=$host_alias
20005 # The build system.
20006 build_alias=$build_alias
20010 # An echo program that does not interpret backslashes.
20015 AR_FLAGS=$lt_AR_FLAGS
20020 # LTCC compiler flags.
20021 LTCFLAGS=$lt_LTCFLAGS
20023 # A language-specific compiler.
20026 # Is the compiler the GNU C compiler?
20032 # The linker used to build libraries.
20035 # Whether we need hard or soft links.
20038 # A BSD-compatible nm program.
20041 # A symbol stripping program
20044 # Used to examine libraries when file_magic_cmd begins "file"
20045 MAGIC_CMD=$MAGIC_CMD
20047 # Used on cygwin: DLL creation program.
20050 # Used on cygwin: object dumper.
20053 # Used on cygwin: assembler.
20056 # The name of the directory that contains temporary libtool files.
20059 # How to create reloadable object files.
20060 reload_flag=$lt_reload_flag
20061 reload_cmds=$lt_reload_cmds
20063 # How to pass a linker flag through the compiler.
20064 wl=$lt_lt_prog_compiler_wl_RC
20066 # Object file suffix (normally "o").
20067 objext="$ac_objext"
20069 # Old archive suffix (normally "a").
20072 # Shared library suffix (normally ".so").
20073 shrext_cmds='$shrext_cmds'
20075 # Executable file suffix (normally "").
20078 # Additional compiler flags for building library objects.
20079 pic_flag=$lt_lt_prog_compiler_pic_RC
20082 # What is the maximum length of a command?
20083 max_cmd_len=$lt_cv_sys_max_cmd_len
20085 # Does compiler simultaneously support -c and -o options?
20086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20088 # Must we lock files when doing compilation?
20089 need_locks=$lt_need_locks
20091 # Do we need the lib prefix for modules?
20092 need_lib_prefix=$need_lib_prefix
20094 # Do we need a version for libraries?
20095 need_version=$need_version
20097 # Whether dlopen is supported.
20098 dlopen_support=$enable_dlopen
20100 # Whether dlopen of programs is supported.
20101 dlopen_self=$enable_dlopen_self
20103 # Whether dlopen of statically linked programs is supported.
20104 dlopen_self_static=$enable_dlopen_self_static
20106 # Compiler flag to prevent dynamic linking.
20107 link_static_flag=$lt_lt_prog_compiler_static_RC
20109 # Compiler flag to turn off builtin functions.
20110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20112 # Compiler flag to allow reflexive dlopens.
20113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20115 # Compiler flag to generate shared objects directly from archives.
20116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20118 # Compiler flag to generate thread-safe objects.
20119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20121 # Library versioning type.
20122 version_type=$version_type
20124 # Format of library name prefix.
20125 libname_spec=$lt_libname_spec
20127 # List of archive names. First name is the real one, the rest are links.
20128 # The last name is the one that the linker finds with -lNAME.
20129 library_names_spec=$lt_library_names_spec
20131 # The coded name of the library, if different from the real name.
20132 soname_spec=$lt_soname_spec
20134 # Commands used to build and install an old-style archive.
20136 old_archive_cmds=$lt_old_archive_cmds_RC
20137 old_postinstall_cmds=$lt_old_postinstall_cmds
20138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20140 # Create an old-style archive from a shared archive.
20141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20143 # Create a temporary old-style archive to link instead of a shared archive.
20144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20146 # Commands used to build and install a shared archive.
20147 archive_cmds=$lt_archive_cmds_RC
20148 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20149 postinstall_cmds=$lt_postinstall_cmds
20150 postuninstall_cmds=$lt_postuninstall_cmds
20152 # Commands used to build a loadable module (assumed same as above if empty)
20153 module_cmds=$lt_module_cmds_RC
20154 module_expsym_cmds=$lt_module_expsym_cmds_RC
20156 # Commands to strip libraries.
20157 old_striplib=$lt_old_striplib
20158 striplib=$lt_striplib
20160 # Dependencies to place before the objects being linked to create a
20162 predep_objects=$lt_predep_objects_RC
20164 # Dependencies to place after the objects being linked to create a
20166 postdep_objects=$lt_postdep_objects_RC
20168 # Dependencies to place before the objects being linked to create a
20170 predeps=$lt_predeps_RC
20172 # Dependencies to place after the objects being linked to create a
20174 postdeps=$lt_postdeps_RC
20176 # The library search path used internally by the compiler when linking
20177 # a shared library.
20178 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20180 # Method to check whether dependent libraries are shared objects.
20181 deplibs_check_method=$lt_deplibs_check_method
20183 # Command to use when deplibs_check_method == file_magic.
20184 file_magic_cmd=$lt_file_magic_cmd
20186 # Flag that allows shared libraries with undefined symbols to be built.
20187 allow_undefined_flag=$lt_allow_undefined_flag_RC
20189 # Flag that forces no undefined symbols.
20190 no_undefined_flag=$lt_no_undefined_flag_RC
20192 # Commands used to finish a libtool library installation in a directory.
20193 finish_cmds=$lt_finish_cmds
20195 # Same as above, but a single script fragment to be evaled but not shown.
20196 finish_eval=$lt_finish_eval
20198 # Take the output of nm and produce a listing of raw symbols and C names.
20199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20201 # Transform the output of nm in a proper C declaration
20202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20204 # Transform the output of nm in a C name address pair
20205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20207 # This is the shared library runtime path variable.
20208 runpath_var=$runpath_var
20210 # This is the shared library path variable.
20211 shlibpath_var=$shlibpath_var
20213 # Is shlibpath searched before the hard-coded library search path?
20214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20216 # How to hardcode a shared library path into an executable.
20217 hardcode_action=$hardcode_action_RC
20219 # Whether we should hardcode library paths into libraries.
20220 hardcode_into_libs=$hardcode_into_libs
20222 # Flag to hardcode \$libdir into a binary during linking.
20223 # This must work even if \$libdir does not exist.
20224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20226 # If ld is used when linking, flag to hardcode \$libdir into
20227 # a binary during linking. This must work even if \$libdir does
20229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20231 # Whether we need a single -rpath flag with a separated argument.
20232 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20234 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20235 # resulting binary.
20236 hardcode_direct=$hardcode_direct_RC
20238 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20239 # resulting binary.
20240 hardcode_minus_L=$hardcode_minus_L_RC
20242 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20243 # the resulting binary.
20244 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20246 # Set to yes if building a shared library automatically hardcodes DIR into the library
20247 # and all subsequent libraries and executables linked against it.
20248 hardcode_automatic=$hardcode_automatic_RC
20250 # Variables whose values should be saved in libtool wrapper scripts and
20251 # restored at relink time.
20252 variables_saved_for_relink="$variables_saved_for_relink"
20254 # Whether libtool must link a program against all its dependency libraries.
20255 link_all_deplibs=$link_all_deplibs_RC
20257 # Compile-time system search path for libraries
20258 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20260 # Run-time system search path for libraries
20261 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20263 # Fix the shell variable \$srcfile for the compiler.
20264 fix_srcfile_path="$fix_srcfile_path_RC"
20266 # Set to yes if exported symbols are required.
20267 always_export_symbols=$always_export_symbols_RC
20269 # The commands to list exported symbols.
20270 export_symbols_cmds=$lt_export_symbols_cmds_RC
20272 # The commands to extract the exported symbol list from a shared archive.
20273 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20275 # Symbols that should not be listed in the preloaded symbols.
20276 exclude_expsyms=$lt_exclude_expsyms_RC
20278 # Symbols that must always be exported.
20279 include_expsyms=$lt_include_expsyms_RC
20281 # ### END LIBTOOL TAG CONFIG: $tagname
20287 # If there is no Makefile yet, we rely on a make rule to execute
20288 # `config.status --recheck' to rerun these tests and create the
20289 # libtool script then.
20290 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20291 if test -f "$ltmain_in"; then
20292 test -f Makefile && make "$ltmain"
20298 ac_cpp='$CPP $CPPFLAGS'
20299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20308 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20309 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20310 { (exit 1); exit 1; }; }
20314 # Append the new tag name to the list of available tags.
20315 if test -n "$tagname" ; then
20316 available_tags="$available_tags $tagname"
20322 # Now substitute the updated list of available tags.
20323 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20324 mv "${ofile}T" "$ofile"
20328 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20329 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20330 { (exit 1); exit 1; }; }
20336 # This can be used to rebuild libtool when needed
20337 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20339 # Always use our own libtool.
20340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20342 # Prevent multiple expansion
20364 if test "x$cross_compiling" = "xno"; then
20365 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20367 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20372 if test -n "$ac_tool_prefix"; then
20373 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20374 set dummy ${ac_tool_prefix}ar; ac_word=$2
20375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20377 if test "${ac_cv_prog_AR+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 if test -n "$AR"; then
20381 ac_cv_prog_AR="$AR" # Let the user override the test.
20383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20384 for as_dir in $PATH
20387 test -z "$as_dir" && as_dir=.
20388 for ac_exec_ext in '' $ac_executable_extensions; do
20389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20390 ac_cv_prog_AR="${ac_tool_prefix}ar"
20391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20401 if test -n "$AR"; then
20402 { echo "$as_me:$LINENO: result: $AR" >&5
20403 echo "${ECHO_T}$AR" >&6; }
20405 { echo "$as_me:$LINENO: result: no" >&5
20406 echo "${ECHO_T}no" >&6; }
20411 if test -z "$ac_cv_prog_AR"; then
20413 # Extract the first word of "ar", so it can be a program name with args.
20414 set dummy ar; ac_word=$2
20415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20417 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 if test -n "$ac_ct_AR"; then
20421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20424 for as_dir in $PATH
20427 test -z "$as_dir" && as_dir=.
20428 for ac_exec_ext in '' $ac_executable_extensions; do
20429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20430 ac_cv_prog_ac_ct_AR="ar"
20431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20441 if test -n "$ac_ct_AR"; then
20442 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20443 echo "${ECHO_T}$ac_ct_AR" >&6; }
20445 { echo "$as_me:$LINENO: result: no" >&5
20446 echo "${ECHO_T}no" >&6; }
20449 if test "x$ac_ct_AR" = x; then
20452 case $cross_compiling:$ac_tool_warned in
20454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20455 whose name does not start with the host triplet. If you think this
20456 configuration is useful to you, please write to autoconf@gnu.org." >&5
20457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20458 whose name does not start with the host triplet. If you think this
20459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20460 ac_tool_warned=yes ;;
20465 AR="$ac_cv_prog_AR"
20468 if test -n "$ac_tool_prefix"; then
20469 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20470 set dummy ${ac_tool_prefix}ld; ac_word=$2
20471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20473 if test "${ac_cv_prog_LD+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 if test -n "$LD"; then
20477 ac_cv_prog_LD="$LD" # Let the user override the test.
20479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20483 test -z "$as_dir" && as_dir=.
20484 for ac_exec_ext in '' $ac_executable_extensions; do
20485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20486 ac_cv_prog_LD="${ac_tool_prefix}ld"
20487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20497 if test -n "$LD"; then
20498 { echo "$as_me:$LINENO: result: $LD" >&5
20499 echo "${ECHO_T}$LD" >&6; }
20501 { echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6; }
20507 if test -z "$ac_cv_prog_LD"; then
20509 # Extract the first word of "ld", so it can be a program name with args.
20510 set dummy ld; ac_word=$2
20511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20513 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 if test -n "$ac_ct_LD"; then
20517 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20520 for as_dir in $PATH
20523 test -z "$as_dir" && as_dir=.
20524 for ac_exec_ext in '' $ac_executable_extensions; do
20525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20526 ac_cv_prog_ac_ct_LD="ld"
20527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20536 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20537 if test -n "$ac_ct_LD"; then
20538 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20539 echo "${ECHO_T}$ac_ct_LD" >&6; }
20541 { echo "$as_me:$LINENO: result: no" >&5
20542 echo "${ECHO_T}no" >&6; }
20545 if test "x$ac_ct_LD" = x; then
20548 case $cross_compiling:$ac_tool_warned in
20550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20551 whose name does not start with the host triplet. If you think this
20552 configuration is useful to you, please write to autoconf@gnu.org." >&5
20553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20554 whose name does not start with the host triplet. If you think this
20555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20556 ac_tool_warned=yes ;;
20561 LD="$ac_cv_prog_LD"
20565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20567 if test "${ac_cv_header_stdc+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 #include <stdlib.h>
20577 #include <stdarg.h>
20578 #include <string.h>
20589 rm -f conftest.$ac_objext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591 (eval $ac_compile) 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_header_stdc=yes
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 ac_cv_header_stdc=no
20618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20620 if test $ac_cv_header_stdc = yes; then
20621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 #include <string.h>
20631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20632 $EGREP "memchr" >/dev/null 2>&1; then
20635 ac_cv_header_stdc=no
20641 if test $ac_cv_header_stdc = yes; then
20642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 #include <stdlib.h>
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 $EGREP "free" >/dev/null 2>&1; then
20656 ac_cv_header_stdc=no
20662 if test $ac_cv_header_stdc = yes; then
20663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20664 if test "$cross_compiling" = yes; then
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 #include <stdlib.h>
20675 #if ((' ' & 0x0FF) == 0x020)
20676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20679 # define ISLOWER(c) \
20680 (('a' <= (c) && (c) <= 'i') \
20681 || ('j' <= (c) && (c) <= 'r') \
20682 || ('s' <= (c) && (c) <= 'z'))
20683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20691 for (i = 0; i < 256; i++)
20692 if (XOR (islower (i), ISLOWER (i))
20693 || toupper (i) != TOUPPER (i))
20698 rm -f conftest$ac_exeext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20700 (eval $ac_link) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20711 echo "$as_me: program exited with status $ac_status" >&5
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ( exit $ac_status )
20716 ac_cv_header_stdc=no
20718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20725 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20726 if test $ac_cv_header_stdc = yes; then
20728 cat >>confdefs.h <<\_ACEOF
20729 #define STDC_HEADERS 1
20735 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20736 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20737 if test "${knfsd_cv_glibc2+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 #include <features.h>
20748 #if !defined(__GLIBC__)
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null; then
20761 if test -s conftest.err; then
20762 ac_cpp_err=$ac_c_preproc_warn_flag
20763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20770 if test -z "$ac_cpp_err"; then
20771 knfsd_cv_glibc2=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20779 rm -f conftest.err conftest.$ac_ext
20782 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20783 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20784 if test $knfsd_cv_glibc2 = yes; then
20785 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20786 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20790 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20791 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20792 if test "${knfsd_cv_bsd_signals+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 if test "$cross_compiling" = yes; then
20796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20797 See \`config.log' for more details." >&5
20798 echo "$as_me: error: cannot run test program while cross compiling
20799 See \`config.log' for more details." >&2;}
20800 { (exit 1); exit 1; }; }
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 #include <signal.h>
20810 #include <unistd.h>
20811 #include <sys/wait.h>
20813 static int counter = 0;
20814 static RETSIGTYPE handler(int num) { counter++; }
20819 if ((s = fork()) < 0) return 1;
20821 if (wait(&s) < 0) return 1;
20822 return WIFSIGNALED(s)? 1 : 0;
20825 signal(SIGHUP, handler);
20826 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20827 return (counter == 2)? 0 : 1;
20831 rm -f conftest$ac_exeext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20833 (eval $ac_link) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 knfsd_cv_bsd_signals=yes
20844 echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ( exit $ac_status )
20849 knfsd_cv_bsd_signals=no
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20856 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20857 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20858 test $knfsd_cv_bsd_signals = yes &&
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_BSD_SIGNALS 1
20865 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20866 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
20867 if test "${ac_cv_lib_socket_main+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 ac_check_lib_save_LIBS=$LIBS
20871 LIBS="-lsocket $LIBS"
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>conftest.er1
20892 grep -v '^ *+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; } &&
20903 { ac_try='test -s conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ac_cv_lib_socket_main=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_cv_lib_socket_main=no
20917 rm -f conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20922 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
20923 if test $ac_cv_lib_socket_main = yes; then
20927 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20928 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
20929 if test "${ac_cv_lib_nsl_main+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 ac_check_lib_save_LIBS=$LIBS
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20952 (eval $ac_link) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_lib_nsl_main=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_lib_nsl_main=no
20979 rm -f conftest.err conftest.$ac_objext \
20980 conftest$ac_exeext conftest.$ac_ext
20981 LIBS=$ac_check_lib_save_LIBS
20983 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20984 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
20985 if test $ac_cv_lib_nsl_main = yes; then
20989 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20990 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-lcrypt $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest$ac_exeext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 ac_cv_lib_crypt_crypt=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_cv_lib_crypt_crypt=no
21047 rm -f conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21049 LIBS=$ac_check_lib_save_LIBS
21051 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21052 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21053 if test $ac_cv_lib_crypt_crypt = yes; then
21057 if test "$enable_nfsv4" = yes; then
21058 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21059 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21060 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 ac_check_lib_save_LIBS=$LIBS
21064 LIBS="-levent $LIBS"
21065 cat >conftest.$ac_ext <<_ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21072 /* Override any GCC internal prototype to avoid an error.
21073 Use char because int might match the return type of a GCC
21074 builtin and then its argument prototype would still apply. */
21078 char event_dispatch ();
21082 return event_dispatch ();
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089 (eval $ac_link) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest$ac_exeext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_lib_event_event_dispatch=yes
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_cv_lib_event_event_dispatch=no
21116 rm -f conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21120 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21121 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21122 if test $ac_cv_lib_event_event_dispatch = yes; then
21125 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21126 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21127 { (exit 1); exit 1; }; }
21130 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21131 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21132 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 ac_check_lib_save_LIBS=$LIBS
21136 LIBS="-lnfsidmap $LIBS"
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21144 /* Override any GCC internal prototype to avoid an error.
21145 Use char because int might match the return type of a GCC
21146 builtin and then its argument prototype would still apply. */
21150 char nfs4_init_name_mapping ();
21154 return nfs4_init_name_mapping ();
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161 (eval $ac_link) 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21188 rm -f conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21192 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21193 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21194 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21197 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21198 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21199 { (exit 1); exit 1; }; }
21203 for ac_header in event.h
21205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 ac_res=`eval echo '${'$as_ac_Header'}'`
21213 { echo "$as_me:$LINENO: result: $ac_res" >&5
21214 echo "${ECHO_T}$ac_res" >&6; }
21216 # Is the header compilable?
21217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21226 #include <$ac_header>
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230 (eval $ac_compile) 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 ac_header_compiler=yes
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_header_compiler=no
21257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21259 echo "${ECHO_T}$ac_header_compiler" >&6; }
21261 # Is the header present?
21262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <$ac_header>
21272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } >/dev/null; then
21280 if test -s conftest.err; then
21281 ac_cpp_err=$ac_c_preproc_warn_flag
21282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21289 if test -z "$ac_cpp_err"; then
21290 ac_header_preproc=yes
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_header_preproc=no
21298 rm -f conftest.err conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21300 echo "${ECHO_T}$ac_header_preproc" >&6; }
21302 # So? What about this header?
21303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21309 ac_header_preproc=yes
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21325 ## ------------------------------- ##
21326 ## Report this to nfs@lists.sf.net ##
21327 ## ------------------------------- ##
21329 ) | sed "s/^/$as_me: WARNING: /" >&2
21332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 eval "$as_ac_Header=\$ac_header_preproc"
21339 ac_res=`eval echo '${'$as_ac_Header'}'`
21340 { echo "$as_me:$LINENO: result: $ac_res" >&5
21341 echo "${ECHO_T}$ac_res" >&6; }
21344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21345 cat >>confdefs.h <<_ACEOF
21346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21350 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21351 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21352 { (exit 1); exit 1; }; }
21358 for ac_header in nfsidmap.h
21360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 ac_res=`eval echo '${'$as_ac_Header'}'`
21368 { echo "$as_me:$LINENO: result: $ac_res" >&5
21369 echo "${ECHO_T}$ac_res" >&6; }
21371 # Is the header compilable?
21372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 $ac_includes_default
21381 #include <$ac_header>
21383 rm -f conftest.$ac_objext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21385 (eval $ac_compile) 2>conftest.er1
21387 grep -v '^ *+' conftest.er1 >conftest.err
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
21392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_header_compiler=yes
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_header_compiler=no
21412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <$ac_header>
21427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } >/dev/null; then
21435 if test -s conftest.err; then
21436 ac_cpp_err=$ac_c_preproc_warn_flag
21437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21444 if test -z "$ac_cpp_err"; then
21445 ac_header_preproc=yes
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_header_preproc=no
21453 rm -f conftest.err conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21455 echo "${ECHO_T}$ac_header_preproc" >&6; }
21457 # So? What about this header?
21458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21464 ac_header_preproc=yes
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21480 ## ------------------------------- ##
21481 ## Report this to nfs@lists.sf.net ##
21482 ## ------------------------------- ##
21484 ) | sed "s/^/$as_me: WARNING: /" >&2
21487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 eval "$as_ac_Header=\$ac_header_preproc"
21494 ac_res=`eval echo '${'$as_ac_Header'}'`
21495 { echo "$as_me:$LINENO: result: $ac_res" >&5
21496 echo "${ECHO_T}$ac_res" >&6; }
21499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21505 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21506 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21507 { (exit 1); exit 1; }; }
21512 if test "$enable_gss" = yes; then
21515 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21516 if test -n "$ac_tool_prefix"; then
21517 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21518 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 case $PKG_CONFIG in
21526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21530 for as_dir in $PATH
21533 test -z "$as_dir" && as_dir=.
21534 for ac_exec_ext in '' $ac_executable_extensions; do
21535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21548 if test -n "$PKG_CONFIG"; then
21549 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21550 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21552 { echo "$as_me:$LINENO: result: no" >&5
21553 echo "${ECHO_T}no" >&6; }
21558 if test -z "$ac_cv_path_PKG_CONFIG"; then
21559 ac_pt_PKG_CONFIG=$PKG_CONFIG
21560 # Extract the first word of "pkg-config", so it can be a program name with args.
21561 set dummy pkg-config; ac_word=$2
21562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21564 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 case $ac_pt_PKG_CONFIG in
21569 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21573 for as_dir in $PATH
21576 test -z "$as_dir" && as_dir=.
21577 for ac_exec_ext in '' $ac_executable_extensions; do
21578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21579 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21591 if test -n "$ac_pt_PKG_CONFIG"; then
21592 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21593 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21595 { echo "$as_me:$LINENO: result: no" >&5
21596 echo "${ECHO_T}no" >&6; }
21599 if test "x$ac_pt_PKG_CONFIG" = x; then
21602 case $cross_compiling:$ac_tool_warned in
21604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21605 whose name does not start with the host triplet. If you think this
21606 configuration is useful to you, please write to autoconf@gnu.org." >&5
21607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21608 whose name does not start with the host triplet. If you think this
21609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21610 ac_tool_warned=yes ;;
21612 PKG_CONFIG=$ac_pt_PKG_CONFIG
21615 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21619 if test -n "$PKG_CONFIG"; then
21620 _pkg_min_version=0.9.0
21621 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21622 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21623 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21624 { echo "$as_me:$LINENO: result: yes" >&5
21625 echo "${ECHO_T}yes" >&6; }
21627 { echo "$as_me:$LINENO: result: no" >&5
21628 echo "${ECHO_T}no" >&6; }
21635 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21636 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21638 if test -n "$PKG_CONFIG"; then
21639 if test -n "$RPCSECGSS_CFLAGS"; then
21640 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21642 if test -n "$PKG_CONFIG" && \
21643 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21644 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; then
21648 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21656 if test -n "$PKG_CONFIG"; then
21657 if test -n "$RPCSECGSS_LIBS"; then
21658 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21660 if test -n "$PKG_CONFIG" && \
21661 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21662 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; then
21666 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21677 if test $pkg_failed = yes; then
21679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21680 _pkg_short_errors_supported=yes
21682 _pkg_short_errors_supported=no
21684 if test $_pkg_short_errors_supported = yes; then
21685 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21687 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21689 # Put the nasty error message in config.log where it belongs
21690 echo "$RPCSECGSS_PKG_ERRORS" >&5
21692 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
21693 If you have pkgconfig installed, you might try setting environment
21694 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21695 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21696 If you have pkgconfig installed, you might try setting environment
21697 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21698 { (exit 1); exit 1; }; }
21701 elif test $pkg_failed = untried; then
21702 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
21703 If you have pkgconfig installed, you might try setting environment
21704 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21705 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21706 If you have pkgconfig installed, you might try setting environment
21707 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21708 { (exit 1); exit 1; }; }
21712 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21713 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21714 { echo "$as_me:$LINENO: result: yes" >&5
21715 echo "${ECHO_T}yes" >&6; }
21720 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21721 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21723 if test -n "$PKG_CONFIG"; then
21724 if test -n "$GSSAPI_CFLAGS"; then
21725 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21727 if test -n "$PKG_CONFIG" && \
21728 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21729 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; then
21733 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21741 if test -n "$PKG_CONFIG"; then
21742 if test -n "$GSSAPI_LIBS"; then
21743 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21745 if test -n "$PKG_CONFIG" && \
21746 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21747 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; then
21751 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21762 if test $pkg_failed = yes; then
21764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21765 _pkg_short_errors_supported=yes
21767 _pkg_short_errors_supported=no
21769 if test $_pkg_short_errors_supported = yes; then
21770 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21772 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21774 # Put the nasty error message in config.log where it belongs
21775 echo "$GSSAPI_PKG_ERRORS" >&5
21777 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21781 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21782 installed software in a non-standard prefix.
21784 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21785 and GSSAPI_LIBS to avoid the need to call pkg-config.
21786 See the pkg-config man page for more details.
21788 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21792 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21793 installed software in a non-standard prefix.
21795 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21796 and GSSAPI_LIBS to avoid the need to call pkg-config.
21797 See the pkg-config man page for more details.
21799 { (exit 1); exit 1; }; }
21800 elif test $pkg_failed = untried; then
21801 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21802 is in your PATH or set the PKG_CONFIG environment variable to the full
21803 path to pkg-config.
21805 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21806 and GSSAPI_LIBS to avoid the need to call pkg-config.
21807 See the pkg-config man page for more details.
21809 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21810 See \`config.log' for more details." >&5
21811 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21812 is in your PATH or set the PKG_CONFIG environment variable to the full
21813 path to pkg-config.
21815 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21816 and GSSAPI_LIBS to avoid the need to call pkg-config.
21817 See the pkg-config man page for more details.
21819 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21820 See \`config.log' for more details." >&2;}
21821 { (exit 1); exit 1; }; }
21823 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21824 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21825 { echo "$as_me:$LINENO: result: yes" >&5
21826 echo "${ECHO_T}yes" >&6; }
21832 if test "$knfsd_cv_glibc2" = no; then
21833 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21834 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
21835 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 ac_check_lib_save_LIBS=$LIBS
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21847 /* Override any GCC internal prototype to avoid an error.
21848 Use char because int might match the return type of a GCC
21849 builtin and then its argument prototype would still apply. */
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21864 (eval $ac_link) 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
21871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 ac_cv_lib_bsd_daemon=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_cv_lib_bsd_daemon=no
21891 rm -f conftest.err conftest.$ac_objext \
21892 conftest$ac_exeext conftest.$ac_ext
21893 LIBS=$ac_check_lib_save_LIBS
21895 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21896 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
21897 if test $ac_cv_lib_bsd_daemon = yes; then
21907 if test "$enable_gss" = yes; then
21909 for ac_header in nfsidmap.h
21911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 ac_res=`eval echo '${'$as_ac_Header'}'`
21919 { echo "$as_me:$LINENO: result: $ac_res" >&5
21920 echo "${ECHO_T}$ac_res" >&6; }
21922 # Is the header compilable?
21923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 $ac_includes_default
21932 #include <$ac_header>
21934 rm -f conftest.$ac_objext
21935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21936 (eval $ac_compile) 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } &&
21943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; } &&
21949 { ac_try='test -s conftest.$ac_objext'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_header_compiler=yes
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ac_header_compiler=no
21963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 #include <$ac_header>
21978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } >/dev/null; then
21986 if test -s conftest.err; then
21987 ac_cpp_err=$ac_c_preproc_warn_flag
21988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21995 if test -z "$ac_cpp_err"; then
21996 ac_header_preproc=yes
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_header_preproc=no
22004 rm -f conftest.err conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22006 echo "${ECHO_T}$ac_header_preproc" >&6; }
22008 # So? What about this header?
22009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22015 ac_header_preproc=yes
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22031 ## ------------------------------- ##
22032 ## Report this to nfs@lists.sf.net ##
22033 ## ------------------------------- ##
22035 ) | sed "s/^/$as_me: WARNING: /" >&2
22038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 eval "$as_ac_Header=\$ac_header_preproc"
22045 ac_res=`eval echo '${'$as_ac_Header'}'`
22046 { echo "$as_me:$LINENO: result: $ac_res" >&5
22047 echo "${ECHO_T}$ac_res" >&6; }
22050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22051 cat >>confdefs.h <<_ACEOF
22052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22056 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22057 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22058 { (exit 1); exit 1; }; }
22064 for ac_header in spkm3.h
22066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22071 echo $ECHO_N "(cached) $ECHO_C" >&6
22073 ac_res=`eval echo '${'$as_ac_Header'}'`
22074 { echo "$as_me:$LINENO: result: $ac_res" >&5
22075 echo "${ECHO_T}$ac_res" >&6; }
22077 # Is the header compilable?
22078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 $ac_includes_default
22087 #include <$ac_header>
22089 rm -f conftest.$ac_objext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22091 (eval $ac_compile) 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } &&
22098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; } &&
22104 { ac_try='test -s conftest.$ac_objext'
22105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106 (eval $ac_try) 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
22110 ac_header_compiler=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_header_compiler=no
22118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22120 echo "${ECHO_T}$ac_header_compiler" >&6; }
22122 # Is the header present?
22123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 #include <$ac_header>
22133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } >/dev/null; then
22141 if test -s conftest.err; then
22142 ac_cpp_err=$ac_c_preproc_warn_flag
22143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22150 if test -z "$ac_cpp_err"; then
22151 ac_header_preproc=yes
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_header_preproc=no
22159 rm -f conftest.err conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22161 echo "${ECHO_T}$ac_header_preproc" >&6; }
22163 # So? What about this header?
22164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22170 ac_header_preproc=yes
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22186 ## ------------------------------- ##
22187 ## Report this to nfs@lists.sf.net ##
22188 ## ------------------------------- ##
22190 ) | sed "s/^/$as_me: WARNING: /" >&2
22193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 eval "$as_ac_Header=\$ac_header_preproc"
22200 ac_res=`eval echo '${'$as_ac_Header'}'`
22201 { echo "$as_me:$LINENO: result: $ac_res" >&5
22202 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22211 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22212 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22219 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22220 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22222 # Check whether --with-krb5 was given.
22223 if test "${with_krb5+set}" = set; then
22224 withval=$with_krb5; case "$withval" in
22229 krb5_with="$withval"
22236 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22237 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22239 if test -f $dir/bin/krb5-config; then
22240 K5CONFIG=$dir/bin/krb5-config
22241 elif test -f "/usr/kerberos/bin/krb5-config"; then
22242 K5CONFIG="/usr/kerberos/bin/krb5-config"
22243 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22244 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22246 if test "$K5CONFIG" != ""; then
22247 KRBCFLAGS=`$K5CONFIG --cflags`
22248 KRBLIBS=`$K5CONFIG --libs gssapi`
22249 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22251 cat >>confdefs.h <<_ACEOF
22252 #define KRB5_VERSION $K5VERS
22255 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22256 \( -f $dir/lib/libgssapi_krb5.a -o \
22257 -f $dir/lib/libgssapi_krb5.so \) ; then
22259 cat >>confdefs.h <<\_ACEOF
22260 #define HAVE_KRB5 1
22264 if test $K5VERS -le 131; then
22266 cat >>confdefs.h <<\_ACEOF
22267 #define USE_GSS_KRB5_CCACHE_NAME 1
22271 gssapi_lib=gssapi_krb5
22273 elif test \( -f $dir/include/heim_err.h -o\
22274 -f $dir/include/heimdal/heim_err.h \) -a \
22275 -f $dir/lib/libroken.a; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_HEIMDAL 1
22287 if test "x$KRBDIR" = "x"; then
22288 if test "x$krb5_with" = "x"; then
22289 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22290 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22291 { (exit 1); exit 1; }; }
22293 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22294 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22295 { (exit 1); exit 1; }; }
22298 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22299 echo "${ECHO_T}$KRBDIR" >&6; }
22301 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22302 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22303 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22304 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 ac_check_lib_save_LIBS=$LIBS
22308 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22316 /* Override any GCC internal prototype to avoid an error.
22317 Use char because int might match the return type of a GCC
22318 builtin and then its argument prototype would still apply. */
22322 char gss_krb5_export_lucid_sec_context ();
22326 return gss_krb5_export_lucid_sec_context ();
22331 rm -f conftest.$ac_objext conftest$ac_exeext
22332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333 (eval $ac_link) 2>conftest.er1
22335 grep -v '^ *+' conftest.er1 >conftest.err
22337 cat conftest.err >&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } &&
22340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest$ac_exeext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 eval "$as_ac_Lib=yes"
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 eval "$as_ac_Lib=no"
22360 rm -f conftest.err conftest.$ac_objext \
22361 conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22364 ac_res=`eval echo '${'$as_ac_Lib'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22369 cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22375 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22376 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22377 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22378 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 ac_check_lib_save_LIBS=$LIBS
22382 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22390 /* Override any GCC internal prototype to avoid an error.
22391 Use char because int might match the return type of a GCC
22392 builtin and then its argument prototype would still apply. */
22396 char gss_krb5_set_allowable_enctypes ();
22400 return gss_krb5_set_allowable_enctypes ();
22405 rm -f conftest.$ac_objext conftest$ac_exeext
22406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22407 (eval $ac_link) 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } &&
22414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; } &&
22420 { ac_try='test -s conftest$ac_exeext'
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 eval "$as_ac_Lib=yes"
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 eval "$as_ac_Lib=no"
22434 rm -f conftest.err conftest.$ac_objext \
22435 conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22438 ac_res=`eval echo '${'$as_ac_Lib'}'`
22439 { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22443 cat >>confdefs.h <<\_ACEOF
22444 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22449 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22450 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22451 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22452 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 ac_check_lib_save_LIBS=$LIBS
22456 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22464 /* Override any GCC internal prototype to avoid an error.
22465 Use char because int might match the return type of a GCC
22466 builtin and then its argument prototype would still apply. */
22470 char gss_krb5_ccache_name ();
22474 return gss_krb5_ccache_name ();
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22481 (eval $ac_link) 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; } &&
22494 { ac_try='test -s conftest$ac_exeext'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; }; then
22500 eval "$as_ac_Lib=yes"
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 eval "$as_ac_Lib=no"
22508 rm -f conftest.err conftest.$ac_objext \
22509 conftest$ac_exeext conftest.$ac_ext
22510 LIBS=$ac_check_lib_save_LIBS
22512 ac_res=`eval echo '${'$as_ac_Lib'}'`
22513 { echo "$as_me:$LINENO: result: $ac_res" >&5
22514 echo "${ECHO_T}$ac_res" >&6; }
22515 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22524 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22525 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22526 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22536 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22537 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22538 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 ac_check_lib_save_LIBS=$LIBS
22542 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22550 /* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22556 char authgss_create_default ();
22560 return authgss_create_default ();
22565 rm -f conftest.$ac_objext conftest$ac_exeext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567 (eval $ac_link) 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } &&
22574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest$ac_exeext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ac_cv_lib_rpcsecgss_authgss_create_default=no
22594 rm -f conftest.err conftest.$ac_objext \
22595 conftest$ac_exeext conftest.$ac_ext
22596 LIBS=$ac_check_lib_save_LIBS
22598 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22599 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22600 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22603 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22604 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22605 { (exit 1); exit 1; }; }
22608 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22609 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22610 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22615 cat >conftest.$ac_ext <<_ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22622 /* Override any GCC internal prototype to avoid an error.
22623 Use char because int might match the return type of a GCC
22624 builtin and then its argument prototype would still apply. */
22628 char authgss_set_debug_level ();
22632 return authgss_set_debug_level ();
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22639 (eval $ac_link) 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } &&
22646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; } &&
22652 { ac_try='test -s conftest$ac_exeext'
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22666 rm -f conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22670 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22671 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22672 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22674 cat >>confdefs.h <<\_ACEOF
22675 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22705 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22706 malloc.h memory.h netdb.h netinet/in.h paths.h \
22707 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22708 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22709 syslog.h unistd.h com_err.h et/com_err.h
22711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 ac_res=`eval echo '${'$as_ac_Header'}'`
22719 { echo "$as_me:$LINENO: result: $ac_res" >&5
22720 echo "${ECHO_T}$ac_res" >&6; }
22722 # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #include <$ac_header>
22734 rm -f conftest.$ac_objext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22736 (eval $ac_compile) 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
22743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; } &&
22749 { ac_try='test -s conftest.$ac_objext'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ac_header_compiler=yes
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_header_compiler=no
22763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22765 echo "${ECHO_T}$ac_header_compiler" >&6; }
22767 # Is the header present?
22768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <$ac_header>
22778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } >/dev/null; then
22786 if test -s conftest.err; then
22787 ac_cpp_err=$ac_c_preproc_warn_flag
22788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22795 if test -z "$ac_cpp_err"; then
22796 ac_header_preproc=yes
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 ac_header_preproc=no
22804 rm -f conftest.err conftest.$ac_ext
22805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22806 echo "${ECHO_T}$ac_header_preproc" >&6; }
22808 # So? What about this header?
22809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22815 ac_header_preproc=yes
22818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22831 ## ------------------------------- ##
22832 ## Report this to nfs@lists.sf.net ##
22833 ## ------------------------------- ##
22835 ) | sed "s/^/$as_me: WARNING: /" >&2
22838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22843 eval "$as_ac_Header=\$ac_header_preproc"
22845 ac_res=`eval echo '${'$as_ac_Header'}'`
22846 { echo "$as_me:$LINENO: result: $ac_res" >&5
22847 echo "${ECHO_T}$ac_res" >&6; }
22850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22851 cat >>confdefs.h <<_ACEOF
22852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22860 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22861 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22862 if test "${ac_cv_c_const+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22875 /* FIXME: Include the comments suggested by Paul. */
22876 #ifndef __cplusplus
22877 /* Ultrix mips cc rejects this. */
22878 typedef int charset[2];
22880 /* SunOS 4.1.1 cc rejects this. */
22881 char const *const *ccp;
22883 /* NEC SVR4.0.2 mips cc rejects this. */
22884 struct point {int x, y;};
22885 static struct point const zero = {0,0};
22886 /* AIX XL C 1.02.0.0 rejects this.
22887 It does not let you subtract one const X* pointer from another in
22888 an arm of an if-expression whose if-part is not a constant
22890 const char *g = "string";
22891 ccp = &g + (g ? g-g : 0);
22892 /* HPUX 7.0 cc rejects these. */
22895 ccp = (char const *const *) p;
22896 { /* SCO 3.2v4 cc rejects this. */
22898 char const *s = 0 ? (char *) 0 : (char const *) 0;
22903 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22904 int x[] = {25, 17};
22905 const int *foo = &x[0];
22908 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22909 typedef const int *iptr;
22913 { /* AIX XL C 1.02.0.0 rejects this saying
22914 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22915 struct s { int j; const int *ap[3]; };
22916 struct s *b; b->j = 5;
22918 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22919 const int foo = 10;
22920 if (!foo) return 0;
22922 return !x[0] && !zero.x;
22929 rm -f conftest.$ac_objext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22931 (eval $ac_compile) 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
22938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; } &&
22944 { ac_try='test -s conftest.$ac_objext'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; }; then
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22962 if test $ac_cv_c_const = no; then
22964 cat >>confdefs.h <<\_ACEOF
22970 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22971 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22972 if test "${ac_cv_type_uid_t+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 cat >conftest.$ac_ext <<_ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22981 #include <sys/types.h>
22984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22985 $EGREP "uid_t" >/dev/null 2>&1; then
22986 ac_cv_type_uid_t=yes
22988 ac_cv_type_uid_t=no
22993 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22994 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22995 if test $ac_cv_type_uid_t = no; then
22997 cat >>confdefs.h <<\_ACEOF
23002 cat >>confdefs.h <<\_ACEOF
23008 { echo "$as_me:$LINENO: checking for inline" >&5
23009 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23010 if test "${ac_cv_c_inline+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 for ac_kw in inline __inline__ __inline; do
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 #ifndef __cplusplus
23023 static $ac_kw foo_t static_foo () {return 0; }
23024 $ac_kw foo_t foo () {return 0; }
23028 rm -f conftest.$ac_objext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23030 (eval $ac_compile) 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
23037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; } &&
23043 { ac_try='test -s conftest.$ac_objext'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 ac_cv_c_inline=$ac_kw
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23058 test "$ac_cv_c_inline" != no && break
23062 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23063 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23066 case $ac_cv_c_inline in
23069 case $ac_cv_c_inline in
23071 *) ac_val=$ac_cv_c_inline;;
23073 cat >>confdefs.h <<_ACEOF
23074 #ifndef __cplusplus
23075 #define inline $ac_val
23081 { echo "$as_me:$LINENO: checking for off_t" >&5
23082 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23083 if test "${ac_cv_type_off_t+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 $ac_includes_default
23093 typedef off_t ac__type_new_;
23097 if ((ac__type_new_ *) 0)
23099 if (sizeof (ac__type_new_))
23105 rm -f conftest.$ac_objext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23107 (eval $ac_compile) 2>conftest.er1
23109 grep -v '^ *+' conftest.er1 >conftest.err
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } &&
23114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest.$ac_objext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_type_off_t=yes
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 ac_cv_type_off_t=no
23134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23136 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23137 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23138 if test $ac_cv_type_off_t = yes; then
23142 cat >>confdefs.h <<_ACEOF
23143 #define off_t long int
23148 { echo "$as_me:$LINENO: checking for pid_t" >&5
23149 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23150 if test "${ac_cv_type_pid_t+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 cat >conftest.$ac_ext <<_ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23159 $ac_includes_default
23160 typedef pid_t ac__type_new_;
23164 if ((ac__type_new_ *) 0)
23166 if (sizeof (ac__type_new_))
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>conftest.er1
23176 grep -v '^ *+' conftest.er1 >conftest.err
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
23181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_type_pid_t=yes
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_cv_type_pid_t=no
23201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23204 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23205 if test $ac_cv_type_pid_t = yes; then
23209 cat >>confdefs.h <<_ACEOF
23215 { echo "$as_me:$LINENO: checking for size_t" >&5
23216 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23217 if test "${ac_cv_type_size_t+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 $ac_includes_default
23227 typedef size_t ac__type_new_;
23231 if ((ac__type_new_ *) 0)
23233 if (sizeof (ac__type_new_))
23239 rm -f conftest.$ac_objext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23241 (eval $ac_compile) 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } &&
23248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try='test -s conftest.$ac_objext'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; }; then
23260 ac_cv_type_size_t=yes
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ac_cv_type_size_t=no
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23270 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23271 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23272 if test $ac_cv_type_size_t = yes; then
23276 cat >>confdefs.h <<_ACEOF
23277 #define size_t unsigned int
23282 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23284 if test "${ac_cv_header_time+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23287 cat >conftest.$ac_ext <<_ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293 #include <sys/types.h>
23294 #include <sys/time.h>
23300 if ((struct tm *) 0)
23306 rm -f conftest.$ac_objext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23308 (eval $ac_compile) 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_header_time=yes
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23332 ac_cv_header_time=no
23335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23339 if test $ac_cv_header_time = yes; then
23341 cat >>confdefs.h <<\_ACEOF
23342 #define TIME_WITH_SYS_TIME 1
23347 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23348 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23349 if test "${ac_cv_struct_tm+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 cat >conftest.$ac_ext <<_ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 #include <sys/types.h>
23364 struct tm *tp; tp->tm_sec;
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest.$ac_objext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_struct_tm=time.h
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23395 ac_cv_struct_tm=sys/time.h
23398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23400 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23401 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23402 if test $ac_cv_struct_tm = sys/time.h; then
23404 cat >>confdefs.h <<\_ACEOF
23405 #define TM_IN_SYS_TIME 1
23411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23412 # for constant arguments. Useless!
23413 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23414 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23415 if test "${ac_cv_working_alloca_h+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 #include <alloca.h>
23428 char *p = (char *) alloca (2 * sizeof (int));
23433 rm -f conftest.$ac_objext conftest$ac_exeext
23434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23435 (eval $ac_link) 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } &&
23442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 ac_cv_working_alloca_h=yes
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ac_cv_working_alloca_h=no
23462 rm -f conftest.err conftest.$ac_objext \
23463 conftest$ac_exeext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23466 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23467 if test $ac_cv_working_alloca_h = yes; then
23469 cat >>confdefs.h <<\_ACEOF
23470 #define HAVE_ALLOCA_H 1
23475 { echo "$as_me:$LINENO: checking for alloca" >&5
23476 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23477 if test "${ac_cv_func_alloca_works+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23480 cat >conftest.$ac_ext <<_ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23487 # define alloca __builtin_alloca
23490 # include <malloc.h>
23491 # define alloca _alloca
23494 # include <alloca.h>
23499 # ifndef alloca /* predefined by HP cc +Olibcalls */
23510 char *p = (char *) alloca (1);
23515 rm -f conftest.$ac_objext conftest$ac_exeext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517 (eval $ac_link) 2>conftest.er1
23519 grep -v '^ *+' conftest.er1 >conftest.err
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } &&
23524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; } &&
23530 { ac_try='test -s conftest$ac_exeext'
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; }; then
23536 ac_cv_func_alloca_works=yes
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 ac_cv_func_alloca_works=no
23544 rm -f conftest.err conftest.$ac_objext \
23545 conftest$ac_exeext conftest.$ac_ext
23547 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23548 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23550 if test $ac_cv_func_alloca_works = yes; then
23552 cat >>confdefs.h <<\_ACEOF
23553 #define HAVE_ALLOCA 1
23557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23558 # that cause trouble. Some versions do not even contain alloca or
23559 # contain a buggy version. If you still want to use their alloca,
23560 # use ar to extract alloca.o from them instead of compiling alloca.c.
23562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23564 cat >>confdefs.h <<\_ACEOF
23569 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23570 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23571 if test "${ac_cv_os_cray+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #if defined CRAY && ! defined CRAY2
23587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23588 $EGREP "webecray" >/dev/null 2>&1; then
23596 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23597 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23598 if test $ac_cv_os_cray = yes; then
23599 for ac_func in _getb67 GETB67 getb67; do
23600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23614 #define $ac_func innocuous_$ac_func
23616 /* System header to define __stub macros and hopefully few prototypes,
23617 which can conflict with char $ac_func (); below.
23618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23619 <limits.h> exists even on freestanding compilers. */
23622 # include <limits.h>
23624 # include <assert.h>
23629 /* Override any GCC internal prototype to avoid an error.
23630 Use char because int might match the return type of a GCC
23631 builtin and then its argument prototype would still apply. */
23636 /* The GNU C library defines this for functions which it implements
23637 to always fail with ENOSYS. Some functions are actually named
23638 something starting with __ and the normal name is an alias. */
23639 #if defined __stub_$ac_func || defined __stub___$ac_func
23646 return $ac_func ();
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; } &&
23666 { ac_try='test -s conftest$ac_exeext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 eval "$as_ac_var=yes"
23674 echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23677 eval "$as_ac_var=no"
23680 rm -f conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext conftest.$ac_ext
23683 ac_res=`eval echo '${'$as_ac_var'}'`
23684 { echo "$as_me:$LINENO: result: $ac_res" >&5
23685 echo "${ECHO_T}$ac_res" >&6; }
23686 if test `eval echo '${'$as_ac_var'}'` = yes; then
23688 cat >>confdefs.h <<_ACEOF
23689 #define CRAY_STACKSEG_END $ac_func
23698 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23699 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23700 if test "${ac_cv_c_stack_direction+set}" = set; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 if test "$cross_compiling" = yes; then
23704 ac_cv_c_stack_direction=0
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 $ac_includes_default
23714 find_stack_direction ()
23716 static char *addr = 0;
23721 return find_stack_direction ();
23724 return (&dummy > addr) ? 1 : -1;
23730 return find_stack_direction () < 0;
23733 rm -f conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
23744 ac_cv_c_stack_direction=1
23746 echo "$as_me: program exited with status $ac_status" >&5
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ( exit $ac_status )
23751 ac_cv_c_stack_direction=-1
23753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23759 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23761 cat >>confdefs.h <<_ACEOF
23762 #define STACK_DIRECTION $ac_cv_c_stack_direction
23773 ac_header_dirent=no
23774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23775 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23776 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23781 cat >conftest.$ac_ext <<_ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23787 #include <sys/types.h>
23799 rm -f conftest.$ac_objext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23801 (eval $ac_compile) 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; } &&
23814 { ac_try='test -s conftest.$ac_objext'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 eval "$as_ac_Header=yes"
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 eval "$as_ac_Header=no"
23828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23830 ac_res=`eval echo '${'$as_ac_Header'}'`
23831 { echo "$as_me:$LINENO: result: $ac_res" >&5
23832 echo "${ECHO_T}$ac_res" >&6; }
23833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23834 cat >>confdefs.h <<_ACEOF
23835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23838 ac_header_dirent=$ac_hdr; break
23842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23843 if test $ac_header_dirent = dirent.h; then
23844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23846 if test "${ac_cv_search_opendir+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 ac_func_search_save_LIBS=$LIBS
23850 cat >conftest.$ac_ext <<_ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23857 /* Override any GCC internal prototype to avoid an error.
23858 Use char because int might match the return type of a GCC
23859 builtin and then its argument prototype would still apply. */
23872 for ac_lib in '' dir; do
23873 if test -z "$ac_lib"; then
23874 ac_res="none required"
23877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23879 rm -f conftest.$ac_objext conftest$ac_exeext
23880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23881 (eval $ac_link) 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } &&
23888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890 (eval $ac_try) 2>&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); }; } &&
23894 { ac_try='test -s conftest$ac_exeext'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; }; then
23900 ac_cv_search_opendir=$ac_res
23902 echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23908 rm -f conftest.err conftest.$ac_objext \
23910 if test "${ac_cv_search_opendir+set}" = set; then
23914 if test "${ac_cv_search_opendir+set}" = set; then
23917 ac_cv_search_opendir=no
23919 rm conftest.$ac_ext
23920 LIBS=$ac_func_search_save_LIBS
23922 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23923 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23924 ac_res=$ac_cv_search_opendir
23925 if test "$ac_res" != no; then
23926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23933 if test "${ac_cv_search_opendir+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23936 ac_func_search_save_LIBS=$LIBS
23937 cat >conftest.$ac_ext <<_ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23944 /* Override any GCC internal prototype to avoid an error.
23945 Use char because int might match the return type of a GCC
23946 builtin and then its argument prototype would still apply. */
23959 for ac_lib in '' x; do
23960 if test -z "$ac_lib"; then
23961 ac_res="none required"
23964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23966 rm -f conftest.$ac_objext conftest$ac_exeext
23967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23968 (eval $ac_link) 2>conftest.er1
23970 grep -v '^ *+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
23975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; } &&
23981 { ac_try='test -s conftest$ac_exeext'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 ac_cv_search_opendir=$ac_res
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23995 rm -f conftest.err conftest.$ac_objext \
23997 if test "${ac_cv_search_opendir+set}" = set; then
24001 if test "${ac_cv_search_opendir+set}" = set; then
24004 ac_cv_search_opendir=no
24006 rm conftest.$ac_ext
24007 LIBS=$ac_func_search_save_LIBS
24009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24011 ac_res=$ac_cv_search_opendir
24012 if test "$ac_res" != no; then
24013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24019 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24020 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24021 if test "${ac_cv_func_closedir_void+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 if test "$cross_compiling" = yes; then
24025 ac_cv_func_closedir_void=yes
24027 cat >conftest.$ac_ext <<_ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 $ac_includes_default
24034 #include <$ac_header_dirent>
24035 #ifndef __cplusplus
24042 return closedir (opendir (".")) != 0;
24047 rm -f conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049 (eval $ac_link) 2>&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 ac_cv_func_closedir_void=no
24060 echo "$as_me: program exited with status $ac_status" >&5
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ( exit $ac_status )
24065 ac_cv_func_closedir_void=yes
24067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24072 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24073 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24074 if test $ac_cv_func_closedir_void = yes; then
24076 cat >>confdefs.h <<\_ACEOF
24077 #define CLOSEDIR_VOID 1
24082 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24083 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24084 if test "${ac_cv_lib_error_at_line+set}" = set; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 cat >conftest.$ac_ext <<_ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093 $ac_includes_default
24097 error_at_line (0, 0, "", 0, "");
24102 rm -f conftest.$ac_objext conftest$ac_exeext
24103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24104 (eval $ac_link) 2>conftest.er1
24106 grep -v '^ *+' conftest.er1 >conftest.err
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
24111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; } &&
24117 { ac_try='test -s conftest$ac_exeext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24123 ac_cv_lib_error_at_line=yes
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24128 ac_cv_lib_error_at_line=no
24131 rm -f conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
24134 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24135 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24136 if test $ac_cv_lib_error_at_line = no; then
24137 case " $LIBOBJS " in
24138 *" error.$ac_objext "* ) ;;
24139 *) LIBOBJS="$LIBOBJS error.$ac_objext"
24146 for ac_header in vfork.h
24148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 ac_res=`eval echo '${'$as_ac_Header'}'`
24156 { echo "$as_me:$LINENO: result: $ac_res" >&5
24157 echo "${ECHO_T}$ac_res" >&6; }
24159 # Is the header compilable?
24160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 $ac_includes_default
24169 #include <$ac_header>
24171 rm -f conftest.$ac_objext
24172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24173 (eval $ac_compile) 2>conftest.er1
24175 grep -v '^ *+' conftest.er1 >conftest.err
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } &&
24180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; } &&
24186 { ac_try='test -s conftest.$ac_objext'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_header_compiler=yes
24194 echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24197 ac_header_compiler=no
24200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24202 echo "${ECHO_T}$ac_header_compiler" >&6; }
24204 # Is the header present?
24205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <$ac_header>
24215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24218 grep -v '^ *+' conftest.er1 >conftest.err
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } >/dev/null; then
24223 if test -s conftest.err; then
24224 ac_cpp_err=$ac_c_preproc_warn_flag
24225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24232 if test -z "$ac_cpp_err"; then
24233 ac_header_preproc=yes
24235 echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 ac_header_preproc=no
24241 rm -f conftest.err conftest.$ac_ext
24242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24243 echo "${ECHO_T}$ac_header_preproc" >&6; }
24245 # So? What about this header?
24246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24252 ac_header_preproc=yes
24255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24268 ## ------------------------------- ##
24269 ## Report this to nfs@lists.sf.net ##
24270 ## ------------------------------- ##
24272 ) | sed "s/^/$as_me: WARNING: /" >&2
24275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24280 eval "$as_ac_Header=\$ac_header_preproc"
24282 ac_res=`eval echo '${'$as_ac_Header'}'`
24283 { echo "$as_me:$LINENO: result: $ac_res" >&5
24284 echo "${ECHO_T}$ac_res" >&6; }
24287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24288 cat >>confdefs.h <<_ACEOF
24289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24298 for ac_func in fork vfork
24300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24314 #define $ac_func innocuous_$ac_func
24316 /* System header to define __stub macros and hopefully few prototypes,
24317 which can conflict with char $ac_func (); below.
24318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24319 <limits.h> exists even on freestanding compilers. */
24322 # include <limits.h>
24324 # include <assert.h>
24329 /* Override any GCC internal prototype to avoid an error.
24330 Use char because int might match the return type of a GCC
24331 builtin and then its argument prototype would still apply. */
24336 /* The GNU C library defines this for functions which it implements
24337 to always fail with ENOSYS. Some functions are actually named
24338 something starting with __ and the normal name is an alias. */
24339 #if defined __stub_$ac_func || defined __stub___$ac_func
24346 return $ac_func ();
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24353 (eval $ac_link) 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
24360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362 (eval $ac_try) 2>&5
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; } &&
24366 { ac_try='test -s conftest$ac_exeext'
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368 (eval $ac_try) 2>&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; }; then
24372 eval "$as_ac_var=yes"
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 eval "$as_ac_var=no"
24380 rm -f conftest.err conftest.$ac_objext \
24381 conftest$ac_exeext conftest.$ac_ext
24383 ac_res=`eval echo '${'$as_ac_var'}'`
24384 { echo "$as_me:$LINENO: result: $ac_res" >&5
24385 echo "${ECHO_T}$ac_res" >&6; }
24386 if test `eval echo '${'$as_ac_var'}'` = yes; then
24387 cat >>confdefs.h <<_ACEOF
24388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24394 if test "x$ac_cv_func_fork" = xyes; then
24395 { echo "$as_me:$LINENO: checking for working fork" >&5
24396 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24397 if test "${ac_cv_func_fork_works+set}" = set; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24400 if test "$cross_compiling" = yes; then
24401 ac_cv_func_fork_works=cross
24403 cat >conftest.$ac_ext <<_ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24409 $ac_includes_default
24414 /* By Ruediger Kuhlmann. */
24415 return fork () < 0;
24421 rm -f conftest$ac_exeext
24422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24423 (eval $ac_link) 2>&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; }; then
24432 ac_cv_func_fork_works=yes
24434 echo "$as_me: program exited with status $ac_status" >&5
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ( exit $ac_status )
24439 ac_cv_func_fork_works=no
24441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24446 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24447 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24450 ac_cv_func_fork_works=$ac_cv_func_fork
24452 if test "x$ac_cv_func_fork_works" = xcross; then
24454 *-*-amigaos* | *-*-msdosdjgpp*)
24455 # Override, as these systems have only a dummy fork() stub
24456 ac_cv_func_fork_works=no
24459 ac_cv_func_fork_works=yes
24462 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24463 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24465 ac_cv_func_vfork_works=$ac_cv_func_vfork
24466 if test "x$ac_cv_func_vfork" = xyes; then
24467 { echo "$as_me:$LINENO: checking for working vfork" >&5
24468 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24469 if test "${ac_cv_func_vfork_works+set}" = set; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 if test "$cross_compiling" = yes; then
24473 ac_cv_func_vfork_works=cross
24475 cat >conftest.$ac_ext <<_ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h. */
24481 /* Thanks to Paul Eggert for this test. */
24482 $ac_includes_default
24483 #include <sys/wait.h>
24485 # include <vfork.h>
24487 /* On some sparc systems, changes by the child to local and incoming
24488 argument registers are propagated back to the parent. The compiler
24489 is told about this with #include <vfork.h>, but some compilers
24490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24491 static variable whose address is put into a register that is
24492 clobbered by the vfork. */
24495 sparc_address_test (int arg)
24497 sparc_address_test (arg) int arg;
24500 static pid_t child;
24518 pid_t parent = getpid ();
24521 sparc_address_test (0);
24526 /* Here is another test for sparc vfork register problems. This
24527 test uses lots of local variables, at least as many local
24528 variables as main has allocated so far including compiler
24529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24531 reuse the register of parent for one of the local variables,
24532 since it will think that parent can't possibly be used any more
24533 in this routine. Assigning to the local variable will thus
24534 munge parent in the parent process. */
24536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24538 /* Convince the compiler that p..p7 are live; otherwise, it might
24539 use the same hardware register for all 8 local variables. */
24540 if (p != p1 || p != p2 || p != p3 || p != p4
24541 || p != p5 || p != p6 || p != p7)
24544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24545 from child file descriptors. If the child closes a descriptor
24546 before it execs or exits, this munges the parent's descriptor
24547 as well. Test for this by closing stdout in the child. */
24548 _exit(close(fileno(stdout)) != 0);
24553 while (wait(&status) != child)
24556 /* Was there some problem with vforking? */
24559 /* Did the child fail? (This shouldn't happen.) */
24562 /* Did the vfork/compiler bug occur? */
24563 || parent != getpid()
24565 /* Did the file descriptor bug occur? */
24566 || fstat(fileno(stdout), &st) != 0
24571 rm -f conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573 (eval $ac_link) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 ac_cv_func_vfork_works=yes
24584 echo "$as_me: program exited with status $ac_status" >&5
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ( exit $ac_status )
24589 ac_cv_func_vfork_works=no
24591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24596 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24597 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24600 if test "x$ac_cv_func_fork_works" = xcross; then
24601 ac_cv_func_vfork_works=$ac_cv_func_vfork
24602 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24603 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24606 if test "x$ac_cv_func_vfork_works" = xyes; then
24608 cat >>confdefs.h <<\_ACEOF
24609 #define HAVE_WORKING_VFORK 1
24614 cat >>confdefs.h <<\_ACEOF
24619 if test "x$ac_cv_func_fork_works" = xyes; then
24621 cat >>confdefs.h <<\_ACEOF
24622 #define HAVE_WORKING_FORK 1
24627 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24628 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24629 if test "${ac_cv_type_getgroups+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 if test "$cross_compiling" = yes; then
24633 ac_cv_type_getgroups=cross
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 /* Thanks to Mike Rendell for this test. */
24642 $ac_includes_default
24645 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24650 gid_t gidset[NGID];
24652 union { gid_t gval; long int lval; } val;
24655 for (i = 0; i < NGID; i++)
24656 gidset[i] = val.gval;
24657 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24659 /* Exit non-zero if getgroups seems to require an array of ints. This
24660 happens when gid_t is short int but getgroups modifies an array
24662 return n > 0 && gidset[n] != val.gval;
24665 rm -f conftest$ac_exeext
24666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24667 (eval $ac_link) 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
24676 ac_cv_type_getgroups=gid_t
24678 echo "$as_me: program exited with status $ac_status" >&5
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24682 ( exit $ac_status )
24683 ac_cv_type_getgroups=int
24685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24689 if test $ac_cv_type_getgroups = cross; then
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 #include <unistd.h>
24699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24700 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24701 ac_cv_type_getgroups=gid_t
24703 ac_cv_type_getgroups=int
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24710 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24712 cat >>confdefs.h <<_ACEOF
24713 #define GETGROUPS_T $ac_cv_type_getgroups
24717 { echo "$as_me:$LINENO: checking for getgroups" >&5
24718 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24719 if test "${ac_cv_func_getgroups+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24728 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24730 #define getgroups innocuous_getgroups
24732 /* System header to define __stub macros and hopefully few prototypes,
24733 which can conflict with char getgroups (); below.
24734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24735 <limits.h> exists even on freestanding compilers. */
24738 # include <limits.h>
24740 # include <assert.h>
24745 /* Override any GCC internal prototype to avoid an error.
24746 Use char because int might match the return type of a GCC
24747 builtin and then its argument prototype would still apply. */
24752 /* The GNU C library defines this for functions which it implements
24753 to always fail with ENOSYS. Some functions are actually named
24754 something starting with __ and the normal name is an alias. */
24755 #if defined __stub_getgroups || defined __stub___getgroups
24762 return getgroups ();
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24769 (eval $ac_link) 2>conftest.er1
24771 grep -v '^ *+' conftest.er1 >conftest.err
24773 cat conftest.err >&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } &&
24776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; } &&
24782 { ac_try='test -s conftest$ac_exeext'
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; }; then
24788 ac_cv_func_getgroups=yes
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ac_cv_func_getgroups=no
24796 rm -f conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24800 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
24803 # If we don't yet have getgroups, see if it's in -lbsd.
24804 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24806 if test $ac_cv_func_getgroups = no; then
24807 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24808 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
24809 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 ac_check_lib_save_LIBS=$LIBS
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24821 /* Override any GCC internal prototype to avoid an error.
24822 Use char because int might match the return type of a GCC
24823 builtin and then its argument prototype would still apply. */
24831 return getgroups ();
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838 (eval $ac_link) 2>conftest.er1
24840 grep -v '^ *+' conftest.er1 >conftest.err
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } &&
24845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_cv_lib_bsd_getgroups=yes
24859 echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24862 ac_cv_lib_bsd_getgroups=no
24865 rm -f conftest.err conftest.$ac_objext \
24866 conftest$ac_exeext conftest.$ac_ext
24867 LIBS=$ac_check_lib_save_LIBS
24869 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24870 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
24871 if test $ac_cv_lib_bsd_getgroups = yes; then
24872 GETGROUPS_LIB=-lbsd
24877 # Run the program to test the functionality of the system-supplied
24878 # getgroups function only if there is such a function.
24879 if test $ac_cv_func_getgroups = yes; then
24880 { echo "$as_me:$LINENO: checking for working getgroups" >&5
24881 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
24882 if test "${ac_cv_func_getgroups_works+set}" = set; then
24883 echo $ECHO_N "(cached) $ECHO_C" >&6
24885 if test "$cross_compiling" = yes; then
24886 ac_cv_func_getgroups_works=no
24888 cat >conftest.$ac_ext <<_ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24894 $ac_includes_default
24898 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24899 return getgroups (0, 0) == -1;
24904 rm -f conftest$ac_exeext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906 (eval $ac_link) 2>&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_func_getgroups_works=yes
24917 echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ( exit $ac_status )
24922 ac_cv_func_getgroups_works=no
24924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24930 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24931 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
24932 if test $ac_cv_func_getgroups_works = yes; then
24934 cat >>confdefs.h <<\_ACEOF
24935 #define HAVE_GETGROUPS 1
24942 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24943 # -lseq on Dynix/PTX, -lgen on Unixware.
24944 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24945 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
24946 if test "${ac_cv_search_getmntent+set}" = set; then
24947 echo $ECHO_N "(cached) $ECHO_C" >&6
24949 ac_func_search_save_LIBS=$LIBS
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24957 /* Override any GCC internal prototype to avoid an error.
24958 Use char because int might match the return type of a GCC
24959 builtin and then its argument prototype would still apply. */
24967 return getmntent ();
24972 for ac_lib in '' sun seq gen; do
24973 if test -z "$ac_lib"; then
24974 ac_res="none required"
24977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24979 rm -f conftest.$ac_objext conftest$ac_exeext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24981 (eval $ac_link) 2>conftest.er1
24983 grep -v '^ *+' conftest.er1 >conftest.err
24985 cat conftest.err >&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } &&
24988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; } &&
24994 { ac_try='test -s conftest$ac_exeext'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25000 ac_cv_search_getmntent=$ac_res
25002 echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25008 rm -f conftest.err conftest.$ac_objext \
25010 if test "${ac_cv_search_getmntent+set}" = set; then
25014 if test "${ac_cv_search_getmntent+set}" = set; then
25017 ac_cv_search_getmntent=no
25019 rm conftest.$ac_ext
25020 LIBS=$ac_func_search_save_LIBS
25022 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25023 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25024 ac_res=$ac_cv_search_getmntent
25025 if test "$ac_res" != no; then
25026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25028 for ac_func in getmntent
25030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25036 cat >conftest.$ac_ext <<_ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25044 #define $ac_func innocuous_$ac_func
25046 /* System header to define __stub macros and hopefully few prototypes,
25047 which can conflict with char $ac_func (); below.
25048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25049 <limits.h> exists even on freestanding compilers. */
25052 # include <limits.h>
25054 # include <assert.h>
25059 /* Override any GCC internal prototype to avoid an error.
25060 Use char because int might match the return type of a GCC
25061 builtin and then its argument prototype would still apply. */
25066 /* The GNU C library defines this for functions which it implements
25067 to always fail with ENOSYS. Some functions are actually named
25068 something starting with __ and the normal name is an alias. */
25069 #if defined __stub_$ac_func || defined __stub___$ac_func
25076 return $ac_func ();
25081 rm -f conftest.$ac_objext conftest$ac_exeext
25082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25083 (eval $ac_link) 2>conftest.er1
25085 grep -v '^ *+' conftest.er1 >conftest.err
25087 cat conftest.err >&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } &&
25090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25102 eval "$as_ac_var=yes"
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 eval "$as_ac_var=no"
25110 rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
25113 ac_res=`eval echo '${'$as_ac_var'}'`
25114 { echo "$as_me:$LINENO: result: $ac_res" >&5
25115 echo "${ECHO_T}$ac_res" >&6; }
25116 if test `eval echo '${'$as_ac_var'}'` = yes; then
25117 cat >>confdefs.h <<_ACEOF
25118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25127 if test $ac_cv_c_compiler_gnu = yes; then
25128 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 ac_pattern="Autoconf.*'x'"
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25144 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25145 ac_cv_prog_gcc_traditional=yes
25147 ac_cv_prog_gcc_traditional=no
25152 if test $ac_cv_prog_gcc_traditional = no; then
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 #include <termio.h>
25162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25164 ac_cv_prog_gcc_traditional=yes
25170 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25172 if test $ac_cv_prog_gcc_traditional = yes; then
25173 CC="$CC -traditional"
25177 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25178 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25179 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 rm -f conftest.sym conftest.file
25183 echo >conftest.file
25184 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25185 if test "$cross_compiling" = yes; then
25186 ac_cv_func_lstat_dereferences_slashed_symlink=no
25188 cat >conftest.$ac_ext <<_ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 $ac_includes_default
25199 /* Linux will dereference the symlink and fail.
25200 That is better in the sense that it means we will not
25201 have to compile and use the lstat wrapper. */
25202 return lstat ("conftest.sym/", &sbuf) != 0;
25207 rm -f conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214 (eval $ac_try) 2>&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25220 echo "$as_me: program exited with status $ac_status" >&5
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ( exit $ac_status )
25225 ac_cv_func_lstat_dereferences_slashed_symlink=no
25227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25232 # If the `ln -s' command failed, then we probably don't even
25233 # have an lstat function.
25234 ac_cv_func_lstat_dereferences_slashed_symlink=no
25236 rm -f conftest.sym conftest.file
25239 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25240 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25242 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25244 cat >>confdefs.h <<_ACEOF
25245 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25249 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25250 case " $LIBOBJS " in
25251 *" lstat.$ac_objext "* ) ;;
25252 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25258 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25259 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25260 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25263 if test "$cross_compiling" = yes; then
25264 ac_cv_func_lstat_empty_string_bug=yes
25266 cat >conftest.$ac_ext <<_ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25277 return lstat ("", &sbuf) == 0;
25282 rm -f conftest$ac_exeext
25283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284 (eval $ac_link) 2>&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_cv_func_lstat_empty_string_bug=no
25295 echo "$as_me: program exited with status $ac_status" >&5
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ( exit $ac_status )
25300 ac_cv_func_lstat_empty_string_bug=yes
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25308 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25309 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25310 case " $LIBOBJS " in
25311 *" lstat.$ac_objext "* ) ;;
25312 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25317 cat >>confdefs.h <<_ACEOF
25318 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25323 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25324 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25325 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25326 echo $ECHO_N "(cached) $ECHO_C" >&6
25328 rm -f conftest.sym conftest.file
25329 echo >conftest.file
25330 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25331 if test "$cross_compiling" = yes; then
25332 ac_cv_func_lstat_dereferences_slashed_symlink=no
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 $ac_includes_default
25345 /* Linux will dereference the symlink and fail.
25346 That is better in the sense that it means we will not
25347 have to compile and use the lstat wrapper. */
25348 return lstat ("conftest.sym/", &sbuf) != 0;
25353 rm -f conftest$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355 (eval $ac_link) 2>&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
25364 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25366 echo "$as_me: program exited with status $ac_status" >&5
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ( exit $ac_status )
25371 ac_cv_func_lstat_dereferences_slashed_symlink=no
25373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25378 # If the `ln -s' command failed, then we probably don't even
25379 # have an lstat function.
25380 ac_cv_func_lstat_dereferences_slashed_symlink=no
25382 rm -f conftest.sym conftest.file
25385 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25386 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25388 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25390 cat >>confdefs.h <<_ACEOF
25391 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25395 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25396 case " $LIBOBJS " in
25397 *" lstat.$ac_objext "* ) ;;
25398 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25404 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25405 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25406 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 cat >conftest.$ac_ext <<_ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415 #include <sys/types.h>
25419 return makedev(0, 0);
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426 (eval $ac_link) 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; } &&
25439 { ac_try='test -s conftest$ac_exeext'
25440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441 (eval $ac_try) 2>&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); }; }; then
25445 ac_cv_header_sys_types_h_makedev=yes
25447 echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25450 ac_cv_header_sys_types_h_makedev=no
25453 rm -f conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
25457 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25458 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25460 if test $ac_cv_header_sys_types_h_makedev = no; then
25461 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25462 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25463 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25464 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25465 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25468 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25470 # Is the header compilable?
25471 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25472 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 $ac_includes_default
25480 #include <sys/mkdev.h>
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484 (eval $ac_compile) 2>conftest.er1
25486 grep -v '^ *+' conftest.er1 >conftest.err
25488 cat conftest.err >&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } &&
25491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; } &&
25497 { ac_try='test -s conftest.$ac_objext'
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_header_compiler=yes
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 ac_header_compiler=no
25511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25513 echo "${ECHO_T}$ac_header_compiler" >&6; }
25515 # Is the header present?
25516 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25517 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25518 cat >conftest.$ac_ext <<_ACEOF
25521 cat confdefs.h >>conftest.$ac_ext
25522 cat >>conftest.$ac_ext <<_ACEOF
25523 /* end confdefs.h. */
25524 #include <sys/mkdev.h>
25526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } >/dev/null; then
25534 if test -s conftest.err; then
25535 ac_cpp_err=$ac_c_preproc_warn_flag
25536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25543 if test -z "$ac_cpp_err"; then
25544 ac_header_preproc=yes
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ac_header_preproc=no
25552 rm -f conftest.err conftest.$ac_ext
25553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25554 echo "${ECHO_T}$ac_header_preproc" >&6; }
25556 # So? What about this header?
25557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25559 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25560 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25561 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25562 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25563 ac_header_preproc=yes
25566 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25567 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25568 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25569 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25570 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25571 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25573 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25574 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25575 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25576 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25577 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25579 ## ------------------------------- ##
25580 ## Report this to nfs@lists.sf.net ##
25581 ## ------------------------------- ##
25583 ) | sed "s/^/$as_me: WARNING: /" >&2
25586 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25587 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25588 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25589 echo $ECHO_N "(cached) $ECHO_C" >&6
25591 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25594 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25597 if test $ac_cv_header_sys_mkdev_h = yes; then
25599 cat >>confdefs.h <<\_ACEOF
25600 #define MAJOR_IN_MKDEV 1
25607 if test $ac_cv_header_sys_mkdev_h = no; then
25608 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25609 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25610 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25611 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25615 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25617 # Is the header compilable?
25618 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25619 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25620 cat >conftest.$ac_ext <<_ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25627 #include <sys/sysmacros.h>
25629 rm -f conftest.$ac_objext
25630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25631 (eval $ac_compile) 2>conftest.er1
25633 grep -v '^ *+' conftest.er1 >conftest.err
25635 cat conftest.err >&5
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } &&
25638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; } &&
25644 { ac_try='test -s conftest.$ac_objext'
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; }; then
25650 ac_header_compiler=yes
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ac_header_compiler=no
25658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6; }
25662 # Is the header present?
25663 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25664 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 #include <sys/sysmacros.h>
25673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25676 grep -v '^ *+' conftest.er1 >conftest.err
25678 cat conftest.err >&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } >/dev/null; then
25681 if test -s conftest.err; then
25682 ac_cpp_err=$ac_c_preproc_warn_flag
25683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25690 if test -z "$ac_cpp_err"; then
25691 ac_header_preproc=yes
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ac_header_preproc=no
25699 rm -f conftest.err conftest.$ac_ext
25700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25701 echo "${ECHO_T}$ac_header_preproc" >&6; }
25703 # So? What about this header?
25704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25706 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25707 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25709 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25710 ac_header_preproc=yes
25713 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25714 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25716 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25718 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25720 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25723 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25724 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25726 ## ------------------------------- ##
25727 ## Report this to nfs@lists.sf.net ##
25728 ## ------------------------------- ##
25730 ) | sed "s/^/$as_me: WARNING: /" >&2
25733 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25734 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25735 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25741 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25744 if test $ac_cv_header_sys_sysmacros_h = yes; then
25746 cat >>confdefs.h <<\_ACEOF
25747 #define MAJOR_IN_SYSMACROS 1
25757 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25758 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25759 if test "${ac_cv_func_memcmp_working+set}" = set; then
25760 echo $ECHO_N "(cached) $ECHO_C" >&6
25762 if test "$cross_compiling" = yes; then
25763 ac_cv_func_memcmp_working=no
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 $ac_includes_default
25776 /* Some versions of memcmp are not 8-bit clean. */
25777 char c0 = '\100', c1 = '\200', c2 = '\201';
25778 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25781 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25782 or more and with at least one buffer not starting on a 4-byte boundary.
25783 William Lewis provided this test program. */
25788 for (i = 0; i < 4; i++)
25792 strcpy (a, "--------01111111");
25793 strcpy (b, "--------10000000");
25794 if (memcmp (a, b, 16) >= 0)
25804 rm -f conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806 (eval $ac_link) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 ac_cv_func_memcmp_working=yes
25817 echo "$as_me: program exited with status $ac_status" >&5
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ( exit $ac_status )
25822 ac_cv_func_memcmp_working=no
25824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25829 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25830 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25831 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25832 *" memcmp.$ac_objext "* ) ;;
25833 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25841 for ac_header in sys/select.h sys/socket.h
25843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 ac_res=`eval echo '${'$as_ac_Header'}'`
25851 { echo "$as_me:$LINENO: result: $ac_res" >&5
25852 echo "${ECHO_T}$ac_res" >&6; }
25854 # Is the header compilable?
25855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25857 cat >conftest.$ac_ext <<_ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h. */
25863 $ac_includes_default
25864 #include <$ac_header>
25866 rm -f conftest.$ac_objext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25868 (eval $ac_compile) 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } &&
25875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; } &&
25881 { ac_try='test -s conftest.$ac_objext'
25882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883 (eval $ac_try) 2>&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
25887 ac_header_compiler=yes
25889 echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25892 ac_header_compiler=no
25895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25897 echo "${ECHO_T}$ac_header_compiler" >&6; }
25899 # Is the header present?
25900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25902 cat >conftest.$ac_ext <<_ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h. */
25908 #include <$ac_header>
25910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } >/dev/null; then
25918 if test -s conftest.err; then
25919 ac_cpp_err=$ac_c_preproc_warn_flag
25920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25927 if test -z "$ac_cpp_err"; then
25928 ac_header_preproc=yes
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25933 ac_header_preproc=no
25936 rm -f conftest.err conftest.$ac_ext
25937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25938 echo "${ECHO_T}$ac_header_preproc" >&6; }
25940 # So? What about this header?
25941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25947 ac_header_preproc=yes
25950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25963 ## ------------------------------- ##
25964 ## Report this to nfs@lists.sf.net ##
25965 ## ------------------------------- ##
25967 ) | sed "s/^/$as_me: WARNING: /" >&2
25970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25975 eval "$as_ac_Header=\$ac_header_preproc"
25977 ac_res=`eval echo '${'$as_ac_Header'}'`
25978 { echo "$as_me:$LINENO: result: $ac_res" >&5
25979 echo "${ECHO_T}$ac_res" >&6; }
25982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25983 cat >>confdefs.h <<_ACEOF
25984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25991 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
25992 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
25993 if test "${ac_cv_func_select_args+set}" = set; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25997 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25998 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 $ac_includes_default
26006 #if HAVE_SYS_SELECT_H
26007 # include <sys/select.h>
26009 #if HAVE_SYS_SOCKET_H
26010 # include <sys/socket.h>
26016 extern int select ($ac_arg1,
26017 $ac_arg234, $ac_arg234, $ac_arg234,
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025 (eval $ac_compile) 2>conftest.er1
26027 grep -v '^ *+' conftest.er1 >conftest.err
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 # Provide a safe default value.
26057 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26060 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26061 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26062 ac_save_IFS=$IFS; IFS=','
26063 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26067 cat >>confdefs.h <<_ACEOF
26068 #define SELECT_TYPE_ARG1 $1
26072 cat >>confdefs.h <<_ACEOF
26073 #define SELECT_TYPE_ARG234 ($2)
26077 cat >>confdefs.h <<_ACEOF
26078 #define SELECT_TYPE_ARG5 ($3)
26083 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26084 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26085 if test "${ac_cv_type_signal+set}" = set; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 #include <sys/types.h>
26095 #include <signal.h>
26100 return *(signal (0, 0)) (0) == 1;
26105 rm -f conftest.$ac_objext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107 (eval $ac_compile) 2>conftest.er1
26109 grep -v '^ *+' conftest.er1 >conftest.err
26111 cat conftest.err >&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } &&
26114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; } &&
26120 { ac_try='test -s conftest.$ac_objext'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 ac_cv_type_signal=int
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_cv_type_signal=void
26134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26136 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26137 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26139 cat >>confdefs.h <<_ACEOF
26140 #define RETSIGTYPE $ac_cv_type_signal
26144 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26145 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26146 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 if test "$cross_compiling" = yes; then
26150 ac_cv_func_stat_empty_string_bug=yes
26152 cat >conftest.$ac_ext <<_ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h. */
26158 $ac_includes_default
26163 return stat ("", &sbuf) == 0;
26168 rm -f conftest$ac_exeext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26170 (eval $ac_link) 2>&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; }; then
26179 ac_cv_func_stat_empty_string_bug=no
26181 echo "$as_me: program exited with status $ac_status" >&5
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26185 ( exit $ac_status )
26186 ac_cv_func_stat_empty_string_bug=yes
26188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26193 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26194 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26195 if test $ac_cv_func_stat_empty_string_bug = yes; then
26196 case " $LIBOBJS " in
26197 *" stat.$ac_objext "* ) ;;
26198 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26203 cat >>confdefs.h <<_ACEOF
26204 #define HAVE_STAT_EMPTY_STRING_BUG 1
26210 for ac_func in vprintf
26212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26218 cat >conftest.$ac_ext <<_ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26226 #define $ac_func innocuous_$ac_func
26228 /* System header to define __stub macros and hopefully few prototypes,
26229 which can conflict with char $ac_func (); below.
26230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26231 <limits.h> exists even on freestanding compilers. */
26234 # include <limits.h>
26236 # include <assert.h>
26241 /* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26248 /* The GNU C library defines this for functions which it implements
26249 to always fail with ENOSYS. Some functions are actually named
26250 something starting with __ and the normal name is an alias. */
26251 #if defined __stub_$ac_func || defined __stub___$ac_func
26258 return $ac_func ();
26263 rm -f conftest.$ac_objext conftest$ac_exeext
26264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265 (eval $ac_link) 2>conftest.er1
26267 grep -v '^ *+' conftest.er1 >conftest.err
26269 cat conftest.err >&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } &&
26272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274 (eval $ac_try) 2>&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); }; } &&
26278 { ac_try='test -s conftest$ac_exeext'
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; }; then
26284 eval "$as_ac_var=yes"
26286 echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26289 eval "$as_ac_var=no"
26292 rm -f conftest.err conftest.$ac_objext \
26293 conftest$ac_exeext conftest.$ac_ext
26295 ac_res=`eval echo '${'$as_ac_var'}'`
26296 { echo "$as_me:$LINENO: result: $ac_res" >&5
26297 echo "${ECHO_T}$ac_res" >&6; }
26298 if test `eval echo '${'$as_ac_var'}'` = yes; then
26299 cat >>confdefs.h <<_ACEOF
26300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26303 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26304 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26305 if test "${ac_cv_func__doprnt+set}" = set; then
26306 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 cat >conftest.$ac_ext <<_ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h. */
26314 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26316 #define _doprnt innocuous__doprnt
26318 /* System header to define __stub macros and hopefully few prototypes,
26319 which can conflict with char _doprnt (); below.
26320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26321 <limits.h> exists even on freestanding compilers. */
26324 # include <limits.h>
26326 # include <assert.h>
26331 /* Override any GCC internal prototype to avoid an error.
26332 Use char because int might match the return type of a GCC
26333 builtin and then its argument prototype would still apply. */
26338 /* The GNU C library defines this for functions which it implements
26339 to always fail with ENOSYS. Some functions are actually named
26340 something starting with __ and the normal name is an alias. */
26341 #if defined __stub__doprnt || defined __stub____doprnt
26353 rm -f conftest.$ac_objext conftest$ac_exeext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26355 (eval $ac_link) 2>conftest.er1
26357 grep -v '^ *+' conftest.er1 >conftest.err
26359 cat conftest.err >&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } &&
26362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; } &&
26368 { ac_try='test -s conftest$ac_exeext'
26369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370 (eval $ac_try) 2>&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; }; then
26374 ac_cv_func__doprnt=yes
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ac_cv_func__doprnt=no
26382 rm -f conftest.err conftest.$ac_objext \
26383 conftest$ac_exeext conftest.$ac_ext
26385 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26386 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26387 if test $ac_cv_func__doprnt = yes; then
26389 cat >>confdefs.h <<\_ACEOF
26390 #define HAVE_DOPRNT 1
26427 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26428 gethostbyaddr gethostbyname gethostname getmntent \
26429 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26430 realpath rmdir select socket strcasecmp strchr strdup \
26431 strerror strrchr strtol strtoul
26433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26447 #define $ac_func innocuous_$ac_func
26449 /* System header to define __stub macros and hopefully few prototypes,
26450 which can conflict with char $ac_func (); below.
26451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452 <limits.h> exists even on freestanding compilers. */
26455 # include <limits.h>
26457 # include <assert.h>
26462 /* Override any GCC internal prototype to avoid an error.
26463 Use char because int might match the return type of a GCC
26464 builtin and then its argument prototype would still apply. */
26469 /* The GNU C library defines this for functions which it implements
26470 to always fail with ENOSYS. Some functions are actually named
26471 something starting with __ and the normal name is an alias. */
26472 #if defined __stub_$ac_func || defined __stub___$ac_func
26479 return $ac_func ();
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486 (eval $ac_link) 2>conftest.er1
26488 grep -v '^ *+' conftest.er1 >conftest.err
26490 cat conftest.err >&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); } &&
26493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest$ac_exeext'
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 eval "$as_ac_var=yes"
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 eval "$as_ac_var=no"
26513 rm -f conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
26516 ac_res=`eval echo '${'$as_ac_var'}'`
26517 { echo "$as_me:$LINENO: result: $ac_res" >&5
26518 echo "${ECHO_T}$ac_res" >&6; }
26519 if test `eval echo '${'$as_ac_var'}'` = yes; then
26520 cat >>confdefs.h <<_ACEOF
26521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26529 { echo "$as_me:$LINENO: checking for short" >&5
26530 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26531 if test "${ac_cv_type_short+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 $ac_includes_default
26541 typedef short ac__type_new_;
26545 if ((ac__type_new_ *) 0)
26547 if (sizeof (ac__type_new_))
26553 rm -f conftest.$ac_objext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26555 (eval $ac_compile) 2>conftest.er1
26557 grep -v '^ *+' conftest.er1 >conftest.err
26559 cat conftest.err >&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } &&
26562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; }; then
26574 ac_cv_type_short=yes
26576 echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26579 ac_cv_type_short=no
26582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26584 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26585 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26587 { echo "$as_me:$LINENO: checking size of short" >&5
26588 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26589 if test "${ac_cv_sizeof_short+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 if test "$ac_cv_type_short" = yes; then
26593 # The cast to long int works around a bug in the HP C Compiler
26594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26596 # This bug is HP SR number 8606223364.
26597 if test "$cross_compiling" = yes; then
26598 # Depending upon the size, compute the lo and hi bounds.
26599 cat >conftest.$ac_ext <<_ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h. */
26605 $ac_includes_default
26606 typedef short ac__type_sizeof_;
26610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26617 rm -f conftest.$ac_objext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26619 (eval $ac_compile) 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26628 (eval $ac_try) 2>&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); }; } &&
26632 { ac_try='test -s conftest.$ac_objext'
26633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26634 (eval $ac_try) 2>&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); }; }; then
26640 cat >conftest.$ac_ext <<_ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h. */
26646 $ac_includes_default
26647 typedef short ac__type_sizeof_;
26651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26658 rm -f conftest.$ac_objext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26660 (eval $ac_compile) 2>conftest.er1
26662 grep -v '^ *+' conftest.er1 >conftest.err
26664 cat conftest.err >&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); } &&
26667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; } &&
26673 { ac_try='test -s conftest.$ac_objext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_hi=$ac_mid; break
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 ac_lo=`expr $ac_mid + 1`
26685 if test $ac_lo -le $ac_mid; then
26689 ac_mid=`expr 2 '*' $ac_mid + 1`
26692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 cat >conftest.$ac_ext <<_ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 $ac_includes_default
26705 typedef short ac__type_sizeof_;
26709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26716 rm -f conftest.$ac_objext
26717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26718 (eval $ac_compile) 2>conftest.er1
26720 grep -v '^ *+' conftest.er1 >conftest.err
26722 cat conftest.err >&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); } &&
26725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; } &&
26731 { ac_try='test -s conftest.$ac_objext'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26739 cat >conftest.$ac_ext <<_ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h. */
26745 $ac_includes_default
26746 typedef short ac__type_sizeof_;
26750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26757 rm -f conftest.$ac_objext
26758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26759 (eval $ac_compile) 2>conftest.er1
26761 grep -v '^ *+' conftest.er1 >conftest.err
26763 cat conftest.err >&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } &&
26766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; } &&
26772 { ac_try='test -s conftest.$ac_objext'
26773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774 (eval $ac_try) 2>&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); }; }; then
26778 ac_lo=$ac_mid; break
26780 echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 ac_hi=`expr '(' $ac_mid ')' - 1`
26784 if test $ac_mid -le $ac_hi; then
26788 ac_mid=`expr 2 '*' $ac_mid`
26791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26804 # Binary search between lo and hi bounds.
26805 while test "x$ac_lo" != "x$ac_hi"; do
26806 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26807 cat >conftest.$ac_ext <<_ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h. */
26813 $ac_includes_default
26814 typedef short ac__type_sizeof_;
26818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26825 rm -f conftest.$ac_objext
26826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26827 (eval $ac_compile) 2>conftest.er1
26829 grep -v '^ *+' conftest.er1 >conftest.err
26831 cat conftest.err >&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } &&
26834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest.$ac_objext'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; }; then
26848 echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26851 ac_lo=`expr '(' $ac_mid ')' + 1`
26854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26857 ?*) ac_cv_sizeof_short=$ac_lo;;
26858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26859 See \`config.log' for more details." >&5
26860 echo "$as_me: error: cannot compute sizeof (short)
26861 See \`config.log' for more details." >&2;}
26862 { (exit 77); exit 77; }; } ;;
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 $ac_includes_default
26872 typedef short ac__type_sizeof_;
26873 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26874 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26876 #include <stdlib.h>
26881 FILE *f = fopen ("conftest.val", "w");
26884 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26886 long int i = longval ();
26887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26889 fprintf (f, "%ld\n", i);
26893 unsigned long int i = ulongval ();
26894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26896 fprintf (f, "%lu\n", i);
26898 return ferror (f) || fclose (f) != 0;
26904 rm -f conftest$ac_exeext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26906 (eval $ac_link) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 ac_cv_sizeof_short=`cat conftest.val`
26917 echo "$as_me: program exited with status $ac_status" >&5
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26921 ( exit $ac_status )
26922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26923 See \`config.log' for more details." >&5
26924 echo "$as_me: error: cannot compute sizeof (short)
26925 See \`config.log' for more details." >&2;}
26926 { (exit 77); exit 77; }; }
26928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26932 ac_cv_sizeof_short=0
26935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26936 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26937 cat >>confdefs.h <<_ACEOF
26938 #define SIZEOF_SHORT $ac_cv_sizeof_short
26942 { echo "$as_me:$LINENO: checking for int" >&5
26943 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26944 if test "${ac_cv_type_int+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953 $ac_includes_default
26954 typedef int ac__type_new_;
26958 if ((ac__type_new_ *) 0)
26960 if (sizeof (ac__type_new_))
26966 rm -f conftest.$ac_objext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26968 (eval $ac_compile) 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } &&
26975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; } &&
26981 { ac_try='test -s conftest.$ac_objext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26997 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26998 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27000 { echo "$as_me:$LINENO: checking size of int" >&5
27001 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27002 if test "${ac_cv_sizeof_int+set}" = set; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 if test "$ac_cv_type_int" = yes; then
27006 # The cast to long int works around a bug in the HP C Compiler
27007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27009 # This bug is HP SR number 8606223364.
27010 if test "$cross_compiling" = yes; then
27011 # Depending upon the size, compute the lo and hi bounds.
27012 cat >conftest.$ac_ext <<_ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h. */
27018 $ac_includes_default
27019 typedef int ac__type_sizeof_;
27023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27030 rm -f conftest.$ac_objext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27032 (eval $ac_compile) 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27041 (eval $ac_try) 2>&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest.$ac_objext'
27046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27047 (eval $ac_try) 2>&5
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); }; }; then
27053 cat >conftest.$ac_ext <<_ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 $ac_includes_default
27060 typedef int ac__type_sizeof_;
27064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27071 rm -f conftest.$ac_objext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27073 (eval $ac_compile) 2>conftest.er1
27075 grep -v '^ *+' conftest.er1 >conftest.err
27077 cat conftest.err >&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
27080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; } &&
27086 { ac_try='test -s conftest.$ac_objext'
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 ac_hi=$ac_mid; break
27094 echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27097 ac_lo=`expr $ac_mid + 1`
27098 if test $ac_lo -le $ac_mid; then
27102 ac_mid=`expr 2 '*' $ac_mid + 1`
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27117 $ac_includes_default
27118 typedef int ac__type_sizeof_;
27122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27129 rm -f conftest.$ac_objext
27130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131 (eval $ac_compile) 2>conftest.er1
27133 grep -v '^ *+' conftest.er1 >conftest.err
27135 cat conftest.err >&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } &&
27138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } &&
27144 { ac_try='test -s conftest.$ac_objext'
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
27152 cat >conftest.$ac_ext <<_ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27158 $ac_includes_default
27159 typedef int ac__type_sizeof_;
27163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172 (eval $ac_compile) 2>conftest.er1
27174 grep -v '^ *+' conftest.er1 >conftest.err
27176 cat conftest.err >&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
27179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; } &&
27185 { ac_try='test -s conftest.$ac_objext'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 ac_lo=$ac_mid; break
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27196 ac_hi=`expr '(' $ac_mid ')' - 1`
27197 if test $ac_mid -le $ac_hi; then
27201 ac_mid=`expr 2 '*' $ac_mid`
27204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217 # Binary search between lo and hi bounds.
27218 while test "x$ac_lo" != "x$ac_hi"; do
27219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27220 cat >conftest.$ac_ext <<_ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h. */
27226 $ac_includes_default
27227 typedef int ac__type_sizeof_;
27231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27238 rm -f conftest.$ac_objext
27239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27240 (eval $ac_compile) 2>conftest.er1
27242 grep -v '^ *+' conftest.er1 >conftest.err
27244 cat conftest.err >&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } &&
27247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest.$ac_objext'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27264 ac_lo=`expr '(' $ac_mid ')' + 1`
27267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270 ?*) ac_cv_sizeof_int=$ac_lo;;
27271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27272 See \`config.log' for more details." >&5
27273 echo "$as_me: error: cannot compute sizeof (int)
27274 See \`config.log' for more details." >&2;}
27275 { (exit 77); exit 77; }; } ;;
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284 $ac_includes_default
27285 typedef int ac__type_sizeof_;
27286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27289 #include <stdlib.h>
27294 FILE *f = fopen ("conftest.val", "w");
27297 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27299 long int i = longval ();
27300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27302 fprintf (f, "%ld\n", i);
27306 unsigned long int i = ulongval ();
27307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27309 fprintf (f, "%lu\n", i);
27311 return ferror (f) || fclose (f) != 0;
27317 rm -f conftest$ac_exeext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27319 (eval $ac_link) 2>&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328 ac_cv_sizeof_int=`cat conftest.val`
27330 echo "$as_me: program exited with status $ac_status" >&5
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27334 ( exit $ac_status )
27335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27336 See \`config.log' for more details." >&5
27337 echo "$as_me: error: cannot compute sizeof (int)
27338 See \`config.log' for more details." >&2;}
27339 { (exit 77); exit 77; }; }
27341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27348 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27349 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27350 cat >>confdefs.h <<_ACEOF
27351 #define SIZEOF_INT $ac_cv_sizeof_int
27355 { echo "$as_me:$LINENO: checking for long" >&5
27356 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27357 if test "${ac_cv_type_long+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 cat >conftest.$ac_ext <<_ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h. */
27366 $ac_includes_default
27367 typedef long ac__type_new_;
27371 if ((ac__type_new_ *) 0)
27373 if (sizeof (ac__type_new_))
27379 rm -f conftest.$ac_objext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27381 (eval $ac_compile) 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; } &&
27394 { ac_try='test -s conftest.$ac_objext'
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_type_long=yes
27402 echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27410 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27411 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27413 { echo "$as_me:$LINENO: checking size of long" >&5
27414 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27415 if test "${ac_cv_sizeof_long+set}" = set; then
27416 echo $ECHO_N "(cached) $ECHO_C" >&6
27418 if test "$ac_cv_type_long" = yes; then
27419 # The cast to long int works around a bug in the HP C Compiler
27420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27422 # This bug is HP SR number 8606223364.
27423 if test "$cross_compiling" = yes; then
27424 # Depending upon the size, compute the lo and hi bounds.
27425 cat >conftest.$ac_ext <<_ACEOF
27428 cat confdefs.h >>conftest.$ac_ext
27429 cat >>conftest.$ac_ext <<_ACEOF
27430 /* end confdefs.h. */
27431 $ac_includes_default
27432 typedef long ac__type_sizeof_;
27436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27443 rm -f conftest.$ac_objext
27444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27445 (eval $ac_compile) 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } &&
27452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; } &&
27458 { ac_try='test -s conftest.$ac_objext'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27466 cat >conftest.$ac_ext <<_ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h. */
27472 $ac_includes_default
27473 typedef long ac__type_sizeof_;
27477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27484 rm -f conftest.$ac_objext
27485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27486 (eval $ac_compile) 2>conftest.er1
27488 grep -v '^ *+' conftest.er1 >conftest.err
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest.$ac_objext'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_hi=$ac_mid; break
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ac_lo=`expr $ac_mid + 1`
27511 if test $ac_lo -le $ac_mid; then
27515 ac_mid=`expr 2 '*' $ac_mid + 1`
27518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 cat >conftest.$ac_ext <<_ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27530 $ac_includes_default
27531 typedef long ac__type_sizeof_;
27535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27542 rm -f conftest.$ac_objext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27544 (eval $ac_compile) 2>conftest.er1
27546 grep -v '^ *+' conftest.er1 >conftest.err
27548 cat conftest.err >&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } &&
27551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; } &&
27557 { ac_try='test -s conftest.$ac_objext'
27558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559 (eval $ac_try) 2>&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; }; then
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 $ac_includes_default
27572 typedef long ac__type_sizeof_;
27576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27583 rm -f conftest.$ac_objext
27584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27585 (eval $ac_compile) 2>conftest.er1
27587 grep -v '^ *+' conftest.er1 >conftest.err
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } &&
27592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594 (eval $ac_try) 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604 ac_lo=$ac_mid; break
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 ac_hi=`expr '(' $ac_mid ')' - 1`
27610 if test $ac_mid -le $ac_hi; then
27614 ac_mid=`expr 2 '*' $ac_mid`
27617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27620 echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27630 # Binary search between lo and hi bounds.
27631 while test "x$ac_lo" != "x$ac_hi"; do
27632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27633 cat >conftest.$ac_ext <<_ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h. */
27639 $ac_includes_default
27640 typedef long ac__type_sizeof_;
27644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653 (eval $ac_compile) 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662 (eval $ac_try) 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest.$ac_objext'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; }; then
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ac_lo=`expr '(' $ac_mid ')' + 1`
27680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27683 ?*) ac_cv_sizeof_long=$ac_lo;;
27684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27685 See \`config.log' for more details." >&5
27686 echo "$as_me: error: cannot compute sizeof (long)
27687 See \`config.log' for more details." >&2;}
27688 { (exit 77); exit 77; }; } ;;
27691 cat >conftest.$ac_ext <<_ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h. */
27697 $ac_includes_default
27698 typedef long ac__type_sizeof_;
27699 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27700 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27702 #include <stdlib.h>
27707 FILE *f = fopen ("conftest.val", "w");
27710 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27712 long int i = longval ();
27713 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27715 fprintf (f, "%ld\n", i);
27719 unsigned long int i = ulongval ();
27720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27722 fprintf (f, "%lu\n", i);
27724 return ferror (f) || fclose (f) != 0;
27730 rm -f conftest$ac_exeext
27731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27732 (eval $ac_link) 2>&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737 (eval $ac_try) 2>&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; }; then
27741 ac_cv_sizeof_long=`cat conftest.val`
27743 echo "$as_me: program exited with status $ac_status" >&5
27744 echo "$as_me: failed program was:" >&5
27745 sed 's/^/| /' conftest.$ac_ext >&5
27747 ( exit $ac_status )
27748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27749 See \`config.log' for more details." >&5
27750 echo "$as_me: error: cannot compute sizeof (long)
27751 See \`config.log' for more details." >&2;}
27752 { (exit 77); exit 77; }; }
27754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27758 ac_cv_sizeof_long=0
27761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27762 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27763 cat >>confdefs.h <<_ACEOF
27764 #define SIZEOF_LONG $ac_cv_sizeof_long
27768 { echo "$as_me:$LINENO: checking for size_t" >&5
27769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27770 if test "${ac_cv_type_size_t+set}" = set; then
27771 echo $ECHO_N "(cached) $ECHO_C" >&6
27773 cat >conftest.$ac_ext <<_ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h. */
27779 $ac_includes_default
27780 typedef size_t ac__type_new_;
27784 if ((ac__type_new_ *) 0)
27786 if (sizeof (ac__type_new_))
27792 rm -f conftest.$ac_objext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27794 (eval $ac_compile) 2>conftest.er1
27796 grep -v '^ *+' conftest.er1 >conftest.err
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
27801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest.$ac_objext'
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 ac_cv_type_size_t=yes
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27818 ac_cv_type_size_t=no
27821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27826 { echo "$as_me:$LINENO: checking size of size_t" >&5
27827 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27828 if test "${ac_cv_sizeof_size_t+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 if test "$ac_cv_type_size_t" = yes; then
27832 # The cast to long int works around a bug in the HP C Compiler
27833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27835 # This bug is HP SR number 8606223364.
27836 if test "$cross_compiling" = yes; then
27837 # Depending upon the size, compute the lo and hi bounds.
27838 cat >conftest.$ac_ext <<_ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 $ac_includes_default
27845 typedef size_t ac__type_sizeof_;
27849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27856 rm -f conftest.$ac_objext
27857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27858 (eval $ac_compile) 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } &&
27865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } &&
27871 { ac_try='test -s conftest.$ac_objext'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27879 cat >conftest.$ac_ext <<_ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 $ac_includes_default
27886 typedef size_t ac__type_sizeof_;
27890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27897 rm -f conftest.$ac_objext
27898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27899 (eval $ac_compile) 2>conftest.er1
27901 grep -v '^ *+' conftest.er1 >conftest.err
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } &&
27906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } &&
27912 { ac_try='test -s conftest.$ac_objext'
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918 ac_hi=$ac_mid; break
27920 echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27923 ac_lo=`expr $ac_mid + 1`
27924 if test $ac_lo -le $ac_mid; then
27928 ac_mid=`expr 2 '*' $ac_mid + 1`
27931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27934 echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27943 $ac_includes_default
27944 typedef size_t ac__type_sizeof_;
27948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957 (eval $ac_compile) 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
27964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest.$ac_objext'
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; }; then
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 $ac_includes_default
27985 typedef size_t ac__type_sizeof_;
27989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27996 rm -f conftest.$ac_objext
27997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27998 (eval $ac_compile) 2>conftest.er1
28000 grep -v '^ *+' conftest.er1 >conftest.err
28002 cat conftest.err >&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); } &&
28005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28007 (eval $ac_try) 2>&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; } &&
28011 { ac_try='test -s conftest.$ac_objext'
28012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013 (eval $ac_try) 2>&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); }; }; then
28017 ac_lo=$ac_mid; break
28019 echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28022 ac_hi=`expr '(' $ac_mid ')' - 1`
28023 if test $ac_mid -le $ac_hi; then
28027 ac_mid=`expr 2 '*' $ac_mid`
28030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28033 echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28043 # Binary search between lo and hi bounds.
28044 while test "x$ac_lo" != "x$ac_hi"; do
28045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28046 cat >conftest.$ac_ext <<_ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28052 $ac_includes_default
28053 typedef size_t ac__type_sizeof_;
28057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28064 rm -f conftest.$ac_objext
28065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28066 (eval $ac_compile) 2>conftest.er1
28068 grep -v '^ *+' conftest.er1 >conftest.err
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } &&
28073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest.$ac_objext'
28080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081 (eval $ac_try) 2>&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
28087 echo "$as_me: failed program was:" >&5
28088 sed 's/^/| /' conftest.$ac_ext >&5
28090 ac_lo=`expr '(' $ac_mid ')' + 1`
28093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28096 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28098 See \`config.log' for more details." >&5
28099 echo "$as_me: error: cannot compute sizeof (size_t)
28100 See \`config.log' for more details." >&2;}
28101 { (exit 77); exit 77; }; } ;;
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 $ac_includes_default
28111 typedef size_t ac__type_sizeof_;
28112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28115 #include <stdlib.h>
28120 FILE *f = fopen ("conftest.val", "w");
28123 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28125 long int i = longval ();
28126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28128 fprintf (f, "%ld\n", i);
28132 unsigned long int i = ulongval ();
28133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28135 fprintf (f, "%lu\n", i);
28137 return ferror (f) || fclose (f) != 0;
28143 rm -f conftest$ac_exeext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145 (eval $ac_link) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
28154 ac_cv_sizeof_size_t=`cat conftest.val`
28156 echo "$as_me: program exited with status $ac_status" >&5
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28160 ( exit $ac_status )
28161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28162 See \`config.log' for more details." >&5
28163 echo "$as_me: error: cannot compute sizeof (size_t)
28164 See \`config.log' for more details." >&2;}
28165 { (exit 77); exit 77; }; }
28167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28171 ac_cv_sizeof_size_t=0
28174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28175 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28176 cat >>confdefs.h <<_ACEOF
28177 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28183 cat >>confdefs.h <<_ACEOF
28184 #define NFS_STATEDIR "$statedir"
28188 if test "x$cross_compiling" = "xno"; then
28189 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28190 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28191 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28192 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28194 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28195 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28196 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28197 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28212 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28217 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28219 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28221 AM_CFLAGS="$my_am_cflags"
28224 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28225 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28228 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/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28230 cat >confcache <<\_ACEOF
28231 # This file is a shell script that caches the results of configure
28232 # tests run on this system so they can be shared between configure
28233 # scripts and configure runs, see configure's option --config-cache.
28234 # It is not useful on other systems. If it contains results you don't
28235 # want to keep, you may remove or edit it.
28237 # config.status only pays attention to the cache file if you give it
28238 # the --recheck option to rerun configure.
28240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28242 # following values.
28246 # The following way of writing the cache mishandles newlines in values,
28247 # but we know of no workaround that is simple, portable, and efficient.
28248 # So, we kill variables containing newlines.
28249 # Ultrix sh set writes to stderr and can't be redirected directly,
28250 # and sets the high bit in the cache file unless we assign to the vars.
28252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28253 eval ac_val=\$$ac_var
28257 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28258 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28261 _ | IFS | as_nl) ;; #(
28262 *) $as_unset $ac_var ;;
28268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28269 *${as_nl}ac_space=\ *)
28270 # `set' does not quote correctly, so add quotes (double-quote
28271 # substitution turns \\\\ into \\, and sed turns \\ into \).
28274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28277 # `set' quotes correctly as required by POSIX, so do not add quotes.
28278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28291 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28292 if test -w $cache_file; then
28293 test "x$cache_file" != "x/dev/null" &&
28294 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28295 echo "$as_me: updating cache $cache_file" >&6;}
28296 cat confcache >$cache_file
28298 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28299 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28305 # Let make expand exec_prefix.
28306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28308 DEFS=-DHAVE_CONFIG_H
28312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28313 # 1. Remove the extension, and $U if already installed.
28314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28315 ac_i=`echo "$ac_i" | sed "$ac_script"`
28316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28317 # will be set to the directory where LIBOBJS objects are built.
28318 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28319 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28321 LIBOBJS=$ac_libobjs
28323 LTLIBOBJS=$ac_ltlibobjs
28326 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28327 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28328 Usually this means the macro was only invoked conditionally." >&5
28329 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28330 Usually this means the macro was only invoked conditionally." >&2;}
28331 { (exit 1); exit 1; }; }
28333 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28334 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28335 Usually this means the macro was only invoked conditionally." >&5
28336 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28337 Usually this means the macro was only invoked conditionally." >&2;}
28338 { (exit 1); exit 1; }; }
28340 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28341 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28342 Usually this means the macro was only invoked conditionally." >&5
28343 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28344 Usually this means the macro was only invoked conditionally." >&2;}
28345 { (exit 1); exit 1; }; }
28347 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28348 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28349 Usually this means the macro was only invoked conditionally." >&5
28350 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28351 Usually this means the macro was only invoked conditionally." >&2;}
28352 { (exit 1); exit 1; }; }
28354 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28355 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28356 Usually this means the macro was only invoked conditionally." >&5
28357 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28358 Usually this means the macro was only invoked conditionally." >&2;}
28359 { (exit 1); exit 1; }; }
28361 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28362 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28363 Usually this means the macro was only invoked conditionally." >&5
28364 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28365 Usually this means the macro was only invoked conditionally." >&2;}
28366 { (exit 1); exit 1; }; }
28368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28369 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28370 Usually this means the macro was only invoked conditionally." >&5
28371 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28372 Usually this means the macro was only invoked conditionally." >&2;}
28373 { (exit 1); exit 1; }; }
28376 : ${CONFIG_STATUS=./config.status}
28377 ac_clean_files_save=$ac_clean_files
28378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28381 cat >$CONFIG_STATUS <<_ACEOF
28383 # Generated by $as_me.
28384 # Run this file to recreate the current configuration.
28385 # Compiler output produced by configure, useful for debugging
28386 # configure, is in config.log if it exists.
28389 ac_cs_recheck=false
28391 SHELL=\${CONFIG_SHELL-$SHELL}
28394 cat >>$CONFIG_STATUS <<\_ACEOF
28395 ## --------------------- ##
28396 ## M4sh Initialization. ##
28397 ## --------------------- ##
28399 # Be Bourne compatible
28400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28403 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28404 # is contrary to our usage. Disable this feature.
28405 alias -g '${1+"$@"}'='"$@"'
28406 setopt NO_GLOB_SUBST
28408 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28410 BIN_SH=xpg4; export BIN_SH # for Tru64
28411 DUALCASE=1; export DUALCASE # for MKS sh
28415 # Avoid depending upon Character Ranges.
28416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28419 as_cr_digits='0123456789'
28420 as_cr_alnum=$as_cr_Letters$as_cr_digits
28422 # The user is always right.
28423 if test "${PATH_SEPARATOR+set}" != set; then
28424 echo "#! /bin/sh" >conf$$.sh
28425 echo "exit 0" >>conf$$.sh
28427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28435 # Support unset when possible.
28436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28444 # We need space, tab and new line, in precisely that order. Quoting is
28445 # there to prevent editors from complaining about space-tab.
28446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28447 # splitting by setting IFS to empty value.)
28452 # Find who we are. Look in the path if we contain no directory separator.
28454 *[\\/]* ) as_myself=$0 ;;
28455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28456 for as_dir in $PATH
28459 test -z "$as_dir" && as_dir=.
28460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28466 # We did not find ourselves, most probably we were run as `sh COMMAND'
28467 # in which case we are not to be found in the path.
28468 if test "x$as_myself" = x; then
28471 if test ! -f "$as_myself"; then
28472 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28473 { (exit 1); exit 1; }
28476 # Work around bugs in pre-3.0 UWIN ksh.
28477 for as_var in ENV MAIL MAILPATH
28478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28488 LC_TELEPHONE LC_TIME
28490 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28491 eval $as_var=C; export $as_var
28493 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28497 # Required to use basename.
28498 if expr a : '\(a\)' >/dev/null 2>&1 &&
28499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28506 as_basename=basename
28512 # Name of the executable.
28513 as_me=`$as_basename -- "$0" ||
28514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28515 X"$0" : 'X\(//\)$' \| \
28516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28518 sed '/^.*\/\([^/][^/]*\)\/*$/{
28537 as_lineno_1=$LINENO
28538 as_lineno_2=$LINENO
28539 test "x$as_lineno_1" != "x$as_lineno_2" &&
28540 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28542 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28543 # uniformly replaced by the line number. The first 'sed' inserts a
28544 # line-number line after each line using $LINENO; the second 'sed'
28545 # does the real work. The second script uses 'N' to pair each
28546 # line-number line with the line containing $LINENO, and appends
28547 # trailing '-' during substitution so that $LINENO is not a special
28548 # case at line end.
28549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28550 # scripts with optimization help from Paolo Bonzini. Blame Lee
28551 # E. McMahon (1931-1989) for sed's syntax. :-)
28563 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28566 ' >$as_me.lineno &&
28567 chmod +x "$as_me.lineno" ||
28568 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28569 { (exit 1); exit 1; }; }
28571 # Don't try to exec as it changes $[0], causing all sort of problems
28572 # (the dirname of $[0] is not the place where we might find the
28573 # original and so on. Autoconf is especially sensitive to this).
28574 . "./$as_me.lineno"
28575 # Exit status is that of the last command.
28580 if (dirname -- /) >/dev/null 2>&1; then
28586 ECHO_C= ECHO_N= ECHO_T=
28587 case `echo -n x` in
28589 case `echo 'x\c'` in
28590 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28597 if expr a : '\(a\)' >/dev/null 2>&1 &&
28598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28604 rm -f conf$$ conf$$.exe conf$$.file
28605 if test -d conf$$.dir; then
28606 rm -f conf$$.dir/conf$$.file
28612 if ln -s conf$$.file conf$$ 2>/dev/null; then
28614 # ... but there are two gotchas:
28615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28617 # In both cases, we have to default to `cp -p'.
28618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28620 elif ln conf$$.file conf$$ 2>/dev/null; then
28625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28626 rmdir conf$$.dir 2>/dev/null
28628 if mkdir -p . 2>/dev/null; then
28631 test -d ./-p && rmdir ./-p
28635 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
28636 # systems may use methods other than mode bits to determine executability.
28637 cat >conf$$.file <<_ASEOF
28641 chmod +x conf$$.file
28642 if test -x conf$$.file >/dev/null 2>&1; then
28643 as_executable_p="test -x"
28649 # Sed expression to map a string onto a valid CPP name.
28650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28652 # Sed expression to map a string onto a valid variable name.
28653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28658 # Save the log message, to keep $[0] and so on meaningful, and to
28659 # report actual input values of CONFIG_FILES etc. instead of their
28660 # values after options handling.
28662 This file was extended by linux nfs-utils $as_me 1.0.8, which was
28663 generated by GNU Autoconf 2.59d. Invocation command line was
28665 CONFIG_FILES = $CONFIG_FILES
28666 CONFIG_HEADERS = $CONFIG_HEADERS
28667 CONFIG_LINKS = $CONFIG_LINKS
28668 CONFIG_COMMANDS = $CONFIG_COMMANDS
28671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28676 cat >>$CONFIG_STATUS <<_ACEOF
28677 # Files that config.status was made for.
28678 config_files="$ac_config_files"
28679 config_headers="$ac_config_headers"
28680 config_commands="$ac_config_commands"
28684 cat >>$CONFIG_STATUS <<\_ACEOF
28686 \`$as_me' instantiates files from templates according to the
28687 current configuration.
28689 Usage: $0 [OPTIONS] [FILE]...
28691 -h, --help print this help, then exit
28692 -V, --version print version number, then exit
28693 -q, --quiet do not print progress messages
28694 -d, --debug don't remove temporary files
28695 --recheck update $as_me by reconfiguring in the same conditions
28696 --file=FILE[:TEMPLATE]
28697 instantiate the configuration file FILE
28698 --header=FILE[:TEMPLATE]
28699 instantiate the configuration header FILE
28701 Configuration files:
28704 Configuration headers:
28707 Configuration commands:
28710 Report bugs to <bug-autoconf@gnu.org>."
28713 cat >>$CONFIG_STATUS <<_ACEOF
28715 linux nfs-utils config.status 1.0.8
28716 configured by $0, generated by GNU Autoconf 2.59d,
28717 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28719 Copyright (C) 2006 Free Software Foundation, Inc.
28720 This config.status script is free software; the Free Software Foundation
28721 gives unlimited permission to copy, distribute and modify it."
28728 cat >>$CONFIG_STATUS <<\_ACEOF
28729 # If no file are specified by the user, then we need to provide default
28730 # value. By we need to know if files were specified by the user.
28736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28748 # Handling of the options.
28749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28752 echo "$ac_cs_version"; exit ;;
28753 --debug | --debu | --deb | --de | --d | -d )
28755 --file | --fil | --fi | --f )
28757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28758 ac_need_defaults=false;;
28759 --header | --heade | --head | --hea )
28761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28762 ac_need_defaults=false;;
28764 # Conflict between --help and --header
28765 { echo "$as_me: error: ambiguous option: $1
28766 Try \`$0 --help' for more information." >&2
28767 { (exit 1); exit 1; }; };;
28768 --help | --hel | -h )
28769 echo "$ac_cs_usage"; exit ;;
28770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28774 # This is an error.
28775 -*) { echo "$as_me: error: unrecognized option: $1
28776 Try \`$0 --help' for more information." >&2
28777 { (exit 1); exit 1; }; } ;;
28779 *) ac_config_targets="$ac_config_targets $1"
28780 ac_need_defaults=false ;;
28786 ac_configure_extra_args=
28788 if $ac_cs_silent; then
28790 ac_configure_extra_args="$ac_configure_extra_args --silent"
28794 cat >>$CONFIG_STATUS <<_ACEOF
28795 if \$ac_cs_recheck; then
28796 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28797 CONFIG_SHELL=$SHELL
28798 export CONFIG_SHELL
28799 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28803 cat >>$CONFIG_STATUS <<\_ACEOF
28807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28808 ## Running $as_me. ##
28814 cat >>$CONFIG_STATUS <<_ACEOF
28818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28822 cat >>$CONFIG_STATUS <<\_ACEOF
28824 # Handling of arguments.
28825 for ac_config_target in $ac_config_targets
28827 case $ac_config_target in
28828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28829 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28831 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28832 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28833 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28834 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28835 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28836 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28837 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28838 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28839 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28840 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28841 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28842 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28843 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28844 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28845 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28846 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28847 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28848 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28849 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28850 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28851 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28852 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28853 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28854 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28855 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28856 "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28857 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28858 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28859 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28862 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28863 { (exit 1); exit 1; }; };;
28868 # If the user did not use the arguments to specify the items to instantiate,
28869 # then the envvar interface is used. Set only those that are not.
28870 # We use the long form for the default assignment because of an extremely
28871 # bizarre bug on SunOS 4.1.3.
28872 if $ac_need_defaults; then
28873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28878 # Have a temporary directory for convenience. Make it in the build tree
28879 # simply because there is no reason against having it here, and in addition,
28880 # creating and moving files from /tmp can sometimes cause problems.
28881 # Hook for its removal unless debugging.
28882 # Note that there is a small window in which the directory will not be cleaned:
28883 # after its creation but before its name has been assigned to `$tmp'.
28887 trap 'exit_status=$?
28888 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28890 trap '{ (exit 1); exit 1; }' 1 2 13 15
28892 # Create a (secure) tmp directory for tmp files.
28895 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28896 test -n "$tmp" && test -d "$tmp"
28899 tmp=./conf$$-$RANDOM
28900 (umask 077 && mkdir "$tmp")
28903 echo "$me: cannot create a temporary directory in ." >&2
28904 { (exit 1); exit 1; }
28908 # Set up the sed scripts for CONFIG_FILES section.
28911 # No need to generate the scripts if there are no CONFIG_FILES.
28912 # This happens for instance when ./config.status config.h
28913 if test -n "$CONFIG_FILES"; then
28920 for ac_last_try in false false false false false :; do
28921 cat >conf$$subs.sed <<_ACEOF
28922 SHELL!$SHELL$ac_delim
28923 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28924 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28925 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28926 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28927 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28928 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28929 exec_prefix!$exec_prefix$ac_delim
28930 prefix!$prefix$ac_delim
28931 program_transform_name!$program_transform_name$ac_delim
28932 bindir!$bindir$ac_delim
28933 sbindir!$sbindir$ac_delim
28934 libexecdir!$libexecdir$ac_delim
28935 datarootdir!$datarootdir$ac_delim
28936 datadir!$datadir$ac_delim
28937 sysconfdir!$sysconfdir$ac_delim
28938 sharedstatedir!$sharedstatedir$ac_delim
28939 localstatedir!$localstatedir$ac_delim
28940 includedir!$includedir$ac_delim
28941 oldincludedir!$oldincludedir$ac_delim
28942 docdir!$docdir$ac_delim
28943 infodir!$infodir$ac_delim
28944 htmldir!$htmldir$ac_delim
28945 dvidir!$dvidir$ac_delim
28946 pdfdir!$pdfdir$ac_delim
28947 psdir!$psdir$ac_delim
28948 libdir!$libdir$ac_delim
28949 localedir!$localedir$ac_delim
28950 mandir!$mandir$ac_delim
28951 DEFS!$DEFS$ac_delim
28952 ECHO_C!$ECHO_C$ac_delim
28953 ECHO_N!$ECHO_N$ac_delim
28954 ECHO_T!$ECHO_T$ac_delim
28955 LIBS!$LIBS$ac_delim
28956 build_alias!$build_alias$ac_delim
28957 host_alias!$host_alias$ac_delim
28958 target_alias!$target_alias$ac_delim
28959 build!$build$ac_delim
28960 build_cpu!$build_cpu$ac_delim
28961 build_vendor!$build_vendor$ac_delim
28962 build_os!$build_os$ac_delim
28963 host!$host$ac_delim
28964 host_cpu!$host_cpu$ac_delim
28965 host_vendor!$host_vendor$ac_delim
28966 host_os!$host_os$ac_delim
28967 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28968 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28969 INSTALL_DATA!$INSTALL_DATA$ac_delim
28970 CYGPATH_W!$CYGPATH_W$ac_delim
28971 PACKAGE!$PACKAGE$ac_delim
28972 VERSION!$VERSION$ac_delim
28973 ACLOCAL!$ACLOCAL$ac_delim
28974 AUTOCONF!$AUTOCONF$ac_delim
28975 AUTOMAKE!$AUTOMAKE$ac_delim
28976 AUTOHEADER!$AUTOHEADER$ac_delim
28977 MAKEINFO!$MAKEINFO$ac_delim
28978 install_sh!$install_sh$ac_delim
28979 STRIP!$STRIP$ac_delim
28980 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28981 mkdir_p!$mkdir_p$ac_delim
28983 SET_MAKE!$SET_MAKE$ac_delim
28984 am__leading_dot!$am__leading_dot$ac_delim
28985 AMTAR!$AMTAR$ac_delim
28986 am__tar!$am__tar$ac_delim
28987 am__untar!$am__untar$ac_delim
28988 RELEASE!$RELEASE$ac_delim
28989 statedir!$statedir$ac_delim
28990 statduser!$statduser$ac_delim
28991 enable_nfsv3!$enable_nfsv3$ac_delim
28992 IDMAPD!$IDMAPD$ac_delim
28993 enable_nfsv4!$enable_nfsv4$ac_delim
28994 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
28995 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
28996 GSSD!$GSSD$ac_delim
28997 SVCGSSD!$SVCGSSD$ac_delim
28998 enable_gss!$enable_gss$ac_delim
28999 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29000 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29001 kprefix!$kprefix$ac_delim
29002 secure_statd!$secure_statd$ac_delim
29003 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29004 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29006 CFLAGS!$CFLAGS$ac_delim
29007 LDFLAGS!$LDFLAGS$ac_delim
29008 CPPFLAGS!$CPPFLAGS$ac_delim
29009 ac_ct_CC!$ac_ct_CC$ac_delim
29010 EXEEXT!$EXEEXT$ac_delim
29011 OBJEXT!$OBJEXT$ac_delim
29012 DEPDIR!$DEPDIR$ac_delim
29013 am__include!$am__include$ac_delim
29014 am__quote!$am__quote$ac_delim
29015 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29016 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29017 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29018 CCDEPMODE!$CCDEPMODE$ac_delim
29021 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
29023 elif $ac_last_try; then
29024 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29026 { (exit 1); exit 1; }; }
29028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29033 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
29034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
29035 ac_eof=`expr 0$ac_eof + 1`
29038 cat >>$CONFIG_STATUS <<_ACEOF
29039 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29044 s/^/s,@/; s/!/@,|#_!!_#|/
29047 s/'"$ac_delim"'$/,g/; t
29049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29050 ' >>$CONFIG_STATUS <conf$$subs.sed
29051 rm -f conf$$subs.sed
29052 cat >>$CONFIG_STATUS <<_ACEOF
29058 for ac_last_try in false false false false false :; do
29059 cat >conf$$subs.sed <<_ACEOF
29060 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29061 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29062 LIBWRAP!$LIBWRAP$ac_delim
29063 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29064 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29066 CXXFLAGS!$CXXFLAGS$ac_delim
29067 ac_ct_CXX!$ac_ct_CXX$ac_delim
29068 CXXDEPMODE!$CXXDEPMODE$ac_delim
29069 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29070 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29072 LN_S!$LN_S$ac_delim
29073 GREP!$GREP$ac_delim
29074 EGREP!$EGREP$ac_delim
29075 ECHO!$ECHO$ac_delim
29077 RANLIB!$RANLIB$ac_delim
29078 CXXCPP!$CXXCPP$ac_delim
29080 FFLAGS!$FFLAGS$ac_delim
29081 ac_ct_F77!$ac_ct_F77$ac_delim
29082 LIBTOOL!$LIBTOOL$ac_delim
29083 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29085 PKG_CONFIG!$PKG_CONFIG$ac_delim
29086 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29087 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29088 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29089 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29090 LIBSOCKET!$LIBSOCKET$ac_delim
29091 LIBNSL!$LIBNSL$ac_delim
29092 LIBCRYPT!$LIBCRYPT$ac_delim
29093 LIBBSD!$LIBBSD$ac_delim
29094 KRBDIR!$KRBDIR$ac_delim
29095 KRBLIBS!$KRBLIBS$ac_delim
29096 KRBCFLAGS!$KRBCFLAGS$ac_delim
29097 K5VERS!$K5VERS$ac_delim
29098 ALLOCA!$ALLOCA$ac_delim
29099 LIBOBJS!$LIBOBJS$ac_delim
29100 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29101 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29102 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29103 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29104 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29105 AM_CFLAGS!$AM_CFLAGS$ac_delim
29106 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29107 LTLIBOBJS!$LTLIBOBJS$ac_delim
29110 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 48; then
29112 elif $ac_last_try; then
29113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29115 { (exit 1); exit 1; }; }
29117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29122 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
29123 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
29124 ac_eof=`expr 0$ac_eof + 1`
29127 cat >>$CONFIG_STATUS <<_ACEOF
29128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29133 s/^/s,@/; s/!/@,|#_!!_#|/
29136 s/'"$ac_delim"'$/,g/; t
29138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29139 ' >>$CONFIG_STATUS <conf$$subs.sed
29140 rm -f conf$$subs.sed
29141 cat >>$CONFIG_STATUS <<_ACEOF
29148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29150 # trailing colons and then remove the whole line if VPATH becomes empty
29151 # (actually we leave an empty line to preserve line numbers).
29152 if test "x$srcdir" = x.; then
29153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29154 s/:*\$(srcdir):*/:/
29155 s/:*\${srcdir}:*/:/
29157 s/^\([^=]*=[ ]*\):*/\1/
29163 cat >>$CONFIG_STATUS <<\_ACEOF
29164 fi # test -n "$CONFIG_FILES"
29167 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29170 :[FHLC]) ac_mode=$ac_tag; continue;;
29172 case $ac_mode$ac_tag in
29174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29176 { (exit 1); exit 1; }; };;
29177 :[FH]-) ac_tag=-:-;;
29178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29195 -) ac_f="$tmp/stdin";;
29196 *) # Look for the file first in the build tree, then in the source tree
29197 # (if the path is not absolute). The absolute path cannot be DOS-style,
29198 # because $ac_f cannot contain `:'.
29202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29206 { (exit 1); exit 1; }; };;
29208 ac_file_inputs="$ac_file_inputs $ac_f"
29211 # Let's still pretend it is `configure' which instantiates (i.e., don't
29212 # use $as_me), people would be surprised to read:
29213 # /* config.h. Generated by config.status. */
29214 configure_input="Generated from "`IFS=:
29215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29216 if test x"$ac_file" != x-; then
29217 configure_input="$ac_file. $configure_input"
29218 { echo "$as_me:$LINENO: creating $ac_file" >&5
29219 echo "$as_me: creating $ac_file" >&6;}
29223 *:-:* | *:-) cat >"$tmp/stdin";;
29228 ac_dir=`$as_dirname -- "$ac_file" ||
29229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29230 X"$ac_file" : 'X\(//\)[^/]' \| \
29231 X"$ac_file" : 'X\(//\)$' \| \
29232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29238 /^X\(\/\/\)[^/].*/{
29253 -*) as_dir=./$as_dir;;
29255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29260 *) as_qdir=$as_dir;;
29262 as_dirs="'$as_qdir' $as_dirs"
29263 as_dir=`$as_dirname -- "$as_dir" ||
29264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29265 X"$as_dir" : 'X\(//\)[^/]' \| \
29266 X"$as_dir" : 'X\(//\)$' \| \
29267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29273 /^X\(\/\/\)[^/].*/{
29286 test -d "$as_dir" && break
29288 test -z "$as_dirs" || eval "mkdir $as_dirs"
29289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29291 { (exit 1); exit 1; }; }; }
29295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29298 # A ".." for each directory in $ac_dir_suffix.
29299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29300 case $ac_top_builddir_sub in
29301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29305 ac_abs_top_builddir=$ac_pwd
29306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29307 # for backward compatibility:
29308 ac_top_builddir=$ac_top_build_prefix
29311 .) # We are building in place.
29313 ac_top_srcdir=$ac_top_builddir_sub
29314 ac_abs_top_srcdir=$ac_pwd ;;
29315 [\\/]* | ?:[\\/]* ) # Absolute name.
29316 ac_srcdir=$srcdir$ac_dir_suffix;
29317 ac_top_srcdir=$srcdir
29318 ac_abs_top_srcdir=$srcdir ;;
29319 *) # Relative name.
29320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29321 ac_top_srcdir=$ac_top_build_prefix$srcdir
29322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29339 cat >>$CONFIG_STATUS <<\_ACEOF
29340 # If the template does not know about datarootdir, expand it.
29341 # FIXME: This hack should be removed a few years after 2.60.
29342 ac_datarootdir_hack=
29344 case `sed -n '/datarootdir/ {
29353 ' $ac_file_inputs` in
29355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29359 cat >>$CONFIG_STATUS <<_ACEOF
29360 ac_datarootdir_hack='
29361 s&@datadir@&$datadir&g
29362 s&@docdir@&$docdir&g
29363 s&@infodir@&$infodir&g
29364 s&@localedir@&$localedir&g
29365 s&@mandir@&$mandir&g
29366 s&\\\${datarootdir}&$datarootdir&g' ;;
29370 # Neutralize VPATH when `$srcdir' = `.'.
29371 # Shell code in configure.ac might set extrasub.
29372 # FIXME: do we really want to maintain this feature?
29373 cat >>$CONFIG_STATUS <<_ACEOF
29377 cat >>$CONFIG_STATUS <<\_ACEOF
29379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29380 s&@configure_input@&$configure_input&;t t
29381 s&@top_builddir@&$ac_top_builddir_sub&;t t
29382 s&@srcdir@&$ac_srcdir&;t t
29383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29384 s&@top_srcdir@&$ac_top_srcdir&;t t
29385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29386 s&@builddir@&$ac_builddir&;t t
29387 s&@abs_builddir@&$ac_abs_builddir&;t t
29388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29389 s&@INSTALL@&$ac_INSTALL&;t t
29390 $ac_datarootdir_hack
29391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29395 -) cat "$tmp/out"; rm -f "$tmp/out";;
29396 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29404 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29405 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29406 # PARAMS is the parameter list in the macro definition--in most cases, it's
29407 # just an empty string.
29409 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
29410 ac_dB='\)[ (].*$,\1define\2'
29414 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
29417 # Transform confdefs.h into a sed script `conftest.defines', that
29418 # substitutes the proper values into config.h.in to produce config.h.
29419 rm -f conftest.defines conftest.tail
29420 # First, append a space to every undef/define line, to ease matching.
29421 echo 's/$/ /' >conftest.defines
29422 # Then, protect against being on the right side of a sed subst, or in
29423 # an unquoted here document, in config.status. If some macros were
29424 # called several times there might be several #defines for the same
29425 # symbol, which is useless. But do not sort them, since the last
29426 # AC_DEFINE must be honored.
29427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29432 s/^[ ]*#[ ]*define[ ][ ]*//
29438 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
29439 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
29440 ' >>conftest.defines
29442 # Remove the space that was appended to ease matching.
29443 # Then replace #undef with comments. This is necessary, for
29444 # example, in the case of _POSIX_SOURCE, which is predefined and required
29445 # on some systems where configure will not decide to define it.
29446 # (The regexp can be short, since the line contains either #define or #undef.)
29448 s,^[ #]*u.*,/* & */,' >>conftest.defines
29450 # Break up conftest.defines:
29451 ac_max_sed_lines=96
29453 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29454 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29455 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29457 ac_in='$ac_file_inputs'
29458 ac_out='"$tmp/out1"'
29459 ac_nxt='"$tmp/out2"'
29463 # Write a here document:
29464 echo ' # First, check the format of the line:
29465 cat >"$tmp/defines.sed" <<CEOF
29466 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
29467 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
29469 :def' >>$CONFIG_STATUS
29470 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29472 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29473 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29474 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29475 grep . conftest.tail >/dev/null || break
29476 rm -f conftest.defines
29477 mv conftest.tail conftest.defines
29479 rm -f conftest.defines conftest.tail
29481 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29482 cat >>$CONFIG_STATUS <<\_ACEOF
29483 if test x"$ac_file" != x-; then
29484 echo "/* $configure_input */" >"$tmp/config.h"
29485 cat "$ac_result" >>"$tmp/config.h"
29486 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29487 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29488 echo "$as_me: $ac_file is unchanged" >&6;}
29491 mv "$tmp/config.h" $ac_file
29494 echo "/* $configure_input */"
29498 # Compute $ac_file's index in $config_headers.
29500 for _am_header in $config_headers :; do
29501 case $_am_header in
29502 $ac_file | $ac_file:* )
29505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29508 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29510 X$ac_file : 'X\(//\)[^/]' \| \
29511 X$ac_file : 'X\(//\)$' \| \
29512 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29518 /^X\(\/\/\)[^/].*/{
29530 s/.*/./; q'`/stamp-h$_am_stamp_count
29533 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29534 echo "$as_me: executing $ac_file commands" >&6;}
29539 case $ac_file$ac_mode in
29540 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29541 # Strip MF so we end up with the name of the file.
29542 mf=`echo "$mf" | sed -e 's/:.*$//'`
29543 # Check whether this is an Automake generated Makefile or not.
29544 # We used to match only the files named `Makefile.in', but
29545 # some people rename them; so instead we look at the file content.
29546 # Grep'ing the first line is not enough: some people post-process
29547 # each Makefile.in and add a new line on top of each file to say so.
29548 # So let's grep whole file.
29549 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29550 dirpart=`$as_dirname -- "$mf" ||
29551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29552 X"$mf" : 'X\(//\)[^/]' \| \
29553 X"$mf" : 'X\(//\)$' \| \
29554 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29560 /^X\(\/\/\)[^/].*/{
29576 # Extract the definition of DEPDIR, am__include, and am__quote
29577 # from the Makefile without running `make'.
29578 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29579 test -z "$DEPDIR" && continue
29580 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29581 test -z "am__include" && continue
29582 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29583 # When using ansi2knr, U may be empty or an underscore; expand it
29584 U=`sed -n 's/^U = //p' < "$mf"`
29585 # Find all dependency output files, they are included files with
29586 # $(DEPDIR) in their names. We invoke sed twice because it is the
29587 # simplest approach to changing $(DEPDIR) to its actual value in the
29589 for file in `sed -n "
29590 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29591 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29592 # Make sure the directory exists.
29593 test -f "$dirpart/$file" && continue
29594 fdir=`$as_dirname -- "$file" ||
29595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29596 X"$file" : 'X\(//\)[^/]' \| \
29597 X"$file" : 'X\(//\)$' \| \
29598 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29604 /^X\(\/\/\)[^/].*/{
29617 { as_dir=$dirpart/$fdir
29619 -*) as_dir=./$as_dir;;
29621 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29625 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29626 *) as_qdir=$as_dir;;
29628 as_dirs="'$as_qdir' $as_dirs"
29629 as_dir=`$as_dirname -- "$as_dir" ||
29630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29631 X"$as_dir" : 'X\(//\)[^/]' \| \
29632 X"$as_dir" : 'X\(//\)$' \| \
29633 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29639 /^X\(\/\/\)[^/].*/{
29652 test -d "$as_dir" && break
29654 test -z "$as_dirs" || eval "mkdir $as_dirs"
29655 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29656 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29657 { (exit 1); exit 1; }; }; }
29658 # echo "creating $dirpart/$file"
29659 echo '# dummy' > "$dirpart/$file"
29668 { (exit 0); exit 0; }
29670 chmod +x $CONFIG_STATUS
29671 ac_clean_files=$ac_clean_files_save
29674 # configure is writing to config.log, and then calls config.status.
29675 # config.status does its own redirection, appending to config.log.
29676 # Unfortunately, on DOS this fails, as config.log is still kept open
29677 # by configure, so config.status won't be able to write to it; its
29678 # output is simply discarded. So we exec the FD to /dev/null,
29679 # effectively closing config.log, so it can be properly (re)opened and
29680 # appended to by config.status. When coming back to configure, we
29681 # need to make the FD available again.
29682 if test "$no_create" != yes; then
29684 ac_config_status_args=
29685 test "$silent" = yes &&
29686 ac_config_status_args="$ac_config_status_args --quiet"
29688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29691 # would make configure fail if this is the last instruction.
29692 $ac_cs_success || { (exit 1); exit 1; }