2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.11.
5 # Report bugs to <nfs@lists.sf.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.11'
732 PACKAGE_STRING='linux nfs-utils 1.0.11'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
833 INSTALL_STRIP_PROGRAM
842 MAINTAINER_MODE_FALSE
928 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057 eval enable_$ac_feature=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_$ac_package=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 # Be sure to have absolute directory names.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures linux nfs-utils 1.0.11 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of linux nfs-utils 1.0.11:";;
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-maintainer-mode enable make rules and dependencies not useful
1528 (and sometimes confusing) to the casual installer
1529 --enable-nfsv3 enable support for NFSv3 [default=yes]
1530 --enable-nfsv4 enable support for NFSv4 [default=yes]
1531 --enable-gss enable support for rpcsec_gss [default=yes]
1532 --enable-kprefix install progs as rpc.knfsd etc
1533 --enable-secure-statd Only lockd can use statd (security)
1534 --enable-rquotad enable rquotad [default=yes]
1535 --enable-mount Create mount.nfs and don't use the util-linux
1536 mount(8) functionality. [default=no]
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-release=XXX set release to XXX [1]
1549 --with-statedir=/foo use state dir /foo /var/lib/nfs
1550 --with-statduser=rpcuser
1551 statd to run under [rpcuser or nobody]
1552 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1553 (optionally in PATH)
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-pic try to use only PIC/non-PIC objects [default=use
1557 --with-tags[=TAGS] include additional configurations [automatic]
1558 --with-krb5=DIR use Kerberos v5 installation in DIR
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1571 CXXCPP C++ preprocessor
1572 F77 Fortran 77 compiler command
1573 FFLAGS Fortran 77 compiler flags
1574 PKG_CONFIG path to pkg-config utility
1576 C compiler flags for RPCSECGSS, overriding pkg-config
1578 linker flags for RPCSECGSS, overriding pkg-config
1580 C compiler flags for GSSAPI, overriding pkg-config
1581 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to <nfs@lists.sf.net>.
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" || continue
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1614 .) # We are building in place.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1647 linux nfs-utils configure 1.0.11
1648 generated by GNU Autoconf 2.61
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1661 It was created by linux nfs-utils $as_me 1.0.11, which was
1662 generated by GNU Autoconf 2.61. Invocation command line was
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 echo "PATH: $as_dir"
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1722 ac_must_keep_next=false
1728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730 | -silent | --silent | --silen | --sile | --sil)
1733 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739 if test $ac_must_keep_next = true; then
1740 ac_must_keep_next=false # Got value, back to normal.
1743 *=* | --config-cache | -C | -disable-* | --disable-* \
1744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746 | -with-* | --with-* | -without-* | --without-* | --x)
1747 case "$ac_configure_args0 " in
1748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1751 -* ) ac_must_keep_next=true ;;
1754 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log. We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768 # Save into config.log some information that might help in debugging.
1773 ## ---------------- ##
1774 ## Cache variables. ##
1775 ## ---------------- ##
1778 # The following way of writing the cache mishandles newlines in values,
1780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781 eval ac_val=\$$ac_var
1785 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1789 _ | IFS | as_nl) ;; #(
1790 *) $as_unset $ac_var ;;
1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810 ## ----------------- ##
1811 ## Output variables. ##
1812 ## ----------------- ##
1815 for ac_var in $ac_subst_vars
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 echo "$ac_var='\''$ac_val'\''"
1825 if test -n "$ac_subst_files"; then
1827 ## ------------------- ##
1828 ## File substitutions. ##
1829 ## ------------------- ##
1832 for ac_var in $ac_subst_files
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1843 if test -s confdefs.h; then
1853 test "$ac_signal" != 0 &&
1854 echo "$as_me: caught signal $ac_signal"
1855 echo "$as_me: exit $exit_status"
1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1869 # Predefined preprocessor variables.
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_STRING "$PACKAGE_STRING"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899 set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1903 set x "$ac_default_prefix/share/config.site" \
1904 "$ac_default_prefix/etc/config.site"
1909 if test -r "$ac_site_file"; then
1910 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1917 if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
1921 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1929 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1934 # Check that the precious variables saved in the cache have kept the same
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1957 echo "$as_me: former value: $ac_old_val" >&2;}
1958 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1959 echo "$as_me: current value: $ac_new_val" >&2;}
1960 ac_cache_corrupted=:
1963 # Pass precious variables to config.status.
1964 if test "$ac_new_set" = set; then
1966 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 *) ac_arg=$ac_var=$ac_new_val ;;
1969 case " $ac_configure_args " in
1970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1971 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 if $ac_cache_corrupted; then
1976 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2130 am__api_version='1.10'
2132 # Find a good install program. We prefer a C program (faster),
2133 # so one script is as good as another. But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2147 if test -z "$INSTALL"; then
2148 if test "${ac_cv_path_install+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 # Account for people who put trailing slashes in PATH elements.
2158 ./ | .// | /cC/* | \
2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2163 # OSF1 and SCO ODT 3.0 have their own names for install.
2164 # Don't use installbsd from OSF since it installs stuff as root
2166 for ac_prog in ginstall scoinst install; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169 if test $ac_prog = install &&
2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171 # AIX install. It has an incompatible calling convention.
2173 elif test $ac_prog = install &&
2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # program-specific install script used by HP pwplus--don't use.
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2191 if test "${ac_cv_path_install+set}" = set; then
2192 INSTALL=$ac_cv_path_install
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for INSTALL within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 INSTALL=$ac_install_sh
2201 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2202 echo "${ECHO_T}$INSTALL" >&6; }
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2212 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2213 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2216 echo timestamp > conftest.file
2217 # Do `set' in a subshell so we don't clobber the current shell's
2218 # arguments. Must try -L first in case configure is actually a
2219 # symlink; some systems play weird games with the mod time of symlinks
2220 # (eg FreeBSD returns the mod time of the symlink's containing
2223 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2224 if test "$*" = "X"; then
2226 set X `ls -t $srcdir/configure conftest.file`
2229 if test "$*" != "X $srcdir/configure conftest.file" \
2230 && test "$*" != "X conftest.file $srcdir/configure"; then
2232 # If neither matched, then we have a broken ls. This can happen
2233 # if, for instance, CONFIG_SHELL is bash and it inherits a
2234 # broken ls alias from the environment. This has actually
2235 # happened. Such a system could not be considered "sane".
2236 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2237 alias in your environment" >&5
2238 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2239 alias in your environment" >&2;}
2240 { (exit 1); exit 1; }; }
2243 test "$2" = conftest.file
2249 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2250 Check your system clock" >&5
2251 echo "$as_me: error: newly created file is older than distributed files!
2252 Check your system clock" >&2;}
2253 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 test "$program_prefix" != NONE &&
2258 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259 # Use a double $ so make ignores it.
2260 test "$program_suffix" != NONE &&
2261 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262 # Double any \ or $. echo might interpret backslashes.
2263 # By default was `s,x,x', remove it if useless.
2264 cat <<\_ACEOF >conftest.sed
2265 s/[\\$]/&&/g;s/;s,x,x,$//
2267 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2274 # Use eval to expand $SHELL
2275 if eval "$MISSING --run true"; then
2276 am_missing_run="$MISSING --run "
2279 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2280 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2283 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2284 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2285 if test -z "$MKDIR_P"; then
2286 if test "${ac_cv_path_mkdir+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2293 test -z "$as_dir" && as_dir=.
2294 for ac_prog in mkdir gmkdir; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2297 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2298 'mkdir (GNU coreutils) '* | \
2299 'mkdir (coreutils) '* | \
2300 'mkdir (fileutils) '4.1*)
2301 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311 if test "${ac_cv_path_mkdir+set}" = set; then
2312 MKDIR_P="$ac_cv_path_mkdir -p"
2314 # As a last resort, use the slow shell script. Don't cache a
2315 # value for MKDIR_P within a source directory, because that will
2316 # break other packages using the cache if that directory is
2317 # removed, or if the value is a relative name.
2318 test -d ./--version && rmdir ./--version
2319 MKDIR_P="$ac_install_sh -d"
2322 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2323 echo "${ECHO_T}$MKDIR_P" >&6; }
2327 [\\/$]* | ?:[\\/]*) ;;
2328 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2331 for ac_prog in gawk mawk nawk awk
2333 # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_AWK+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$AWK"; then
2341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_AWK="$ac_prog"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$AWK"; then
2362 { echo "$as_me:$LINENO: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2370 test -n "$AWK" && break
2373 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2374 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2375 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.make <<\_ACEOF
2382 @echo '@@@%%%=$(MAKE)=@@@%%%'
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2387 eval ac_cv_prog_make_${ac_make}_set=yes;;
2389 eval ac_cv_prog_make_${ac_make}_set=no;;
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 SET_MAKE="MAKE=${MAKE-make}"
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2410 rmdir .tst 2>/dev/null
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status; then
2418 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420 { (exit 1); exit 1; }; }
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426 if (cygpath --version) >/dev/null 2>/dev/null; then
2427 CYGPATH_W='cygpath -w'
2434 # Define the identity of the package.
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE "$PACKAGE"
2444 cat >>confdefs.h <<_ACEOF
2445 #define VERSION "$VERSION"
2448 # Some tools Automake needs.
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2464 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'. However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2510 if test -z "$ac_cv_prog_STRIP"; then
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2548 if test "x$ac_ct_STRIP" = x; then
2551 case $cross_compiling:$ac_tool_warned in
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet. If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559 ac_tool_warned=yes ;;
2564 STRIP="$ac_cv_prog_STRIP"
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570 # We need awk for the "check" target. The system "awk" is bad on
2572 # Always define AMTAR for backward compatibility.
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2584 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2586 # Check whether --enable-maintainer-mode was given.
2587 if test "${enable_maintainer_mode+set}" = set; then
2588 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2590 USE_MAINTAINER_MODE=no
2593 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2594 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2595 if test $USE_MAINTAINER_MODE = yes; then
2596 MAINTAINER_MODE_TRUE=
2597 MAINTAINER_MODE_FALSE='#'
2599 MAINTAINER_MODE_TRUE='#'
2600 MAINTAINER_MODE_FALSE=
2603 MAINT=$MAINTAINER_MODE_TRUE
2608 # Check whether --with-release was given.
2609 if test "${with_release+set}" = set; then
2610 withval=$with_release; RELEASE=$withval
2617 # Check whether --with-statedir was given.
2618 if test "${with_statedir+set}" = set; then
2619 withval=$with_statedir; statedir=$withval
2621 statedir=/var/lib/nfs
2626 # Check whether --with-statduser was given.
2627 if test "${with_statduser+set}" = set; then
2628 withval=$with_statduser; statduser=$withval
2630 if test "x$cross_compiling" = "xno"; then
2631 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2642 # Check whether --enable-nfsv3 was given.
2643 if test "${enable_nfsv3+set}" = set; then
2644 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2649 if test "$enable_nfsv3" = yes; then
2651 cat >>confdefs.h <<\_ACEOF
2652 #define NFS3_SUPPORTED 1
2659 # Check whether --enable-nfsv4 was given.
2660 if test "${enable_nfsv4+set}" = set; then
2661 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2666 if test "$enable_nfsv4" = yes; then
2668 cat >>confdefs.h <<\_ACEOF
2669 #define NFS4_SUPPORTED 1
2679 if test "$enable_nfsv4" = "yes"; then
2681 CONFIG_NFSV4_FALSE='#'
2683 CONFIG_NFSV4_TRUE='#'
2687 # Check whether --enable-gss was given.
2688 if test "${enable_gss+set}" = set; then
2689 enableval=$enable_gss; enable_gss=$enableval
2694 if test "$enable_gss" = yes; then
2696 cat >>confdefs.h <<\_ACEOF
2697 #define GSS_SUPPORTED 1
2710 if test "$enable_gss" = "yes"; then
2712 CONFIG_GSS_FALSE='#'
2718 # Check whether --enable-kprefix was given.
2719 if test "${enable_kprefix+set}" = set; then
2720 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2726 # Check whether --enable-secure-statd was given.
2727 if test "${enable_secure_statd+set}" = set; then
2728 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2733 if test "$secure_statd" = yes; then
2735 cat >>confdefs.h <<\_ACEOF
2736 #define RESTRICTED_STATD 1
2741 # Check whether --enable-rquotad was given.
2742 if test "${enable_rquotad+set}" = set; then
2743 enableval=$enable_rquotad; enable_rquotad=$enableval
2748 if test "$enable_rquotad" = yes; then
2753 if test "$enable_rquotad" = "yes"; then
2754 CONFIG_RQUOTAD_TRUE=
2755 CONFIG_RQUOTAD_FALSE='#'
2757 CONFIG_RQUOTAD_TRUE='#'
2758 CONFIG_RQUOTAD_FALSE=
2762 # Check whether --enable-mount was given.
2763 if test "${enable_mount+set}" = set; then
2764 enableval=$enable_mount; enable_mount=$enableval
2769 if test "$enable_mount" = "yes"; then
2771 CONFIG_MOUNT_FALSE='#'
2773 CONFIG_MOUNT_TRUE='#'
2778 # Check whether user wants TCP wrappers support
2779 DEPDIR="${am__leading_dot}deps"
2781 ac_config_commands="$ac_config_commands depfiles"
2784 am_make=${MAKE-make}
2785 cat > confinc << 'END'
2790 # If we don't find an include directive, just comment out the code.
2791 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2796 # First try GNU make style include.
2797 echo "include confinc" > confmf
2798 # We grep out `Entering directory' and `Leaving directory'
2799 # messages which can occur if `w' ends up in MAKEFLAGS.
2800 # In particular we don't look at `^make:' because GNU make might
2801 # be invoked under some other name (usually "gmake"), in which
2802 # case it prints its new name instead of `make'.
2803 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2808 # Now try BSD make style include.
2809 if test "$am__include" = "#"; then
2810 echo '.include "confinc"' > confmf
2811 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2812 am__include=.include
2819 { echo "$as_me:$LINENO: result: $_am_result" >&5
2820 echo "${ECHO_T}$_am_result" >&6; }
2821 rm -f confinc confmf
2823 # Check whether --enable-dependency-tracking was given.
2824 if test "${enable_dependency_tracking+set}" = set; then
2825 enableval=$enable_dependency_tracking;
2828 if test "x$enable_dependency_tracking" != xno; then
2829 am_depcomp="$ac_aux_dir/depcomp"
2832 if test "x$enable_dependency_tracking" != xno; then
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 if test -n "$CC"; then
2876 { echo "$as_me:$LINENO: result: $CC" >&5
2877 echo "${ECHO_T}$CC" >&6; }
2879 { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2885 if test -z "$ac_cv_prog_CC"; then
2887 # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_ac_ct_CC="gcc"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6; }
2919 { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2923 if test "x$ac_ct_CC" = x; then
2926 case $cross_compiling:$ac_tool_warned in
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet. If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet. If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_CC="${ac_tool_prefix}cc"
2962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6; }
2976 { echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6; }
2983 if test -z "$CC"; then
2984 # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3018 if test $# != 0; then
3019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 if test -n "$CC"; then
3030 { echo "$as_me:$LINENO: result: $CC" >&5
3031 echo "${ECHO_T}$CC" >&6; }
3033 { echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6; }
3039 if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 for ac_prog in cl.exe
3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test -n "$CC"; then
3072 { echo "$as_me:$LINENO: result: $CC" >&5
3073 echo "${ECHO_T}$CC" >&6; }
3075 { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3080 test -n "$CC" && break
3083 if test -z "$CC"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_CC="$ac_prog"
3105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117 echo "${ECHO_T}$ac_ct_CC" >&6; }
3119 { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3124 test -n "$ac_ct_CC" && break
3127 if test "x$ac_ct_CC" = x; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3133 whose name does not start with the host triplet. If you think this
3134 configuration is useful to you, please write to autoconf@gnu.org." >&5
3135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3136 whose name does not start with the host triplet. If you think this
3137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3138 ac_tool_warned=yes ;;
3147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler --version >&5") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler -v >&5") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compiler -V >&5") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3208 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # List of possible output files, starting from the most likely.
3212 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3213 # only as a last resort. b.out is created by i960 compilers.
3214 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3216 # The IRIX 6 linker writes into existing files which may not be
3217 # executable, retaining their permissions. Remove them first so a
3218 # subsequent execution test works.
3220 for ac_file in $ac_files
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3229 if { (ac_try="$ac_link_default"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_link_default") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3244 for ac_file in $ac_files ''
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3251 # We found the default executable, but exeext='' is most
3255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 # We set ac_cv_exeext here because the later test for it is not
3260 # safe: cross compilers may not add the suffix if given an `-o'
3261 # argument, so we may need to know it at that point already.
3262 # Even if this section looks crufty: it has the advantage of
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3275 { echo "$as_me:$LINENO: result: $ac_file" >&5
3276 echo "${ECHO_T}$ac_file" >&6; }
3277 if test -z "$ac_file"; then
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&2;}
3285 { (exit 77); exit 77; }; }
3288 ac_exeext=$ac_cv_exeext
3290 # Check that the compiler produces executables we can run. If not, either
3291 # the compiler is broken, or we cross compile.
3292 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3293 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3294 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3295 # If not cross compiling, check that we can run a simple program.
3296 if test "$cross_compiling" != yes; then
3297 if { ac_try='./$ac_file'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3309 if test "$cross_compiling" = maybe; then
3312 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot run C compiled programs.
3316 If you meant to cross compile, use \`--host'.
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3322 { echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6; }
3325 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 # Check that the compiler produces executables we can run. If not, either
3328 # the compiler is broken, or we cross compile.
3329 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3330 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3331 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3332 echo "${ECHO_T}$cross_compiling" >&6; }
3334 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3335 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3336 if { (ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_link") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; then
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3350 for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3367 rm -f conftest$ac_cv_exeext
3368 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3374 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; then
3405 for ac_file in conftest.o conftest.obj conftest.*; do
3406 test -f "$ac_file" || continue;
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3409 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3426 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3427 echo "${ECHO_T}$ac_cv_objext" >&6; }
3428 OBJEXT=$ac_cv_objext
3430 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3431 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3432 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_compile") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } && {
3467 test -z "$ac_c_werror_flag" ||
3468 test ! -s conftest.err
3469 } && test -s conftest.$ac_objext; then
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3483 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3484 GCC=`test $ac_compiler_gnu = yes && echo yes`
3485 ac_test_CFLAGS=${CFLAGS+set}
3486 ac_save_CFLAGS=$CFLAGS
3487 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_cc_g+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 ac_save_c_werror_flag=$ac_c_werror_flag
3493 ac_c_werror_flag=yes
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625 CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627 if test "$GCC" = yes; then
3633 if test "$GCC" = yes; then
3639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 ac_cv_prog_cc_c89=no
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3670 s = g (p, va_arg (v,int));
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_compile") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } && {
3721 test -z "$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 } && test -s conftest.$ac_objext; then
3724 ac_cv_prog_cc_c89=$ac_arg
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3735 rm -f conftest.$ac_ext
3740 case "x$ac_cv_prog_cc_c89" in
3742 { echo "$as_me:$LINENO: result: none needed" >&5
3743 echo "${ECHO_T}none needed" >&6; } ;;
3745 { echo "$as_me:$LINENO: result: unsupported" >&5
3746 echo "${ECHO_T}unsupported" >&6; } ;;
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3750 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 depcc="$CC" am_compiler_list=
3762 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3763 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3764 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768 # We make a subdir and do the tests there. Otherwise we can end up
3769 # making bogus files that we don't know about and never remove. For
3770 # instance it was reported that on HP-UX the gcc test will end up
3771 # making a dummy file named `D' -- because `-MD' means `put the output
3774 # Copy depcomp to subdir because otherwise we won't find it if we're
3775 # using a relative directory.
3776 cp "$am_depcomp" conftest.dir
3778 # We will build objects and dependencies in a subdirectory because
3779 # it helps to detect inapplicable dependency modes. For instance
3780 # both Tru64's cc and ICC support -MD to output dependencies as a
3781 # side effect of compilation, but ICC will put the dependencies in
3782 # the current directory while Tru64 will put them in the object
3786 am_cv_CC_dependencies_compiler_type=none
3787 if test "$am_compiler_list" = ""; then
3788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3790 for depmode in $am_compiler_list; do
3791 # Setup a source with many dependencies, because some compilers
3792 # like to wrap large dependency lists on column 80 (with \), and
3793 # we should not choose a depcomp mode which is confused by this.
3795 # We need to recreate these files for each test, as the compiler may
3796 # overwrite some of them when testing with obscure command lines.
3797 # This happens at least with the AIX C compiler.
3799 for i in 1 2 3 4 5 6; do
3800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802 # Solaris 8's {/usr,}/bin/sh.
3803 touch sub/conftst$i.h
3805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3809 # after this tag, mechanisms are not by side-effect, so they'll
3810 # only be used when explicitly requested
3811 if test "x$enable_dependency_tracking" = xyes; then
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this.
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3849 am_cv_CC_dependencies_compiler_type=none
3853 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861 am__fastdepCC_FALSE='#'
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3872 # Check whether --with-tcp-wrappers was given.
3873 if test "${with_tcp_wrappers+set}" = set; then
3874 withval=$with_tcp_wrappers; with_tcpw=$withval
3879 if test "x$with_tcpw" != "xno" ; then
3881 saved_LDFLAGS="$LDFLAGS"
3882 saved_CPPFLAGS="$CPPFLAGS"
3883 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3884 if test -d "${with_tcpw}/lib"; then
3885 if test -n "${need_dash_r}"; then
3886 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3888 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3891 if test -n "${need_dash_r}"; then
3892 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3894 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3897 if test -d "${with_tcpw}/include"; then
3898 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3900 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3904 LIBS="$LIBWRAP $LIBS"
3905 { echo "$as_me:$LINENO: checking for libwrap" >&5
3906 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3915 int deny_severity = 0, allow_severity = 0;
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest$ac_exeext &&
3942 $as_test_x conftest$ac_exeext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3948 cat >>confdefs.h <<\_ACEOF
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_LIBWRAP 1
3958 cat >>confdefs.h <<\_ACEOF
3959 #define HAVE_TCP_WRAPPER 1
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3970 echo "$as_me: error: *** libwrap missing" >&2;}
3971 { (exit 1); exit 1; }; }
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977 conftest$ac_exeext conftest.$ac_ext
3986 ac_config_headers="$ac_config_headers support/include/config.h"
3989 # Checks for programs.
3991 ac_cpp='$CXXCPP $CPPFLAGS'
3992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3995 if test -z "$CXX"; then
3996 if test -n "$CCC"; then
3999 if test -n "$ac_tool_prefix"; then
4000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006 if test "${ac_cv_prog_CXX+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$CXX"; then
4010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CXX"; then
4031 { echo "$as_me:$LINENO: result: $CXX" >&5
4032 echo "${ECHO_T}$CXX" >&6; }
4034 { echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6; }
4039 test -n "$CXX" && break
4042 if test -z "$CXX"; then
4044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4046 # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$ac_ct_CXX"; then
4054 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_ac_ct_CXX="$ac_prog"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4074 if test -n "$ac_ct_CXX"; then
4075 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4076 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4083 test -n "$ac_ct_CXX" && break
4086 if test "x$ac_ct_CXX" = x; then
4089 case $cross_compiling:$ac_tool_warned in
4091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4092 whose name does not start with the host triplet. If you think this
4093 configuration is useful to you, please write to autoconf@gnu.org." >&5
4094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4095 whose name does not start with the host triplet. If you think this
4096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4097 ac_tool_warned=yes ;;
4105 # Provide some information about the compiler.
4106 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4107 ac_compiler=`set X $ac_compile; echo $2`
4108 { (ac_try="$ac_compiler --version >&5"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_compiler --version >&5") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }
4118 { (ac_try="$ac_compiler -v >&5"
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compiler -v >&5") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }
4128 { (ac_try="$ac_compiler -V >&5"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compiler -V >&5") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }
4139 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4140 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4141 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_compile") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_cxx_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest.$ac_objext; then
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4192 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4193 GXX=`test $ac_compiler_gnu = yes && echo yes`
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4197 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202 ac_cxx_werror_flag=yes
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_cxx_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_cv_prog_cxx_g=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_cxx_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_cxx_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_cv_prog_cxx_g=yes
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4332 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4333 if test "$ac_test_CXXFLAGS" = set; then
4334 CXXFLAGS=$ac_save_CXXFLAGS
4335 elif test $ac_cv_prog_cxx_g = yes; then
4336 if test "$GXX" = yes; then
4342 if test "$GXX" = yes; then
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 depcc="$CXX" am_compiler_list=
4356 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named `D' -- because `-MD' means `put the output
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4380 am_cv_CXX_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 for depmode in $am_compiler_list; do
4385 # Setup a source with many dependencies, because some compilers
4386 # like to wrap large dependency lists on column 80 (with \), and
4387 # we should not choose a depcomp mode which is confused by this.
4389 # We need to recreate these files for each test, as the compiler may
4390 # overwrite some of them when testing with obscure command lines.
4391 # This happens at least with the AIX C compiler.
4393 for i in 1 2 3 4 5 6; do
4394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396 # Solaris 8's {/usr,}/bin/sh.
4397 touch sub/conftst$i.h
4399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4403 # after this tag, mechanisms are not by side-effect, so they'll
4404 # only be used when explicitly requested
4405 if test "x$enable_dependency_tracking" = xyes; then
4413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414 # mode. It turns out that the SunPro C++ compiler does not properly
4415 # handle `-M -o', and we need to detect this.
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425 # icc doesn't choke on unknown options, it will just issue warnings
4426 # or remarks (even with -Werror). So we grep stderr for any message
4427 # that says an option was ignored or not supported.
4428 # When given -MP, icc 7.0 and 7.1 complain thusly:
4429 # icc: Command line warning: ignoring option '-M'; no argument required
4430 # The diagnosis changed in icc 8.0:
4431 # icc: Command line remark: option '-MP' not supported
4432 if (grep 'ignoring option' conftest.err ||
4433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434 am_cv_CXX_dependencies_compiler_type=$depmode
4443 am_cv_CXX_dependencies_compiler_type=none
4447 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4448 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4449 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCXX_TRUE=
4455 am__fastdepCXX_FALSE='#'
4457 am__fastdepCXX_TRUE='#'
4458 am__fastdepCXX_FALSE=
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$CC"; then
4497 { echo "$as_me:$LINENO: result: $CC" >&5
4498 echo "${ECHO_T}$CC" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4506 if test -z "$ac_cv_prog_CC"; then
4508 # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$ac_ct_CC"; then
4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_ac_ct_CC="gcc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 echo "${ECHO_T}$ac_ct_CC" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4544 if test "x$ac_ct_CC" = x; then
4547 case $cross_compiling:$ac_tool_warned in
4549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet. If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&5
4552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4553 whose name does not start with the host triplet. If you think this
4554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4555 ac_tool_warned=yes ;;
4563 if test -z "$CC"; then
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_CC="${ac_tool_prefix}cc"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$CC"; then
4594 { echo "$as_me:$LINENO: result: $CC" >&5
4595 echo "${ECHO_T}$CC" >&6; }
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4604 if test -z "$CC"; then
4605 # Extract the first word of "cc", so it can be a program name with args.
4606 set dummy cc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4624 ac_prog_rejected=yes
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 if test $ac_prog_rejected = yes; then
4636 # We found a bogon in the path, so make sure we never use it.
4637 set dummy $ac_cv_prog_CC
4639 if test $# != 0; then
4640 # We chose a different compiler from the bogus one.
4641 # However, it has the same basename, so the bogon will be chosen
4642 # first if we set CC to just the basename; use the full file name.
4644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4650 if test -n "$CC"; then
4651 { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4660 if test -z "$CC"; then
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in cl.exe
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$CC"; then
4672 ac_cv_prog_CC="$CC" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 if test -n "$CC"; then
4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4701 test -n "$CC" && break
4704 if test -z "$CC"; then
4706 for ac_prog in cl.exe
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_ac_ct_CC="$ac_prog"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4738 echo "${ECHO_T}$ac_ct_CC" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4745 test -n "$ac_ct_CC" && break
4748 if test "x$ac_ct_CC" = x; then
4751 case $cross_compiling:$ac_tool_warned in
4753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet. If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&5
4756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4757 whose name does not start with the host triplet. If you think this
4758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4759 ac_tool_warned=yes ;;
4768 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: no acceptable C compiler found in \$PATH
4771 See \`config.log' for more details." >&2;}
4772 { (exit 1); exit 1; }; }
4774 # Provide some information about the compiler.
4775 echo "$as_me:$LINENO: checking for C compiler version" >&5
4776 ac_compiler=`set X $ac_compile; echo $2`
4777 { (ac_try="$ac_compiler --version >&5"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compiler --version >&5") 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 { (ac_try="$ac_compiler -v >&5"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_compiler -v >&5") 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }
4797 { (ac_try="$ac_compiler -V >&5"
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_compiler -V >&5") 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }
4808 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4809 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4810 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4831 rm -f conftest.$ac_objext
4832 if { (ac_try="$ac_compile"
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4840 grep -v '^ *+' conftest.er1 >conftest.err
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4862 GCC=`test $ac_compiler_gnu = yes && echo yes`
4863 ac_test_CFLAGS=${CFLAGS+set}
4864 ac_save_CFLAGS=$CFLAGS
4865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_cc_g+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_save_c_werror_flag=$ac_c_werror_flag
4871 ac_c_werror_flag=yes
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 (eval "$ac_compile") 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest.$ac_objext; then
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 ac_c_werror_flag=$ac_save_c_werror_flag
5000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5002 if test "$ac_test_CFLAGS" = set; then
5003 CFLAGS=$ac_save_CFLAGS
5004 elif test $ac_cv_prog_cc_g = yes; then
5005 if test "$GCC" = yes; then
5011 if test "$GCC" = yes; then
5017 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5018 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_cc_c89+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 ac_cv_prog_cc_c89=no
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5032 #include <sys/types.h>
5033 #include <sys/stat.h>
5034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5035 struct buf { int x; };
5036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5037 static char *e (p, i)
5043 static char *f (char * (*g) (char **, int), char **p, ...)
5048 s = g (p, va_arg (v,int));
5053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5054 function prototypes and stuff, but not '\xHH' hex character constants.
5055 These don't provoke an error unfortunately, instead are silently treated
5056 as 'x'. The following induces an error, until -std is added to get
5057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5058 array size at least. It's necessary to write '\x00'==0 to get something
5059 that's true only with -std. */
5060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5063 inside strings and character constants. */
5065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5067 int test (int i, double x);
5068 struct s1 {int (*f) (int a);};
5069 struct s2 {int (*f) (double a);};
5070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5084 CC="$ac_save_CC $ac_arg"
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_cv_prog_cc_c89=$ac_arg
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5113 rm -f conftest.$ac_ext
5118 case "x$ac_cv_prog_cc_c89" in
5120 { echo "$as_me:$LINENO: result: none needed" >&5
5121 echo "${ECHO_T}none needed" >&6; } ;;
5123 { echo "$as_me:$LINENO: result: unsupported" >&5
5124 echo "${ECHO_T}unsupported" >&6; } ;;
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187 # after this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested
5189 if test "x$enable_dependency_tracking" = xyes; then
5197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198 # mode. It turns out that the SunPro C++ compiler does not properly
5199 # handle `-M -o', and we need to detect this.
5200 if depmode=$depmode \
5201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204 >/dev/null 2>conftest.err &&
5205 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5209 # icc doesn't choke on unknown options, it will just issue warnings
5210 # or remarks (even with -Werror). So we grep stderr for any message
5211 # that says an option was ignored or not supported.
5212 # When given -MP, icc 7.0 and 7.1 complain thusly:
5213 # icc: Command line warning: ignoring option '-M'; no argument required
5214 # The diagnosis changed in icc 8.0:
5215 # icc: Command line remark: option '-MP' not supported
5216 if (grep 'ignoring option' conftest.err ||
5217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5218 am_cv_CC_dependencies_compiler_type=$depmode
5227 am_cv_CC_dependencies_compiler_type=none
5231 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5236 test "x$enable_dependency_tracking" != xno \
5237 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5239 am__fastdepCC_FALSE='#'
5241 am__fastdepCC_TRUE='#'
5242 am__fastdepCC_FALSE=
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 # Double quotes because CPP needs to be expanded
5262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 for ac_c_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5280 # include <limits.h>
5282 # include <assert.h>
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null && {
5299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.$ac_ext
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <ac_nonexistent.h>
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null && {
5336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5339 # Broken: success on invalid input.
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 # Passes both tests.
5350 rm -f conftest.err conftest.$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5370 for ac_c_preproc_warn_flag in '' yes
5372 # Use a header file that comes with gcc, so configuring glibc
5373 # with a fresh cross-compiler works.
5374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375 # <limits.h> exists even on freestanding compilers.
5376 # On the NeXT, cc -E runs the code through the compiler's parser,
5377 # not just through cpp. "Syntax error" is here to catch this case.
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null && {
5404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <ac_nonexistent.h>
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 # Find a good install program. We prefer a C program (faster),
5477 # so one script is as good as another. But avoid the broken or
5478 # incompatible versions:
5479 # SysV /etc/install, /usr/sbin/install
5480 # SunOS /usr/etc/install
5481 # IRIX /sbin/install
5483 # AmigaOS /C/install, which installs bootblocks on floppy discs
5484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5487 # OS/2's system install, which has a completely different semantic
5488 # ./install, which can be erroneously created by make from ./install.sh.
5489 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5491 if test -z "$INSTALL"; then
5492 if test "${ac_cv_path_install+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 # Account for people who put trailing slashes in PATH elements.
5502 ./ | .// | /cC/* | \
5503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5507 # OSF1 and SCO ODT 3.0 have their own names for install.
5508 # Don't use installbsd from OSF since it installs stuff as root
5510 for ac_prog in ginstall scoinst install; do
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5513 if test $ac_prog = install &&
5514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5515 # AIX install. It has an incompatible calling convention.
5517 elif test $ac_prog = install &&
5518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5519 # program-specific install script used by HP pwplus--don't use.
5522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5535 if test "${ac_cv_path_install+set}" = set; then
5536 INSTALL=$ac_cv_path_install
5538 # As a last resort, use the slow shell script. Don't cache a
5539 # value for INSTALL within a source directory, because that will
5540 # break other packages using the cache if that directory is
5541 # removed, or if the value is a relative name.
5542 INSTALL=$ac_install_sh
5545 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5546 echo "${ECHO_T}$INSTALL" >&6; }
5548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5549 # It thinks the first close brace ends the variable substitution.
5550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5556 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5557 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5559 if test "$LN_S" = "ln -s"; then
5560 { echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6; }
5563 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5564 echo "${ECHO_T}no, using $LN_S" >&6; }
5567 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5569 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.make <<\_ACEOF
5576 @echo '@@@%%%=$(MAKE)=@@@%%%'
5578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5581 eval ac_cv_prog_make_${ac_make}_set=yes;;
5583 eval ac_cv_prog_make_${ac_make}_set=no;;
5587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5588 { echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6; }
5592 { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5594 SET_MAKE="MAKE=${MAKE-make}"
5597 # Check whether --enable-shared was given.
5598 if test "${enable_shared+set}" = set; then
5599 enableval=$enable_shared; p=${PACKAGE-default}
5601 yes) enable_shared=yes ;;
5602 no) enable_shared=no ;;
5605 # Look at the argument we got. We use all the common list separators.
5606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607 for pkg in $enableval; do
5609 if test "X$pkg" = "X$p"; then
5621 # Check whether --enable-static was given.
5622 if test "${enable_static+set}" = set; then
5623 enableval=$enable_static; p=${PACKAGE-default}
5625 yes) enable_static=yes ;;
5626 no) enable_static=no ;;
5629 # Look at the argument we got. We use all the common list separators.
5630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5631 for pkg in $enableval; do
5633 if test "X$pkg" = "X$p"; then
5645 # Check whether --enable-fast-install was given.
5646 if test "${enable_fast_install+set}" = set; then
5647 enableval=$enable_fast_install; p=${PACKAGE-default}
5649 yes) enable_fast_install=yes ;;
5650 no) enable_fast_install=no ;;
5652 enable_fast_install=no
5653 # Look at the argument we got. We use all the common list separators.
5654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5655 for pkg in $enableval; do
5657 if test "X$pkg" = "X$p"; then
5658 enable_fast_install=yes
5665 enable_fast_install=yes
5669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_SED+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 # Loop through the user's path and test for sed and gsed.
5675 # Then use that list of sed's as ones to test for truncation.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for lt_ac_prog in sed gsed; do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5684 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5691 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5692 # along with /bin/sed that truncates output.
5693 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5694 test ! -f $lt_ac_sed && continue
5695 cat /dev/null > conftest.in
5697 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5698 # Check for GNU sed and select it if it is found.
5699 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5700 lt_cv_path_SED=$lt_ac_sed
5704 cat conftest.in conftest.in >conftest.tmp
5705 mv conftest.tmp conftest.in
5706 cp conftest.in conftest.nl
5708 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5709 cmp -s conftest.out conftest.nl || break
5710 # 10000 chars as input seems more than enough
5711 test $lt_ac_count -gt 10 && break
5712 lt_ac_count=`expr $lt_ac_count + 1`
5713 if test $lt_ac_count -gt $lt_ac_max; then
5714 lt_ac_max=$lt_ac_count
5715 lt_cv_path_SED=$lt_ac_sed
5723 { echo "$as_me:$LINENO: result: $SED" >&5
5724 echo "${ECHO_T}$SED" >&6; }
5726 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5727 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_GREP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 # Extract the first word of "grep ggrep" to use in msg output
5732 if test -z "$GREP"; then
5733 set dummy grep ggrep; ac_prog_name=$2
5734 if test "${ac_cv_path_GREP+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in grep ggrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5748 # Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5755 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 echo 'GREP' >> "conftest.nl"
5762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 ac_count=`expr $ac_count + 1`
5765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_GREP="$ac_path_GREP"
5768 ac_path_GREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 $ac_path_GREP_found && break 3
5787 GREP="$ac_cv_path_GREP"
5788 if test -z "$GREP"; then
5789 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5791 { (exit 1); exit 1; }; }
5795 ac_cv_path_GREP=$GREP
5800 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5801 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5802 GREP="$ac_cv_path_GREP"
5805 { echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_EGREP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5811 then ac_cv_path_EGREP="$GREP -E"
5813 # Extract the first word of "egrep" to use in msg output
5814 if test -z "$EGREP"; then
5815 set dummy egrep; ac_prog_name=$2
5816 if test "${ac_cv_path_EGREP+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_path_EGREP_found=false
5820 # Loop through the user's path and test for each of PROGNAME-LIST
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825 test -z "$as_dir" && as_dir=.
5826 for ac_prog in egrep; do
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5829 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5830 # Check for GNU ac_path_EGREP and select it if it is found.
5831 # Check for GNU $ac_path_EGREP
5832 case `"$ac_path_EGREP" --version 2>&1` in
5834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5837 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5840 cat "conftest.in" "conftest.in" >"conftest.tmp"
5841 mv "conftest.tmp" "conftest.in"
5842 cp "conftest.in" "conftest.nl"
5843 echo 'EGREP' >> "conftest.nl"
5844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5846 ac_count=`expr $ac_count + 1`
5847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5848 # Best one so far, save it but keep looking for a better one
5849 ac_cv_path_EGREP="$ac_path_EGREP"
5850 ac_path_EGREP_max=$ac_count
5852 # 10*(2^10) chars as input seems more than enough
5853 test $ac_count -gt 10 && break
5855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5859 $ac_path_EGREP_found && break 3
5869 EGREP="$ac_cv_path_EGREP"
5870 if test -z "$EGREP"; then
5871 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5873 { (exit 1); exit 1; }; }
5877 ac_cv_path_EGREP=$EGREP
5883 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5884 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5885 EGREP="$ac_cv_path_EGREP"
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then
5891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5897 if test "$GCC" = yes; then
5898 # Check if gcc -print-prog-name=ld gives a path.
5899 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5900 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5903 # gcc leaves a trailing carriage return which upsets mingw
5904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5909 # Accept absolute paths.
5911 re_direlt='/[^/][^/]*/\.\./'
5912 # Canonicalize the pathname of ld
5913 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5914 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5915 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5917 test -z "$LD" && LD="$ac_prog"
5920 # If it fails, then pretend we aren't using GCC.
5924 # If it is relative, then search for the first ld in PATH.
5928 elif test "$with_gnu_ld" = yes; then
5929 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5930 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5932 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5933 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5935 if test "${lt_cv_path_LD+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -z "$LD"; then
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH; do
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944 lt_cv_path_LD="$ac_dir/$ac_prog"
5945 # Check to see if the program is GNU ld. I'd rather use --version,
5946 # but apparently some variants of GNU ld only accept -v.
5947 # Break only if it was the GNU/non-GNU ld that we prefer.
5948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949 *GNU* | *'with BFD'*)
5950 test "$with_gnu_ld" != no && break
5953 test "$with_gnu_ld" != yes && break
5960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5965 if test -n "$LD"; then
5966 { echo "$as_me:$LINENO: result: $LD" >&5
5967 echo "${ECHO_T}$LD" >&6; }
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5972 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5973 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5974 { (exit 1); exit 1; }; }
5975 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5976 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5977 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5981 case `$LD -v 2>&1 </dev/null` in
5982 *GNU* | *'with BFD'*)
5983 lt_cv_prog_gnu_ld=yes
5986 lt_cv_prog_gnu_ld=no
5990 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5991 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5992 with_gnu_ld=$lt_cv_prog_gnu_ld
5995 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5996 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 lt_cv_ld_reload_flag='-r'
6002 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6003 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6007 *) reload_flag=" $reload_flag" ;;
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012 if test "$GCC" = yes; then
6013 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6020 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6021 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$NM"; then
6026 # Let the user override the test.
6029 lt_nm_to_check="${ac_tool_prefix}nm"
6030 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6031 lt_nm_to_check="$lt_nm_to_check nm"
6033 for lt_tmp_nm in $lt_nm_to_check; do
6034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6037 test -z "$ac_dir" && ac_dir=.
6038 tmp_nm="$ac_dir/$lt_tmp_nm"
6039 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040 # Check to see if the nm accepts a BSD-compat flag.
6041 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042 # nm: unknown option "B" ignored
6043 # Tru64's nm complains that /dev/null is an invalid object file
6044 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045 */dev/null* | *'Invalid file or object type'*)
6046 lt_cv_path_NM="$tmp_nm -B"
6050 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6052 lt_cv_path_NM="$tmp_nm -p"
6056 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057 continue # so that we can try to find one that supports BSD flags
6066 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6069 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6070 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6073 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6074 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6075 if test "${lt_cv_deplibs_check_method+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 lt_cv_file_magic_cmd='$MAGIC_CMD'
6079 lt_cv_file_magic_test_file=
6080 lt_cv_deplibs_check_method='unknown'
6081 # Need to set the preceding variable on all platforms that support
6082 # interlibrary dependencies.
6083 # 'none' -- dependencies not supported.
6084 # `unknown' -- same as none, but documents that we really don't know.
6085 # 'pass_all' -- all dependencies passed with no checks.
6086 # 'test_compile' -- check by making test program.
6087 # 'file_magic [[regex]]' -- check by looking for files in library path
6088 # which responds to the $file_magic_cmd with a given extended regex.
6089 # If you have `file' or equivalent on your system and you're not sure
6090 # whether `pass_all' will *always* work, you probably want this one.
6094 lt_cv_deplibs_check_method=pass_all
6098 lt_cv_deplibs_check_method=pass_all
6102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6103 lt_cv_file_magic_cmd='/usr/bin/file -L'
6104 lt_cv_file_magic_test_file=/shlib/libc.so
6108 # func_win32_libid is a shell function defined in ltmain.sh
6109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6110 lt_cv_file_magic_cmd='func_win32_libid'
6114 # Base MSYS/MinGW do not provide the 'file' command needed by
6115 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6117 lt_cv_file_magic_cmd='$OBJDUMP -f'
6120 darwin* | rhapsody*)
6121 lt_cv_deplibs_check_method=pass_all
6124 freebsd* | dragonfly*)
6125 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6128 # Not sure whether the presence of OpenBSD here was a mistake.
6129 # Let's accept both of them until this is cleared up.
6130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6136 lt_cv_deplibs_check_method=pass_all
6141 lt_cv_deplibs_check_method=pass_all
6144 hpux10.20* | hpux11*)
6145 lt_cv_file_magic_cmd=/usr/bin/file
6148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6152 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]'
6153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6167 irix5* | irix6* | nonstopux*)
6169 *-32|*"-32 ") libmagic=32-bit;;
6170 *-n32|*"-n32 ") libmagic=N32;;
6171 *-64|*"-64 ") libmagic=64-bit;;
6172 *) libmagic=never-match;;
6174 lt_cv_deplibs_check_method=pass_all
6177 # This must be Linux ELF.
6178 linux* | k*bsd*-gnu)
6179 lt_cv_deplibs_check_method=pass_all
6182 netbsd* | netbsdelf*-gnu)
6183 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192 lt_cv_file_magic_cmd=/usr/bin/file
6193 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6197 lt_cv_deplibs_check_method=unknown
6201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6208 osf3* | osf4* | osf5*)
6209 lt_cv_deplibs_check_method=pass_all
6213 lt_cv_deplibs_check_method=pass_all
6217 case $host_vendor in
6219 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]'
6220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6223 lt_cv_deplibs_check_method=pass_all
6226 lt_cv_file_magic_cmd='/bin/file'
6227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6230 lt_cv_file_magic_cmd='/bin/file'
6231 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6232 lt_cv_file_magic_test_file=/lib/libc.so
6235 lt_cv_deplibs_check_method=pass_all
6238 lt_cv_deplibs_check_method=pass_all
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244 lt_cv_deplibs_check_method=pass_all
6249 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6250 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6251 file_magic_cmd=$lt_cv_file_magic_cmd
6252 deplibs_check_method=$lt_cv_deplibs_check_method
6253 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6258 # If no C compiler was specified, use CC.
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6267 # Check whether --enable-libtool-lock was given.
6268 if test "${enable_libtool_lock+set}" = set; then
6269 enableval=$enable_libtool_lock;
6272 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6274 # Some flags need to be propagated to the compiler or linker for good
6278 # Find out which ABI we are using.
6279 echo 'int i;' > conftest.$ac_ext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; then
6285 case `/usr/bin/file conftest.$ac_objext` in
6297 # Find out which ABI we are using.
6298 echo '#line 6298 "configure"' > conftest.$ac_ext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; then
6304 if test "$lt_cv_prog_gnu_ld" = yes; then
6305 case `/usr/bin/file conftest.$ac_objext` in
6307 LD="${LD-ld} -melf32bsmip"
6310 LD="${LD-ld} -melf32bmipn32"
6313 LD="${LD-ld} -melf64bmip"
6317 case `/usr/bin/file conftest.$ac_objext` in
6333 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6334 # Find out which ABI we are using.
6335 echo 'int i;' > conftest.$ac_ext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; then
6341 case `/usr/bin/file conftest.o` in
6345 LD="${LD-ld} -m elf_i386"
6347 ppc64-*linux*|powerpc64-*linux*)
6348 LD="${LD-ld} -m elf32ppclinux"
6351 LD="${LD-ld} -m elf_s390"
6354 LD="${LD-ld} -m elf32_sparc"
6361 LD="${LD-ld} -m elf_x86_64"
6363 ppc*-*linux*|powerpc*-*linux*)
6364 LD="${LD-ld} -m elf64ppc"
6367 LD="${LD-ld} -m elf64_s390"
6370 LD="${LD-ld} -m elf64_sparc"
6380 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6381 SAVE_CFLAGS="$CFLAGS"
6382 CFLAGS="$CFLAGS -belf"
6383 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6385 if test "${lt_cv_cc_needs_belf+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest$ac_exeext &&
6426 $as_test_x conftest$ac_exeext; then
6427 lt_cv_cc_needs_belf=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 lt_cv_cc_needs_belf=no
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436 conftest$ac_exeext conftest.$ac_ext
6438 ac_cpp='$CPP $CPPFLAGS'
6439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6445 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6446 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6448 CFLAGS="$SAVE_CFLAGS"
6452 # Find out which ABI we are using.
6453 echo 'int i;' > conftest.$ac_ext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 case `/usr/bin/file conftest.o` in
6461 case $lt_cv_prog_gnu_ld in
6462 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6463 *) LD="${LD-ld} -64" ;;
6474 need_locks="$enable_libtool_lock"
6478 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6480 if test "${ac_cv_header_stdc+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_compile") 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest.$ac_objext; then
6519 ac_cv_header_stdc=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_cv_header_stdc=no
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 if test $ac_cv_header_stdc = yes; then
6530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541 $EGREP "memchr" >/dev/null 2>&1; then
6544 ac_cv_header_stdc=no
6550 if test $ac_cv_header_stdc = yes; then
6551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562 $EGREP "free" >/dev/null 2>&1; then
6565 ac_cv_header_stdc=no
6571 if test $ac_cv_header_stdc = yes; then
6572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6573 if test "$cross_compiling" = yes; then
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6588 # define ISLOWER(c) \
6589 (('a' <= (c) && (c) <= 'i') \
6590 || ('j' <= (c) && (c) <= 'r') \
6591 || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6600 for (i = 0; i < 256; i++)
6601 if (XOR (islower (i), ISLOWER (i))
6602 || toupper (i) != TOUPPER (i))
6607 rm -f conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6618 { (case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_try") 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6629 echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_cv_header_stdc=no
6636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6642 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6643 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6644 if test $ac_cv_header_stdc = yes; then
6646 cat >>confdefs.h <<\_ACEOF
6647 #define STDC_HEADERS 1
6652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6663 inttypes.h stdint.h unistd.h
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6679 #include <$ac_header>
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
6698 eval "$as_ac_Header=yes"
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 eval "$as_ac_Header=no"
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712 cat >>confdefs.h <<_ACEOF
6713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722 for ac_header in dlfcn.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_res=`eval echo '${'$as_ac_Header'}'`
6732 { echo "$as_me:$LINENO: result: $ac_res" >&5
6733 echo "${ECHO_T}$ac_res" >&6; }
6735 # Is the header compilable?
6736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 #include <$ac_header>
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_compile") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest.$ac_objext; then
6764 ac_header_compiler=yes
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_header_compiler=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6774 echo "${ECHO_T}$ac_header_compiler" >&6; }
6776 # Is the header present?
6777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 #include <$ac_header>
6787 if { (ac_try="$ac_cpp conftest.$ac_ext"
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } >/dev/null && {
6800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6803 ac_header_preproc=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_header_preproc=no
6811 rm -f conftest.err conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6813 echo "${ECHO_T}$ac_header_preproc" >&6; }
6815 # So? What about this header?
6816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6822 ac_header_preproc=yes
6825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6838 ## ------------------------------- ##
6839 ## Report this to nfs@lists.sf.net ##
6840 ## ------------------------------- ##
6842 ) | sed "s/^/$as_me: WARNING: /" >&2
6845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 eval "$as_ac_Header=\$ac_header_preproc"
6852 ac_res=`eval echo '${'$as_ac_Header'}'`
6853 { echo "$as_me:$LINENO: result: $ac_res" >&5
6854 echo "${ECHO_T}$ac_res" >&6; }
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6869 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6870 (test "X$CXX" != "Xg++"))) ; then
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6878 if test -z "$CXXCPP"; then
6879 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 # Double quotes because CXXCPP needs to be expanded
6883 for CXXCPP in "$CXX -E" "/lib/cpp"
6886 for ac_cxx_preproc_warn_flag in '' yes
6888 # Use a header file that comes with gcc, so configuring glibc
6889 # with a fresh cross-compiler works.
6890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891 # <limits.h> exists even on freestanding compilers.
6892 # On the NeXT, cc -E runs the code through the compiler's parser,
6893 # not just through cpp. "Syntax error" is here to catch this case.
6894 cat >conftest.$ac_ext <<_ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6901 # include <limits.h>
6903 # include <assert.h>
6907 if { (ac_try="$ac_cpp conftest.$ac_ext"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } >/dev/null && {
6920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6921 test ! -s conftest.err
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 # Broken: fails on valid input.
6932 rm -f conftest.err conftest.$ac_ext
6934 # OK, works on sane cases. Now check whether nonexistent headers
6935 # can be detected and how.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <ac_nonexistent.h>
6944 if { (ac_try="$ac_cpp conftest.$ac_ext"
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } >/dev/null && {
6957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6958 test ! -s conftest.err
6960 # Broken: success on invalid input.
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 # Passes both tests.
6971 rm -f conftest.err conftest.$ac_ext
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6981 ac_cv_prog_CXXCPP=$CXXCPP
6984 CXXCPP=$ac_cv_prog_CXXCPP
6986 ac_cv_prog_CXXCPP=$CXXCPP
6988 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6; }
6991 for ac_cxx_preproc_warn_flag in '' yes
6993 # Use a header file that comes with gcc, so configuring glibc
6994 # with a fresh cross-compiler works.
6995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996 # <limits.h> exists even on freestanding compilers.
6997 # On the NeXT, cc -E runs the code through the compiler's parser,
6998 # not just through cpp. "Syntax error" is here to catch this case.
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 # include <limits.h>
7008 # include <assert.h>
7012 if { (ac_try="$ac_cpp conftest.$ac_ext"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } >/dev/null && {
7025 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7026 test ! -s conftest.err
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7037 rm -f conftest.err conftest.$ac_ext
7039 # OK, works on sane cases. Now check whether nonexistent headers
7040 # can be detected and how.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <ac_nonexistent.h>
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } >/dev/null && {
7062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7063 test ! -s conftest.err
7065 # Broken: success on invalid input.
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 # Passes both tests.
7076 rm -f conftest.err conftest.$ac_ext
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7084 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$F77"; then
7115 ac_cv_prog_F77="$F77" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 if test -n "$F77"; then
7136 { echo "$as_me:$LINENO: result: $F77" >&5
7137 echo "${ECHO_T}$F77" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 test -n "$F77" && break
7147 if test -z "$F77"; then
7149 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7151 # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 if test -n "$ac_ct_F77"; then
7159 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_ac_ct_F77="$ac_prog"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7179 if test -n "$ac_ct_F77"; then
7180 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7181 echo "${ECHO_T}$ac_ct_F77" >&6; }
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7188 test -n "$ac_ct_F77" && break
7191 if test "x$ac_ct_F77" = x; then
7194 case $cross_compiling:$ac_tool_warned in
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7209 # Provide some information about the compiler.
7210 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7211 ac_compiler=`set X $ac_compile; echo $2`
7212 { (ac_try="$ac_compiler --version >&5"
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compiler --version >&5") 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }
7222 { (ac_try="$ac_compiler -v >&5"
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_compiler -v >&5") 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }
7232 { (ac_try="$ac_compiler -V >&5"
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compiler -V >&5") 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }
7244 # If we don't use `.F' as extension, the preprocessor is not run on the
7245 # input file. (Note that this only needs to work for GNU compilers.)
7248 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7249 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7250 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_f77_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7290 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7291 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7293 ac_test_FFLAGS=${FFLAGS+set}
7294 ac_save_FFLAGS=$FFLAGS
7296 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7297 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_f77_g+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1 >conftest.err
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_f77_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest.$ac_objext; then
7324 ac_cv_prog_f77_g=yes
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7337 if test "$ac_test_FFLAGS" = set; then
7338 FFLAGS=$ac_save_FFLAGS
7339 elif test $ac_cv_prog_f77_g = yes; then
7340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7346 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7353 G77=`test $ac_compiler_gnu = yes && echo yes`
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7364 # find the maximum length of command line arguments
7365 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 # On DJGPP, this test can blow up pretty badly due to problems in libc
7376 # (any single argument exceeding 2000 bytes causes a buffer overrun
7377 # during glob expansion). Even if it were fixed, the result of this
7378 # check would be larger than it should be.
7379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7383 # Under GNU Hurd, this test is not required because there is
7384 # no limit to the length of command line arguments.
7385 # Libtool will interpret -1 as no limit whatsoever
7386 lt_cv_sys_max_cmd_len=-1;
7390 # On Win9x/ME, this test blows up -- it succeeds, but takes
7391 # about 5 minutes as the teststring grows exponentially.
7392 # Worse, since 9x/ME are not pre-emptively multitasking,
7393 # you end up with a "frozen" computer, even though with patience
7394 # the test eventually succeeds (with a max line length of 256k).
7395 # Instead, let's just punt: use the minimum linelength reported by
7396 # all of the supported platforms: 8192 (on NT/2K/XP).
7397 lt_cv_sys_max_cmd_len=8192;
7401 # On AmigaOS with pdksh, this test takes hours, literally.
7402 # So we just punt and use a minimum line length of 8192.
7403 lt_cv_sys_max_cmd_len=8192;
7406 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7407 # This has been around since 386BSD, at least. Likely further.
7408 if test -x /sbin/sysctl; then
7409 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7410 elif test -x /usr/sbin/sysctl; then
7411 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7413 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7415 # And add a safety zone
7416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7421 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7422 lt_cv_sys_max_cmd_len=196608
7426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428 # nice to cause kernel panics so lets avoid the loop below.
7429 # First set a reasonable default.
7430 lt_cv_sys_max_cmd_len=16384
7432 if test -x /sbin/sysconfig; then
7433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7439 lt_cv_sys_max_cmd_len=102400
7441 sysv5* | sco5v6* | sysv4.2uw2*)
7442 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443 if test -n "$kargmax"; then
7444 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7446 lt_cv_sys_max_cmd_len=32768
7450 # If test is not a shell built-in, we'll probably end up computing a
7451 # maximum length that is only half of the actual maximum length, but
7453 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7454 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7455 = "XX$teststring") >/dev/null 2>&1 &&
7456 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7457 lt_cv_sys_max_cmd_len=$new_result &&
7458 test $i != 17 # 1/2 MB should be enough
7461 teststring=$teststring$teststring
7464 # Add a significant safety factor because C++ compilers can tack on massive
7465 # amounts of additional arguments before passing them to the linker.
7466 # It appears as though 1/2 is a usable value.
7467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7473 if test -n $lt_cv_sys_max_cmd_len ; then
7474 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7475 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7477 { echo "$as_me:$LINENO: result: none" >&5
7478 echo "${ECHO_T}none" >&6; }
7484 # Check for command to grab the raw symbol name followed by C symbol from nm.
7485 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7486 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 # These are sane defaults that work on at least a few old systems.
7492 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7494 # Character class describing NM global symbol codes.
7495 symcode='[BCDEGRST]'
7497 # Regexp to match symbols that can be accessed directly from C.
7498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7500 # Transform an extracted symbol line into a proper C declaration
7501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7503 # Transform an extracted symbol line into symbol name and symbol address
7504 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'"
7506 # Define system-specific variables.
7511 cygwin* | mingw* | pw32*)
7512 symcode='[ABCDGISTW]'
7514 hpux*) # Its linker distinguishes data from code symbols
7515 if test "$host_cpu" = ia64; then
7516 symcode='[ABCDEGRST]'
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519 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'"
7521 linux* | k*bsd*-gnu)
7522 if test "$host_cpu" = ia64; then
7523 symcode='[ABCDGIRSTW]'
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7525 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'"
7529 symcode='[BCDEGRST]'
7532 symcode='[BCDEGQRST]'
7543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7551 # Handle CRLF in mingw tool chain
7555 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7559 # If we're using GNU nm, then use its standard symbol codes.
7560 case `$NM -V 2>&1` in
7561 *GNU* | *'with BFD'*)
7562 symcode='[ABCDGIRSTW]' ;;
7565 # Try without a prefix undercore, then with it.
7566 for ac_symprfx in "" "_"; do
7568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7569 symxfrm="\\1 $ac_symprfx\\2 \\2"
7571 # Write the raw and C identifiers.
7572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7574 # Check to see that the pipe works correctly.
7578 cat > conftest.$ac_ext <<EOF
7583 void nm_test_func(){}
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; then
7595 # Now try to grab the symbols.
7597 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7598 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && test -s "$nlist"; then
7602 # Try sorting and uniquifying the output.
7603 if sort "$nlist" | uniq > "$nlist"T; then
7604 mv -f "$nlist"T "$nlist"
7609 # Make sure that we snagged all the symbols we need.
7610 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7611 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7612 cat <<EOF > conftest.$ac_ext
7618 # Now generate the symbol file.
7619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7621 cat <<EOF >> conftest.$ac_ext
7622 #if defined (__STDC__) && __STDC__
7623 # define lt_ptr_t void *
7625 # define lt_ptr_t char *
7629 /* The mapping between symbol names and symbols. */
7634 lt_preloaded_symbols[] =
7637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7638 cat <<\EOF >> conftest.$ac_ext
7646 # Now try linking the two files.
7647 mv conftest.$ac_objext conftstm.$ac_objext
7648 lt_save_LIBS="$LIBS"
7649 lt_save_CFLAGS="$CFLAGS"
7650 LIBS="conftstm.$ac_objext"
7651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653 (eval $ac_link) 2>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7659 LIBS="$lt_save_LIBS"
7660 CFLAGS="$lt_save_CFLAGS"
7662 echo "cannot find nm_test_func in $nlist" >&5
7665 echo "cannot find nm_test_var in $nlist" >&5
7668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671 echo "$progname: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 rm -f conftest* conftst*
7676 # Do not use the global_symbol_pipe unless it works.
7677 if test "$pipe_works" = yes; then
7680 lt_cv_sys_global_symbol_pipe=
7686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7687 lt_cv_sys_global_symbol_to_cdecl=
7689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7690 { echo "$as_me:$LINENO: result: failed" >&5
7691 echo "${ECHO_T}failed" >&6; }
7693 { echo "$as_me:$LINENO: result: ok" >&5
7694 echo "${ECHO_T}ok" >&6; }
7697 { echo "$as_me:$LINENO: checking for objdir" >&5
7698 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7699 if test "${lt_cv_objdir+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 rm -f .libs 2>/dev/null
7703 mkdir .libs 2>/dev/null
7704 if test -d .libs; then
7707 # MS-DOS does not allow filenames that begin with a dot.
7710 rmdir .libs 2>/dev/null
7712 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7713 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7714 objdir=$lt_cv_objdir
7722 # AIX sometimes has problems with the GCC collect2 program. For some
7723 # reason, if we set the COLLECT_NAMES environment variable, the problems
7724 # vanish in a puff of smoke.
7725 if test "X${COLLECT_NAMES+set}" != Xset; then
7727 export COLLECT_NAMES
7732 # Sed substitution that helps us do robust quoting. It backslashifies
7733 # metacharacters that are still active within double-quoted strings.
7734 Xsed='sed -e 1s/^X//'
7735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7737 # Same as above, but do not quote variable references.
7738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7740 # Sed substitution to delay expansion of an escaped shell variable in a
7741 # double_quote_subst'ed string.
7742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7744 # Sed substitution to avoid accidental globbing in evaled expressions
7745 no_glob_subst='s/\*/\\\*/g'
7751 default_ofile=libtool
7752 can_build_shared=yes
7754 # All known linkers require a `.a' archive for static linking (except MSVC,
7755 # which needs '.lib').
7757 ltmain="$ac_aux_dir/ltmain.sh"
7758 ofile="$default_ofile"
7759 with_gnu_ld="$lt_cv_prog_gnu_ld"
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}ar; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_AR+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 if test -n "$AR"; then
7770 ac_cv_prog_AR="$AR" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_AR="${ac_tool_prefix}ar"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 if test -n "$AR"; then
7791 { echo "$as_me:$LINENO: result: $AR" >&5
7792 echo "${ECHO_T}$AR" >&6; }
7794 { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7800 if test -z "$ac_cv_prog_AR"; then
7802 # Extract the first word of "ar", so it can be a program name with args.
7803 set dummy ar; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 if test -n "$ac_ct_AR"; then
7810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_ac_ct_AR="ar"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7830 if test -n "$ac_ct_AR"; then
7831 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7832 echo "${ECHO_T}$ac_ct_AR" >&6; }
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7838 if test "x$ac_ct_AR" = x; then
7841 case $cross_compiling:$ac_tool_warned in
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet. If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: 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." >&2;}
7849 ac_tool_warned=yes ;;
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_prog_RANLIB+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 if test -n "$RANLIB"; then
7866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 RANLIB=$ac_cv_prog_RANLIB
7886 if test -n "$RANLIB"; then
7887 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7888 echo "${ECHO_T}$RANLIB" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7896 if test -z "$ac_cv_prog_RANLIB"; then
7897 ac_ct_RANLIB=$RANLIB
7898 # Extract the first word of "ranlib", so it can be a program name with args.
7899 set dummy ranlib; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 if test -n "$ac_ct_RANLIB"; then
7906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_ac_ct_RANLIB="ranlib"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7926 if test -n "$ac_ct_RANLIB"; then
7927 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7928 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7930 { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7934 if test "x$ac_ct_RANLIB" = x; then
7937 case $cross_compiling:$ac_tool_warned in
7939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7940 whose name does not start with the host triplet. If you think this
7941 configuration is useful to you, please write to autoconf@gnu.org." >&5
7942 echo "$as_me: 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." >&2;}
7945 ac_tool_warned=yes ;;
7947 RANLIB=$ac_ct_RANLIB
7950 RANLIB="$ac_cv_prog_RANLIB"
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}strip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_prog_STRIP+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 if test -n "$STRIP"; then
7962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 STRIP=$ac_cv_prog_STRIP
7982 if test -n "$STRIP"; then
7983 { echo "$as_me:$LINENO: result: $STRIP" >&5
7984 echo "${ECHO_T}$STRIP" >&6; }
7986 { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7992 if test -z "$ac_cv_prog_STRIP"; then
7994 # Extract the first word of "strip", so it can be a program name with args.
7995 set dummy strip; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 if test -n "$ac_ct_STRIP"; then
8002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_STRIP="strip"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8022 if test -n "$ac_ct_STRIP"; then
8023 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8024 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8026 { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8030 if test "x$ac_ct_STRIP" = x; then
8033 case $cross_compiling:$ac_tool_warned in
8035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8036 whose name does not start with the host triplet. If you think this
8037 configuration is useful to you, please write to autoconf@gnu.org." >&5
8038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8039 whose name does not start with the host triplet. If you think this
8040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8041 ac_tool_warned=yes ;;
8046 STRIP="$ac_cv_prog_STRIP"
8051 old_CFLAGS="$CFLAGS"
8053 # Set sane defaults for various variables
8054 test -z "$AR" && AR=ar
8055 test -z "$AR_FLAGS" && AR_FLAGS=cru
8056 test -z "$AS" && AS=as
8057 test -z "$CC" && CC=cc
8058 test -z "$LTCC" && LTCC=$CC
8059 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060 test -z "$DLLTOOL" && DLLTOOL=dlltool
8061 test -z "$LD" && LD=ld
8062 test -z "$LN_S" && LN_S="ln -s"
8063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064 test -z "$NM" && NM=nm
8065 test -z "$SED" && SED=sed
8066 test -z "$OBJDUMP" && OBJDUMP=objdump
8067 test -z "$RANLIB" && RANLIB=:
8068 test -z "$STRIP" && STRIP=:
8069 test -z "$ac_objext" && ac_objext=o
8071 # Determine commands to create old-style static archives.
8072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8073 old_postinstall_cmds='chmod 644 $oldlib'
8074 old_postuninstall_cmds=
8076 if test -n "$RANLIB"; then
8079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8085 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8088 for cc_temp in $compiler""; do
8090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8099 # Only perform the check for file, if the check method requires it
8100 case $deplibs_check_method in
8102 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8103 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8104 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8113 lt_save_MAGIC_CMD="$MAGIC_CMD"
8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116 for ac_dir in $ac_dummy; do
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f $ac_dir/${ac_tool_prefix}file; then
8120 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8121 if test -n "$file_magic_test_file"; then
8122 case $deplibs_check_method in
8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127 $EGREP "$file_magic_regex" > /dev/null; then
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such. This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem. Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8149 MAGIC_CMD="$lt_save_MAGIC_CMD"
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if test -n "$MAGIC_CMD"; then
8156 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8157 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8159 { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164 if test -n "$ac_tool_prefix"; then
8165 { echo "$as_me:$LINENO: checking for file" >&5
8166 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8237 # Check whether --enable-libtool-lock was given.
8238 if test "${enable_libtool_lock+set}" = set; then
8239 enableval=$enable_libtool_lock;
8242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then
8247 withval=$with_pic; pic_mode="$withval"
8252 test -z "$pic_mode" && pic_mode=default
8254 # Use C for the default configuration in the libtool script
8258 ac_cpp='$CPP $CPPFLAGS'
8259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264 # Source file extension for C test sources.
8267 # Object file extension for compiled C test sources.
8271 # Code to be used in simple compile tests
8272 lt_simple_compile_test_code="int some_variable = 0;\n"
8274 # Code to be used in simple link tests
8275 lt_simple_link_test_code='int main(){return(0);}\n'
8278 # If no C compiler was specified, use CC.
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8284 # Allow CC to be a program name with arguments.
8288 # save warnings/boilerplate of simple test code
8289 ac_outfile=conftest.$ac_objext
8290 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_compiler_boilerplate=`cat conftest.err`
8295 ac_outfile=conftest.$ac_objext
8296 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_linker_boilerplate=`cat conftest.err`
8303 lt_prog_compiler_no_builtin_flag=
8305 if test "$GCC" = yes; then
8306 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8309 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8310 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 lt_cv_prog_compiler_rtti_exceptions=no
8315 ac_outfile=conftest.$ac_objext
8316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="-fno-rtti -fno-exceptions"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 # The option is referenced via a variable to avoid confusing sed.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
8327 (eval echo "\"\$as_me:8327: $lt_compile\"" >&5)
8328 (eval "$lt_compile" 2>conftest.err)
8330 cat conftest.err >&5
8331 echo "$as_me:8331: \$? = $ac_status" >&5
8332 if (exit $ac_status) && test -s "$ac_outfile"; then
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings other than the usual output.
8335 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_rtti_exceptions=yes
8344 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8355 lt_prog_compiler_wl=
8356 lt_prog_compiler_pic=
8357 lt_prog_compiler_static=
8359 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8360 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8362 if test "$GCC" = yes; then
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_static='-static'
8368 # All AIX code is PIC.
8369 if test "$host_cpu" = ia64; then
8370 # AIX 5 now supports IA64 processor
8371 lt_prog_compiler_static='-Bstatic'
8376 # FIXME: we need at least 68020 code to build shared libraries, but
8377 # adding the `-m68020' flag to GCC prevents building anything better,
8379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8383 # PIC is the default for these OSes.
8386 mingw* | pw32* | os2*)
8387 # This hack is so that the source file can tell whether it is being
8388 # built for inclusion in a dll (and should export symbols for example).
8389 lt_prog_compiler_pic='-DDLL_EXPORT'
8392 darwin* | rhapsody*)
8393 # PIC is the default on this platform
8394 # Common symbols not allowed in MH_DYLIB files
8395 lt_prog_compiler_pic='-fno-common'
8399 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8400 # Instead, we relocate shared libraries at runtime.
8404 # Just because we use GCC doesn't mean we suddenly get shared libraries
8405 # on systems that don't support them.
8406 lt_prog_compiler_can_build_shared=no
8411 if test -d /usr/nec; then
8412 lt_prog_compiler_pic=-Kconform_pic
8417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8424 lt_prog_compiler_pic='-fPIC'
8430 lt_prog_compiler_pic='-fPIC'
8434 # PORTME Check for flag to pass linker flags through the system compiler.
8437 lt_prog_compiler_wl='-Wl,'
8438 if test "$host_cpu" = ia64; then
8439 # AIX 5 now supports IA64 processor
8440 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8446 # PIC is the default on this platform
8447 # Common symbols not allowed in MH_DYLIB files
8448 case $cc_basename in
8450 lt_prog_compiler_pic='-qnocommon'
8451 lt_prog_compiler_wl='-Wl,'
8456 mingw* | pw32* | os2*)
8457 # This hack is so that the source file can tell whether it is being
8458 # built for inclusion in a dll (and should export symbols for example).
8459 lt_prog_compiler_pic='-DDLL_EXPORT'
8462 hpux9* | hpux10* | hpux11*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8471 lt_prog_compiler_pic='+Z'
8474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8475 lt_prog_compiler_static='${wl}-a ${wl}archive'
8478 irix5* | irix6* | nonstopux*)
8479 lt_prog_compiler_wl='-Wl,'
8480 # PIC (with -KPIC) is the default.
8481 lt_prog_compiler_static='-non_shared'
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8489 linux* | k*bsd*-gnu)
8490 case $cc_basename in
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-static'
8496 pgcc* | pgf77* | pgf90* | pgf95*)
8497 # Portland Group compilers (*not* the Pentium gcc compiler,
8498 # which looks to be a dead project)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-fpic'
8501 lt_prog_compiler_static='-Bstatic'
8504 lt_prog_compiler_wl='-Wl,'
8505 # All Alpha code is PIC.
8506 lt_prog_compiler_static='-non_shared'
8511 osf3* | osf4* | osf5*)
8512 lt_prog_compiler_wl='-Wl,'
8513 # All OSF/1 code is PIC.
8514 lt_prog_compiler_static='-non_shared'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 case $cc_basename in
8522 lt_prog_compiler_wl='-Qoption ld ';;
8524 lt_prog_compiler_wl='-Wl,';;
8529 lt_prog_compiler_wl='-Qoption ld '
8530 lt_prog_compiler_pic='-PIC'
8531 lt_prog_compiler_static='-Bstatic'
8534 sysv4 | sysv4.2uw2* | sysv4.3*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8541 if test -d /usr/nec ;then
8542 lt_prog_compiler_pic='-Kconform_pic'
8543 lt_prog_compiler_static='-Bstatic'
8547 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8548 lt_prog_compiler_wl='-Wl,'
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_can_build_shared=no
8559 lt_prog_compiler_pic='-pic'
8560 lt_prog_compiler_static='-Bstatic'
8564 lt_prog_compiler_can_build_shared=no
8569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8570 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8573 # Check to make sure the PIC flag actually works.
8575 if test -n "$lt_prog_compiler_pic"; then
8577 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8578 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8579 if test "${lt_prog_compiler_pic_works+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 lt_prog_compiler_pic_works=no
8583 ac_outfile=conftest.$ac_objext
8584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:8595: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8598 cat conftest.err >&5
8599 echo "$as_me:8599: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_prog_compiler_pic_works=yes
8612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8613 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8615 if test x"$lt_prog_compiler_pic_works" = xyes; then
8616 case $lt_prog_compiler_pic in
8618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_can_build_shared=no
8627 # For platforms which do not support PIC, -DPIC is meaningless:
8629 lt_prog_compiler_pic=
8632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8637 # Check to make sure the static flag actually works.
8639 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8640 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8641 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8642 if test "${lt_prog_compiler_static_works+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 lt_prog_compiler_static_works=no
8646 save_LDFLAGS="$LDFLAGS"
8647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8648 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8650 # The linker can only warn and ignore the option if not recognized
8651 # So say no if there are warnings
8652 if test -s conftest.err; then
8653 # Append any errors to the config.log.
8654 cat conftest.err 1>&5
8655 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657 if diff conftest.exp conftest.er2 >/dev/null; then
8658 lt_prog_compiler_static_works=yes
8661 lt_prog_compiler_static_works=yes
8665 LDFLAGS="$save_LDFLAGS"
8668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8669 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8671 if test x"$lt_prog_compiler_static_works" = xyes; then
8674 lt_prog_compiler_static=
8678 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8679 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 lt_cv_prog_compiler_c_o=no
8684 $rm -r conftest 2>/dev/null
8688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8690 lt_compiler_flag="-o out/conftest2.$ac_objext"
8691 # Insert the option either (1) after the last *FLAGS variable, or
8692 # (2) before a word containing "conftest.", or (3) at the end.
8693 # Note that $ac_compile itself does not contain backslashes and begins
8694 # with a dollar sign (not a hyphen), so the echo should work correctly.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>out/conftest.err)
8702 cat out/conftest.err >&5
8703 echo "$as_me:8703: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8706 # The compiler can only warn and ignore the option if not recognized
8707 # So say no if there are warnings
8708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8711 lt_cv_prog_compiler_c_o=yes
8716 # SGI C++ compiler will create directory out/ii_files/ for
8717 # template instantiation
8718 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8719 $rm out/* && rmdir out
8725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8726 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8729 hard_links="nottested"
8730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8731 # do not overwrite the value of need_locks provided by the user
8732 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8733 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8738 ln conftest.a conftest.b 2>&5 || hard_links=no
8739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8740 { echo "$as_me:$LINENO: result: $hard_links" >&5
8741 echo "${ECHO_T}$hard_links" >&6; }
8742 if test "$hard_links" = no; then
8743 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8744 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8751 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8752 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8755 allow_undefined_flag=
8756 enable_shared_with_static_runtimes=no
8758 archive_expsym_cmds=
8759 old_archive_From_new_cmds=
8760 old_archive_from_expsyms_cmds=
8761 export_dynamic_flag_spec=
8762 whole_archive_flag_spec=
8763 thread_safe_flag_spec=
8764 hardcode_libdir_flag_spec=
8765 hardcode_libdir_flag_spec_ld=
8766 hardcode_libdir_separator=
8769 hardcode_shlibpath_var=unsupported
8770 link_all_deplibs=unknown
8771 hardcode_automatic=no
8774 always_export_symbols=no
8775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8776 # include_expsyms should be a list of space-separated symbols to be *always*
8777 # included in the symbol list
8779 # exclude_expsyms can be an extended regexp of symbols to exclude
8780 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8781 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8782 # as well as any symbol that contains `d'.
8783 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8785 # platforms (ab)use it in PIC code, but their linkers get confused if
8786 # the symbol is explicitly referenced. Since portable code cannot
8787 # rely on this symbol name, it's probably fine to never include it in
8788 # preloaded symbol tables.
8789 extract_expsyms_cmds=
8790 # Just being paranoid about ensuring that cc_basename is set.
8791 for cc_temp in $compiler""; do
8793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8802 cygwin* | mingw* | pw32*)
8803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8804 # When not using gcc, we currently assume that we are using
8805 # Microsoft Visual C++.
8806 if test "$GCC" != yes; then
8811 # we just hope/assume this is gcc and not c89 (= MSVC++)
8820 if test "$with_gnu_ld" = yes; then
8821 # If archive_cmds runs LD, not CC, wlarc should be empty
8824 # Set some defaults for GNU ld with shared library support. These
8825 # are reset later if shared libraries are not supported. Putting them
8826 # here allows them to be overridden if necessary.
8827 runpath_var=LD_RUN_PATH
8828 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8829 export_dynamic_flag_spec='${wl}--export-dynamic'
8830 # ancient GNU ld didn't support --whole-archive et. al.
8831 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8832 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8834 whole_archive_flag_spec=
8836 supports_anon_versioning=no
8837 case `$LD -v 2>/dev/null` in
8838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8841 *\ 2.11.*) ;; # other 2.11 versions
8842 *) supports_anon_versioning=yes ;;
8845 # See if GNU ld supports shared libraries.
8847 aix3* | aix4* | aix5*)
8848 # On AIX/PPC, the GNU linker is very broken
8849 if test "$host_cpu" != ia64; then
8853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8854 *** to be unable to reliably create shared libraries on AIX.
8855 *** Therefore, libtool is disabling shared libraries support. If you
8856 *** really care for shared libraries, you may want to modify your PATH
8857 *** so that a non-GNU linker is found, and then restart.
8864 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)'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_minus_L=yes
8868 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8869 # that the semantics of dynamic libraries on AmigaOS, at least up
8870 # to version 4, is to share data among multiple programs linked
8871 # with the same dynamic library. Since this doesn't match the
8872 # behavior of shared libraries on other platforms, we can't use
8878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8879 allow_undefined_flag=unsupported
8880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8881 # support --undefined. This deserves some investigation. FIXME
8882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 cygwin* | mingw* | pw32*)
8889 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8890 # as there is no search path for DLLs.
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 allow_undefined_flag=unsupported
8893 always_export_symbols=no
8894 enable_shared_with_static_runtimes=yes
8895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8897 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899 # If the export-symbols file already is a .def file (1st line
8900 # is EXPORTS), use it as is; otherwise, prepend...
8901 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8902 cp $export_symbols $output_objdir/$soname.def;
8904 echo EXPORTS > $output_objdir/$soname.def;
8905 cat $export_symbols >> $output_objdir/$soname.def;
8907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 export_dynamic_flag_spec='${wl}-E'
8918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919 # Instead, shared libraries are loaded at an image base (0x10000000 by
8920 # default) and relocated if they conflict, which is a slow very memory
8921 # consuming and fragmenting process. To avoid this, we pick a random,
8922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925 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'
8928 linux* | k*bsd*-gnu)
8929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8931 case $cc_basename,$host_cpu in
8932 pgcc*) # Portland Group C compiler
8933 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'
8934 tmp_addflag=' $pic_flag'
8936 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8937 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'
8938 tmp_addflag=' $pic_flag -Mnomain' ;;
8939 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8940 tmp_addflag=' -i_dynamic' ;;
8941 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8942 tmp_addflag=' -i_dynamic -nofor_main' ;;
8943 ifc* | ifort*) # Intel Fortran compiler
8944 tmp_addflag=' -nofor_main' ;;
8946 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 if test $supports_anon_versioning = yes; then
8949 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 $echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 netbsd* | netbsdelf*-gnu)
8961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8976 *** create shared libraries on Solaris systems. Therefore, libtool
8977 *** is disabling shared libraries support. We urge you to upgrade GNU
8978 *** binutils to release 2.9.1 or newer. Another option is to modify
8979 *** your PATH or compiler configuration so that the native linker is
8980 *** used, and then restart.
8983 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8992 case `$LD -v 2>&1` in
8993 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8998 *** reliably create shared libraries on SCO systems. Therefore, libtool
8999 *** is disabling shared libraries support. We urge you to upgrade GNU
9000 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9001 *** your PATH or compiler configuration so that the native linker is
9002 *** used, and then restart.
9007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_shlibpath_var=no
9026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 if test "$ld_shlibs" = no; then
9037 hardcode_libdir_flag_spec=
9038 export_dynamic_flag_spec=
9039 whole_archive_flag_spec=
9042 # PORTME fill in a description of your system's linker (not GNU ld)
9045 allow_undefined_flag=unsupported
9046 always_export_symbols=yes
9047 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'
9048 # Note: this linker hardcodes the directories in LIBPATH if there
9049 # are no directories specified by -L.
9050 hardcode_minus_L=yes
9051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9052 # Neither direct hardcoding nor static linking is supported with a
9054 hardcode_direct=unsupported
9059 if test "$host_cpu" = ia64; then
9060 # On IA64, the linker does run time linking by default, so we don't
9061 # have to do anything special.
9062 aix_use_runtimelinking=no
9063 exp_sym_flag='-Bexport'
9066 # If we're using GNU nm, then we don't want the "-C" option.
9067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9068 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9069 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'
9071 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'
9073 aix_use_runtimelinking=no
9075 # Test if we are trying to use run time linking or normal
9076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077 # need to do runtime linking.
9078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9079 for ld_flag in $LDFLAGS; do
9080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9081 aix_use_runtimelinking=yes
9088 exp_sym_flag='-bexport'
9089 no_entry_flag='-bnoentry'
9092 # When large executables or shared objects are built, AIX ld can
9093 # have problems creating the table of contents. If linking a library
9094 # or program results in "error TOC overflow" add -mminimal-toc to
9095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9100 hardcode_libdir_separator=':'
9101 link_all_deplibs=yes
9103 if test "$GCC" = yes; then
9104 case $host_os in aix4.[012]|aix4.[012].*)
9105 # We only want to do this on AIX 4.2 and lower, the check
9106 # below for broken collect2 doesn't work under 4.3+
9107 collect2name=`${CC} -print-prog-name=collect2`
9108 if test -f "$collect2name" && \
9109 strings "$collect2name" | grep resolve_lib_name >/dev/null
9111 # We have reworked collect2
9114 # We have old collect2
9115 hardcode_direct=unsupported
9116 # It fails to find uninstalled libraries when the uninstalled
9117 # path is not listed in the libpath. Setting hardcode_minus_L
9118 # to unsupported forces relinking
9119 hardcode_minus_L=yes
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_libdir_separator=
9125 shared_flag='-shared'
9126 if test "$aix_use_runtimelinking" = yes; then
9127 shared_flag="$shared_flag "'${wl}-G'
9131 if test "$host_cpu" = ia64; then
9132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9133 # chokes on -Wl,-G. The following line is correct:
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag='${wl}-G'
9139 shared_flag='${wl}-bM:SRE'
9144 # It seems that -bexpall does not export symbols beginning with
9145 # underscore (_), so it is better to generate a list of symbols to export.
9146 always_export_symbols=yes
9147 if test "$aix_use_runtimelinking" = yes; then
9148 # Warning - without using the other runtime loading flags (-brtl),
9149 # -berok will link without error, but may produce a broken library.
9150 allow_undefined_flag='-berok'
9151 # Determine the default libpath from the value encoded in an empty executable.
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest$ac_exeext &&
9184 $as_test_x conftest$ac_exeext; then
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9188 # Check for a 64-bit object if we didn't find anything.
9189 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; }
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9203 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"
9205 if test "$host_cpu" = ia64; then
9206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9207 allow_undefined_flag="-z nodefs"
9208 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"
9210 # Determine the default libpath from the value encoded in an empty executable.
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9247 # Check for a 64-bit object if we didn't find anything.
9248 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; }
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9258 conftest$ac_exeext conftest.$ac_ext
9259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9262 # Warning - without using the other run time loading flags,
9263 # -berok will link without error, but may produce a broken library.
9264 no_undefined_flag=' ${wl}-bernotok'
9265 allow_undefined_flag=' ${wl}-berok'
9266 # Exported symbols can be pulled into shared objects from archives
9267 whole_archive_flag_spec='$convenience'
9268 archive_cmds_need_lc=yes
9269 # This is similar to how AIX traditionally builds its shared libraries.
9270 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'
9276 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)'
9277 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_minus_L=yes
9279 # see comment about different semantics on the GNU ld section
9284 export_dynamic_flag_spec=-rdynamic
9287 cygwin* | mingw* | pw32*)
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 # hardcode_libdir_flag_spec is actually meaningless, as there is
9291 # no search path for DLLs.
9292 hardcode_libdir_flag_spec=' '
9293 allow_undefined_flag=unsupported
9294 # Tell ltmain to make .lib files, not .a files.
9296 # Tell ltmain to make .dll files, not .so files.
9298 # FIXME: Setting linknames here is a bad hack.
9299 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9300 # The linker will automatically build a .lib file if we build a DLL.
9301 old_archive_From_new_cmds='true'
9302 # FIXME: Should let the user specify the lib program.
9303 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9304 fix_srcfile_path='`cygpath -w "$srcfile"`'
9305 enable_shared_with_static_runtimes=yes
9308 darwin* | rhapsody*)
9310 rhapsody* | darwin1.[012])
9311 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9315 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9317 case ${MACOSX_DEPLOYMENT_TARGET} in
9319 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9322 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9328 archive_cmds_need_lc=no
9330 hardcode_automatic=yes
9331 hardcode_shlibpath_var=unsupported
9332 whole_archive_flag_spec=''
9333 link_all_deplibs=yes
9334 if test "$GCC" = yes ; then
9335 output_verbose_link_cmd='echo'
9336 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9337 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9339 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}'
9340 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}'
9342 case $cc_basename in
9344 output_verbose_link_cmd='echo'
9345 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9346 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9348 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}'
9349 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}'
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_shlibpath_var=no
9368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9369 # support. Future versions do this automatically, but an explicit c++rt0.o
9370 # does not break anything, and helps significantly (at the cost of a little
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9374 hardcode_libdir_flag_spec='-R$libdir'
9376 hardcode_shlibpath_var=no
9379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_minus_L=yes
9384 hardcode_shlibpath_var=no
9387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9388 freebsd* | dragonfly*)
9389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9390 hardcode_libdir_flag_spec='-R$libdir'
9392 hardcode_shlibpath_var=no
9396 if test "$GCC" = yes; then
9397 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'
9399 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'
9401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402 hardcode_libdir_separator=:
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 export_dynamic_flag_spec='${wl}-E'
9412 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9417 if test "$with_gnu_ld" = no; then
9418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9419 hardcode_libdir_separator=:
9422 export_dynamic_flag_spec='${wl}-E'
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L=yes
9431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 if test "$with_gnu_ld" = no; then
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9462 hardcode_libdir_flag_spec_ld='+b $libdir'
9464 hardcode_shlibpath_var=no
9468 export_dynamic_flag_spec='${wl}-E'
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9478 irix5* | irix6* | nonstopux*)
9479 if test "$GCC" = yes; then
9480 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'
9482 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'
9483 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486 hardcode_libdir_separator=:
9487 link_all_deplibs=yes
9490 netbsd* | netbsdelf*-gnu)
9491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9496 hardcode_libdir_flag_spec='-R$libdir'
9498 hardcode_shlibpath_var=no
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 hardcode_shlibpath_var=no
9511 hardcode_shlibpath_var=no
9512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516 export_dynamic_flag_spec='${wl}-E'
9519 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='-R$libdir'
9524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 hardcode_minus_L=yes
9534 allow_undefined_flag=unsupported
9535 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'
9536 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9540 if test "$GCC" = yes; then
9541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9542 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'
9544 allow_undefined_flag=' -expect_unresolved \*'
9545 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'
9547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548 hardcode_libdir_separator=:
9551 osf4* | osf5*) # as osf3* with the addition of -msym flag
9552 if test "$GCC" = yes; then
9553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9554 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'
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 allow_undefined_flag=' -expect_unresolved \*'
9558 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'
9559 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9560 $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'
9562 # Both c and cxx compiler support -rpath directly
9563 hardcode_libdir_flag_spec='-rpath $libdir'
9565 hardcode_libdir_separator=:
9569 no_undefined_flag=' -z text'
9570 if test "$GCC" = yes; then
9572 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9574 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 hardcode_shlibpath_var=no
9584 solaris2.[0-5] | solaris2.[0-5].*) ;;
9586 # The compiler driver will combine linker options so we
9587 # cannot just pass the convience library names through
9588 # without $wl, iff we do not link with $LD.
9589 # Luckily, gcc supports the same syntax we need for Sun Studio.
9590 # Supported since Solaris 2.6 (maybe 2.5.1?)
9593 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9595 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' ;;
9598 link_all_deplibs=yes
9602 if test "x$host_vendor" = xsequent; then
9603 # Use $CC to link under sequent, because it throws in some extra .o
9604 # files that make .init and .fini sections work.
9605 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_libdir_flag_spec='-L$libdir'
9611 hardcode_minus_L=yes
9612 hardcode_shlibpath_var=no
9616 case $host_vendor in
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_direct=yes # is this really true???
9622 ## LD is ld it makes a PLAMLIB
9623 ## CC just makes a GrossModule.
9624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9625 reload_cmds='$CC -r -o $output$reload_objs'
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9633 runpath_var='LD_RUN_PATH'
9634 hardcode_shlibpath_var=no
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_shlibpath_var=no
9640 export_dynamic_flag_spec='-Bexport'
9644 if test -d /usr/nec; then
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_shlibpath_var=no
9647 runpath_var=LD_RUN_PATH
9648 hardcode_runpath_var=yes
9653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9654 no_undefined_flag='${wl}-z,text'
9655 archive_cmds_need_lc=no
9656 hardcode_shlibpath_var=no
9657 runpath_var='LD_RUN_PATH'
9659 if test "$GCC" = yes; then
9660 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 sysv5* | sco3.2v5* | sco5v6*)
9669 # Note: We can NOT use -z defs as we might desire, because we do not
9670 # link with -lc, and that would cause any symbols used from libc to
9671 # always be unresolved, which means just about no library would
9672 # ever link correctly. If we're not using GNU ld we use -z text
9673 # though, which does catch some bad symbols but isn't as heavy-handed
9675 no_undefined_flag='${wl}-z,text'
9676 allow_undefined_flag='${wl}-z,nodefs'
9677 archive_cmds_need_lc=no
9678 hardcode_shlibpath_var=no
9679 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9680 hardcode_libdir_separator=':'
9681 link_all_deplibs=yes
9682 export_dynamic_flag_spec='${wl}-Bexport'
9683 runpath_var='LD_RUN_PATH'
9685 if test "$GCC" = yes; then
9686 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_shlibpath_var=no
9706 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9707 echo "${ECHO_T}$ld_shlibs" >&6; }
9708 test "$ld_shlibs" = no && can_build_shared=no
9711 # Do we need to explicitly link libc?
9713 case "x$archive_cmds_need_lc" in
9715 # Assume -lc should be added
9716 archive_cmds_need_lc=yes
9718 if test "$enable_shared" = yes && test "$GCC" = yes; then
9719 case $archive_cmds in
9721 # FIXME: we may have to deal with multi-command sequences.
9724 # Test whether the compiler implicitly links with -lc since on some
9725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9726 # to ld, don't add -lc before -lgcc.
9727 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733 (eval $ac_compile) 2>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } 2>conftest.err; then
9739 libobjs=conftest.$ac_objext
9741 wl=$lt_prog_compiler_wl
9742 pic_flag=$lt_prog_compiler_pic
9748 lt_save_allow_undefined_flag=$allow_undefined_flag
9749 allow_undefined_flag=
9750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9751 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }
9756 archive_cmds_need_lc=no
9758 archive_cmds_need_lc=yes
9760 allow_undefined_flag=$lt_save_allow_undefined_flag
9762 cat conftest.err 1>&5
9765 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9766 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9776 libname_spec='lib$name'
9784 shlibpath_overrides_runpath=unknown
9786 dynamic_linker="$host_os ld.so"
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9788 if test "$GCC" = yes; then
9789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9791 # if the path contains ";" then we assume it to be the separator
9792 # otherwise default to the standard path separator (i.e. ":") - it is
9793 # assumed that no part of a normal pathname contains ";" but that should
9794 # okay in the real world where ";" in dirpaths is itself problematic.
9795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9802 need_lib_prefix=unknown
9803 hardcode_into_libs=no
9805 # when you set need_version to no, make sure it does not cause -set_version
9806 # flags to be left without arguments
9807 need_version=unknown
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9813 shlibpath_var=LIBPATH
9815 # AIX 3 has no versioning support, so we append a major version to the name.
9816 soname_spec='${libname}${release}${shared_ext}$major'
9823 hardcode_into_libs=yes
9824 if test "$host_cpu" = ia64; then
9825 # AIX 5 supports IA64
9826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9827 shlibpath_var=LD_LIBRARY_PATH
9829 # With GCC up to 2.95.x, collect2 would create an import file
9830 # for dependence libraries. The import file would start with
9831 # the line `#! .'. This would cause the generated library to
9832 # depend on `.', always an invalid library. This was fixed in
9833 # development snapshots of GCC prior to 3.0.
9835 aix4 | aix4.[01] | aix4.[01].*)
9836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9846 # soname into executable. Probably we can add versioning support to
9847 # collect2, so additional links can be useful in future.
9848 if test "$aix_use_runtimelinking" = yes; then
9849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9850 # instead of lib<name>.a to let people know that these are not
9851 # typical AIX shared libraries.
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 # We preserve .a as extension for shared libraries through AIX4.2
9855 # and later when we are not doing run time linking.
9856 library_names_spec='${libname}${release}.a $libname.a'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LIBPATH
9864 library_names_spec='$libname.ixlibrary $libname.a'
9865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9866 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'
9870 library_names_spec='${libname}${shared_ext}'
9871 dynamic_linker="$host_os ld.so"
9872 shlibpath_var=LIBRARY_PATH
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9884 # the default ld.so.conf also contains /usr/contrib/lib and
9885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9886 # libtool to hard-code these into programs
9889 cygwin* | mingw* | pw32*)
9890 version_type=windows
9895 case $GCC,$host_os in
9896 yes,cygwin* | yes,mingw* | yes,pw32*)
9897 library_names_spec='$libname.dll.a'
9898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9899 postinstall_cmds='base_file=`basename \${file}`~
9900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9901 dldir=$destdir/`dirname \$dlpath`~
9902 test -d \$dldir || mkdir -p \$dldir~
9903 $install_prog $dir/$dlname \$dldir/$dlname~
9904 chmod a+x \$dldir/$dlname'
9905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9906 dlpath=$dir/\$dldll~
9908 shlibpath_overrides_runpath=yes
9912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9914 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9920 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9921 # It is most probably a Windows format PATH printed by
9922 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9923 # path with ; separators, and with drive letters. We can handle the
9924 # drive letters (cygwin fileutils understands them), so leave them,
9925 # especially as we might pass files found there to a mingw objdump,
9926 # which wouldn't understand a cygwinified path. Ahh.
9927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9933 # pw32 DLLs use 'pw' prefix rather than 'lib'
9934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9943 dynamic_linker='Win32 ld.exe'
9944 # FIXME: first we should search . and the directory the executable is in
9948 darwin* | rhapsody*)
9949 dynamic_linker="$host_os dyld"
9953 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9954 soname_spec='${libname}${release}${major}$shared_ext'
9955 shlibpath_overrides_runpath=yes
9956 shlibpath_var=DYLD_LIBRARY_PATH
9957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9958 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9959 if test "$GCC" = yes; then
9960 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"`
9962 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 shlibpath_var=LD_LIBRARY_PATH
9980 freebsd* | dragonfly*)
9981 # DragonFly does not have aout. When/if they implement a new
9982 # versioning mechanism, adjust this.
9983 if test -x /usr/bin/objformat; then
9984 objformat=`/usr/bin/objformat`
9987 freebsd[123]*) objformat=aout ;;
9991 version_type=freebsd-$objformat
9992 case $version_type in
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10003 shlibpath_var=LD_LIBRARY_PATH
10006 shlibpath_overrides_runpath=yes
10008 freebsd3.[01]* | freebsdelf3.[01]*)
10009 shlibpath_overrides_runpath=yes
10010 hardcode_into_libs=yes
10012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10014 shlibpath_overrides_runpath=no
10015 hardcode_into_libs=yes
10017 freebsd*) # from 4.6 on
10018 shlibpath_overrides_runpath=yes
10019 hardcode_into_libs=yes
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 hardcode_into_libs=yes
10034 hpux9* | hpux10* | hpux11*)
10035 # Give a soname corresponding to the major version so that dld.sl refuses to
10036 # link against other versions.
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.so"
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 if test "X$HPUX_IA64_MODE" = X32; then
10050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058 hardcode_into_libs=yes
10059 dynamic_linker="$host_os dld.sl"
10060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069 dynamic_linker="$host_os dld.sl"
10070 shlibpath_var=SHLIB_PATH
10071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10077 postinstall_cmds='chmod 555 $lib'
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10092 irix5* | irix6* | nonstopux*)
10094 nonstopux*) version_type=nonstopux ;;
10096 if test "$lt_cv_prog_gnu_ld" = yes; then
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10107 irix5* | nonstopux*)
10108 libsuff= shlibsuff=
10111 case $LD in # libtool.m4 will add one of these switches to LD
10112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10113 libsuff= shlibsuff= libmagic=32-bit;;
10114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10115 libsuff=32 shlibsuff=N32 libmagic=N32;;
10116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10118 *) libsuff= shlibsuff= libmagic=never-match;;
10122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10123 shlibpath_overrides_runpath=no
10124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10126 hardcode_into_libs=yes
10129 # No shared lib support for Linux oldld, aout, or coff.
10130 linux*oldld* | linux*aout* | linux*coff*)
10134 # This must be Linux ELF.
10135 linux* | k*bsd*-gnu)
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10144 # This implies no fast_install, which is unacceptable.
10145 # Some rework will be needed to allow for fast_install
10146 # before this can be enabled.
10147 hardcode_into_libs=yes
10149 # Append ld.so.conf contents to the search path
10150 if test -f /etc/ld.so.conf; then
10151 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' ' '`
10152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10155 # We used to test for /lib/ld.so.1 and disable shared libraries on
10156 # powerpc, because MkLinux only supported shared libraries with the
10157 # GNU dynamic linker. Since this was broken with cross compilers,
10158 # most powerpc-linux boxes support dynamic linking these days and
10159 # people can always --disable-shared, the test was removed, and we
10160 # assume the GNU/Linux dynamic linker is in use.
10161 dynamic_linker='GNU/Linux ld.so'
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=no
10172 hardcode_into_libs=yes
10173 dynamic_linker='NetBSD ld.elf_so'
10180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10183 dynamic_linker='NetBSD (a.out) ld.so'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 dynamic_linker='NetBSD ld.elf_so'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10191 hardcode_into_libs=yes
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=yes
10213 sys_lib_dlsearch_path_spec="/usr/lib"
10215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10218 *) need_version=no ;;
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10225 openbsd2.[89] | openbsd2.[89].*)
10226 shlibpath_overrides_runpath=no
10229 shlibpath_overrides_runpath=yes
10233 shlibpath_overrides_runpath=yes
10238 libname_spec='$name'
10241 library_names_spec='$libname${shared_ext} $libname.a'
10242 dynamic_linker='OS/2 ld.exe'
10243 shlibpath_var=LIBPATH
10246 osf3* | osf4* | osf5*)
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 # ldd complains unless libraries are executable
10267 postinstall_cmds='chmod +x $lib'
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 shlibpath_overrides_runpath=yes
10276 if test "$with_gnu_ld" = yes; then
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 case $host_vendor in
10289 shlibpath_overrides_runpath=no
10291 export_dynamic_flag_spec='${wl}-Blargedynsym'
10292 runpath_var=LD_RUN_PATH
10300 shlibpath_overrides_runpath=no
10301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10307 if test -d /usr/nec ;then
10309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10310 soname_spec='$libname${shared_ext}.$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10316 version_type=freebsd-elf
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 hardcode_into_libs=yes
10323 if test "$with_gnu_ld" = yes; then
10324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10325 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10328 shlibpath_overrides_runpath=yes
10331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10335 sys_lib_dlsearch_path_spec='/usr/lib'
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10350 echo "${ECHO_T}$dynamic_linker" >&6; }
10351 test "$dynamic_linker" = no && can_build_shared=no
10353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10354 if test "$GCC" = yes; then
10355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10361 if test -n "$hardcode_libdir_flag_spec" || \
10362 test -n "$runpath_var" || \
10363 test "X$hardcode_automatic" = "Xyes" ; then
10365 # We can hardcode non-existant directories.
10366 if test "$hardcode_direct" != no &&
10367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10368 # have to relink, otherwise we might link with an installed library
10369 # when we should be linking with a yet-to-be-installed one
10370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10371 test "$hardcode_minus_L" != no; then
10372 # Linking always hardcodes the temporary library directory.
10373 hardcode_action=relink
10375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10376 hardcode_action=immediate
10379 # We cannot hardcode anything, or else we can only hardcode existing
10381 hardcode_action=unsupported
10383 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10384 echo "${ECHO_T}$hardcode_action" >&6; }
10386 if test "$hardcode_action" = relink; then
10387 # Fast installation is not supported
10388 enable_fast_install=no
10389 elif test "$shlibpath_overrides_runpath" = yes ||
10390 test "$enable_shared" = no; then
10391 # Fast installation is not necessary
10392 enable_fast_install=needless
10397 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10402 { echo "$as_me:$LINENO: result: yes" >&5
10403 echo "${ECHO_T}yes" >&6; }
10405 # FIXME - insert some real tests, host_os isn't really good enough
10408 if test -n "$STRIP" ; then
10409 striplib="$STRIP -x"
10410 { echo "$as_me:$LINENO: result: yes" >&5
10411 echo "${ECHO_T}yes" >&6; }
10413 { echo "$as_me:$LINENO: result: no" >&5
10414 echo "${ECHO_T}no" >&6; }
10418 { echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6; }
10424 if test "x$enable_dlopen" != xyes; then
10425 enable_dlopen=unknown
10426 enable_dlopen_self=unknown
10427 enable_dlopen_self_static=unknown
10434 lt_cv_dlopen="load_add_on"
10436 lt_cv_dlopen_self=yes
10440 lt_cv_dlopen="LoadLibrary"
10445 lt_cv_dlopen="dlopen"
10450 # if libdl is installed we need to link against it
10451 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 ac_check_lib_save_LIBS=$LIBS
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 ac_cv_lib_dl_dlopen=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_cv_lib_dl_dlopen=no
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10512 if test $ac_cv_lib_dl_dlopen = yes; then
10513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10516 lt_cv_dlopen="dyld"
10518 lt_cv_dlopen_self=yes
10525 { echo "$as_me:$LINENO: checking for shl_load" >&5
10526 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10527 if test "${ac_cv_func_shl_load+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10538 #define shl_load innocuous_shl_load
10540 /* System header to define __stub macros and hopefully few prototypes,
10541 which can conflict with char shl_load (); below.
10542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10543 <limits.h> exists even on freestanding compilers. */
10546 # include <limits.h>
10548 # include <assert.h>
10553 /* Override any GCC internal prototype to avoid an error.
10554 Use char because int might match the return type of a GCC
10555 builtin and then its argument prototype would still apply. */
10560 /* The GNU C library defines this for functions which it implements
10561 to always fail with ENOSYS. Some functions are actually named
10562 something starting with __ and the normal name is an alias. */
10563 #if defined __stub_shl_load || defined __stub___shl_load
10570 return shl_load ();
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (ac_try="$ac_link"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_link") 2>conftest.er1
10584 grep -v '^ *+' conftest.er1 >conftest.err
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && {
10589 test -z "$ac_c_werror_flag" ||
10590 test ! -s conftest.err
10591 } && test -s conftest$ac_exeext &&
10592 $as_test_x conftest$ac_exeext; then
10593 ac_cv_func_shl_load=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_func_shl_load=no
10601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602 conftest$ac_exeext conftest.$ac_ext
10604 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10606 if test $ac_cv_func_shl_load = yes; then
10607 lt_cv_dlopen="shl_load"
10609 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_check_lib_save_LIBS=$LIBS
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.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. */
10633 return shl_load ();
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (ac_try="$ac_link"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_link") 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext &&
10655 $as_test_x conftest$ac_exeext; then
10656 ac_cv_lib_dld_shl_load=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_cv_lib_dld_shl_load=no
10664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10670 if test $ac_cv_lib_dld_shl_load = yes; then
10671 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10673 { echo "$as_me:$LINENO: checking for dlopen" >&5
10674 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10675 if test "${ac_cv_func_dlopen+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10686 #define dlopen innocuous_dlopen
10688 /* System header to define __stub macros and hopefully few prototypes,
10689 which can conflict with char dlopen (); below.
10690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10691 <limits.h> exists even on freestanding compilers. */
10694 # include <limits.h>
10696 # include <assert.h>
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10708 /* The GNU C library defines this for functions which it implements
10709 to always fail with ENOSYS. Some functions are actually named
10710 something starting with __ and the normal name is an alias. */
10711 #if defined __stub_dlopen || defined __stub___dlopen
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (ac_try="$ac_link"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_link") 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest$ac_exeext &&
10740 $as_test_x conftest$ac_exeext; then
10741 ac_cv_func_dlopen=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_cv_func_dlopen=no
10749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10750 conftest$ac_exeext conftest.$ac_ext
10752 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10753 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10754 if test $ac_cv_func_dlopen = yes; then
10755 lt_cv_dlopen="dlopen"
10757 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 ac_check_lib_save_LIBS=$LIBS
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 ac_cv_lib_dl_dlopen=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_cv_lib_dl_dlopen=no
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10818 if test $ac_cv_lib_dl_dlopen = yes; then
10819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10821 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10822 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10823 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-lsvld $LIBS"
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext &&
10867 $as_test_x conftest$ac_exeext; then
10868 ac_cv_lib_svld_dlopen=yes
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10873 ac_cv_lib_svld_dlopen=no
10876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10881 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10882 if test $ac_cv_lib_svld_dlopen = yes; then
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10885 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10886 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10887 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 ac_check_lib_save_LIBS=$LIBS
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10909 return dld_link ();
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_c_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest$ac_exeext &&
10931 $as_test_x conftest$ac_exeext; then
10932 ac_cv_lib_dld_dld_link=yes
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_cv_lib_dld_dld_link=no
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10945 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10946 if test $ac_cv_lib_dld_dld_link = yes; then
10947 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10968 if test "x$lt_cv_dlopen" != xno; then
10974 case $lt_cv_dlopen in
10976 save_CPPFLAGS="$CPPFLAGS"
10977 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10979 save_LDFLAGS="$LDFLAGS"
10980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10983 LIBS="$lt_cv_dlopen_libs $LIBS"
10985 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10986 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10987 if test "${lt_cv_dlopen_self+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 if test "$cross_compiling" = yes; then :
10991 lt_cv_dlopen_self=cross
10993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10994 lt_status=$lt_dlunknown
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10996 "configure"
10997 #include "confdefs.h"
11006 # define LT_DLGLOBAL RTLD_GLOBAL
11009 # define LT_DLGLOBAL DL_GLOBAL
11011 # define LT_DLGLOBAL 0
11015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11016 find out it does not work in some platform. */
11017 #ifndef LT_DLLAZY_OR_NOW
11019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11022 # define LT_DLLAZY_OR_NOW DL_LAZY
11025 # define LT_DLLAZY_OR_NOW RTLD_NOW
11028 # define LT_DLLAZY_OR_NOW DL_NOW
11030 # define LT_DLLAZY_OR_NOW 0
11038 extern "C" void exit (int);
11041 void fnord() { int i=42;}
11044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11045 int status = $lt_dlunknown;
11049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11050 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11051 /* dlclose (self); */
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11064 (./conftest; exit; ) >&5 2>/dev/null
11066 case x$lt_status in
11067 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11068 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11069 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11072 # compilation failed
11073 lt_cv_dlopen_self=no
11080 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11081 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11083 if test "x$lt_cv_dlopen_self" = xyes; then
11084 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11085 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11086 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11087 if test "${lt_cv_dlopen_self_static+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 if test "$cross_compiling" = yes; then :
11091 lt_cv_dlopen_self_static=cross
11093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11094 lt_status=$lt_dlunknown
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11096 "configure"
11097 #include "confdefs.h"
11106 # define LT_DLGLOBAL RTLD_GLOBAL
11109 # define LT_DLGLOBAL DL_GLOBAL
11111 # define LT_DLGLOBAL 0
11115 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11116 find out it does not work in some platform. */
11117 #ifndef LT_DLLAZY_OR_NOW
11119 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11122 # define LT_DLLAZY_OR_NOW DL_LAZY
11125 # define LT_DLLAZY_OR_NOW RTLD_NOW
11128 # define LT_DLLAZY_OR_NOW DL_NOW
11130 # define LT_DLLAZY_OR_NOW 0
11138 extern "C" void exit (int);
11141 void fnord() { int i=42;}
11144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11145 int status = $lt_dlunknown;
11149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11150 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11151 /* dlclose (self); */
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11164 (./conftest; exit; ) >&5 2>/dev/null
11166 case x$lt_status in
11167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11172 # compilation failed
11173 lt_cv_dlopen_self_static=no
11180 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11181 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11184 CPPFLAGS="$save_CPPFLAGS"
11185 LDFLAGS="$save_LDFLAGS"
11190 case $lt_cv_dlopen_self in
11191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11192 *) enable_dlopen_self=unknown ;;
11195 case $lt_cv_dlopen_self_static in
11196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11197 *) enable_dlopen_self_static=unknown ;;
11202 # Report which library types will actually be built
11203 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11204 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11205 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11206 echo "${ECHO_T}$can_build_shared" >&6; }
11208 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11209 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11210 test "$can_build_shared" = "no" && enable_shared=no
11212 # On AIX, shared libraries and static libraries use the same namespace, and
11213 # are all built from PIC.
11216 test "$enable_shared" = yes && enable_static=no
11217 if test -n "$RANLIB"; then
11218 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11219 postinstall_cmds='$RANLIB $lib'
11224 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11225 test "$enable_shared" = yes && enable_static=no
11229 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11230 echo "${ECHO_T}$enable_shared" >&6; }
11232 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11233 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11234 # Make sure either enable_shared or enable_static is yes.
11235 test "$enable_shared" = yes || enable_static=yes
11236 { echo "$as_me:$LINENO: result: $enable_static" >&5
11237 echo "${ECHO_T}$enable_static" >&6; }
11239 # The else clause should only fire when bootstrapping the
11240 # libtool distribution, otherwise you forgot to ship ltmain.sh
11241 # with your package, and you will get complaints that there are
11242 # no rules to generate ltmain.sh.
11243 if test -f "$ltmain"; then
11244 # See if we are running on zsh, and set the options which allow our commands through
11245 # without removal of \ escapes.
11246 if test -n "${ZSH_VERSION+set}" ; then
11247 setopt NO_GLOB_SUBST
11249 # Now quote all the things that may contain metacharacters while being
11250 # careful not to overquote the AC_SUBSTed values. We take copies of the
11251 # variables and quote the copies for generation of the libtool script.
11252 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11254 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11255 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11256 deplibs_check_method reload_flag reload_cmds need_locks \
11257 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11258 lt_cv_sys_global_symbol_to_c_name_address \
11259 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11260 old_postinstall_cmds old_postuninstall_cmds \
11264 lt_prog_compiler_wl \
11265 lt_prog_compiler_pic \
11266 lt_prog_compiler_static \
11267 lt_prog_compiler_no_builtin_flag \
11268 export_dynamic_flag_spec \
11269 thread_safe_flag_spec \
11270 whole_archive_flag_spec \
11271 enable_shared_with_static_runtimes \
11273 old_archive_from_new_cmds \
11278 compiler_lib_search_path \
11280 archive_expsym_cmds \
11282 postuninstall_cmds \
11283 old_archive_from_expsyms_cmds \
11284 allow_undefined_flag \
11285 no_undefined_flag \
11286 export_symbols_cmds \
11287 hardcode_libdir_flag_spec \
11288 hardcode_libdir_flag_spec_ld \
11289 hardcode_libdir_separator \
11290 hardcode_automatic \
11292 module_expsym_cmds \
11293 lt_cv_prog_compiler_c_o \
11295 include_expsyms; do
11298 old_archive_cmds | \
11299 old_archive_from_new_cmds | \
11301 archive_expsym_cmds | \
11303 module_expsym_cmds | \
11304 old_archive_from_expsyms_cmds | \
11305 export_symbols_cmds | \
11306 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11307 postinstall_cmds | postuninstall_cmds | \
11308 old_postinstall_cmds | old_postuninstall_cmds | \
11309 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11310 # Double-quote double-evaled strings.
11311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11320 *'\$0 --fallback-echo"')
11321 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11325 cfgfile="${ofile}T"
11326 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11328 { echo "$as_me:$LINENO: creating $ofile" >&5
11329 echo "$as_me: creating $ofile" >&6;}
11331 cat <<__EOF__ >> "$cfgfile"
11334 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11335 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11336 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11338 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11339 # Free Software Foundation, Inc.
11341 # This file is part of GNU Libtool:
11342 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11344 # This program is free software; you can redistribute it and/or modify
11345 # it under the terms of the GNU General Public License as published by
11346 # the Free Software Foundation; either version 2 of the License, or
11347 # (at your option) any later version.
11349 # This program is distributed in the hope that it will be useful, but
11350 # WITHOUT ANY WARRANTY; without even the implied warranty of
11351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11352 # General Public License for more details.
11354 # You should have received a copy of the GNU General Public License
11355 # along with this program; if not, write to the Free Software
11356 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11358 # As a special exception to the GNU General Public License, if you
11359 # distribute this file as part of a program that contains a
11360 # configuration script generated by Autoconf, you may include it under
11361 # the same distribution terms that you use for the rest of that program.
11363 # A sed program that does not truncate output.
11366 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11367 Xsed="$SED -e 1s/^X//"
11369 # The HP-UX ksh and POSIX shell print the target directory to stdout
11370 # if CDPATH is set.
11371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11373 # The names of the tagged configurations supported by this script.
11376 # ### BEGIN LIBTOOL CONFIG
11378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11380 # Shell to use when invoking shell scripts.
11383 # Whether or not to build shared libraries.
11384 build_libtool_libs=$enable_shared
11386 # Whether or not to build static libraries.
11387 build_old_libs=$enable_static
11389 # Whether or not to add -lc for building shared libraries.
11390 build_libtool_need_lc=$archive_cmds_need_lc
11392 # Whether or not to disallow shared libs when runtime libs are static
11393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11395 # Whether or not to optimize for fast installation.
11396 fast_install=$enable_fast_install
11399 host_alias=$host_alias
11403 # The build system.
11404 build_alias=$build_alias
11408 # An echo program that does not interpret backslashes.
11413 AR_FLAGS=$lt_AR_FLAGS
11418 # LTCC compiler flags.
11419 LTCFLAGS=$lt_LTCFLAGS
11421 # A language-specific compiler.
11424 # Is the compiler the GNU C compiler?
11430 # The linker used to build libraries.
11433 # Whether we need hard or soft links.
11436 # A BSD-compatible nm program.
11439 # A symbol stripping program
11442 # Used to examine libraries when file_magic_cmd begins "file"
11443 MAGIC_CMD=$MAGIC_CMD
11445 # Used on cygwin: DLL creation program.
11448 # Used on cygwin: object dumper.
11451 # Used on cygwin: assembler.
11454 # The name of the directory that contains temporary libtool files.
11457 # How to create reloadable object files.
11458 reload_flag=$lt_reload_flag
11459 reload_cmds=$lt_reload_cmds
11461 # How to pass a linker flag through the compiler.
11462 wl=$lt_lt_prog_compiler_wl
11464 # Object file suffix (normally "o").
11465 objext="$ac_objext"
11467 # Old archive suffix (normally "a").
11470 # Shared library suffix (normally ".so").
11471 shrext_cmds='$shrext_cmds'
11473 # Executable file suffix (normally "").
11476 # Additional compiler flags for building library objects.
11477 pic_flag=$lt_lt_prog_compiler_pic
11480 # What is the maximum length of a command?
11481 max_cmd_len=$lt_cv_sys_max_cmd_len
11483 # Does compiler simultaneously support -c and -o options?
11484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11486 # Must we lock files when doing compilation?
11487 need_locks=$lt_need_locks
11489 # Do we need the lib prefix for modules?
11490 need_lib_prefix=$need_lib_prefix
11492 # Do we need a version for libraries?
11493 need_version=$need_version
11495 # Whether dlopen is supported.
11496 dlopen_support=$enable_dlopen
11498 # Whether dlopen of programs is supported.
11499 dlopen_self=$enable_dlopen_self
11501 # Whether dlopen of statically linked programs is supported.
11502 dlopen_self_static=$enable_dlopen_self_static
11504 # Compiler flag to prevent dynamic linking.
11505 link_static_flag=$lt_lt_prog_compiler_static
11507 # Compiler flag to turn off builtin functions.
11508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11510 # Compiler flag to allow reflexive dlopens.
11511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11513 # Compiler flag to generate shared objects directly from archives.
11514 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11516 # Compiler flag to generate thread-safe objects.
11517 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11519 # Library versioning type.
11520 version_type=$version_type
11522 # Format of library name prefix.
11523 libname_spec=$lt_libname_spec
11525 # List of archive names. First name is the real one, the rest are links.
11526 # The last name is the one that the linker finds with -lNAME.
11527 library_names_spec=$lt_library_names_spec
11529 # The coded name of the library, if different from the real name.
11530 soname_spec=$lt_soname_spec
11532 # Commands used to build and install an old-style archive.
11534 old_archive_cmds=$lt_old_archive_cmds
11535 old_postinstall_cmds=$lt_old_postinstall_cmds
11536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11538 # Create an old-style archive from a shared archive.
11539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11541 # Create a temporary old-style archive to link instead of a shared archive.
11542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11544 # Commands used to build and install a shared archive.
11545 archive_cmds=$lt_archive_cmds
11546 archive_expsym_cmds=$lt_archive_expsym_cmds
11547 postinstall_cmds=$lt_postinstall_cmds
11548 postuninstall_cmds=$lt_postuninstall_cmds
11550 # Commands used to build a loadable module (assumed same as above if empty)
11551 module_cmds=$lt_module_cmds
11552 module_expsym_cmds=$lt_module_expsym_cmds
11554 # Commands to strip libraries.
11555 old_striplib=$lt_old_striplib
11556 striplib=$lt_striplib
11558 # Dependencies to place before the objects being linked to create a
11560 predep_objects=$lt_predep_objects
11562 # Dependencies to place after the objects being linked to create a
11564 postdep_objects=$lt_postdep_objects
11566 # Dependencies to place before the objects being linked to create a
11568 predeps=$lt_predeps
11570 # Dependencies to place after the objects being linked to create a
11572 postdeps=$lt_postdeps
11574 # The library search path used internally by the compiler when linking
11575 # a shared library.
11576 compiler_lib_search_path=$lt_compiler_lib_search_path
11578 # Method to check whether dependent libraries are shared objects.
11579 deplibs_check_method=$lt_deplibs_check_method
11581 # Command to use when deplibs_check_method == file_magic.
11582 file_magic_cmd=$lt_file_magic_cmd
11584 # Flag that allows shared libraries with undefined symbols to be built.
11585 allow_undefined_flag=$lt_allow_undefined_flag
11587 # Flag that forces no undefined symbols.
11588 no_undefined_flag=$lt_no_undefined_flag
11590 # Commands used to finish a libtool library installation in a directory.
11591 finish_cmds=$lt_finish_cmds
11593 # Same as above, but a single script fragment to be evaled but not shown.
11594 finish_eval=$lt_finish_eval
11596 # Take the output of nm and produce a listing of raw symbols and C names.
11597 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11599 # Transform the output of nm in a proper C declaration
11600 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11602 # Transform the output of nm in a C name address pair
11603 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11605 # This is the shared library runtime path variable.
11606 runpath_var=$runpath_var
11608 # This is the shared library path variable.
11609 shlibpath_var=$shlibpath_var
11611 # Is shlibpath searched before the hard-coded library search path?
11612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11614 # How to hardcode a shared library path into an executable.
11615 hardcode_action=$hardcode_action
11617 # Whether we should hardcode library paths into libraries.
11618 hardcode_into_libs=$hardcode_into_libs
11620 # Flag to hardcode \$libdir into a binary during linking.
11621 # This must work even if \$libdir does not exist.
11622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11624 # If ld is used when linking, flag to hardcode \$libdir into
11625 # a binary during linking. This must work even if \$libdir does
11627 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11629 # Whether we need a single -rpath flag with a separated argument.
11630 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11632 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11633 # resulting binary.
11634 hardcode_direct=$hardcode_direct
11636 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11637 # resulting binary.
11638 hardcode_minus_L=$hardcode_minus_L
11640 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11641 # the resulting binary.
11642 hardcode_shlibpath_var=$hardcode_shlibpath_var
11644 # Set to yes if building a shared library automatically hardcodes DIR into the library
11645 # and all subsequent libraries and executables linked against it.
11646 hardcode_automatic=$hardcode_automatic
11648 # Variables whose values should be saved in libtool wrapper scripts and
11649 # restored at relink time.
11650 variables_saved_for_relink="$variables_saved_for_relink"
11652 # Whether libtool must link a program against all its dependency libraries.
11653 link_all_deplibs=$link_all_deplibs
11655 # Compile-time system search path for libraries
11656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11658 # Run-time system search path for libraries
11659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11661 # Fix the shell variable \$srcfile for the compiler.
11662 fix_srcfile_path="$fix_srcfile_path"
11664 # Set to yes if exported symbols are required.
11665 always_export_symbols=$always_export_symbols
11667 # The commands to list exported symbols.
11668 export_symbols_cmds=$lt_export_symbols_cmds
11670 # The commands to extract the exported symbol list from a shared archive.
11671 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11673 # Symbols that should not be listed in the preloaded symbols.
11674 exclude_expsyms=$lt_exclude_expsyms
11676 # Symbols that must always be exported.
11677 include_expsyms=$lt_include_expsyms
11679 # ### END LIBTOOL CONFIG
11686 cat <<\EOF >> "$cfgfile"
11688 # AIX sometimes has problems with the GCC collect2 program. For some
11689 # reason, if we set the COLLECT_NAMES environment variable, the problems
11690 # vanish in a puff of smoke.
11691 if test "X${COLLECT_NAMES+set}" != Xset; then
11693 export COLLECT_NAMES
11699 # We use sed instead of cat because bash on DJGPP gets confused if
11700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11701 # text mode, it properly converts lines to CR/LF. This bash problem
11702 # is reportedly fixed, but why not run on old versions too?
11703 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11705 mv -f "$cfgfile" "$ofile" || \
11706 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11710 # If there is no Makefile yet, we rely on a make rule to execute
11711 # `config.status --recheck' to rerun these tests and create the
11712 # libtool script then.
11713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11714 if test -f "$ltmain_in"; then
11715 test -f Makefile && make "$ltmain"
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11729 # Check whether --with-tags was given.
11730 if test "${with_tags+set}" = set; then
11731 withval=$with_tags; tagnames="$withval"
11735 if test -f "$ltmain" && test -n "$tagnames"; then
11736 if test ! -f "${ofile}"; then
11737 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11738 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11741 if test -z "$LTCC"; then
11742 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11743 if test -z "$LTCC"; then
11744 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11745 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11748 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11751 if test -z "$LTCFLAGS"; then
11752 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11755 # Extract list of available tagged configurations in $ofile.
11756 # Note that this assumes the entire list is on one line.
11757 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11760 for tagname in $tagnames; do
11762 # Check whether tagname contains only valid characters
11763 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11765 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11766 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11767 { (exit 1); exit 1; }; }
11771 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11773 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11774 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11775 { (exit 1); exit 1; }; }
11778 # Update the list of available tags.
11779 if test -n "$tagname"; then
11780 echo appending configuration tag \"$tagname\" to $ofile
11784 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11785 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11786 (test "X$CXX" != "Xg++"))) ; then
11788 ac_cpp='$CXXCPP $CPPFLAGS'
11789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11796 archive_cmds_need_lc_CXX=no
11797 allow_undefined_flag_CXX=
11798 always_export_symbols_CXX=no
11799 archive_expsym_cmds_CXX=
11800 export_dynamic_flag_spec_CXX=
11801 hardcode_direct_CXX=no
11802 hardcode_libdir_flag_spec_CXX=
11803 hardcode_libdir_flag_spec_ld_CXX=
11804 hardcode_libdir_separator_CXX=
11805 hardcode_minus_L_CXX=no
11806 hardcode_shlibpath_var_CXX=unsupported
11807 hardcode_automatic_CXX=no
11809 module_expsym_cmds_CXX=
11810 link_all_deplibs_CXX=unknown
11811 old_archive_cmds_CXX=$old_archive_cmds
11812 no_undefined_flag_CXX=
11813 whole_archive_flag_spec_CXX=
11814 enable_shared_with_static_runtimes_CXX=no
11816 # Dependencies to place before and after the object being linked:
11817 predep_objects_CXX=
11818 postdep_objects_CXX=
11821 compiler_lib_search_path_CXX=
11823 # Source file extension for C++ test sources.
11826 # Object file extension for compiled C++ test sources.
11830 # Code to be used in simple compile tests
11831 lt_simple_compile_test_code="int some_variable = 0;\n"
11833 # Code to be used in simple link tests
11834 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11838 # If no C compiler was specified, use CC.
11841 # If no C compiler flags were specified, use CFLAGS.
11842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11844 # Allow CC to be a program name with arguments.
11848 # save warnings/boilerplate of simple test code
11849 ac_outfile=conftest.$ac_objext
11850 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_compiler_boilerplate=`cat conftest.err`
11855 ac_outfile=conftest.$ac_objext
11856 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_linker_boilerplate=`cat conftest.err`
11862 # Allow CC to be a program name with arguments.
11867 lt_save_with_gnu_ld=$with_gnu_ld
11868 lt_save_path_LD=$lt_cv_path_LD
11869 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11870 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11872 $as_unset lt_cv_prog_gnu_ld
11874 if test -n "${lt_cv_path_LDCXX+set}"; then
11875 lt_cv_path_LD=$lt_cv_path_LDCXX
11877 $as_unset lt_cv_path_LD
11879 test -z "${LDCXX+set}" || LD=$LDCXX
11883 for cc_temp in $compiler""; do
11885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11894 # We don't want -fno-exception wen compiling C++ code, so set the
11895 # no_builtin_flag separately
11896 if test "$GXX" = yes; then
11897 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11899 lt_prog_compiler_no_builtin_flag_CXX=
11902 if test "$GXX" = yes; then
11903 # Set up default GNU C++ configuration
11906 # Check whether --with-gnu-ld was given.
11907 if test "${with_gnu_ld+set}" = set; then
11908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11914 if test "$GCC" = yes; then
11915 # Check if gcc -print-prog-name=ld gives a path.
11916 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11917 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11920 # gcc leaves a trailing carriage return which upsets mingw
11921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11926 # Accept absolute paths.
11928 re_direlt='/[^/][^/]*/\.\./'
11929 # Canonicalize the pathname of ld
11930 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11932 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11934 test -z "$LD" && LD="$ac_prog"
11937 # If it fails, then pretend we aren't using GCC.
11941 # If it is relative, then search for the first ld in PATH.
11942 with_gnu_ld=unknown
11945 elif test "$with_gnu_ld" = yes; then
11946 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11947 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11949 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11950 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11952 if test "${lt_cv_path_LD+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 if test -z "$LD"; then
11956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11957 for ac_dir in $PATH; do
11959 test -z "$ac_dir" && ac_dir=.
11960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11961 lt_cv_path_LD="$ac_dir/$ac_prog"
11962 # Check to see if the program is GNU ld. I'd rather use --version,
11963 # but apparently some variants of GNU ld only accept -v.
11964 # Break only if it was the GNU/non-GNU ld that we prefer.
11965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11966 *GNU* | *'with BFD'*)
11967 test "$with_gnu_ld" != no && break
11970 test "$with_gnu_ld" != yes && break
11977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11981 LD="$lt_cv_path_LD"
11982 if test -n "$LD"; then
11983 { echo "$as_me:$LINENO: result: $LD" >&5
11984 echo "${ECHO_T}$LD" >&6; }
11986 { echo "$as_me:$LINENO: result: no" >&5
11987 echo "${ECHO_T}no" >&6; }
11989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11991 { (exit 1); exit 1; }; }
11992 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11998 case `$LD -v 2>&1 </dev/null` in
11999 *GNU* | *'with BFD'*)
12000 lt_cv_prog_gnu_ld=yes
12003 lt_cv_prog_gnu_ld=no
12007 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12008 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12009 with_gnu_ld=$lt_cv_prog_gnu_ld
12013 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12014 # archiving commands below assume that GNU ld is being used.
12015 if test "$with_gnu_ld" = yes; then
12016 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017 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'
12019 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12022 # If archive_cmds runs LD, not CC, wlarc should be empty
12023 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12024 # investigate it a little bit more. (MM)
12027 # ancient GNU ld didn't support --whole-archive et. al.
12028 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12029 grep 'no-whole-archive' > /dev/null; then
12030 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12032 whole_archive_flag_spec_CXX=
12038 # A generic and very simple default shared library creation
12039 # command for GNU C++ for the case where it uses the native
12040 # linker, instead of GNU ld. If possible, this setting should
12041 # overridden to take advantage of the native linker features on
12042 # the platform it is being used on.
12043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12046 # Commands to make compiler produce verbose output that lists
12047 # what "hidden" libraries, object files and flags are used when
12048 # linking a shared library.
12049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12057 # PORTME: fill in a description of your system's C++ link characteristics
12058 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12059 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12063 # FIXME: insert proper C++ library support
12067 if test "$host_cpu" = ia64; then
12068 # On IA64, the linker does run time linking by default, so we don't
12069 # have to do anything special.
12070 aix_use_runtimelinking=no
12071 exp_sym_flag='-Bexport'
12074 aix_use_runtimelinking=no
12076 # Test if we are trying to use run time linking or normal
12077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12078 # need to do runtime linking.
12079 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12080 for ld_flag in $LDFLAGS; do
12083 aix_use_runtimelinking=yes
12091 exp_sym_flag='-bexport'
12092 no_entry_flag='-bnoentry'
12095 # When large executables or shared objects are built, AIX ld can
12096 # have problems creating the table of contents. If linking a library
12097 # or program results in "error TOC overflow" add -mminimal-toc to
12098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12101 archive_cmds_CXX=''
12102 hardcode_direct_CXX=yes
12103 hardcode_libdir_separator_CXX=':'
12104 link_all_deplibs_CXX=yes
12106 if test "$GXX" = yes; then
12107 case $host_os in aix4.[012]|aix4.[012].*)
12108 # We only want to do this on AIX 4.2 and lower, the check
12109 # below for broken collect2 doesn't work under 4.3+
12110 collect2name=`${CC} -print-prog-name=collect2`
12111 if test -f "$collect2name" && \
12112 strings "$collect2name" | grep resolve_lib_name >/dev/null
12114 # We have reworked collect2
12115 hardcode_direct_CXX=yes
12117 # We have old collect2
12118 hardcode_direct_CXX=unsupported
12119 # It fails to find uninstalled libraries when the uninstalled
12120 # path is not listed in the libpath. Setting hardcode_minus_L
12121 # to unsupported forces relinking
12122 hardcode_minus_L_CXX=yes
12123 hardcode_libdir_flag_spec_CXX='-L$libdir'
12124 hardcode_libdir_separator_CXX=
12128 shared_flag='-shared'
12129 if test "$aix_use_runtimelinking" = yes; then
12130 shared_flag="$shared_flag "'${wl}-G'
12134 if test "$host_cpu" = ia64; then
12135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12136 # chokes on -Wl,-G. The following line is correct:
12139 if test "$aix_use_runtimelinking" = yes; then
12140 shared_flag='${wl}-G'
12142 shared_flag='${wl}-bM:SRE'
12147 # It seems that -bexpall does not export symbols beginning with
12148 # underscore (_), so it is better to generate a list of symbols to export.
12149 always_export_symbols_CXX=yes
12150 if test "$aix_use_runtimelinking" = yes; then
12151 # Warning - without using the other runtime loading flags (-brtl),
12152 # -berok will link without error, but may produce a broken library.
12153 allow_undefined_flag_CXX='-berok'
12154 # Determine the default libpath from the value encoded in an empty executable.
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_cxx_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest$ac_exeext &&
12187 $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
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"
12207 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"
12209 if test "$host_cpu" = ia64; then
12210 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12211 allow_undefined_flag_CXX="-z nodefs"
12212 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"
12214 # Determine the default libpath from the value encoded in an empty executable.
12215 cat >conftest.$ac_ext <<_ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (ac_try="$ac_link"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_link") 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_cxx_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest$ac_exeext &&
12247 $as_test_x conftest$ac_exeext; then
12249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12251 # Check for a 64-bit object if we didn't find anything.
12252 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; }
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12266 # Warning - without using the other run time loading flags,
12267 # -berok will link without error, but may produce a broken library.
12268 no_undefined_flag_CXX=' ${wl}-bernotok'
12269 allow_undefined_flag_CXX=' ${wl}-berok'
12270 # Exported symbols can be pulled into shared objects from archives
12271 whole_archive_flag_spec_CXX='$convenience'
12272 archive_cmds_need_lc_CXX=yes
12273 # This is similar to how AIX traditionally builds its shared libraries.
12274 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'
12280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12281 allow_undefined_flag_CXX=unsupported
12282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12283 # support --undefined. This deserves some investigation. FIXME
12284 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12291 case $cc_basename in
12293 # FIXME: insert proper C++ library support
12299 cygwin* | mingw* | pw32*)
12300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12301 # as there is no search path for DLLs.
12302 hardcode_libdir_flag_spec_CXX='-L$libdir'
12303 allow_undefined_flag_CXX=unsupported
12304 always_export_symbols_CXX=no
12305 enable_shared_with_static_runtimes_CXX=yes
12307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12308 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'
12309 # If the export-symbols file already is a .def file (1st line
12310 # is EXPORTS), use it as is; otherwise, prepend...
12311 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12312 cp $export_symbols $output_objdir/$soname.def;
12314 echo EXPORTS > $output_objdir/$soname.def;
12315 cat $export_symbols >> $output_objdir/$soname.def;
12317 $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'
12322 darwin* | rhapsody*)
12324 rhapsody* | darwin1.[012])
12325 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12328 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12329 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12331 case ${MACOSX_DEPLOYMENT_TARGET} in
12333 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12336 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12342 archive_cmds_need_lc_CXX=no
12343 hardcode_direct_CXX=no
12344 hardcode_automatic_CXX=yes
12345 hardcode_shlibpath_var_CXX=unsupported
12346 whole_archive_flag_spec_CXX=''
12347 link_all_deplibs_CXX=yes
12349 if test "$GXX" = yes ; then
12350 lt_int_apple_cc_single_mod=no
12351 output_verbose_link_cmd='echo'
12352 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12353 lt_int_apple_cc_single_mod=yes
12355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12356 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12358 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'
12360 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12363 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}'
12365 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}'
12367 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}'
12369 case $cc_basename in
12371 output_verbose_link_cmd='echo'
12372 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'
12373 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12375 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}'
12376 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}'
12386 case $cc_basename in
12388 # FIXME: insert proper C++ library support
12392 # Green Hills C++ Compiler
12393 # FIXME: insert proper C++ library support
12397 # FIXME: insert proper C++ library support
12403 # C++ shared libraries reported to be fairly broken before switch to ELF
12407 archive_cmds_need_lc_CXX=no
12409 freebsd* | dragonfly*)
12410 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12417 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12418 hardcode_libdir_separator_CXX=:
12419 export_dynamic_flag_spec_CXX='${wl}-E'
12420 hardcode_direct_CXX=yes
12421 hardcode_minus_L_CXX=yes # Not in the search PATH,
12422 # but as the default
12423 # location of the library.
12425 case $cc_basename in
12427 # FIXME: insert proper C++ library support
12431 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'
12432 # Commands to make compiler produce verbose output that lists
12433 # what "hidden" libraries, object files and flags are used when
12434 # linking a shared library.
12436 # There doesn't appear to be a way to prevent this compiler from
12437 # explicitly linking system object files so we need to strip them
12438 # from the output so that they don't get included in the library
12440 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'
12443 if test "$GXX" = yes; then
12444 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'
12446 # FIXME: insert proper C++ library support
12453 if test $with_gnu_ld = no; then
12454 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12455 hardcode_libdir_separator_CXX=:
12459 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12462 export_dynamic_flag_spec_CXX='${wl}-E'
12468 hardcode_direct_CXX=no
12469 hardcode_shlibpath_var_CXX=no
12472 hardcode_direct_CXX=yes
12473 hardcode_minus_L_CXX=yes # Not in the search PATH,
12474 # but as the default
12475 # location of the library.
12479 case $cc_basename in
12481 # FIXME: insert proper C++ library support
12487 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12490 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12496 # Commands to make compiler produce verbose output that lists
12497 # what "hidden" libraries, object files and flags are used when
12498 # linking a shared library.
12500 # There doesn't appear to be a way to prevent this compiler from
12501 # explicitly linking system object files so we need to strip them
12502 # from the output so that they don't get included in the library
12504 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'
12507 if test "$GXX" = yes; then
12508 if test $with_gnu_ld = no; then
12511 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12514 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12517 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'
12522 # FIXME: insert proper C++ library support
12529 hardcode_direct_CXX=no
12530 hardcode_shlibpath_var_CXX=no
12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12532 export_dynamic_flag_spec_CXX='${wl}-E'
12533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12534 # Instead, shared libraries are loaded at an image base (0x10000000 by
12535 # default) and relocated if they conflict, which is a slow very memory
12536 # consuming and fragmenting process. To avoid this, we pick a random,
12537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12539 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'
12540 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'
12543 case $cc_basename in
12546 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'
12548 # Archives containing C++ object files must be created using
12549 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12550 # necessary to make sure instantiated templates are included
12552 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12555 if test "$GXX" = yes; then
12556 if test "$with_gnu_ld" = no; then
12557 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'
12559 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'
12562 link_all_deplibs_CXX=yes
12565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12566 hardcode_libdir_separator_CXX=:
12568 linux* | k*bsd*-gnu)
12569 case $cc_basename in
12571 # Kuck and Associates, Inc. (KAI) C++ Compiler
12573 # KCC will only create a shared library if the output file
12574 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12575 # to its proper name (with version) after linking.
12576 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'
12577 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'
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 $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'
12588 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12591 # Archives containing C++ object files must be created using
12592 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12593 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12598 # version 8.0 and above of icpc choke on multiply defined symbols
12599 # if we add $predep_objects and $postdep_objects, however 7.1 and
12600 # earlier do not add the objects themselves.
12601 case `$CC -V 2>&1` in
12603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12604 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'
12606 *) # Version 8.0 or newer
12609 ia64*) tmp_idyn=' -i_dynamic';;
12611 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 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'
12615 archive_cmds_need_lc_CXX=no
12616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12618 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12621 # Portland Group C++ compiler
12622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12623 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'
12625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12627 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'
12631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 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'
12634 runpath_var=LD_RUN_PATH
12635 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12636 hardcode_libdir_separator_CXX=:
12638 # Commands to make compiler produce verbose output that lists
12639 # what "hidden" libraries, object files and flags are used when
12640 # linking a shared library.
12642 # There doesn't appear to be a way to prevent this compiler from
12643 # explicitly linking system object files so we need to strip them
12644 # from the output so that they don't get included in the library
12646 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'
12651 # FIXME: insert proper C++ library support
12655 # FIXME: insert proper C++ library support
12659 case $cc_basename in
12661 # FIXME: insert proper C++ library support
12665 # FIXME: insert proper C++ library support
12670 netbsd* | netbsdelf*-gnu)
12671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12672 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12674 hardcode_libdir_flag_spec_CXX='-R$libdir'
12675 hardcode_direct_CXX=yes
12676 hardcode_shlibpath_var_CXX=no
12678 # Workaround some broken pre-1.5 toolchains
12679 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12682 # C++ shared libraries are fairly broken
12686 hardcode_direct_CXX=yes
12687 hardcode_shlibpath_var_CXX=no
12688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12692 export_dynamic_flag_spec_CXX='${wl}-E'
12693 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12695 output_verbose_link_cmd='echo'
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 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12712 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12716 # Rational C++ 2.4.1
12717 # FIXME: insert proper C++ library support
12721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12722 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'
12724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12725 hardcode_libdir_separator_CXX=:
12727 # Commands to make compiler produce verbose output that lists
12728 # what "hidden" libraries, object files and flags are used when
12729 # linking a shared library.
12731 # There doesn't appear to be a way to prevent this compiler from
12732 # explicitly linking system object files so we need to strip them
12733 # from the output so that they don't get included in the library
12735 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'
12738 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12739 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12740 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'
12742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743 hardcode_libdir_separator_CXX=:
12745 # Commands to make compiler produce verbose output that lists
12746 # what "hidden" libraries, object files and flags are used when
12747 # linking a shared library.
12748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12751 # FIXME: insert proper C++ library support
12758 case $cc_basename in
12760 # Kuck and Associates, Inc. (KAI) C++ Compiler
12762 # KCC will only create a shared library if the output file
12763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12764 # to its proper name (with version) after linking.
12765 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'
12767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12768 hardcode_libdir_separator_CXX=:
12770 # Archives containing C++ object files must be created using
12771 # the KAI C++ compiler.
12772 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12775 # Rational C++ 2.4.1
12776 # FIXME: insert proper C++ library support
12780 allow_undefined_flag_CXX=' -expect_unresolved \*'
12781 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'
12782 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12783 echo "-hidden">> $lib.exp~
12784 $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~
12787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12788 hardcode_libdir_separator_CXX=:
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12794 # There doesn't appear to be a way to prevent this compiler from
12795 # explicitly linking system object files so we need to strip them
12796 # from the output so that they don't get included in the library
12798 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'
12801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12803 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'
12805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12806 hardcode_libdir_separator_CXX=:
12808 # Commands to make compiler produce verbose output that lists
12809 # what "hidden" libraries, object files and flags are used when
12810 # linking a shared library.
12811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12814 # FIXME: insert proper C++ library support
12821 # FIXME: insert proper C++ library support
12825 case $cc_basename in
12828 # FIXME: insert proper C++ library support
12833 # FIXME: insert proper C++ library support
12837 # FIXME: insert proper C++ library support
12843 case $cc_basename in
12845 # Sun C++ 4.2, 5.x and Centerline C++
12846 archive_cmds_need_lc_CXX=yes
12847 no_undefined_flag_CXX=' -zdefs'
12848 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12850 $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'
12852 hardcode_libdir_flag_spec_CXX='-R$libdir'
12853 hardcode_shlibpath_var_CXX=no
12855 solaris2.[0-5] | solaris2.[0-5].*) ;;
12857 # The C++ compiler is used as linker so we must use $wl
12858 # flag to pass the commands to the underlying system
12859 # linker. We must also pass each convience library through
12860 # to the system linker between allextract/defaultextract.
12861 # The C++ compiler will combine linker options so we
12862 # cannot just pass the convience library names through
12864 # Supported since Solaris 2.6 (maybe 2.5.1?)
12865 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'
12868 link_all_deplibs_CXX=yes
12870 output_verbose_link_cmd='echo'
12872 # Archives containing C++ object files must be created using
12873 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12874 # necessary to make sure instantiated templates are included
12876 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12879 # Green Hills C++ Compiler
12880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12882 # The C++ compiler must be used to create the archive.
12883 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12886 # GNU C++ compiler with Solaris linker
12887 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12888 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12889 if $CC --version | grep -v '^2\.7' > /dev/null; then
12890 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12891 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12892 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12894 # Commands to make compiler produce verbose output that lists
12895 # what "hidden" libraries, object files and flags are used when
12896 # linking a shared library.
12897 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12899 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12901 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12902 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12903 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12905 # Commands to make compiler produce verbose output that lists
12906 # what "hidden" libraries, object files and flags are used when
12907 # linking a shared library.
12908 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12911 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12917 no_undefined_flag_CXX='${wl}-z,text'
12918 archive_cmds_need_lc_CXX=no
12919 hardcode_shlibpath_var_CXX=no
12920 runpath_var='LD_RUN_PATH'
12922 case $cc_basename in
12924 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12925 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 sysv5* | sco3.2v5* | sco5v6*)
12934 # Note: We can NOT use -z defs as we might desire, because we do not
12935 # link with -lc, and that would cause any symbols used from libc to
12936 # always be unresolved, which means just about no library would
12937 # ever link correctly. If we're not using GNU ld we use -z text
12938 # though, which does catch some bad symbols but isn't as heavy-handed
12940 # For security reasons, it is highly recommended that you always
12941 # use absolute paths for naming shared libraries, and exclude the
12942 # DT_RUNPATH tag from executables and libraries. But doing so
12943 # requires that you compile everything twice, which is a pain.
12944 # So that behaviour is only enabled if SCOABSPATH is set to a
12945 # non-empty value in the environment. Most likely only useful for
12946 # creating official distributions of packages.
12947 # This is a hack until libtool officially supports absolute path
12948 # names for shared libraries.
12949 no_undefined_flag_CXX='${wl}-z,text'
12950 allow_undefined_flag_CXX='${wl}-z,nodefs'
12951 archive_cmds_need_lc_CXX=no
12952 hardcode_shlibpath_var_CXX=no
12953 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12954 hardcode_libdir_separator_CXX=':'
12955 link_all_deplibs_CXX=yes
12956 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12957 runpath_var='LD_RUN_PATH'
12959 case $cc_basename in
12961 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12962 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 case $cc_basename in
12973 # NonStop-UX NCC 3.20
12974 # FIXME: insert proper C++ library support
12978 # FIXME: insert proper C++ library support
12984 # FIXME: insert proper C++ library support
12988 # FIXME: insert proper C++ library support
12992 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12993 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12994 test "$ld_shlibs_CXX" = no && can_build_shared=no
13000 cat > conftest.$ac_ext <<EOF
13004 Foo (void) { a = 0; }
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; then
13015 # Parse the compiler output and extract the necessary
13016 # objects, libraries and library flags.
13018 # Sentinel used to keep track of whether or not we are before
13019 # the conftest object file.
13020 pre_test_object_deps_done=no
13022 # The `*' in the case matches for architectures that use `case' in
13023 # $output_verbose_cmd can trigger glob expansion during the loop
13024 # eval without this substitution.
13025 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13027 for p in `eval $output_verbose_link_cmd`; do
13031 # Some compilers place space between "-{L,R}" and the path.
13032 # Remove the space.
13033 if test $p = "-L" \
13034 || test $p = "-R"; then
13041 if test "$pre_test_object_deps_done" = no; then
13044 # Internal compiler library paths should come after those
13045 # provided the user. The postdeps already come after the
13046 # user supplied libs so there is no need to process them.
13047 if test -z "$compiler_lib_search_path_CXX"; then
13048 compiler_lib_search_path_CXX="${prev}${p}"
13050 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13053 # The "-l" case would never come before the object being
13054 # linked, so don't bother handling this case.
13057 if test -z "$postdeps_CXX"; then
13058 postdeps_CXX="${prev}${p}"
13060 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13066 # This assumes that the test object file only shows up
13067 # once in the compiler output.
13068 if test "$p" = "conftest.$objext"; then
13069 pre_test_object_deps_done=yes
13073 if test "$pre_test_object_deps_done" = no; then
13074 if test -z "$predep_objects_CXX"; then
13075 predep_objects_CXX="$p"
13077 predep_objects_CXX="$predep_objects_CXX $p"
13080 if test -z "$postdep_objects_CXX"; then
13081 postdep_objects_CXX="$p"
13083 postdep_objects_CXX="$postdep_objects_CXX $p"
13088 *) ;; # Ignore the rest.
13096 echo "libtool.m4: error: problem compiling CXX test program"
13099 $rm -f confest.$objext
13101 # PORTME: override above test on systems where it is broken
13104 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13105 # hack all around it, let's just trust "g++" to DTRT.
13106 predep_objects_CXX=
13107 postdep_objects_CXX=
13112 case $cc_basename in
13114 # Adding this requires a known-good setup of shared libraries for
13115 # Sun compiler versions before 5.6, else PIC objects from an old
13116 # archive will be linked into the output, leading to subtle bugs.
13117 postdeps_CXX='-lCstd -lCrun'
13124 case " $postdeps_CXX " in
13125 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13128 lt_prog_compiler_wl_CXX=
13129 lt_prog_compiler_pic_CXX=
13130 lt_prog_compiler_static_CXX=
13132 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13135 # C++ specific cases for pic, static, wl, etc.
13136 if test "$GXX" = yes; then
13137 lt_prog_compiler_wl_CXX='-Wl,'
13138 lt_prog_compiler_static_CXX='-static'
13142 # All AIX code is PIC.
13143 if test "$host_cpu" = ia64; then
13144 # AIX 5 now supports IA64 processor
13145 lt_prog_compiler_static_CXX='-Bstatic'
13149 # FIXME: we need at least 68020 code to build shared libraries, but
13150 # adding the `-m68020' flag to GCC prevents building anything better,
13152 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13154 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13155 # PIC is the default for these OSes.
13157 mingw* | os2* | pw32*)
13158 # This hack is so that the source file can tell whether it is being
13159 # built for inclusion in a dll (and should export symbols for example).
13160 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13162 darwin* | rhapsody*)
13163 # PIC is the default on this platform
13164 # Common symbols not allowed in MH_DYLIB files
13165 lt_prog_compiler_pic_CXX='-fno-common'
13168 # DJGPP does not support shared libraries at all
13169 lt_prog_compiler_pic_CXX=
13172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13173 # Instead, we relocate shared libraries at runtime.
13176 if test -d /usr/nec; then
13177 lt_prog_compiler_pic_CXX=-Kconform_pic
13181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13182 # not for PA HP-UX.
13187 lt_prog_compiler_pic_CXX='-fPIC'
13192 lt_prog_compiler_pic_CXX='-fPIC'
13198 # All AIX code is PIC.
13199 if test "$host_cpu" = ia64; then
13200 # AIX 5 now supports IA64 processor
13201 lt_prog_compiler_static_CXX='-Bstatic'
13203 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13207 case $cc_basename in
13209 # Green Hills C++ Compiler
13210 # _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"
13215 # PIC is the default on this platform
13216 # Common symbols not allowed in MH_DYLIB files
13217 case $cc_basename in
13219 lt_prog_compiler_pic_CXX='-qnocommon'
13220 lt_prog_compiler_wl_CXX='-Wl,'
13225 case $cc_basename in
13227 lt_prog_compiler_pic_CXX='-KPIC'
13230 # Green Hills C++ Compiler
13231 lt_prog_compiler_pic_CXX='-pic'
13237 freebsd* | dragonfly*)
13238 # FreeBSD uses GNU C++
13240 hpux9* | hpux10* | hpux11*)
13241 case $cc_basename in
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13245 if test "$host_cpu" != ia64; then
13246 lt_prog_compiler_pic_CXX='+Z'
13250 lt_prog_compiler_wl_CXX='-Wl,'
13251 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13257 lt_prog_compiler_pic_CXX='+Z'
13266 # This is c89, which is MS Visual C++ (no shared libs)
13267 # Anyone wants to do a port?
13269 irix5* | irix6* | nonstopux*)
13270 case $cc_basename in
13272 lt_prog_compiler_wl_CXX='-Wl,'
13273 lt_prog_compiler_static_CXX='-non_shared'
13274 # CC pic flag -KPIC is the default.
13280 linux* | k*bsd*-gnu)
13281 case $cc_basename in
13284 lt_prog_compiler_wl_CXX='--backend -Wl,'
13285 lt_prog_compiler_pic_CXX='-fPIC'
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_pic_CXX='-KPIC'
13291 lt_prog_compiler_static_CXX='-static'
13294 # Portland Group C++ compiler.
13295 lt_prog_compiler_wl_CXX='-Wl,'
13296 lt_prog_compiler_pic_CXX='-fpic'
13297 lt_prog_compiler_static_CXX='-Bstatic'
13301 # Make sure the PIC flag is empty. It appears that all Alpha
13302 # Linux and Compaq Tru64 Unix objects are PIC.
13303 lt_prog_compiler_pic_CXX=
13304 lt_prog_compiler_static_CXX='-non_shared'
13315 case $cc_basename in
13317 lt_prog_compiler_pic_CXX='-W c,exportall'
13323 netbsd* | netbsdelf*-gnu)
13325 osf3* | osf4* | osf5*)
13326 case $cc_basename in
13328 lt_prog_compiler_wl_CXX='--backend -Wl,'
13331 # Rational C++ 2.4.1
13332 lt_prog_compiler_pic_CXX='-pic'
13335 # Digital/Compaq C++
13336 lt_prog_compiler_wl_CXX='-Wl,'
13337 # Make sure the PIC flag is empty. It appears that all Alpha
13338 # Linux and Compaq Tru64 Unix objects are PIC.
13339 lt_prog_compiler_pic_CXX=
13340 lt_prog_compiler_static_CXX='-non_shared'
13349 case $cc_basename in
13351 # Sun C++ 4.2, 5.x and Centerline C++
13352 lt_prog_compiler_pic_CXX='-KPIC'
13353 lt_prog_compiler_static_CXX='-Bstatic'
13354 lt_prog_compiler_wl_CXX='-Qoption ld '
13357 # Green Hills C++ Compiler
13358 lt_prog_compiler_pic_CXX='-PIC'
13365 case $cc_basename in
13368 lt_prog_compiler_pic_CXX='-pic'
13369 lt_prog_compiler_static_CXX='-Bstatic'
13373 lt_prog_compiler_pic_CXX='-pic'
13380 case $cc_basename in
13382 # NonStop-UX NCC 3.20
13383 lt_prog_compiler_pic_CXX='-KPIC'
13389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13390 case $cc_basename in
13392 lt_prog_compiler_wl_CXX='-Wl,'
13393 lt_prog_compiler_pic_CXX='-KPIC'
13394 lt_prog_compiler_static_CXX='-Bstatic'
13401 lt_prog_compiler_can_build_shared_CXX=no
13406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13407 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13410 # Check to make sure the PIC flag actually works.
13412 if test -n "$lt_prog_compiler_pic_CXX"; then
13414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13416 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 lt_prog_compiler_pic_works_CXX=no
13420 ac_outfile=conftest.$ac_objext
13421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13422 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13423 # Insert the option either (1) after the last *FLAGS variable, or
13424 # (2) before a word containing "conftest.", or (3) at the end.
13425 # Note that $ac_compile itself does not contain backslashes and begins
13426 # with a dollar sign (not a hyphen), so the echo should work correctly.
13427 # The option is referenced via a variable to avoid confusing sed.
13428 lt_compile=`echo "$ac_compile" | $SED \
13429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13431 -e 's:$: $lt_compiler_flag:'`
13432 (eval echo "\"\$as_me:13432: $lt_compile\"" >&5)
13433 (eval "$lt_compile" 2>conftest.err)
13435 cat conftest.err >&5
13436 echo "$as_me:13436: \$? = $ac_status" >&5
13437 if (exit $ac_status) && test -s "$ac_outfile"; then
13438 # The compiler can only warn and ignore the option if not recognized
13439 # So say no if there are warnings other than the usual output.
13440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13443 lt_prog_compiler_pic_works_CXX=yes
13449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13450 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13452 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13453 case $lt_prog_compiler_pic_CXX in
13455 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13458 lt_prog_compiler_pic_CXX=
13459 lt_prog_compiler_can_build_shared_CXX=no
13464 # For platforms which do not support PIC, -DPIC is meaningless:
13466 lt_prog_compiler_pic_CXX=
13469 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13474 # Check to make sure the static flag actually works.
13476 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13479 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 lt_prog_compiler_static_works_CXX=no
13483 save_LDFLAGS="$LDFLAGS"
13484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13487 # The linker can only warn and ignore the option if not recognized
13488 # So say no if there are warnings
13489 if test -s conftest.err; then
13490 # Append any errors to the config.log.
13491 cat conftest.err 1>&5
13492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13494 if diff conftest.exp conftest.er2 >/dev/null; then
13495 lt_prog_compiler_static_works_CXX=yes
13498 lt_prog_compiler_static_works_CXX=yes
13502 LDFLAGS="$save_LDFLAGS"
13505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13506 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13508 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13511 lt_prog_compiler_static_CXX=
13515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13517 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 lt_cv_prog_compiler_c_o_CXX=no
13521 $rm -r conftest 2>/dev/null
13525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13527 lt_compiler_flag="-o out/conftest2.$ac_objext"
13528 # Insert the option either (1) after the last *FLAGS variable, or
13529 # (2) before a word containing "conftest.", or (3) at the end.
13530 # Note that $ac_compile itself does not contain backslashes and begins
13531 # with a dollar sign (not a hyphen), so the echo should work correctly.
13532 lt_compile=`echo "$ac_compile" | $SED \
13533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13535 -e 's:$: $lt_compiler_flag:'`
13536 (eval echo "\"\$as_me:13536: $lt_compile\"" >&5)
13537 (eval "$lt_compile" 2>out/conftest.err)
13539 cat out/conftest.err >&5
13540 echo "$as_me:13540: \$? = $ac_status" >&5
13541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13543 # The compiler can only warn and ignore the option if not recognized
13544 # So say no if there are warnings
13545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13548 lt_cv_prog_compiler_c_o_CXX=yes
13553 # SGI C++ compiler will create directory out/ii_files/ for
13554 # template instantiation
13555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13556 $rm out/* && rmdir out
13562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13566 hard_links="nottested"
13567 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13568 # do not overwrite the value of need_locks provided by the user
13569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13575 ln conftest.a conftest.b 2>&5 || hard_links=no
13576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13577 { echo "$as_me:$LINENO: result: $hard_links" >&5
13578 echo "${ECHO_T}$hard_links" >&6; }
13579 if test "$hard_links" = no; then
13580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13591 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13594 # If we're using GNU nm, then we don't want the "-C" option.
13595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13597 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'
13599 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'
13603 export_symbols_cmds_CXX="$ltdll_cmds"
13606 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'
13608 linux* | k*bsd*-gnu)
13609 link_all_deplibs_CXX=no
13612 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13616 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13617 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13618 test "$ld_shlibs_CXX" = no && can_build_shared=no
13621 # Do we need to explicitly link libc?
13623 case "x$archive_cmds_need_lc_CXX" in
13625 # Assume -lc should be added
13626 archive_cmds_need_lc_CXX=yes
13628 if test "$enable_shared" = yes && test "$GCC" = yes; then
13629 case $archive_cmds_CXX in
13631 # FIXME: we may have to deal with multi-command sequences.
13634 # Test whether the compiler implicitly links with -lc since on some
13635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13636 # to ld, don't add -lc before -lgcc.
13637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } 2>conftest.err; then
13649 libobjs=conftest.$ac_objext
13651 wl=$lt_prog_compiler_wl_CXX
13652 pic_flag=$lt_prog_compiler_pic_CXX
13658 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13659 allow_undefined_flag_CXX=
13660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13661 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }
13666 archive_cmds_need_lc_CXX=no
13668 archive_cmds_need_lc_CXX=yes
13670 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13672 cat conftest.err 1>&5
13675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13676 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13685 library_names_spec=
13686 libname_spec='lib$name'
13690 postuninstall_cmds=
13694 shlibpath_overrides_runpath=unknown
13696 dynamic_linker="$host_os ld.so"
13697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698 if test "$GCC" = yes; then
13699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13701 # if the path contains ";" then we assume it to be the separator
13702 # otherwise default to the standard path separator (i.e. ":") - it is
13703 # assumed that no part of a normal pathname contains ";" but that should
13704 # okay in the real world where ";" in dirpaths is itself problematic.
13705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13712 need_lib_prefix=unknown
13713 hardcode_into_libs=no
13715 # when you set need_version to no, make sure it does not cause -set_version
13716 # flags to be left without arguments
13717 need_version=unknown
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13723 shlibpath_var=LIBPATH
13725 # AIX 3 has no versioning support, so we append a major version to the name.
13726 soname_spec='${libname}${release}${shared_ext}$major'
13733 hardcode_into_libs=yes
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 supports IA64
13736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13737 shlibpath_var=LD_LIBRARY_PATH
13739 # With GCC up to 2.95.x, collect2 would create an import file
13740 # for dependence libraries. The import file would start with
13741 # the line `#! .'. This would cause the generated library to
13742 # depend on `.', always an invalid library. This was fixed in
13743 # development snapshots of GCC prior to 3.0.
13745 aix4 | aix4.[01] | aix4.[01].*)
13746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13751 can_build_shared=no
13755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13756 # soname into executable. Probably we can add versioning support to
13757 # collect2, so additional links can be useful in future.
13758 if test "$aix_use_runtimelinking" = yes; then
13759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13760 # instead of lib<name>.a to let people know that these are not
13761 # typical AIX shared libraries.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 # We preserve .a as extension for shared libraries through AIX4.2
13765 # and later when we are not doing run time linking.
13766 library_names_spec='${libname}${release}.a $libname.a'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13769 shlibpath_var=LIBPATH
13774 library_names_spec='$libname.ixlibrary $libname.a'
13775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13776 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'
13780 library_names_spec='${libname}${shared_ext}'
13781 dynamic_linker="$host_os ld.so"
13782 shlibpath_var=LIBRARY_PATH
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794 # the default ld.so.conf also contains /usr/contrib/lib and
13795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796 # libtool to hard-code these into programs
13799 cygwin* | mingw* | pw32*)
13800 version_type=windows
13805 case $GCC,$host_os in
13806 yes,cygwin* | yes,mingw* | yes,pw32*)
13807 library_names_spec='$libname.dll.a'
13808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809 postinstall_cmds='base_file=`basename \${file}`~
13810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13811 dldir=$destdir/`dirname \$dlpath`~
13812 test -d \$dldir || mkdir -p \$dldir~
13813 $install_prog $dir/$dlname \$dldir/$dlname~
13814 chmod a+x \$dldir/$dlname'
13815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816 dlpath=$dir/\$dldll~
13818 shlibpath_overrides_runpath=yes
13822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13827 # MinGW DLLs use traditional 'lib' prefix
13828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831 # It is most probably a Windows format PATH printed by
13832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833 # path with ; separators, and with drive letters. We can handle the
13834 # drive letters (cygwin fileutils understands them), so leave them,
13835 # especially as we might pass files found there to a mingw objdump,
13836 # which wouldn't understand a cygwinified path. Ahh.
13837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13843 # pw32 DLLs use 'pw' prefix rather than 'lib'
13844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13853 dynamic_linker='Win32 ld.exe'
13854 # FIXME: first we should search . and the directory the executable is in
13858 darwin* | rhapsody*)
13859 dynamic_linker="$host_os dyld"
13860 version_type=darwin
13863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13864 soname_spec='${libname}${release}${major}$shared_ext'
13865 shlibpath_overrides_runpath=yes
13866 shlibpath_var=DYLD_LIBRARY_PATH
13867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13869 if test "$GCC" = yes; then
13870 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"`
13872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13890 freebsd* | dragonfly*)
13891 # DragonFly does not have aout. When/if they implement a new
13892 # versioning mechanism, adjust this.
13893 if test -x /usr/bin/objformat; then
13894 objformat=`/usr/bin/objformat`
13897 freebsd[123]*) objformat=aout ;;
13898 *) objformat=elf ;;
13901 version_type=freebsd-$objformat
13902 case $version_type in
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13913 shlibpath_var=LD_LIBRARY_PATH
13916 shlibpath_overrides_runpath=yes
13918 freebsd3.[01]* | freebsdelf3.[01]*)
13919 shlibpath_overrides_runpath=yes
13920 hardcode_into_libs=yes
13922 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13923 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13924 shlibpath_overrides_runpath=no
13925 hardcode_into_libs=yes
13927 freebsd*) # from 4.6 on
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 shlibpath_var=LD_LIBRARY_PATH
13941 hardcode_into_libs=yes
13944 hpux9* | hpux10* | hpux11*)
13945 # Give a soname corresponding to the major version so that dld.sl refuses to
13946 # link against other versions.
13953 hardcode_into_libs=yes
13954 dynamic_linker="$host_os dld.so"
13955 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 if test "X$HPUX_IA64_MODE" = X32; then
13960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13968 hardcode_into_libs=yes
13969 dynamic_linker="$host_os dld.sl"
13970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973 soname_spec='${libname}${release}${shared_ext}$major'
13974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13979 dynamic_linker="$host_os dld.sl"
13980 shlibpath_var=SHLIB_PATH
13981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13986 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13987 postinstall_cmds='chmod 555 $lib'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=no
13999 hardcode_into_libs=yes
14002 irix5* | irix6* | nonstopux*)
14004 nonstopux*) version_type=nonstopux ;;
14006 if test "$lt_cv_prog_gnu_ld" = yes; then
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14017 irix5* | nonstopux*)
14018 libsuff= shlibsuff=
14021 case $LD in # libtool.m4 will add one of these switches to LD
14022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14023 libsuff= shlibsuff= libmagic=32-bit;;
14024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14025 libsuff=32 shlibsuff=N32 libmagic=N32;;
14026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14028 *) libsuff= shlibsuff= libmagic=never-match;;
14032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14033 shlibpath_overrides_runpath=no
14034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14036 hardcode_into_libs=yes
14039 # No shared lib support for Linux oldld, aout, or coff.
14040 linux*oldld* | linux*aout* | linux*coff*)
14044 # This must be Linux ELF.
14045 linux* | k*bsd*-gnu)
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 shlibpath_overrides_runpath=no
14054 # This implies no fast_install, which is unacceptable.
14055 # Some rework will be needed to allow for fast_install
14056 # before this can be enabled.
14057 hardcode_into_libs=yes
14059 # Append ld.so.conf contents to the search path
14060 if test -f /etc/ld.so.conf; then
14061 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' ' '`
14062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14065 # We used to test for /lib/ld.so.1 and disable shared libraries on
14066 # powerpc, because MkLinux only supported shared libraries with the
14067 # GNU dynamic linker. Since this was broken with cross compilers,
14068 # most powerpc-linux boxes support dynamic linking these days and
14069 # people can always --disable-shared, the test was removed, and we
14070 # assume the GNU/Linux dynamic linker is in use.
14071 dynamic_linker='GNU/Linux ld.so'
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 shlibpath_var=LD_LIBRARY_PATH
14081 shlibpath_overrides_runpath=no
14082 hardcode_into_libs=yes
14083 dynamic_linker='NetBSD ld.elf_so'
14090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 dynamic_linker='NetBSD (a.out) ld.so'
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 dynamic_linker='NetBSD ld.elf_so'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes
14101 hardcode_into_libs=yes
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=yes
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes
14123 sys_lib_dlsearch_path_spec="/usr/lib"
14125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14128 *) need_version=no ;;
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14135 openbsd2.[89] | openbsd2.[89].*)
14136 shlibpath_overrides_runpath=no
14139 shlibpath_overrides_runpath=yes
14143 shlibpath_overrides_runpath=yes
14148 libname_spec='$name'
14151 library_names_spec='$libname${shared_ext} $libname.a'
14152 dynamic_linker='OS/2 ld.exe'
14153 shlibpath_var=LIBPATH
14156 osf3* | osf4* | osf5*)
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 shlibpath_overrides_runpath=yes
14175 hardcode_into_libs=yes
14176 # ldd complains unless libraries are executable
14177 postinstall_cmds='chmod +x $lib'
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes
14186 if test "$with_gnu_ld" = yes; then
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 case $host_vendor in
14199 shlibpath_overrides_runpath=no
14201 export_dynamic_flag_spec='${wl}-Blargedynsym'
14202 runpath_var=LD_RUN_PATH
14210 shlibpath_overrides_runpath=no
14211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14217 if test -d /usr/nec ;then
14219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14220 soname_spec='$libname${shared_ext}.$major'
14221 shlibpath_var=LD_LIBRARY_PATH
14225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14226 version_type=freebsd-elf
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 hardcode_into_libs=yes
14233 if test "$with_gnu_ld" = yes; then
14234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14235 shlibpath_overrides_runpath=no
14237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14238 shlibpath_overrides_runpath=yes
14241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14245 sys_lib_dlsearch_path_spec='/usr/lib'
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14260 echo "${ECHO_T}$dynamic_linker" >&6; }
14261 test "$dynamic_linker" = no && can_build_shared=no
14263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14264 if test "$GCC" = yes; then
14265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14268 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14270 hardcode_action_CXX=
14271 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14272 test -n "$runpath_var_CXX" || \
14273 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14275 # We can hardcode non-existant directories.
14276 if test "$hardcode_direct_CXX" != no &&
14277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14278 # have to relink, otherwise we might link with an installed library
14279 # when we should be linking with a yet-to-be-installed one
14280 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14281 test "$hardcode_minus_L_CXX" != no; then
14282 # Linking always hardcodes the temporary library directory.
14283 hardcode_action_CXX=relink
14285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14286 hardcode_action_CXX=immediate
14289 # We cannot hardcode anything, or else we can only hardcode existing
14291 hardcode_action_CXX=unsupported
14293 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14294 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14296 if test "$hardcode_action_CXX" = relink; then
14297 # Fast installation is not supported
14298 enable_fast_install=no
14299 elif test "$shlibpath_overrides_runpath" = yes ||
14300 test "$enable_shared" = no; then
14301 # Fast installation is not necessary
14302 enable_fast_install=needless
14306 # The else clause should only fire when bootstrapping the
14307 # libtool distribution, otherwise you forgot to ship ltmain.sh
14308 # with your package, and you will get complaints that there are
14309 # no rules to generate ltmain.sh.
14310 if test -f "$ltmain"; then
14311 # See if we are running on zsh, and set the options which allow our commands through
14312 # without removal of \ escapes.
14313 if test -n "${ZSH_VERSION+set}" ; then
14314 setopt NO_GLOB_SUBST
14316 # Now quote all the things that may contain metacharacters while being
14317 # careful not to overquote the AC_SUBSTed values. We take copies of the
14318 # variables and quote the copies for generation of the libtool script.
14319 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14323 deplibs_check_method reload_flag reload_cmds need_locks \
14324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14325 lt_cv_sys_global_symbol_to_c_name_address \
14326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14327 old_postinstall_cmds old_postuninstall_cmds \
14331 lt_prog_compiler_wl_CXX \
14332 lt_prog_compiler_pic_CXX \
14333 lt_prog_compiler_static_CXX \
14334 lt_prog_compiler_no_builtin_flag_CXX \
14335 export_dynamic_flag_spec_CXX \
14336 thread_safe_flag_spec_CXX \
14337 whole_archive_flag_spec_CXX \
14338 enable_shared_with_static_runtimes_CXX \
14339 old_archive_cmds_CXX \
14340 old_archive_from_new_cmds_CXX \
14341 predep_objects_CXX \
14342 postdep_objects_CXX \
14345 compiler_lib_search_path_CXX \
14347 archive_expsym_cmds_CXX \
14348 postinstall_cmds_CXX \
14349 postuninstall_cmds_CXX \
14350 old_archive_from_expsyms_cmds_CXX \
14351 allow_undefined_flag_CXX \
14352 no_undefined_flag_CXX \
14353 export_symbols_cmds_CXX \
14354 hardcode_libdir_flag_spec_CXX \
14355 hardcode_libdir_flag_spec_ld_CXX \
14356 hardcode_libdir_separator_CXX \
14357 hardcode_automatic_CXX \
14359 module_expsym_cmds_CXX \
14360 lt_cv_prog_compiler_c_o_CXX \
14361 exclude_expsyms_CXX \
14362 include_expsyms_CXX; do
14365 old_archive_cmds_CXX | \
14366 old_archive_from_new_cmds_CXX | \
14367 archive_cmds_CXX | \
14368 archive_expsym_cmds_CXX | \
14369 module_cmds_CXX | \
14370 module_expsym_cmds_CXX | \
14371 old_archive_from_expsyms_cmds_CXX | \
14372 export_symbols_cmds_CXX | \
14373 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14374 postinstall_cmds | postuninstall_cmds | \
14375 old_postinstall_cmds | old_postuninstall_cmds | \
14376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14377 # Double-quote double-evaled strings.
14378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14387 *'\$0 --fallback-echo"')
14388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14394 cat <<__EOF__ >> "$cfgfile"
14395 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14399 # Shell to use when invoking shell scripts.
14402 # Whether or not to build shared libraries.
14403 build_libtool_libs=$enable_shared
14405 # Whether or not to build static libraries.
14406 build_old_libs=$enable_static
14408 # Whether or not to add -lc for building shared libraries.
14409 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14411 # Whether or not to disallow shared libs when runtime libs are static
14412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14414 # Whether or not to optimize for fast installation.
14415 fast_install=$enable_fast_install
14418 host_alias=$host_alias
14422 # The build system.
14423 build_alias=$build_alias
14427 # An echo program that does not interpret backslashes.
14432 AR_FLAGS=$lt_AR_FLAGS
14437 # LTCC compiler flags.
14438 LTCFLAGS=$lt_LTCFLAGS
14440 # A language-specific compiler.
14441 CC=$lt_compiler_CXX
14443 # Is the compiler the GNU C compiler?
14449 # The linker used to build libraries.
14452 # Whether we need hard or soft links.
14455 # A BSD-compatible nm program.
14458 # A symbol stripping program
14461 # Used to examine libraries when file_magic_cmd begins "file"
14462 MAGIC_CMD=$MAGIC_CMD
14464 # Used on cygwin: DLL creation program.
14467 # Used on cygwin: object dumper.
14470 # Used on cygwin: assembler.
14473 # The name of the directory that contains temporary libtool files.
14476 # How to create reloadable object files.
14477 reload_flag=$lt_reload_flag
14478 reload_cmds=$lt_reload_cmds
14480 # How to pass a linker flag through the compiler.
14481 wl=$lt_lt_prog_compiler_wl_CXX
14483 # Object file suffix (normally "o").
14484 objext="$ac_objext"
14486 # Old archive suffix (normally "a").
14489 # Shared library suffix (normally ".so").
14490 shrext_cmds='$shrext_cmds'
14492 # Executable file suffix (normally "").
14495 # Additional compiler flags for building library objects.
14496 pic_flag=$lt_lt_prog_compiler_pic_CXX
14499 # What is the maximum length of a command?
14500 max_cmd_len=$lt_cv_sys_max_cmd_len
14502 # Does compiler simultaneously support -c and -o options?
14503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14505 # Must we lock files when doing compilation?
14506 need_locks=$lt_need_locks
14508 # Do we need the lib prefix for modules?
14509 need_lib_prefix=$need_lib_prefix
14511 # Do we need a version for libraries?
14512 need_version=$need_version
14514 # Whether dlopen is supported.
14515 dlopen_support=$enable_dlopen
14517 # Whether dlopen of programs is supported.
14518 dlopen_self=$enable_dlopen_self
14520 # Whether dlopen of statically linked programs is supported.
14521 dlopen_self_static=$enable_dlopen_self_static
14523 # Compiler flag to prevent dynamic linking.
14524 link_static_flag=$lt_lt_prog_compiler_static_CXX
14526 # Compiler flag to turn off builtin functions.
14527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14529 # Compiler flag to allow reflexive dlopens.
14530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14532 # Compiler flag to generate shared objects directly from archives.
14533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14535 # Compiler flag to generate thread-safe objects.
14536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14538 # Library versioning type.
14539 version_type=$version_type
14541 # Format of library name prefix.
14542 libname_spec=$lt_libname_spec
14544 # List of archive names. First name is the real one, the rest are links.
14545 # The last name is the one that the linker finds with -lNAME.
14546 library_names_spec=$lt_library_names_spec
14548 # The coded name of the library, if different from the real name.
14549 soname_spec=$lt_soname_spec
14551 # Commands used to build and install an old-style archive.
14553 old_archive_cmds=$lt_old_archive_cmds_CXX
14554 old_postinstall_cmds=$lt_old_postinstall_cmds
14555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14557 # Create an old-style archive from a shared archive.
14558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14560 # Create a temporary old-style archive to link instead of a shared archive.
14561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14563 # Commands used to build and install a shared archive.
14564 archive_cmds=$lt_archive_cmds_CXX
14565 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14566 postinstall_cmds=$lt_postinstall_cmds
14567 postuninstall_cmds=$lt_postuninstall_cmds
14569 # Commands used to build a loadable module (assumed same as above if empty)
14570 module_cmds=$lt_module_cmds_CXX
14571 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14573 # Commands to strip libraries.
14574 old_striplib=$lt_old_striplib
14575 striplib=$lt_striplib
14577 # Dependencies to place before the objects being linked to create a
14579 predep_objects=$lt_predep_objects_CXX
14581 # Dependencies to place after the objects being linked to create a
14583 postdep_objects=$lt_postdep_objects_CXX
14585 # Dependencies to place before the objects being linked to create a
14587 predeps=$lt_predeps_CXX
14589 # Dependencies to place after the objects being linked to create a
14591 postdeps=$lt_postdeps_CXX
14593 # The library search path used internally by the compiler when linking
14594 # a shared library.
14595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14597 # Method to check whether dependent libraries are shared objects.
14598 deplibs_check_method=$lt_deplibs_check_method
14600 # Command to use when deplibs_check_method == file_magic.
14601 file_magic_cmd=$lt_file_magic_cmd
14603 # Flag that allows shared libraries with undefined symbols to be built.
14604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14606 # Flag that forces no undefined symbols.
14607 no_undefined_flag=$lt_no_undefined_flag_CXX
14609 # Commands used to finish a libtool library installation in a directory.
14610 finish_cmds=$lt_finish_cmds
14612 # Same as above, but a single script fragment to be evaled but not shown.
14613 finish_eval=$lt_finish_eval
14615 # Take the output of nm and produce a listing of raw symbols and C names.
14616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14618 # Transform the output of nm in a proper C declaration
14619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14621 # Transform the output of nm in a C name address pair
14622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14624 # This is the shared library runtime path variable.
14625 runpath_var=$runpath_var
14627 # This is the shared library path variable.
14628 shlibpath_var=$shlibpath_var
14630 # Is shlibpath searched before the hard-coded library search path?
14631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14633 # How to hardcode a shared library path into an executable.
14634 hardcode_action=$hardcode_action_CXX
14636 # Whether we should hardcode library paths into libraries.
14637 hardcode_into_libs=$hardcode_into_libs
14639 # Flag to hardcode \$libdir into a binary during linking.
14640 # This must work even if \$libdir does not exist.
14641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14643 # If ld is used when linking, flag to hardcode \$libdir into
14644 # a binary during linking. This must work even if \$libdir does
14646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14648 # Whether we need a single -rpath flag with a separated argument.
14649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14652 # resulting binary.
14653 hardcode_direct=$hardcode_direct_CXX
14655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14656 # resulting binary.
14657 hardcode_minus_L=$hardcode_minus_L_CXX
14659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14660 # the resulting binary.
14661 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14663 # Set to yes if building a shared library automatically hardcodes DIR into the library
14664 # and all subsequent libraries and executables linked against it.
14665 hardcode_automatic=$hardcode_automatic_CXX
14667 # Variables whose values should be saved in libtool wrapper scripts and
14668 # restored at relink time.
14669 variables_saved_for_relink="$variables_saved_for_relink"
14671 # Whether libtool must link a program against all its dependency libraries.
14672 link_all_deplibs=$link_all_deplibs_CXX
14674 # Compile-time system search path for libraries
14675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14677 # Run-time system search path for libraries
14678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14680 # Fix the shell variable \$srcfile for the compiler.
14681 fix_srcfile_path="$fix_srcfile_path_CXX"
14683 # Set to yes if exported symbols are required.
14684 always_export_symbols=$always_export_symbols_CXX
14686 # The commands to list exported symbols.
14687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14689 # The commands to extract the exported symbol list from a shared archive.
14690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms_CXX
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms_CXX
14698 # ### END LIBTOOL TAG CONFIG: $tagname
14704 # If there is no Makefile yet, we rely on a make rule to execute
14705 # `config.status --recheck' to rerun these tests and create the
14706 # libtool script then.
14707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14708 if test -f "$ltmain_in"; then
14709 test -f Makefile && make "$ltmain"
14715 ac_cpp='$CPP $CPPFLAGS'
14716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14724 with_gnu_ldcxx=$with_gnu_ld
14725 with_gnu_ld=$lt_save_with_gnu_ld
14726 lt_cv_path_LDCXX=$lt_cv_path_LD
14727 lt_cv_path_LD=$lt_save_path_LD
14728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14737 if test -n "$F77" && test "X$F77" != "Xno"; then
14740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14745 archive_cmds_need_lc_F77=no
14746 allow_undefined_flag_F77=
14747 always_export_symbols_F77=no
14748 archive_expsym_cmds_F77=
14749 export_dynamic_flag_spec_F77=
14750 hardcode_direct_F77=no
14751 hardcode_libdir_flag_spec_F77=
14752 hardcode_libdir_flag_spec_ld_F77=
14753 hardcode_libdir_separator_F77=
14754 hardcode_minus_L_F77=no
14755 hardcode_automatic_F77=no
14757 module_expsym_cmds_F77=
14758 link_all_deplibs_F77=unknown
14759 old_archive_cmds_F77=$old_archive_cmds
14760 no_undefined_flag_F77=
14761 whole_archive_flag_spec_F77=
14762 enable_shared_with_static_runtimes_F77=no
14764 # Source file extension for f77 test sources.
14767 # Object file extension for compiled f77 test sources.
14771 # Code to be used in simple compile tests
14772 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14774 # Code to be used in simple link tests
14775 lt_simple_link_test_code=" program t\n end\n"
14777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14779 # If no C compiler was specified, use CC.
14782 # If no C compiler flags were specified, use CFLAGS.
14783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14785 # Allow CC to be a program name with arguments.
14789 # save warnings/boilerplate of simple test code
14790 ac_outfile=conftest.$ac_objext
14791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14793 _lt_compiler_boilerplate=`cat conftest.err`
14796 ac_outfile=conftest.$ac_objext
14797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799 _lt_linker_boilerplate=`cat conftest.err`
14803 # Allow CC to be a program name with arguments.
14808 for cc_temp in $compiler""; do
14810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14819 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14821 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14822 echo "${ECHO_T}$can_build_shared" >&6; }
14824 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14826 test "$can_build_shared" = "no" && enable_shared=no
14828 # On AIX, shared libraries and static libraries use the same namespace, and
14829 # are all built from PIC.
14832 test "$enable_shared" = yes && enable_static=no
14833 if test -n "$RANLIB"; then
14834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14835 postinstall_cmds='$RANLIB $lib'
14839 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14840 test "$enable_shared" = yes && enable_static=no
14844 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14845 echo "${ECHO_T}$enable_shared" >&6; }
14847 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14848 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14849 # Make sure either enable_shared or enable_static is yes.
14850 test "$enable_shared" = yes || enable_static=yes
14851 { echo "$as_me:$LINENO: result: $enable_static" >&5
14852 echo "${ECHO_T}$enable_static" >&6; }
14857 lt_prog_compiler_wl_F77=
14858 lt_prog_compiler_pic_F77=
14859 lt_prog_compiler_static_F77=
14861 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14864 if test "$GCC" = yes; then
14865 lt_prog_compiler_wl_F77='-Wl,'
14866 lt_prog_compiler_static_F77='-static'
14870 # All AIX code is PIC.
14871 if test "$host_cpu" = ia64; then
14872 # AIX 5 now supports IA64 processor
14873 lt_prog_compiler_static_F77='-Bstatic'
14878 # FIXME: we need at least 68020 code to build shared libraries, but
14879 # adding the `-m68020' flag to GCC prevents building anything better,
14881 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14884 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14885 # PIC is the default for these OSes.
14888 mingw* | pw32* | os2*)
14889 # This hack is so that the source file can tell whether it is being
14890 # built for inclusion in a dll (and should export symbols for example).
14891 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14894 darwin* | rhapsody*)
14895 # PIC is the default on this platform
14896 # Common symbols not allowed in MH_DYLIB files
14897 lt_prog_compiler_pic_F77='-fno-common'
14901 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14902 # Instead, we relocate shared libraries at runtime.
14906 # Just because we use GCC doesn't mean we suddenly get shared libraries
14907 # on systems that don't support them.
14908 lt_prog_compiler_can_build_shared_F77=no
14913 if test -d /usr/nec; then
14914 lt_prog_compiler_pic_F77=-Kconform_pic
14919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14920 # not for PA HP-UX.
14926 lt_prog_compiler_pic_F77='-fPIC'
14932 lt_prog_compiler_pic_F77='-fPIC'
14936 # PORTME Check for flag to pass linker flags through the system compiler.
14939 lt_prog_compiler_wl_F77='-Wl,'
14940 if test "$host_cpu" = ia64; then
14941 # AIX 5 now supports IA64 processor
14942 lt_prog_compiler_static_F77='-Bstatic'
14944 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14948 # PIC is the default on this platform
14949 # Common symbols not allowed in MH_DYLIB files
14950 case $cc_basename in
14952 lt_prog_compiler_pic_F77='-qnocommon'
14953 lt_prog_compiler_wl_F77='-Wl,'
14958 mingw* | pw32* | os2*)
14959 # This hack is so that the source file can tell whether it is being
14960 # built for inclusion in a dll (and should export symbols for example).
14961 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14964 hpux9* | hpux10* | hpux11*)
14965 lt_prog_compiler_wl_F77='-Wl,'
14966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14967 # not for PA HP-UX.
14973 lt_prog_compiler_pic_F77='+Z'
14976 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14977 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14980 irix5* | irix6* | nonstopux*)
14981 lt_prog_compiler_wl_F77='-Wl,'
14982 # PIC (with -KPIC) is the default.
14983 lt_prog_compiler_static_F77='-non_shared'
14987 lt_prog_compiler_pic_F77='-KPIC'
14988 lt_prog_compiler_static_F77='-Bstatic'
14991 linux* | k*bsd*-gnu)
14992 case $cc_basename in
14994 lt_prog_compiler_wl_F77='-Wl,'
14995 lt_prog_compiler_pic_F77='-KPIC'
14996 lt_prog_compiler_static_F77='-static'
14998 pgcc* | pgf77* | pgf90* | pgf95*)
14999 # Portland Group compilers (*not* the Pentium gcc compiler,
15000 # which looks to be a dead project)
15001 lt_prog_compiler_wl_F77='-Wl,'
15002 lt_prog_compiler_pic_F77='-fpic'
15003 lt_prog_compiler_static_F77='-Bstatic'
15006 lt_prog_compiler_wl_F77='-Wl,'
15007 # All Alpha code is PIC.
15008 lt_prog_compiler_static_F77='-non_shared'
15013 osf3* | osf4* | osf5*)
15014 lt_prog_compiler_wl_F77='-Wl,'
15015 # All OSF/1 code is PIC.
15016 lt_prog_compiler_static_F77='-non_shared'
15020 lt_prog_compiler_pic_F77='-KPIC'
15021 lt_prog_compiler_static_F77='-Bstatic'
15022 case $cc_basename in
15023 f77* | f90* | f95*)
15024 lt_prog_compiler_wl_F77='-Qoption ld ';;
15026 lt_prog_compiler_wl_F77='-Wl,';;
15031 lt_prog_compiler_wl_F77='-Qoption ld '
15032 lt_prog_compiler_pic_F77='-PIC'
15033 lt_prog_compiler_static_F77='-Bstatic'
15036 sysv4 | sysv4.2uw2* | sysv4.3*)
15037 lt_prog_compiler_wl_F77='-Wl,'
15038 lt_prog_compiler_pic_F77='-KPIC'
15039 lt_prog_compiler_static_F77='-Bstatic'
15043 if test -d /usr/nec ;then
15044 lt_prog_compiler_pic_F77='-Kconform_pic'
15045 lt_prog_compiler_static_F77='-Bstatic'
15049 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15050 lt_prog_compiler_wl_F77='-Wl,'
15051 lt_prog_compiler_pic_F77='-KPIC'
15052 lt_prog_compiler_static_F77='-Bstatic'
15056 lt_prog_compiler_wl_F77='-Wl,'
15057 lt_prog_compiler_can_build_shared_F77=no
15061 lt_prog_compiler_pic_F77='-pic'
15062 lt_prog_compiler_static_F77='-Bstatic'
15066 lt_prog_compiler_can_build_shared_F77=no
15071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15072 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15075 # Check to make sure the PIC flag actually works.
15077 if test -n "$lt_prog_compiler_pic_F77"; then
15079 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15080 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15081 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 lt_prog_compiler_pic_works_F77=no
15085 ac_outfile=conftest.$ac_objext
15086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15087 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15088 # Insert the option either (1) after the last *FLAGS variable, or
15089 # (2) before a word containing "conftest.", or (3) at the end.
15090 # Note that $ac_compile itself does not contain backslashes and begins
15091 # with a dollar sign (not a hyphen), so the echo should work correctly.
15092 # The option is referenced via a variable to avoid confusing sed.
15093 lt_compile=`echo "$ac_compile" | $SED \
15094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096 -e 's:$: $lt_compiler_flag:'`
15097 (eval echo "\"\$as_me:15097: $lt_compile\"" >&5)
15098 (eval "$lt_compile" 2>conftest.err)
15100 cat conftest.err >&5
15101 echo "$as_me:15101: \$? = $ac_status" >&5
15102 if (exit $ac_status) && test -s "$ac_outfile"; then
15103 # The compiler can only warn and ignore the option if not recognized
15104 # So say no if there are warnings other than the usual output.
15105 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15108 lt_prog_compiler_pic_works_F77=yes
15114 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15115 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15117 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15118 case $lt_prog_compiler_pic_F77 in
15120 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15123 lt_prog_compiler_pic_F77=
15124 lt_prog_compiler_can_build_shared_F77=no
15129 # For platforms which do not support PIC, -DPIC is meaningless:
15131 lt_prog_compiler_pic_F77=
15134 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15139 # Check to make sure the static flag actually works.
15141 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15142 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15143 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15144 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 lt_prog_compiler_static_works_F77=no
15148 save_LDFLAGS="$LDFLAGS"
15149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15150 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15152 # The linker can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
15154 if test -s conftest.err; then
15155 # Append any errors to the config.log.
15156 cat conftest.err 1>&5
15157 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15159 if diff conftest.exp conftest.er2 >/dev/null; then
15160 lt_prog_compiler_static_works_F77=yes
15163 lt_prog_compiler_static_works_F77=yes
15167 LDFLAGS="$save_LDFLAGS"
15170 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15171 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15173 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15176 lt_prog_compiler_static_F77=
15180 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15182 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 lt_cv_prog_compiler_c_o_F77=no
15186 $rm -r conftest 2>/dev/null
15190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15192 lt_compiler_flag="-o out/conftest2.$ac_objext"
15193 # Insert the option either (1) after the last *FLAGS variable, or
15194 # (2) before a word containing "conftest.", or (3) at the end.
15195 # Note that $ac_compile itself does not contain backslashes and begins
15196 # with a dollar sign (not a hyphen), so the echo should work correctly.
15197 lt_compile=`echo "$ac_compile" | $SED \
15198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200 -e 's:$: $lt_compiler_flag:'`
15201 (eval echo "\"\$as_me:15201: $lt_compile\"" >&5)
15202 (eval "$lt_compile" 2>out/conftest.err)
15204 cat out/conftest.err >&5
15205 echo "$as_me:15205: \$? = $ac_status" >&5
15206 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15208 # The compiler can only warn and ignore the option if not recognized
15209 # So say no if there are warnings
15210 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15211 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15212 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15213 lt_cv_prog_compiler_c_o_F77=yes
15218 # SGI C++ compiler will create directory out/ii_files/ for
15219 # template instantiation
15220 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15221 $rm out/* && rmdir out
15227 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15231 hard_links="nottested"
15232 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15233 # do not overwrite the value of need_locks provided by the user
15234 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15235 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15240 ln conftest.a conftest.b 2>&5 || hard_links=no
15241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15242 { echo "$as_me:$LINENO: result: $hard_links" >&5
15243 echo "${ECHO_T}$hard_links" >&6; }
15244 if test "$hard_links" = no; then
15245 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15246 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15253 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15257 allow_undefined_flag_F77=
15258 enable_shared_with_static_runtimes_F77=no
15260 archive_expsym_cmds_F77=
15261 old_archive_From_new_cmds_F77=
15262 old_archive_from_expsyms_cmds_F77=
15263 export_dynamic_flag_spec_F77=
15264 whole_archive_flag_spec_F77=
15265 thread_safe_flag_spec_F77=
15266 hardcode_libdir_flag_spec_F77=
15267 hardcode_libdir_flag_spec_ld_F77=
15268 hardcode_libdir_separator_F77=
15269 hardcode_direct_F77=no
15270 hardcode_minus_L_F77=no
15271 hardcode_shlibpath_var_F77=unsupported
15272 link_all_deplibs_F77=unknown
15273 hardcode_automatic_F77=no
15275 module_expsym_cmds_F77=
15276 always_export_symbols_F77=no
15277 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15278 # include_expsyms should be a list of space-separated symbols to be *always*
15279 # included in the symbol list
15280 include_expsyms_F77=
15281 # exclude_expsyms can be an extended regexp of symbols to exclude
15282 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15283 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15284 # as well as any symbol that contains `d'.
15285 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15286 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15287 # platforms (ab)use it in PIC code, but their linkers get confused if
15288 # the symbol is explicitly referenced. Since portable code cannot
15289 # rely on this symbol name, it's probably fine to never include it in
15290 # preloaded symbol tables.
15291 extract_expsyms_cmds=
15292 # Just being paranoid about ensuring that cc_basename is set.
15293 for cc_temp in $compiler""; do
15295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15304 cygwin* | mingw* | pw32*)
15305 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15306 # When not using gcc, we currently assume that we are using
15307 # Microsoft Visual C++.
15308 if test "$GCC" != yes; then
15313 # we just hope/assume this is gcc and not c89 (= MSVC++)
15322 if test "$with_gnu_ld" = yes; then
15323 # If archive_cmds runs LD, not CC, wlarc should be empty
15326 # Set some defaults for GNU ld with shared library support. These
15327 # are reset later if shared libraries are not supported. Putting them
15328 # here allows them to be overridden if necessary.
15329 runpath_var=LD_RUN_PATH
15330 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15331 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15332 # ancient GNU ld didn't support --whole-archive et. al.
15333 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15334 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15336 whole_archive_flag_spec_F77=
15338 supports_anon_versioning=no
15339 case `$LD -v 2>/dev/null` in
15340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15343 *\ 2.11.*) ;; # other 2.11 versions
15344 *) supports_anon_versioning=yes ;;
15347 # See if GNU ld supports shared libraries.
15349 aix3* | aix4* | aix5*)
15350 # On AIX/PPC, the GNU linker is very broken
15351 if test "$host_cpu" != ia64; then
15355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15356 *** to be unable to reliably create shared libraries on AIX.
15357 *** Therefore, libtool is disabling shared libraries support. If you
15358 *** really care for shared libraries, you may want to modify your PATH
15359 *** so that a non-GNU linker is found, and then restart.
15366 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)'
15367 hardcode_libdir_flag_spec_F77='-L$libdir'
15368 hardcode_minus_L_F77=yes
15370 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15371 # that the semantics of dynamic libraries on AmigaOS, at least up
15372 # to version 4, is to share data among multiple programs linked
15373 # with the same dynamic library. Since this doesn't match the
15374 # behavior of shared libraries on other platforms, we can't use
15380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15381 allow_undefined_flag_F77=unsupported
15382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15383 # support --undefined. This deserves some investigation. FIXME
15384 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15390 cygwin* | mingw* | pw32*)
15391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15392 # as there is no search path for DLLs.
15393 hardcode_libdir_flag_spec_F77='-L$libdir'
15394 allow_undefined_flag_F77=unsupported
15395 always_export_symbols_F77=no
15396 enable_shared_with_static_runtimes_F77=yes
15397 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15399 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15401 # If the export-symbols file already is a .def file (1st line
15402 # is EXPORTS), use it as is; otherwise, prepend...
15403 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15404 cp $export_symbols $output_objdir/$soname.def;
15406 echo EXPORTS > $output_objdir/$soname.def;
15407 cat $export_symbols >> $output_objdir/$soname.def;
15409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15416 hardcode_direct_F77=no
15417 hardcode_shlibpath_var_F77=no
15418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15419 export_dynamic_flag_spec_F77='${wl}-E'
15420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15421 # Instead, shared libraries are loaded at an image base (0x10000000 by
15422 # default) and relocated if they conflict, which is a slow very memory
15423 # consuming and fragmenting process. To avoid this, we pick a random,
15424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15425 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15426 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'
15427 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'
15430 linux* | k*bsd*-gnu)
15431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15433 case $cc_basename,$host_cpu in
15434 pgcc*) # Portland Group C compiler
15435 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'
15436 tmp_addflag=' $pic_flag'
15438 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15439 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'
15440 tmp_addflag=' $pic_flag -Mnomain' ;;
15441 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15442 tmp_addflag=' -i_dynamic' ;;
15443 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15444 tmp_addflag=' -i_dynamic -nofor_main' ;;
15445 ifc* | ifort*) # Intel Fortran compiler
15446 tmp_addflag=' -nofor_main' ;;
15448 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15450 if test $supports_anon_versioning = yes; then
15451 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15453 $echo "local: *; };" >> $output_objdir/$libname.ver~
15454 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15456 link_all_deplibs_F77=no
15462 netbsd* | netbsdelf*-gnu)
15463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15464 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15467 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15468 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15473 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15477 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15478 *** create shared libraries on Solaris systems. Therefore, libtool
15479 *** is disabling shared libraries support. We urge you to upgrade GNU
15480 *** binutils to release 2.9.1 or newer. Another option is to modify
15481 *** your PATH or compiler configuration so that the native linker is
15482 *** used, and then restart.
15485 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15486 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15487 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15494 case `$LD -v 2>&1` in
15495 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15499 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15500 *** reliably create shared libraries on SCO systems. Therefore, libtool
15501 *** is disabling shared libraries support. We urge you to upgrade GNU
15502 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15503 *** your PATH or compiler configuration so that the native linker is
15504 *** used, and then restart.
15509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15510 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15511 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15512 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15521 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct_F77=yes
15524 hardcode_shlibpath_var_F77=no
15528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15537 if test "$ld_shlibs_F77" = no; then
15539 hardcode_libdir_flag_spec_F77=
15540 export_dynamic_flag_spec_F77=
15541 whole_archive_flag_spec_F77=
15544 # PORTME fill in a description of your system's linker (not GNU ld)
15547 allow_undefined_flag_F77=unsupported
15548 always_export_symbols_F77=yes
15549 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'
15550 # Note: this linker hardcodes the directories in LIBPATH if there
15551 # are no directories specified by -L.
15552 hardcode_minus_L_F77=yes
15553 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15554 # Neither direct hardcoding nor static linking is supported with a
15556 hardcode_direct_F77=unsupported
15561 if test "$host_cpu" = ia64; then
15562 # On IA64, the linker does run time linking by default, so we don't
15563 # have to do anything special.
15564 aix_use_runtimelinking=no
15565 exp_sym_flag='-Bexport'
15568 # If we're using GNU nm, then we don't want the "-C" option.
15569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15570 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15571 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'
15573 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'
15575 aix_use_runtimelinking=no
15577 # Test if we are trying to use run time linking or normal
15578 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15579 # need to do runtime linking.
15580 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15581 for ld_flag in $LDFLAGS; do
15582 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15583 aix_use_runtimelinking=yes
15590 exp_sym_flag='-bexport'
15591 no_entry_flag='-bnoentry'
15594 # When large executables or shared objects are built, AIX ld can
15595 # have problems creating the table of contents. If linking a library
15596 # or program results in "error TOC overflow" add -mminimal-toc to
15597 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15598 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15600 archive_cmds_F77=''
15601 hardcode_direct_F77=yes
15602 hardcode_libdir_separator_F77=':'
15603 link_all_deplibs_F77=yes
15605 if test "$GCC" = yes; then
15606 case $host_os in aix4.[012]|aix4.[012].*)
15607 # We only want to do this on AIX 4.2 and lower, the check
15608 # below for broken collect2 doesn't work under 4.3+
15609 collect2name=`${CC} -print-prog-name=collect2`
15610 if test -f "$collect2name" && \
15611 strings "$collect2name" | grep resolve_lib_name >/dev/null
15613 # We have reworked collect2
15614 hardcode_direct_F77=yes
15616 # We have old collect2
15617 hardcode_direct_F77=unsupported
15618 # It fails to find uninstalled libraries when the uninstalled
15619 # path is not listed in the libpath. Setting hardcode_minus_L
15620 # to unsupported forces relinking
15621 hardcode_minus_L_F77=yes
15622 hardcode_libdir_flag_spec_F77='-L$libdir'
15623 hardcode_libdir_separator_F77=
15627 shared_flag='-shared'
15628 if test "$aix_use_runtimelinking" = yes; then
15629 shared_flag="$shared_flag "'${wl}-G'
15633 if test "$host_cpu" = ia64; then
15634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15635 # chokes on -Wl,-G. The following line is correct:
15638 if test "$aix_use_runtimelinking" = yes; then
15639 shared_flag='${wl}-G'
15641 shared_flag='${wl}-bM:SRE'
15646 # It seems that -bexpall does not export symbols beginning with
15647 # underscore (_), so it is better to generate a list of symbols to export.
15648 always_export_symbols_F77=yes
15649 if test "$aix_use_runtimelinking" = yes; then
15650 # Warning - without using the other runtime loading flags (-brtl),
15651 # -berok will link without error, but may produce a broken library.
15652 allow_undefined_flag_F77='-berok'
15653 # Determine the default libpath from the value encoded in an empty executable.
15654 cat >conftest.$ac_ext <<_ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_f77_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest$ac_exeext &&
15676 $as_test_x conftest$ac_exeext; then
15678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15680 # Check for a 64-bit object if we didn't find anything.
15681 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; }
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691 conftest$ac_exeext conftest.$ac_ext
15692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15694 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15695 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"
15697 if test "$host_cpu" = ia64; then
15698 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15699 allow_undefined_flag_F77="-z nodefs"
15700 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"
15702 # Determine the default libpath from the value encoded in an empty executable.
15703 cat >conftest.$ac_ext <<_ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_f77_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext &&
15725 $as_test_x conftest$ac_exeext; then
15727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729 # Check for a 64-bit object if we didn't find anything.
15730 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; }
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740 conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15743 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 # Warning - without using the other run time loading flags,
15745 # -berok will link without error, but may produce a broken library.
15746 no_undefined_flag_F77=' ${wl}-bernotok'
15747 allow_undefined_flag_F77=' ${wl}-berok'
15748 # Exported symbols can be pulled into shared objects from archives
15749 whole_archive_flag_spec_F77='$convenience'
15750 archive_cmds_need_lc_F77=yes
15751 # This is similar to how AIX traditionally builds its shared libraries.
15752 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'
15758 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)'
15759 hardcode_libdir_flag_spec_F77='-L$libdir'
15760 hardcode_minus_L_F77=yes
15761 # see comment about different semantics on the GNU ld section
15766 export_dynamic_flag_spec_F77=-rdynamic
15769 cygwin* | mingw* | pw32*)
15770 # When not using gcc, we currently assume that we are using
15771 # Microsoft Visual C++.
15772 # hardcode_libdir_flag_spec is actually meaningless, as there is
15773 # no search path for DLLs.
15774 hardcode_libdir_flag_spec_F77=' '
15775 allow_undefined_flag_F77=unsupported
15776 # Tell ltmain to make .lib files, not .a files.
15778 # Tell ltmain to make .dll files, not .so files.
15780 # FIXME: Setting linknames here is a bad hack.
15781 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15782 # The linker will automatically build a .lib file if we build a DLL.
15783 old_archive_From_new_cmds_F77='true'
15784 # FIXME: Should let the user specify the lib program.
15785 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15786 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15787 enable_shared_with_static_runtimes_F77=yes
15790 darwin* | rhapsody*)
15792 rhapsody* | darwin1.[012])
15793 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15797 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15799 case ${MACOSX_DEPLOYMENT_TARGET} in
15801 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15804 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15810 archive_cmds_need_lc_F77=no
15811 hardcode_direct_F77=no
15812 hardcode_automatic_F77=yes
15813 hardcode_shlibpath_var_F77=unsupported
15814 whole_archive_flag_spec_F77=''
15815 link_all_deplibs_F77=yes
15816 if test "$GCC" = yes ; then
15817 output_verbose_link_cmd='echo'
15818 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15819 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15821 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}'
15822 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}'
15824 case $cc_basename in
15826 output_verbose_link_cmd='echo'
15827 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15828 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15830 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}'
15831 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}'
15841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_libdir_flag_spec_F77='-L$libdir'
15843 hardcode_shlibpath_var_F77=no
15850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15851 # support. Future versions do this automatically, but an explicit c++rt0.o
15852 # does not break anything, and helps significantly (at the cost of a little
15855 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15856 hardcode_libdir_flag_spec_F77='-R$libdir'
15857 hardcode_direct_F77=yes
15858 hardcode_shlibpath_var_F77=no
15861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct_F77=yes
15865 hardcode_minus_L_F77=yes
15866 hardcode_shlibpath_var_F77=no
15869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15870 freebsd* | dragonfly*)
15871 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15872 hardcode_libdir_flag_spec_F77='-R$libdir'
15873 hardcode_direct_F77=yes
15874 hardcode_shlibpath_var_F77=no
15878 if test "$GCC" = yes; then
15879 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'
15881 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'
15883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15884 hardcode_libdir_separator_F77=:
15885 hardcode_direct_F77=yes
15887 # hardcode_minus_L: Not really in the search PATH,
15888 # but as the default location of the library.
15889 hardcode_minus_L_F77=yes
15890 export_dynamic_flag_spec_F77='${wl}-E'
15894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15895 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15899 if test "$with_gnu_ld" = no; then
15900 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15901 hardcode_libdir_separator_F77=:
15903 hardcode_direct_F77=yes
15904 export_dynamic_flag_spec_F77='${wl}-E'
15906 # hardcode_minus_L: Not really in the search PATH,
15907 # but as the default location of the library.
15908 hardcode_minus_L_F77=yes
15913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15916 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15934 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15938 if test "$with_gnu_ld" = no; then
15939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15940 hardcode_libdir_separator_F77=:
15944 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15945 hardcode_direct_F77=no
15946 hardcode_shlibpath_var_F77=no
15949 hardcode_direct_F77=yes
15950 export_dynamic_flag_spec_F77='${wl}-E'
15952 # hardcode_minus_L: Not really in the search PATH,
15953 # but as the default location of the library.
15954 hardcode_minus_L_F77=yes
15960 irix5* | irix6* | nonstopux*)
15961 if test "$GCC" = yes; then
15962 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'
15964 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'
15965 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15967 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15968 hardcode_libdir_separator_F77=:
15969 link_all_deplibs_F77=yes
15972 netbsd* | netbsdelf*-gnu)
15973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15976 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15978 hardcode_libdir_flag_spec_F77='-R$libdir'
15979 hardcode_direct_F77=yes
15980 hardcode_shlibpath_var_F77=no
15984 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_direct_F77=yes
15986 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15987 hardcode_libdir_separator_F77=:
15988 hardcode_shlibpath_var_F77=no
15992 hardcode_direct_F77=yes
15993 hardcode_shlibpath_var_F77=no
15994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15995 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15997 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15998 export_dynamic_flag_spec_F77='${wl}-E'
16001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16002 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_libdir_flag_spec_F77='-R$libdir'
16006 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16007 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16014 hardcode_libdir_flag_spec_F77='-L$libdir'
16015 hardcode_minus_L_F77=yes
16016 allow_undefined_flag_F77=unsupported
16017 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'
16018 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16022 if test "$GCC" = yes; then
16023 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16024 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'
16026 allow_undefined_flag_F77=' -expect_unresolved \*'
16027 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'
16029 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16030 hardcode_libdir_separator_F77=:
16033 osf4* | osf5*) # as osf3* with the addition of -msym flag
16034 if test "$GCC" = yes; then
16035 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16036 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'
16037 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16039 allow_undefined_flag_F77=' -expect_unresolved \*'
16040 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'
16041 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~
16042 $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'
16044 # Both c and cxx compiler support -rpath directly
16045 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16047 hardcode_libdir_separator_F77=:
16051 no_undefined_flag_F77=' -z text'
16052 if test "$GCC" = yes; then
16054 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16059 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16063 hardcode_libdir_flag_spec_F77='-R$libdir'
16064 hardcode_shlibpath_var_F77=no
16066 solaris2.[0-5] | solaris2.[0-5].*) ;;
16068 # The compiler driver will combine linker options so we
16069 # cannot just pass the convience library names through
16070 # without $wl, iff we do not link with $LD.
16071 # Luckily, gcc supports the same syntax we need for Sun Studio.
16072 # Supported since Solaris 2.6 (maybe 2.5.1?)
16075 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16077 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' ;;
16080 link_all_deplibs_F77=yes
16084 if test "x$host_vendor" = xsequent; then
16085 # Use $CC to link under sequent, because it throws in some extra .o
16086 # files that make .init and .fini sections work.
16087 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16091 hardcode_libdir_flag_spec_F77='-L$libdir'
16092 hardcode_direct_F77=yes
16093 hardcode_minus_L_F77=yes
16094 hardcode_shlibpath_var_F77=no
16098 case $host_vendor in
16100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct_F77=yes # is this really true???
16104 ## LD is ld it makes a PLAMLIB
16105 ## CC just makes a GrossModule.
16106 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16107 reload_cmds_F77='$CC -r -o $output$reload_objs'
16108 hardcode_direct_F77=no
16111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16115 runpath_var='LD_RUN_PATH'
16116 hardcode_shlibpath_var_F77=no
16120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_shlibpath_var_F77=no
16122 export_dynamic_flag_spec_F77='-Bexport'
16126 if test -d /usr/nec; then
16127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_shlibpath_var_F77=no
16129 runpath_var=LD_RUN_PATH
16130 hardcode_runpath_var=yes
16135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16136 no_undefined_flag_F77='${wl}-z,text'
16137 archive_cmds_need_lc_F77=no
16138 hardcode_shlibpath_var_F77=no
16139 runpath_var='LD_RUN_PATH'
16141 if test "$GCC" = yes; then
16142 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 sysv5* | sco3.2v5* | sco5v6*)
16151 # Note: We can NOT use -z defs as we might desire, because we do not
16152 # link with -lc, and that would cause any symbols used from libc to
16153 # always be unresolved, which means just about no library would
16154 # ever link correctly. If we're not using GNU ld we use -z text
16155 # though, which does catch some bad symbols but isn't as heavy-handed
16157 no_undefined_flag_F77='${wl}-z,text'
16158 allow_undefined_flag_F77='${wl}-z,nodefs'
16159 archive_cmds_need_lc_F77=no
16160 hardcode_shlibpath_var_F77=no
16161 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16162 hardcode_libdir_separator_F77=':'
16163 link_all_deplibs_F77=yes
16164 export_dynamic_flag_spec_F77='${wl}-Bexport'
16165 runpath_var='LD_RUN_PATH'
16167 if test "$GCC" = yes; then
16168 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178 hardcode_libdir_flag_spec_F77='-L$libdir'
16179 hardcode_shlibpath_var_F77=no
16188 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16189 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16190 test "$ld_shlibs_F77" = no && can_build_shared=no
16193 # Do we need to explicitly link libc?
16195 case "x$archive_cmds_need_lc_F77" in
16197 # Assume -lc should be added
16198 archive_cmds_need_lc_F77=yes
16200 if test "$enable_shared" = yes && test "$GCC" = yes; then
16201 case $archive_cmds_F77 in
16203 # FIXME: we may have to deal with multi-command sequences.
16206 # Test whether the compiler implicitly links with -lc since on some
16207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208 # to ld, don't add -lc before -lgcc.
16209 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } 2>conftest.err; then
16221 libobjs=conftest.$ac_objext
16223 wl=$lt_prog_compiler_wl_F77
16224 pic_flag=$lt_prog_compiler_pic_F77
16230 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16231 allow_undefined_flag_F77=
16232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16233 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }
16238 archive_cmds_need_lc_F77=no
16240 archive_cmds_need_lc_F77=yes
16242 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16244 cat conftest.err 1>&5
16247 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16248 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16255 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16257 library_names_spec=
16258 libname_spec='lib$name'
16262 postuninstall_cmds=
16266 shlibpath_overrides_runpath=unknown
16268 dynamic_linker="$host_os ld.so"
16269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16270 if test "$GCC" = yes; then
16271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16273 # if the path contains ";" then we assume it to be the separator
16274 # otherwise default to the standard path separator (i.e. ":") - it is
16275 # assumed that no part of a normal pathname contains ";" but that should
16276 # okay in the real world where ";" in dirpaths is itself problematic.
16277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16284 need_lib_prefix=unknown
16285 hardcode_into_libs=no
16287 # when you set need_version to no, make sure it does not cause -set_version
16288 # flags to be left without arguments
16289 need_version=unknown
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16295 shlibpath_var=LIBPATH
16297 # AIX 3 has no versioning support, so we append a major version to the name.
16298 soname_spec='${libname}${release}${shared_ext}$major'
16305 hardcode_into_libs=yes
16306 if test "$host_cpu" = ia64; then
16307 # AIX 5 supports IA64
16308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16309 shlibpath_var=LD_LIBRARY_PATH
16311 # With GCC up to 2.95.x, collect2 would create an import file
16312 # for dependence libraries. The import file would start with
16313 # the line `#! .'. This would cause the generated library to
16314 # depend on `.', always an invalid library. This was fixed in
16315 # development snapshots of GCC prior to 3.0.
16317 aix4 | aix4.[01] | aix4.[01].*)
16318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16323 can_build_shared=no
16327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16328 # soname into executable. Probably we can add versioning support to
16329 # collect2, so additional links can be useful in future.
16330 if test "$aix_use_runtimelinking" = yes; then
16331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16332 # instead of lib<name>.a to let people know that these are not
16333 # typical AIX shared libraries.
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 # We preserve .a as extension for shared libraries through AIX4.2
16337 # and later when we are not doing run time linking.
16338 library_names_spec='${libname}${release}.a $libname.a'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16341 shlibpath_var=LIBPATH
16346 library_names_spec='$libname.ixlibrary $libname.a'
16347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16348 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'
16352 library_names_spec='${libname}${shared_ext}'
16353 dynamic_linker="$host_os ld.so"
16354 shlibpath_var=LIBRARY_PATH
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16366 # the default ld.so.conf also contains /usr/contrib/lib and
16367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16368 # libtool to hard-code these into programs
16371 cygwin* | mingw* | pw32*)
16372 version_type=windows
16377 case $GCC,$host_os in
16378 yes,cygwin* | yes,mingw* | yes,pw32*)
16379 library_names_spec='$libname.dll.a'
16380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16381 postinstall_cmds='base_file=`basename \${file}`~
16382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16383 dldir=$destdir/`dirname \$dlpath`~
16384 test -d \$dldir || mkdir -p \$dldir~
16385 $install_prog $dir/$dlname \$dldir/$dlname~
16386 chmod a+x \$dldir/$dlname'
16387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16388 dlpath=$dir/\$dldll~
16390 shlibpath_overrides_runpath=yes
16394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16399 # MinGW DLLs use traditional 'lib' prefix
16400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16403 # It is most probably a Windows format PATH printed by
16404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16405 # path with ; separators, and with drive letters. We can handle the
16406 # drive letters (cygwin fileutils understands them), so leave them,
16407 # especially as we might pass files found there to a mingw objdump,
16408 # which wouldn't understand a cygwinified path. Ahh.
16409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16415 # pw32 DLLs use 'pw' prefix rather than 'lib'
16416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16425 dynamic_linker='Win32 ld.exe'
16426 # FIXME: first we should search . and the directory the executable is in
16430 darwin* | rhapsody*)
16431 dynamic_linker="$host_os dyld"
16432 version_type=darwin
16435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16436 soname_spec='${libname}${release}${major}$shared_ext'
16437 shlibpath_overrides_runpath=yes
16438 shlibpath_var=DYLD_LIBRARY_PATH
16439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16440 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16441 if test "$GCC" = yes; then
16442 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"`
16444 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 shlibpath_var=LD_LIBRARY_PATH
16462 freebsd* | dragonfly*)
16463 # DragonFly does not have aout. When/if they implement a new
16464 # versioning mechanism, adjust this.
16465 if test -x /usr/bin/objformat; then
16466 objformat=`/usr/bin/objformat`
16469 freebsd[123]*) objformat=aout ;;
16470 *) objformat=elf ;;
16473 version_type=freebsd-$objformat
16474 case $version_type in
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16485 shlibpath_var=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath=yes
16490 freebsd3.[01]* | freebsdelf3.[01]*)
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16496 shlibpath_overrides_runpath=no
16497 hardcode_into_libs=yes
16499 freebsd*) # from 4.6 on
16500 shlibpath_overrides_runpath=yes
16501 hardcode_into_libs=yes
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 hardcode_into_libs=yes
16516 hpux9* | hpux10* | hpux11*)
16517 # Give a soname corresponding to the major version so that dld.sl refuses to
16518 # link against other versions.
16525 hardcode_into_libs=yes
16526 dynamic_linker="$host_os dld.so"
16527 shlibpath_var=LD_LIBRARY_PATH
16528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 if test "X$HPUX_IA64_MODE" = X32; then
16532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16540 hardcode_into_libs=yes
16541 dynamic_linker="$host_os dld.sl"
16542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16551 dynamic_linker="$host_os dld.sl"
16552 shlibpath_var=SHLIB_PATH
16553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16559 postinstall_cmds='chmod 555 $lib'
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=no
16571 hardcode_into_libs=yes
16574 irix5* | irix6* | nonstopux*)
16576 nonstopux*) version_type=nonstopux ;;
16578 if test "$lt_cv_prog_gnu_ld" = yes; then
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16589 irix5* | nonstopux*)
16590 libsuff= shlibsuff=
16593 case $LD in # libtool.m4 will add one of these switches to LD
16594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16595 libsuff= shlibsuff= libmagic=32-bit;;
16596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16597 libsuff=32 shlibsuff=N32 libmagic=N32;;
16598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16600 *) libsuff= shlibsuff= libmagic=never-match;;
16604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16605 shlibpath_overrides_runpath=no
16606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16608 hardcode_into_libs=yes
16611 # No shared lib support for Linux oldld, aout, or coff.
16612 linux*oldld* | linux*aout* | linux*coff*)
16616 # This must be Linux ELF.
16617 linux* | k*bsd*-gnu)
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 shlibpath_overrides_runpath=no
16626 # This implies no fast_install, which is unacceptable.
16627 # Some rework will be needed to allow for fast_install
16628 # before this can be enabled.
16629 hardcode_into_libs=yes
16631 # Append ld.so.conf contents to the search path
16632 if test -f /etc/ld.so.conf; then
16633 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' ' '`
16634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16637 # We used to test for /lib/ld.so.1 and disable shared libraries on
16638 # powerpc, because MkLinux only supported shared libraries with the
16639 # GNU dynamic linker. Since this was broken with cross compilers,
16640 # most powerpc-linux boxes support dynamic linking these days and
16641 # people can always --disable-shared, the test was removed, and we
16642 # assume the GNU/Linux dynamic linker is in use.
16643 dynamic_linker='GNU/Linux ld.so'
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=no
16654 hardcode_into_libs=yes
16655 dynamic_linker='NetBSD ld.elf_so'
16662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665 dynamic_linker='NetBSD (a.out) ld.so'
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 dynamic_linker='NetBSD ld.elf_so'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=yes
16695 sys_lib_dlsearch_path_spec="/usr/lib"
16697 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16699 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16700 *) need_version=no ;;
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16707 openbsd2.[89] | openbsd2.[89].*)
16708 shlibpath_overrides_runpath=no
16711 shlibpath_overrides_runpath=yes
16715 shlibpath_overrides_runpath=yes
16720 libname_spec='$name'
16723 library_names_spec='$libname${shared_ext} $libname.a'
16724 dynamic_linker='OS/2 ld.exe'
16725 shlibpath_var=LIBPATH
16728 osf3* | osf4* | osf5*)
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16736 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=yes
16747 hardcode_into_libs=yes
16748 # ldd complains unless libraries are executable
16749 postinstall_cmds='chmod +x $lib'
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16756 shlibpath_var=LD_LIBRARY_PATH
16757 shlibpath_overrides_runpath=yes
16758 if test "$with_gnu_ld" = yes; then
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 case $host_vendor in
16771 shlibpath_overrides_runpath=no
16773 export_dynamic_flag_spec='${wl}-Blargedynsym'
16774 runpath_var=LD_RUN_PATH
16782 shlibpath_overrides_runpath=no
16783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16789 if test -d /usr/nec ;then
16791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16792 soname_spec='$libname${shared_ext}.$major'
16793 shlibpath_var=LD_LIBRARY_PATH
16797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16798 version_type=freebsd-elf
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 hardcode_into_libs=yes
16805 if test "$with_gnu_ld" = yes; then
16806 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16807 shlibpath_overrides_runpath=no
16809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16810 shlibpath_overrides_runpath=yes
16813 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16817 sys_lib_dlsearch_path_spec='/usr/lib'
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823 soname_spec='${libname}${release}${shared_ext}$major'
16824 shlibpath_var=LD_LIBRARY_PATH
16831 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16832 echo "${ECHO_T}$dynamic_linker" >&6; }
16833 test "$dynamic_linker" = no && can_build_shared=no
16835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16836 if test "$GCC" = yes; then
16837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16840 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16842 hardcode_action_F77=
16843 if test -n "$hardcode_libdir_flag_spec_F77" || \
16844 test -n "$runpath_var_F77" || \
16845 test "X$hardcode_automatic_F77" = "Xyes" ; then
16847 # We can hardcode non-existant directories.
16848 if test "$hardcode_direct_F77" != no &&
16849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16850 # have to relink, otherwise we might link with an installed library
16851 # when we should be linking with a yet-to-be-installed one
16852 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16853 test "$hardcode_minus_L_F77" != no; then
16854 # Linking always hardcodes the temporary library directory.
16855 hardcode_action_F77=relink
16857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16858 hardcode_action_F77=immediate
16861 # We cannot hardcode anything, or else we can only hardcode existing
16863 hardcode_action_F77=unsupported
16865 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16866 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16868 if test "$hardcode_action_F77" = relink; then
16869 # Fast installation is not supported
16870 enable_fast_install=no
16871 elif test "$shlibpath_overrides_runpath" = yes ||
16872 test "$enable_shared" = no; then
16873 # Fast installation is not necessary
16874 enable_fast_install=needless
16878 # The else clause should only fire when bootstrapping the
16879 # libtool distribution, otherwise you forgot to ship ltmain.sh
16880 # with your package, and you will get complaints that there are
16881 # no rules to generate ltmain.sh.
16882 if test -f "$ltmain"; then
16883 # See if we are running on zsh, and set the options which allow our commands through
16884 # without removal of \ escapes.
16885 if test -n "${ZSH_VERSION+set}" ; then
16886 setopt NO_GLOB_SUBST
16888 # Now quote all the things that may contain metacharacters while being
16889 # careful not to overquote the AC_SUBSTed values. We take copies of the
16890 # variables and quote the copies for generation of the libtool script.
16891 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16893 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16894 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16895 deplibs_check_method reload_flag reload_cmds need_locks \
16896 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16897 lt_cv_sys_global_symbol_to_c_name_address \
16898 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16899 old_postinstall_cmds old_postuninstall_cmds \
16903 lt_prog_compiler_wl_F77 \
16904 lt_prog_compiler_pic_F77 \
16905 lt_prog_compiler_static_F77 \
16906 lt_prog_compiler_no_builtin_flag_F77 \
16907 export_dynamic_flag_spec_F77 \
16908 thread_safe_flag_spec_F77 \
16909 whole_archive_flag_spec_F77 \
16910 enable_shared_with_static_runtimes_F77 \
16911 old_archive_cmds_F77 \
16912 old_archive_from_new_cmds_F77 \
16913 predep_objects_F77 \
16914 postdep_objects_F77 \
16917 compiler_lib_search_path_F77 \
16919 archive_expsym_cmds_F77 \
16920 postinstall_cmds_F77 \
16921 postuninstall_cmds_F77 \
16922 old_archive_from_expsyms_cmds_F77 \
16923 allow_undefined_flag_F77 \
16924 no_undefined_flag_F77 \
16925 export_symbols_cmds_F77 \
16926 hardcode_libdir_flag_spec_F77 \
16927 hardcode_libdir_flag_spec_ld_F77 \
16928 hardcode_libdir_separator_F77 \
16929 hardcode_automatic_F77 \
16931 module_expsym_cmds_F77 \
16932 lt_cv_prog_compiler_c_o_F77 \
16933 exclude_expsyms_F77 \
16934 include_expsyms_F77; do
16937 old_archive_cmds_F77 | \
16938 old_archive_from_new_cmds_F77 | \
16939 archive_cmds_F77 | \
16940 archive_expsym_cmds_F77 | \
16941 module_cmds_F77 | \
16942 module_expsym_cmds_F77 | \
16943 old_archive_from_expsyms_cmds_F77 | \
16944 export_symbols_cmds_F77 | \
16945 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16946 postinstall_cmds | postuninstall_cmds | \
16947 old_postinstall_cmds | old_postuninstall_cmds | \
16948 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16949 # Double-quote double-evaled strings.
16950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16959 *'\$0 --fallback-echo"')
16960 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16966 cat <<__EOF__ >> "$cfgfile"
16967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16971 # Shell to use when invoking shell scripts.
16974 # Whether or not to build shared libraries.
16975 build_libtool_libs=$enable_shared
16977 # Whether or not to build static libraries.
16978 build_old_libs=$enable_static
16980 # Whether or not to add -lc for building shared libraries.
16981 build_libtool_need_lc=$archive_cmds_need_lc_F77
16983 # Whether or not to disallow shared libs when runtime libs are static
16984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16986 # Whether or not to optimize for fast installation.
16987 fast_install=$enable_fast_install
16990 host_alias=$host_alias
16994 # The build system.
16995 build_alias=$build_alias
16999 # An echo program that does not interpret backslashes.
17004 AR_FLAGS=$lt_AR_FLAGS
17009 # LTCC compiler flags.
17010 LTCFLAGS=$lt_LTCFLAGS
17012 # A language-specific compiler.
17013 CC=$lt_compiler_F77
17015 # Is the compiler the GNU C compiler?
17021 # The linker used to build libraries.
17024 # Whether we need hard or soft links.
17027 # A BSD-compatible nm program.
17030 # A symbol stripping program
17033 # Used to examine libraries when file_magic_cmd begins "file"
17034 MAGIC_CMD=$MAGIC_CMD
17036 # Used on cygwin: DLL creation program.
17039 # Used on cygwin: object dumper.
17042 # Used on cygwin: assembler.
17045 # The name of the directory that contains temporary libtool files.
17048 # How to create reloadable object files.
17049 reload_flag=$lt_reload_flag
17050 reload_cmds=$lt_reload_cmds
17052 # How to pass a linker flag through the compiler.
17053 wl=$lt_lt_prog_compiler_wl_F77
17055 # Object file suffix (normally "o").
17056 objext="$ac_objext"
17058 # Old archive suffix (normally "a").
17061 # Shared library suffix (normally ".so").
17062 shrext_cmds='$shrext_cmds'
17064 # Executable file suffix (normally "").
17067 # Additional compiler flags for building library objects.
17068 pic_flag=$lt_lt_prog_compiler_pic_F77
17071 # What is the maximum length of a command?
17072 max_cmd_len=$lt_cv_sys_max_cmd_len
17074 # Does compiler simultaneously support -c and -o options?
17075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17077 # Must we lock files when doing compilation?
17078 need_locks=$lt_need_locks
17080 # Do we need the lib prefix for modules?
17081 need_lib_prefix=$need_lib_prefix
17083 # Do we need a version for libraries?
17084 need_version=$need_version
17086 # Whether dlopen is supported.
17087 dlopen_support=$enable_dlopen
17089 # Whether dlopen of programs is supported.
17090 dlopen_self=$enable_dlopen_self
17092 # Whether dlopen of statically linked programs is supported.
17093 dlopen_self_static=$enable_dlopen_self_static
17095 # Compiler flag to prevent dynamic linking.
17096 link_static_flag=$lt_lt_prog_compiler_static_F77
17098 # Compiler flag to turn off builtin functions.
17099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17101 # Compiler flag to allow reflexive dlopens.
17102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17104 # Compiler flag to generate shared objects directly from archives.
17105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17107 # Compiler flag to generate thread-safe objects.
17108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17110 # Library versioning type.
17111 version_type=$version_type
17113 # Format of library name prefix.
17114 libname_spec=$lt_libname_spec
17116 # List of archive names. First name is the real one, the rest are links.
17117 # The last name is the one that the linker finds with -lNAME.
17118 library_names_spec=$lt_library_names_spec
17120 # The coded name of the library, if different from the real name.
17121 soname_spec=$lt_soname_spec
17123 # Commands used to build and install an old-style archive.
17125 old_archive_cmds=$lt_old_archive_cmds_F77
17126 old_postinstall_cmds=$lt_old_postinstall_cmds
17127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17129 # Create an old-style archive from a shared archive.
17130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17132 # Create a temporary old-style archive to link instead of a shared archive.
17133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17135 # Commands used to build and install a shared archive.
17136 archive_cmds=$lt_archive_cmds_F77
17137 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17138 postinstall_cmds=$lt_postinstall_cmds
17139 postuninstall_cmds=$lt_postuninstall_cmds
17141 # Commands used to build a loadable module (assumed same as above if empty)
17142 module_cmds=$lt_module_cmds_F77
17143 module_expsym_cmds=$lt_module_expsym_cmds_F77
17145 # Commands to strip libraries.
17146 old_striplib=$lt_old_striplib
17147 striplib=$lt_striplib
17149 # Dependencies to place before the objects being linked to create a
17151 predep_objects=$lt_predep_objects_F77
17153 # Dependencies to place after the objects being linked to create a
17155 postdep_objects=$lt_postdep_objects_F77
17157 # Dependencies to place before the objects being linked to create a
17159 predeps=$lt_predeps_F77
17161 # Dependencies to place after the objects being linked to create a
17163 postdeps=$lt_postdeps_F77
17165 # The library search path used internally by the compiler when linking
17166 # a shared library.
17167 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17169 # Method to check whether dependent libraries are shared objects.
17170 deplibs_check_method=$lt_deplibs_check_method
17172 # Command to use when deplibs_check_method == file_magic.
17173 file_magic_cmd=$lt_file_magic_cmd
17175 # Flag that allows shared libraries with undefined symbols to be built.
17176 allow_undefined_flag=$lt_allow_undefined_flag_F77
17178 # Flag that forces no undefined symbols.
17179 no_undefined_flag=$lt_no_undefined_flag_F77
17181 # Commands used to finish a libtool library installation in a directory.
17182 finish_cmds=$lt_finish_cmds
17184 # Same as above, but a single script fragment to be evaled but not shown.
17185 finish_eval=$lt_finish_eval
17187 # Take the output of nm and produce a listing of raw symbols and C names.
17188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17190 # Transform the output of nm in a proper C declaration
17191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17193 # Transform the output of nm in a C name address pair
17194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17196 # This is the shared library runtime path variable.
17197 runpath_var=$runpath_var
17199 # This is the shared library path variable.
17200 shlibpath_var=$shlibpath_var
17202 # Is shlibpath searched before the hard-coded library search path?
17203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17205 # How to hardcode a shared library path into an executable.
17206 hardcode_action=$hardcode_action_F77
17208 # Whether we should hardcode library paths into libraries.
17209 hardcode_into_libs=$hardcode_into_libs
17211 # Flag to hardcode \$libdir into a binary during linking.
17212 # This must work even if \$libdir does not exist.
17213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17215 # If ld is used when linking, flag to hardcode \$libdir into
17216 # a binary during linking. This must work even if \$libdir does
17218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17220 # Whether we need a single -rpath flag with a separated argument.
17221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17224 # resulting binary.
17225 hardcode_direct=$hardcode_direct_F77
17227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17228 # resulting binary.
17229 hardcode_minus_L=$hardcode_minus_L_F77
17231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17232 # the resulting binary.
17233 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17235 # Set to yes if building a shared library automatically hardcodes DIR into the library
17236 # and all subsequent libraries and executables linked against it.
17237 hardcode_automatic=$hardcode_automatic_F77
17239 # Variables whose values should be saved in libtool wrapper scripts and
17240 # restored at relink time.
17241 variables_saved_for_relink="$variables_saved_for_relink"
17243 # Whether libtool must link a program against all its dependency libraries.
17244 link_all_deplibs=$link_all_deplibs_F77
17246 # Compile-time system search path for libraries
17247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17249 # Run-time system search path for libraries
17250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17252 # Fix the shell variable \$srcfile for the compiler.
17253 fix_srcfile_path="$fix_srcfile_path_F77"
17255 # Set to yes if exported symbols are required.
17256 always_export_symbols=$always_export_symbols_F77
17258 # The commands to list exported symbols.
17259 export_symbols_cmds=$lt_export_symbols_cmds_F77
17261 # The commands to extract the exported symbol list from a shared archive.
17262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17264 # Symbols that should not be listed in the preloaded symbols.
17265 exclude_expsyms=$lt_exclude_expsyms_F77
17267 # Symbols that must always be exported.
17268 include_expsyms=$lt_include_expsyms_F77
17270 # ### END LIBTOOL TAG CONFIG: $tagname
17276 # If there is no Makefile yet, we rely on a make rule to execute
17277 # `config.status --recheck' to rerun these tests and create the
17278 # libtool script then.
17279 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17280 if test -f "$ltmain_in"; then
17281 test -f Makefile && make "$ltmain"
17287 ac_cpp='$CPP $CPPFLAGS'
17288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17300 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17303 # Source file extension for Java test sources.
17306 # Object file extension for compiled Java test sources.
17310 # Code to be used in simple compile tests
17311 lt_simple_compile_test_code="class foo {}\n"
17313 # Code to be used in simple link tests
17314 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17316 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17318 # If no C compiler was specified, use CC.
17321 # If no C compiler flags were specified, use CFLAGS.
17322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17324 # Allow CC to be a program name with arguments.
17328 # save warnings/boilerplate of simple test code
17329 ac_outfile=conftest.$ac_objext
17330 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17332 _lt_compiler_boilerplate=`cat conftest.err`
17335 ac_outfile=conftest.$ac_objext
17336 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17338 _lt_linker_boilerplate=`cat conftest.err`
17342 # Allow CC to be a program name with arguments.
17347 for cc_temp in $compiler""; do
17349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17355 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17358 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17359 archive_cmds_need_lc_GCJ=no
17361 old_archive_cmds_GCJ=$old_archive_cmds
17364 lt_prog_compiler_no_builtin_flag_GCJ=
17366 if test "$GCC" = yes; then
17367 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17370 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17371 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17372 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 lt_cv_prog_compiler_rtti_exceptions=no
17376 ac_outfile=conftest.$ac_objext
17377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17378 lt_compiler_flag="-fno-rtti -fno-exceptions"
17379 # Insert the option either (1) after the last *FLAGS variable, or
17380 # (2) before a word containing "conftest.", or (3) at the end.
17381 # Note that $ac_compile itself does not contain backslashes and begins
17382 # with a dollar sign (not a hyphen), so the echo should work correctly.
17383 # The option is referenced via a variable to avoid confusing sed.
17384 lt_compile=`echo "$ac_compile" | $SED \
17385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17387 -e 's:$: $lt_compiler_flag:'`
17388 (eval echo "\"\$as_me:17388: $lt_compile\"" >&5)
17389 (eval "$lt_compile" 2>conftest.err)
17391 cat conftest.err >&5
17392 echo "$as_me:17392: \$? = $ac_status" >&5
17393 if (exit $ac_status) && test -s "$ac_outfile"; then
17394 # The compiler can only warn and ignore the option if not recognized
17395 # So say no if there are warnings other than the usual output.
17396 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17399 lt_cv_prog_compiler_rtti_exceptions=yes
17405 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17409 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17416 lt_prog_compiler_wl_GCJ=
17417 lt_prog_compiler_pic_GCJ=
17418 lt_prog_compiler_static_GCJ=
17420 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17423 if test "$GCC" = yes; then
17424 lt_prog_compiler_wl_GCJ='-Wl,'
17425 lt_prog_compiler_static_GCJ='-static'
17429 # All AIX code is PIC.
17430 if test "$host_cpu" = ia64; then
17431 # AIX 5 now supports IA64 processor
17432 lt_prog_compiler_static_GCJ='-Bstatic'
17437 # FIXME: we need at least 68020 code to build shared libraries, but
17438 # adding the `-m68020' flag to GCC prevents building anything better,
17440 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17443 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17444 # PIC is the default for these OSes.
17447 mingw* | pw32* | os2*)
17448 # This hack is so that the source file can tell whether it is being
17449 # built for inclusion in a dll (and should export symbols for example).
17450 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17453 darwin* | rhapsody*)
17454 # PIC is the default on this platform
17455 # Common symbols not allowed in MH_DYLIB files
17456 lt_prog_compiler_pic_GCJ='-fno-common'
17460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17461 # Instead, we relocate shared libraries at runtime.
17465 # Just because we use GCC doesn't mean we suddenly get shared libraries
17466 # on systems that don't support them.
17467 lt_prog_compiler_can_build_shared_GCJ=no
17472 if test -d /usr/nec; then
17473 lt_prog_compiler_pic_GCJ=-Kconform_pic
17478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17479 # not for PA HP-UX.
17485 lt_prog_compiler_pic_GCJ='-fPIC'
17491 lt_prog_compiler_pic_GCJ='-fPIC'
17495 # PORTME Check for flag to pass linker flags through the system compiler.
17498 lt_prog_compiler_wl_GCJ='-Wl,'
17499 if test "$host_cpu" = ia64; then
17500 # AIX 5 now supports IA64 processor
17501 lt_prog_compiler_static_GCJ='-Bstatic'
17503 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17507 # PIC is the default on this platform
17508 # Common symbols not allowed in MH_DYLIB files
17509 case $cc_basename in
17511 lt_prog_compiler_pic_GCJ='-qnocommon'
17512 lt_prog_compiler_wl_GCJ='-Wl,'
17517 mingw* | pw32* | os2*)
17518 # This hack is so that the source file can tell whether it is being
17519 # built for inclusion in a dll (and should export symbols for example).
17520 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17523 hpux9* | hpux10* | hpux11*)
17524 lt_prog_compiler_wl_GCJ='-Wl,'
17525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17526 # not for PA HP-UX.
17532 lt_prog_compiler_pic_GCJ='+Z'
17535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17536 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17539 irix5* | irix6* | nonstopux*)
17540 lt_prog_compiler_wl_GCJ='-Wl,'
17541 # PIC (with -KPIC) is the default.
17542 lt_prog_compiler_static_GCJ='-non_shared'
17546 lt_prog_compiler_pic_GCJ='-KPIC'
17547 lt_prog_compiler_static_GCJ='-Bstatic'
17550 linux* | k*bsd*-gnu)
17551 case $cc_basename in
17553 lt_prog_compiler_wl_GCJ='-Wl,'
17554 lt_prog_compiler_pic_GCJ='-KPIC'
17555 lt_prog_compiler_static_GCJ='-static'
17557 pgcc* | pgf77* | pgf90* | pgf95*)
17558 # Portland Group compilers (*not* the Pentium gcc compiler,
17559 # which looks to be a dead project)
17560 lt_prog_compiler_wl_GCJ='-Wl,'
17561 lt_prog_compiler_pic_GCJ='-fpic'
17562 lt_prog_compiler_static_GCJ='-Bstatic'
17565 lt_prog_compiler_wl_GCJ='-Wl,'
17566 # All Alpha code is PIC.
17567 lt_prog_compiler_static_GCJ='-non_shared'
17572 osf3* | osf4* | osf5*)
17573 lt_prog_compiler_wl_GCJ='-Wl,'
17574 # All OSF/1 code is PIC.
17575 lt_prog_compiler_static_GCJ='-non_shared'
17579 lt_prog_compiler_pic_GCJ='-KPIC'
17580 lt_prog_compiler_static_GCJ='-Bstatic'
17581 case $cc_basename in
17582 f77* | f90* | f95*)
17583 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17585 lt_prog_compiler_wl_GCJ='-Wl,';;
17590 lt_prog_compiler_wl_GCJ='-Qoption ld '
17591 lt_prog_compiler_pic_GCJ='-PIC'
17592 lt_prog_compiler_static_GCJ='-Bstatic'
17595 sysv4 | sysv4.2uw2* | sysv4.3*)
17596 lt_prog_compiler_wl_GCJ='-Wl,'
17597 lt_prog_compiler_pic_GCJ='-KPIC'
17598 lt_prog_compiler_static_GCJ='-Bstatic'
17602 if test -d /usr/nec ;then
17603 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17604 lt_prog_compiler_static_GCJ='-Bstatic'
17608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17609 lt_prog_compiler_wl_GCJ='-Wl,'
17610 lt_prog_compiler_pic_GCJ='-KPIC'
17611 lt_prog_compiler_static_GCJ='-Bstatic'
17615 lt_prog_compiler_wl_GCJ='-Wl,'
17616 lt_prog_compiler_can_build_shared_GCJ=no
17620 lt_prog_compiler_pic_GCJ='-pic'
17621 lt_prog_compiler_static_GCJ='-Bstatic'
17625 lt_prog_compiler_can_build_shared_GCJ=no
17630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17631 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17634 # Check to make sure the PIC flag actually works.
17636 if test -n "$lt_prog_compiler_pic_GCJ"; then
17638 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17640 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 lt_prog_compiler_pic_works_GCJ=no
17644 ac_outfile=conftest.$ac_objext
17645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17646 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17647 # Insert the option either (1) after the last *FLAGS variable, or
17648 # (2) before a word containing "conftest.", or (3) at the end.
17649 # Note that $ac_compile itself does not contain backslashes and begins
17650 # with a dollar sign (not a hyphen), so the echo should work correctly.
17651 # The option is referenced via a variable to avoid confusing sed.
17652 lt_compile=`echo "$ac_compile" | $SED \
17653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17655 -e 's:$: $lt_compiler_flag:'`
17656 (eval echo "\"\$as_me:17656: $lt_compile\"" >&5)
17657 (eval "$lt_compile" 2>conftest.err)
17659 cat conftest.err >&5
17660 echo "$as_me:17660: \$? = $ac_status" >&5
17661 if (exit $ac_status) && test -s "$ac_outfile"; then
17662 # The compiler can only warn and ignore the option if not recognized
17663 # So say no if there are warnings other than the usual output.
17664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17667 lt_prog_compiler_pic_works_GCJ=yes
17673 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17674 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17676 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17677 case $lt_prog_compiler_pic_GCJ in
17679 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17682 lt_prog_compiler_pic_GCJ=
17683 lt_prog_compiler_can_build_shared_GCJ=no
17688 # For platforms which do not support PIC, -DPIC is meaningless:
17690 lt_prog_compiler_pic_GCJ=
17693 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17698 # Check to make sure the static flag actually works.
17700 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17701 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17703 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 lt_prog_compiler_static_works_GCJ=no
17707 save_LDFLAGS="$LDFLAGS"
17708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17709 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17711 # The linker can only warn and ignore the option if not recognized
17712 # So say no if there are warnings
17713 if test -s conftest.err; then
17714 # Append any errors to the config.log.
17715 cat conftest.err 1>&5
17716 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17718 if diff conftest.exp conftest.er2 >/dev/null; then
17719 lt_prog_compiler_static_works_GCJ=yes
17722 lt_prog_compiler_static_works_GCJ=yes
17726 LDFLAGS="$save_LDFLAGS"
17729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17730 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17732 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17735 lt_prog_compiler_static_GCJ=
17739 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17741 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 lt_cv_prog_compiler_c_o_GCJ=no
17745 $rm -r conftest 2>/dev/null
17749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17751 lt_compiler_flag="-o out/conftest2.$ac_objext"
17752 # Insert the option either (1) after the last *FLAGS variable, or
17753 # (2) before a word containing "conftest.", or (3) at the end.
17754 # Note that $ac_compile itself does not contain backslashes and begins
17755 # with a dollar sign (not a hyphen), so the echo should work correctly.
17756 lt_compile=`echo "$ac_compile" | $SED \
17757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17759 -e 's:$: $lt_compiler_flag:'`
17760 (eval echo "\"\$as_me:17760: $lt_compile\"" >&5)
17761 (eval "$lt_compile" 2>out/conftest.err)
17763 cat out/conftest.err >&5
17764 echo "$as_me:17764: \$? = $ac_status" >&5
17765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17767 # The compiler can only warn and ignore the option if not recognized
17768 # So say no if there are warnings
17769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17772 lt_cv_prog_compiler_c_o_GCJ=yes
17777 # SGI C++ compiler will create directory out/ii_files/ for
17778 # template instantiation
17779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17780 $rm out/* && rmdir out
17786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17790 hard_links="nottested"
17791 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17792 # do not overwrite the value of need_locks provided by the user
17793 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17799 ln conftest.a conftest.b 2>&5 || hard_links=no
17800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17801 { echo "$as_me:$LINENO: result: $hard_links" >&5
17802 echo "${ECHO_T}$hard_links" >&6; }
17803 if test "$hard_links" = no; then
17804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17816 allow_undefined_flag_GCJ=
17817 enable_shared_with_static_runtimes_GCJ=no
17819 archive_expsym_cmds_GCJ=
17820 old_archive_From_new_cmds_GCJ=
17821 old_archive_from_expsyms_cmds_GCJ=
17822 export_dynamic_flag_spec_GCJ=
17823 whole_archive_flag_spec_GCJ=
17824 thread_safe_flag_spec_GCJ=
17825 hardcode_libdir_flag_spec_GCJ=
17826 hardcode_libdir_flag_spec_ld_GCJ=
17827 hardcode_libdir_separator_GCJ=
17828 hardcode_direct_GCJ=no
17829 hardcode_minus_L_GCJ=no
17830 hardcode_shlibpath_var_GCJ=unsupported
17831 link_all_deplibs_GCJ=unknown
17832 hardcode_automatic_GCJ=no
17834 module_expsym_cmds_GCJ=
17835 always_export_symbols_GCJ=no
17836 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17837 # include_expsyms should be a list of space-separated symbols to be *always*
17838 # included in the symbol list
17839 include_expsyms_GCJ=
17840 # exclude_expsyms can be an extended regexp of symbols to exclude
17841 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17843 # as well as any symbol that contains `d'.
17844 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17846 # platforms (ab)use it in PIC code, but their linkers get confused if
17847 # the symbol is explicitly referenced. Since portable code cannot
17848 # rely on this symbol name, it's probably fine to never include it in
17849 # preloaded symbol tables.
17850 extract_expsyms_cmds=
17851 # Just being paranoid about ensuring that cc_basename is set.
17852 for cc_temp in $compiler""; do
17854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17863 cygwin* | mingw* | pw32*)
17864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17865 # When not using gcc, we currently assume that we are using
17866 # Microsoft Visual C++.
17867 if test "$GCC" != yes; then
17872 # we just hope/assume this is gcc and not c89 (= MSVC++)
17881 if test "$with_gnu_ld" = yes; then
17882 # If archive_cmds runs LD, not CC, wlarc should be empty
17885 # Set some defaults for GNU ld with shared library support. These
17886 # are reset later if shared libraries are not supported. Putting them
17887 # here allows them to be overridden if necessary.
17888 runpath_var=LD_RUN_PATH
17889 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17890 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17891 # ancient GNU ld didn't support --whole-archive et. al.
17892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17893 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17895 whole_archive_flag_spec_GCJ=
17897 supports_anon_versioning=no
17898 case `$LD -v 2>/dev/null` in
17899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17902 *\ 2.11.*) ;; # other 2.11 versions
17903 *) supports_anon_versioning=yes ;;
17906 # See if GNU ld supports shared libraries.
17908 aix3* | aix4* | aix5*)
17909 # On AIX/PPC, the GNU linker is very broken
17910 if test "$host_cpu" != ia64; then
17914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17915 *** to be unable to reliably create shared libraries on AIX.
17916 *** Therefore, libtool is disabling shared libraries support. If you
17917 *** really care for shared libraries, you may want to modify your PATH
17918 *** so that a non-GNU linker is found, and then restart.
17925 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)'
17926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17927 hardcode_minus_L_GCJ=yes
17929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17930 # that the semantics of dynamic libraries on AmigaOS, at least up
17931 # to version 4, is to share data among multiple programs linked
17932 # with the same dynamic library. Since this doesn't match the
17933 # behavior of shared libraries on other platforms, we can't use
17939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17940 allow_undefined_flag_GCJ=unsupported
17941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17942 # support --undefined. This deserves some investigation. FIXME
17943 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17949 cygwin* | mingw* | pw32*)
17950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17951 # as there is no search path for DLLs.
17952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17953 allow_undefined_flag_GCJ=unsupported
17954 always_export_symbols_GCJ=no
17955 enable_shared_with_static_runtimes_GCJ=yes
17956 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17960 # If the export-symbols file already is a .def file (1st line
17961 # is EXPORTS), use it as is; otherwise, prepend...
17962 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17963 cp $export_symbols $output_objdir/$soname.def;
17965 echo EXPORTS > $output_objdir/$soname.def;
17966 cat $export_symbols >> $output_objdir/$soname.def;
17968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17975 hardcode_direct_GCJ=no
17976 hardcode_shlibpath_var_GCJ=no
17977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17978 export_dynamic_flag_spec_GCJ='${wl}-E'
17979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17980 # Instead, shared libraries are loaded at an image base (0x10000000 by
17981 # default) and relocated if they conflict, which is a slow very memory
17982 # consuming and fragmenting process. To avoid this, we pick a random,
17983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17985 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'
17986 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'
17989 linux* | k*bsd*-gnu)
17990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17992 case $cc_basename,$host_cpu in
17993 pgcc*) # Portland Group C compiler
17994 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'
17995 tmp_addflag=' $pic_flag'
17997 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17998 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'
17999 tmp_addflag=' $pic_flag -Mnomain' ;;
18000 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18001 tmp_addflag=' -i_dynamic' ;;
18002 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18003 tmp_addflag=' -i_dynamic -nofor_main' ;;
18004 ifc* | ifort*) # Intel Fortran compiler
18005 tmp_addflag=' -nofor_main' ;;
18007 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 if test $supports_anon_versioning = yes; then
18010 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18012 $echo "local: *; };" >> $output_objdir/$libname.ver~
18013 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18015 link_all_deplibs_GCJ=no
18021 netbsd* | netbsdelf*-gnu)
18022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18023 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18027 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18032 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18036 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18037 *** create shared libraries on Solaris systems. Therefore, libtool
18038 *** is disabling shared libraries support. We urge you to upgrade GNU
18039 *** binutils to release 2.9.1 or newer. Another option is to modify
18040 *** your PATH or compiler configuration so that the native linker is
18041 *** used, and then restart.
18044 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18045 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18046 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18053 case `$LD -v 2>&1` in
18054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18058 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18059 *** reliably create shared libraries on SCO systems. Therefore, libtool
18060 *** is disabling shared libraries support. We urge you to upgrade GNU
18061 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18062 *** your PATH or compiler configuration so that the native linker is
18063 *** used, and then restart.
18068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18069 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18071 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18080 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18082 hardcode_direct_GCJ=yes
18083 hardcode_shlibpath_var_GCJ=no
18087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18088 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18089 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18096 if test "$ld_shlibs_GCJ" = no; then
18098 hardcode_libdir_flag_spec_GCJ=
18099 export_dynamic_flag_spec_GCJ=
18100 whole_archive_flag_spec_GCJ=
18103 # PORTME fill in a description of your system's linker (not GNU ld)
18106 allow_undefined_flag_GCJ=unsupported
18107 always_export_symbols_GCJ=yes
18108 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'
18109 # Note: this linker hardcodes the directories in LIBPATH if there
18110 # are no directories specified by -L.
18111 hardcode_minus_L_GCJ=yes
18112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18113 # Neither direct hardcoding nor static linking is supported with a
18115 hardcode_direct_GCJ=unsupported
18120 if test "$host_cpu" = ia64; then
18121 # On IA64, the linker does run time linking by default, so we don't
18122 # have to do anything special.
18123 aix_use_runtimelinking=no
18124 exp_sym_flag='-Bexport'
18127 # If we're using GNU nm, then we don't want the "-C" option.
18128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18130 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'
18132 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'
18134 aix_use_runtimelinking=no
18136 # Test if we are trying to use run time linking or normal
18137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18138 # need to do runtime linking.
18139 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18140 for ld_flag in $LDFLAGS; do
18141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18142 aix_use_runtimelinking=yes
18149 exp_sym_flag='-bexport'
18150 no_entry_flag='-bnoentry'
18153 # When large executables or shared objects are built, AIX ld can
18154 # have problems creating the table of contents. If linking a library
18155 # or program results in "error TOC overflow" add -mminimal-toc to
18156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18159 archive_cmds_GCJ=''
18160 hardcode_direct_GCJ=yes
18161 hardcode_libdir_separator_GCJ=':'
18162 link_all_deplibs_GCJ=yes
18164 if test "$GCC" = yes; then
18165 case $host_os in aix4.[012]|aix4.[012].*)
18166 # We only want to do this on AIX 4.2 and lower, the check
18167 # below for broken collect2 doesn't work under 4.3+
18168 collect2name=`${CC} -print-prog-name=collect2`
18169 if test -f "$collect2name" && \
18170 strings "$collect2name" | grep resolve_lib_name >/dev/null
18172 # We have reworked collect2
18173 hardcode_direct_GCJ=yes
18175 # We have old collect2
18176 hardcode_direct_GCJ=unsupported
18177 # It fails to find uninstalled libraries when the uninstalled
18178 # path is not listed in the libpath. Setting hardcode_minus_L
18179 # to unsupported forces relinking
18180 hardcode_minus_L_GCJ=yes
18181 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18182 hardcode_libdir_separator_GCJ=
18186 shared_flag='-shared'
18187 if test "$aix_use_runtimelinking" = yes; then
18188 shared_flag="$shared_flag "'${wl}-G'
18192 if test "$host_cpu" = ia64; then
18193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18194 # chokes on -Wl,-G. The following line is correct:
18197 if test "$aix_use_runtimelinking" = yes; then
18198 shared_flag='${wl}-G'
18200 shared_flag='${wl}-bM:SRE'
18205 # It seems that -bexpall does not export symbols beginning with
18206 # underscore (_), so it is better to generate a list of symbols to export.
18207 always_export_symbols_GCJ=yes
18208 if test "$aix_use_runtimelinking" = yes; then
18209 # Warning - without using the other runtime loading flags (-brtl),
18210 # -berok will link without error, but may produce a broken library.
18211 allow_undefined_flag_GCJ='-berok'
18212 # Determine the default libpath from the value encoded in an empty executable.
18213 cat >conftest.$ac_ext <<_ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_link") 2>conftest.er1
18237 grep -v '^ *+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } && {
18242 test -z "$ac_c_werror_flag" ||
18243 test ! -s conftest.err
18244 } && test -s conftest$ac_exeext &&
18245 $as_test_x conftest$ac_exeext; then
18247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18249 # Check for a 64-bit object if we didn't find anything.
18250 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; }
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18260 conftest$ac_exeext conftest.$ac_ext
18261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18263 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18264 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"
18266 if test "$host_cpu" = ia64; then
18267 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18268 allow_undefined_flag_GCJ="-z nodefs"
18269 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"
18271 # Determine the default libpath from the value encoded in an empty executable.
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_link") 2>conftest.er1
18296 grep -v '^ *+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } && {
18301 test -z "$ac_c_werror_flag" ||
18302 test ! -s conftest.err
18303 } && test -s conftest$ac_exeext &&
18304 $as_test_x conftest$ac_exeext; then
18306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18308 # Check for a 64-bit object if we didn't find anything.
18309 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; }
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18319 conftest$ac_exeext conftest.$ac_ext
18320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18322 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18323 # Warning - without using the other run time loading flags,
18324 # -berok will link without error, but may produce a broken library.
18325 no_undefined_flag_GCJ=' ${wl}-bernotok'
18326 allow_undefined_flag_GCJ=' ${wl}-berok'
18327 # Exported symbols can be pulled into shared objects from archives
18328 whole_archive_flag_spec_GCJ='$convenience'
18329 archive_cmds_need_lc_GCJ=yes
18330 # This is similar to how AIX traditionally builds its shared libraries.
18331 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'
18337 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)'
18338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18339 hardcode_minus_L_GCJ=yes
18340 # see comment about different semantics on the GNU ld section
18345 export_dynamic_flag_spec_GCJ=-rdynamic
18348 cygwin* | mingw* | pw32*)
18349 # When not using gcc, we currently assume that we are using
18350 # Microsoft Visual C++.
18351 # hardcode_libdir_flag_spec is actually meaningless, as there is
18352 # no search path for DLLs.
18353 hardcode_libdir_flag_spec_GCJ=' '
18354 allow_undefined_flag_GCJ=unsupported
18355 # Tell ltmain to make .lib files, not .a files.
18357 # Tell ltmain to make .dll files, not .so files.
18359 # FIXME: Setting linknames here is a bad hack.
18360 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18361 # The linker will automatically build a .lib file if we build a DLL.
18362 old_archive_From_new_cmds_GCJ='true'
18363 # FIXME: Should let the user specify the lib program.
18364 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18365 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18366 enable_shared_with_static_runtimes_GCJ=yes
18369 darwin* | rhapsody*)
18371 rhapsody* | darwin1.[012])
18372 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18376 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18378 case ${MACOSX_DEPLOYMENT_TARGET} in
18380 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18383 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18389 archive_cmds_need_lc_GCJ=no
18390 hardcode_direct_GCJ=no
18391 hardcode_automatic_GCJ=yes
18392 hardcode_shlibpath_var_GCJ=unsupported
18393 whole_archive_flag_spec_GCJ=''
18394 link_all_deplibs_GCJ=yes
18395 if test "$GCC" = yes ; then
18396 output_verbose_link_cmd='echo'
18397 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18398 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18400 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}'
18401 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}'
18403 case $cc_basename in
18405 output_verbose_link_cmd='echo'
18406 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18407 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18409 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}'
18410 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}'
18420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18421 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18422 hardcode_shlibpath_var_GCJ=no
18429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18430 # support. Future versions do this automatically, but an explicit c++rt0.o
18431 # does not break anything, and helps significantly (at the cost of a little
18434 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18436 hardcode_direct_GCJ=yes
18437 hardcode_shlibpath_var_GCJ=no
18440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18442 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18443 hardcode_direct_GCJ=yes
18444 hardcode_minus_L_GCJ=yes
18445 hardcode_shlibpath_var_GCJ=no
18448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18449 freebsd* | dragonfly*)
18450 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18451 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18452 hardcode_direct_GCJ=yes
18453 hardcode_shlibpath_var_GCJ=no
18457 if test "$GCC" = yes; then
18458 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'
18460 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'
18462 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463 hardcode_libdir_separator_GCJ=:
18464 hardcode_direct_GCJ=yes
18466 # hardcode_minus_L: Not really in the search PATH,
18467 # but as the default location of the library.
18468 hardcode_minus_L_GCJ=yes
18469 export_dynamic_flag_spec_GCJ='${wl}-E'
18473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18474 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18476 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18478 if test "$with_gnu_ld" = no; then
18479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18480 hardcode_libdir_separator_GCJ=:
18482 hardcode_direct_GCJ=yes
18483 export_dynamic_flag_spec_GCJ='${wl}-E'
18485 # hardcode_minus_L: Not really in the search PATH,
18486 # but as the default location of the library.
18487 hardcode_minus_L_GCJ=yes
18492 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18495 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18498 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18501 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18513 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18517 if test "$with_gnu_ld" = no; then
18518 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18519 hardcode_libdir_separator_GCJ=:
18523 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18524 hardcode_direct_GCJ=no
18525 hardcode_shlibpath_var_GCJ=no
18528 hardcode_direct_GCJ=yes
18529 export_dynamic_flag_spec_GCJ='${wl}-E'
18531 # hardcode_minus_L: Not really in the search PATH,
18532 # but as the default location of the library.
18533 hardcode_minus_L_GCJ=yes
18539 irix5* | irix6* | nonstopux*)
18540 if test "$GCC" = yes; then
18541 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'
18543 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'
18544 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18547 hardcode_libdir_separator_GCJ=:
18548 link_all_deplibs_GCJ=yes
18551 netbsd* | netbsdelf*-gnu)
18552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18553 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18555 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18557 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18558 hardcode_direct_GCJ=yes
18559 hardcode_shlibpath_var_GCJ=no
18563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18564 hardcode_direct_GCJ=yes
18565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18566 hardcode_libdir_separator_GCJ=:
18567 hardcode_shlibpath_var_GCJ=no
18571 hardcode_direct_GCJ=yes
18572 hardcode_shlibpath_var_GCJ=no
18573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18574 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18575 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18577 export_dynamic_flag_spec_GCJ='${wl}-E'
18580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18585 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18594 hardcode_minus_L_GCJ=yes
18595 allow_undefined_flag_GCJ=unsupported
18596 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'
18597 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18601 if test "$GCC" = yes; then
18602 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18603 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'
18605 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18606 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'
18608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18609 hardcode_libdir_separator_GCJ=:
18612 osf4* | osf5*) # as osf3* with the addition of -msym flag
18613 if test "$GCC" = yes; then
18614 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18615 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'
18616 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18618 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18619 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'
18620 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~
18621 $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'
18623 # Both c and cxx compiler support -rpath directly
18624 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18626 hardcode_libdir_separator_GCJ=:
18630 no_undefined_flag_GCJ=' -z text'
18631 if test "$GCC" = yes; then
18633 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18635 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18638 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18639 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18642 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18643 hardcode_shlibpath_var_GCJ=no
18645 solaris2.[0-5] | solaris2.[0-5].*) ;;
18647 # The compiler driver will combine linker options so we
18648 # cannot just pass the convience library names through
18649 # without $wl, iff we do not link with $LD.
18650 # Luckily, gcc supports the same syntax we need for Sun Studio.
18651 # Supported since Solaris 2.6 (maybe 2.5.1?)
18654 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18656 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' ;;
18659 link_all_deplibs_GCJ=yes
18663 if test "x$host_vendor" = xsequent; then
18664 # Use $CC to link under sequent, because it throws in some extra .o
18665 # files that make .init and .fini sections work.
18666 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18668 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18671 hardcode_direct_GCJ=yes
18672 hardcode_minus_L_GCJ=yes
18673 hardcode_shlibpath_var_GCJ=no
18677 case $host_vendor in
18679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18680 hardcode_direct_GCJ=yes # is this really true???
18683 ## LD is ld it makes a PLAMLIB
18684 ## CC just makes a GrossModule.
18685 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18686 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18687 hardcode_direct_GCJ=no
18690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18691 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18694 runpath_var='LD_RUN_PATH'
18695 hardcode_shlibpath_var_GCJ=no
18699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18700 hardcode_shlibpath_var_GCJ=no
18701 export_dynamic_flag_spec_GCJ='-Bexport'
18705 if test -d /usr/nec; then
18706 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707 hardcode_shlibpath_var_GCJ=no
18708 runpath_var=LD_RUN_PATH
18709 hardcode_runpath_var=yes
18714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18715 no_undefined_flag_GCJ='${wl}-z,text'
18716 archive_cmds_need_lc_GCJ=no
18717 hardcode_shlibpath_var_GCJ=no
18718 runpath_var='LD_RUN_PATH'
18720 if test "$GCC" = yes; then
18721 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18725 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18729 sysv5* | sco3.2v5* | sco5v6*)
18730 # Note: We can NOT use -z defs as we might desire, because we do not
18731 # link with -lc, and that would cause any symbols used from libc to
18732 # always be unresolved, which means just about no library would
18733 # ever link correctly. If we're not using GNU ld we use -z text
18734 # though, which does catch some bad symbols but isn't as heavy-handed
18736 no_undefined_flag_GCJ='${wl}-z,text'
18737 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18738 archive_cmds_need_lc_GCJ=no
18739 hardcode_shlibpath_var_GCJ=no
18740 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18741 hardcode_libdir_separator_GCJ=':'
18742 link_all_deplibs_GCJ=yes
18743 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18744 runpath_var='LD_RUN_PATH'
18746 if test "$GCC" = yes; then
18747 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18751 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18758 hardcode_shlibpath_var_GCJ=no
18767 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18768 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18772 # Do we need to explicitly link libc?
18774 case "x$archive_cmds_need_lc_GCJ" in
18776 # Assume -lc should be added
18777 archive_cmds_need_lc_GCJ=yes
18779 if test "$enable_shared" = yes && test "$GCC" = yes; then
18780 case $archive_cmds_GCJ in
18782 # FIXME: we may have to deal with multi-command sequences.
18785 # Test whether the compiler implicitly links with -lc since on some
18786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18787 # to ld, don't add -lc before -lgcc.
18788 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18789 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794 (eval $ac_compile) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } 2>conftest.err; then
18800 libobjs=conftest.$ac_objext
18802 wl=$lt_prog_compiler_wl_GCJ
18803 pic_flag=$lt_prog_compiler_pic_GCJ
18809 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18810 allow_undefined_flag_GCJ=
18811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18812 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }
18817 archive_cmds_need_lc_GCJ=no
18819 archive_cmds_need_lc_GCJ=yes
18821 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18823 cat conftest.err 1>&5
18826 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18827 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18834 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18836 library_names_spec=
18837 libname_spec='lib$name'
18841 postuninstall_cmds=
18845 shlibpath_overrides_runpath=unknown
18847 dynamic_linker="$host_os ld.so"
18848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18849 if test "$GCC" = yes; then
18850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18851 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18852 # if the path contains ";" then we assume it to be the separator
18853 # otherwise default to the standard path separator (i.e. ":") - it is
18854 # assumed that no part of a normal pathname contains ";" but that should
18855 # okay in the real world where ";" in dirpaths is itself problematic.
18856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18863 need_lib_prefix=unknown
18864 hardcode_into_libs=no
18866 # when you set need_version to no, make sure it does not cause -set_version
18867 # flags to be left without arguments
18868 need_version=unknown
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18874 shlibpath_var=LIBPATH
18876 # AIX 3 has no versioning support, so we append a major version to the name.
18877 soname_spec='${libname}${release}${shared_ext}$major'
18884 hardcode_into_libs=yes
18885 if test "$host_cpu" = ia64; then
18886 # AIX 5 supports IA64
18887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18888 shlibpath_var=LD_LIBRARY_PATH
18890 # With GCC up to 2.95.x, collect2 would create an import file
18891 # for dependence libraries. The import file would start with
18892 # the line `#! .'. This would cause the generated library to
18893 # depend on `.', always an invalid library. This was fixed in
18894 # development snapshots of GCC prior to 3.0.
18896 aix4 | aix4.[01] | aix4.[01].*)
18897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18902 can_build_shared=no
18906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18907 # soname into executable. Probably we can add versioning support to
18908 # collect2, so additional links can be useful in future.
18909 if test "$aix_use_runtimelinking" = yes; then
18910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18911 # instead of lib<name>.a to let people know that these are not
18912 # typical AIX shared libraries.
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 # We preserve .a as extension for shared libraries through AIX4.2
18916 # and later when we are not doing run time linking.
18917 library_names_spec='${libname}${release}.a $libname.a'
18918 soname_spec='${libname}${release}${shared_ext}$major'
18920 shlibpath_var=LIBPATH
18925 library_names_spec='$libname.ixlibrary $libname.a'
18926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18927 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'
18931 library_names_spec='${libname}${shared_ext}'
18932 dynamic_linker="$host_os ld.so"
18933 shlibpath_var=LIBRARY_PATH
18939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18940 soname_spec='${libname}${release}${shared_ext}$major'
18941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18942 shlibpath_var=LD_LIBRARY_PATH
18943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18945 # the default ld.so.conf also contains /usr/contrib/lib and
18946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18947 # libtool to hard-code these into programs
18950 cygwin* | mingw* | pw32*)
18951 version_type=windows
18956 case $GCC,$host_os in
18957 yes,cygwin* | yes,mingw* | yes,pw32*)
18958 library_names_spec='$libname.dll.a'
18959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18960 postinstall_cmds='base_file=`basename \${file}`~
18961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18962 dldir=$destdir/`dirname \$dlpath`~
18963 test -d \$dldir || mkdir -p \$dldir~
18964 $install_prog $dir/$dlname \$dldir/$dlname~
18965 chmod a+x \$dldir/$dlname'
18966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18967 dlpath=$dir/\$dldll~
18969 shlibpath_overrides_runpath=yes
18973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18975 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18978 # MinGW DLLs use traditional 'lib' prefix
18979 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18980 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18981 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18982 # It is most probably a Windows format PATH printed by
18983 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18984 # path with ; separators, and with drive letters. We can handle the
18985 # drive letters (cygwin fileutils understands them), so leave them,
18986 # especially as we might pass files found there to a mingw objdump,
18987 # which wouldn't understand a cygwinified path. Ahh.
18988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18994 # pw32 DLLs use 'pw' prefix rather than 'lib'
18995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19004 dynamic_linker='Win32 ld.exe'
19005 # FIXME: first we should search . and the directory the executable is in
19009 darwin* | rhapsody*)
19010 dynamic_linker="$host_os dyld"
19011 version_type=darwin
19014 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19015 soname_spec='${libname}${release}${major}$shared_ext'
19016 shlibpath_overrides_runpath=yes
19017 shlibpath_var=DYLD_LIBRARY_PATH
19018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19019 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19020 if test "$GCC" = yes; then
19021 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"`
19023 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19033 soname_spec='${libname}${release}${shared_ext}$major'
19034 shlibpath_var=LD_LIBRARY_PATH
19041 freebsd* | dragonfly*)
19042 # DragonFly does not have aout. When/if they implement a new
19043 # versioning mechanism, adjust this.
19044 if test -x /usr/bin/objformat; then
19045 objformat=`/usr/bin/objformat`
19048 freebsd[123]*) objformat=aout ;;
19049 *) objformat=elf ;;
19052 version_type=freebsd-$objformat
19053 case $version_type in
19055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19064 shlibpath_var=LD_LIBRARY_PATH
19067 shlibpath_overrides_runpath=yes
19069 freebsd3.[01]* | freebsdelf3.[01]*)
19070 shlibpath_overrides_runpath=yes
19071 hardcode_into_libs=yes
19073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19075 shlibpath_overrides_runpath=no
19076 hardcode_into_libs=yes
19078 freebsd*) # from 4.6 on
19079 shlibpath_overrides_runpath=yes
19080 hardcode_into_libs=yes
19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 shlibpath_var=LD_LIBRARY_PATH
19092 hardcode_into_libs=yes
19095 hpux9* | hpux10* | hpux11*)
19096 # Give a soname corresponding to the major version so that dld.sl refuses to
19097 # link against other versions.
19104 hardcode_into_libs=yes
19105 dynamic_linker="$host_os dld.so"
19106 shlibpath_var=LD_LIBRARY_PATH
19107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 if test "X$HPUX_IA64_MODE" = X32; then
19111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19119 hardcode_into_libs=yes
19120 dynamic_linker="$host_os dld.sl"
19121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19124 soname_spec='${libname}${release}${shared_ext}$major'
19125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19130 dynamic_linker="$host_os dld.sl"
19131 shlibpath_var=SHLIB_PATH
19132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134 soname_spec='${libname}${release}${shared_ext}$major'
19137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19138 postinstall_cmds='chmod 555 $lib'
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19146 soname_spec='${libname}${release}${shared_ext}$major'
19147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19148 shlibpath_var=LD_LIBRARY_PATH
19149 shlibpath_overrides_runpath=no
19150 hardcode_into_libs=yes
19153 irix5* | irix6* | nonstopux*)
19155 nonstopux*) version_type=nonstopux ;;
19157 if test "$lt_cv_prog_gnu_ld" = yes; then
19165 soname_spec='${libname}${release}${shared_ext}$major'
19166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19168 irix5* | nonstopux*)
19169 libsuff= shlibsuff=
19172 case $LD in # libtool.m4 will add one of these switches to LD
19173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19174 libsuff= shlibsuff= libmagic=32-bit;;
19175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19176 libsuff=32 shlibsuff=N32 libmagic=N32;;
19177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19179 *) libsuff= shlibsuff= libmagic=never-match;;
19183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19184 shlibpath_overrides_runpath=no
19185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19187 hardcode_into_libs=yes
19190 # No shared lib support for Linux oldld, aout, or coff.
19191 linux*oldld* | linux*aout* | linux*coff*)
19195 # This must be Linux ELF.
19196 linux* | k*bsd*-gnu)
19200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19201 soname_spec='${libname}${release}${shared_ext}$major'
19202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19203 shlibpath_var=LD_LIBRARY_PATH
19204 shlibpath_overrides_runpath=no
19205 # This implies no fast_install, which is unacceptable.
19206 # Some rework will be needed to allow for fast_install
19207 # before this can be enabled.
19208 hardcode_into_libs=yes
19210 # Append ld.so.conf contents to the search path
19211 if test -f /etc/ld.so.conf; then
19212 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' ' '`
19213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19216 # We used to test for /lib/ld.so.1 and disable shared libraries on
19217 # powerpc, because MkLinux only supported shared libraries with the
19218 # GNU dynamic linker. Since this was broken with cross compilers,
19219 # most powerpc-linux boxes support dynamic linking these days and
19220 # people can always --disable-shared, the test was removed, and we
19221 # assume the GNU/Linux dynamic linker is in use.
19222 dynamic_linker='GNU/Linux ld.so'
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 shlibpath_var=LD_LIBRARY_PATH
19232 shlibpath_overrides_runpath=no
19233 hardcode_into_libs=yes
19234 dynamic_linker='NetBSD ld.elf_so'
19241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19244 dynamic_linker='NetBSD (a.out) ld.so'
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 dynamic_linker='NetBSD ld.elf_so'
19250 shlibpath_var=LD_LIBRARY_PATH
19251 shlibpath_overrides_runpath=yes
19252 hardcode_into_libs=yes
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258 shlibpath_var=LD_LIBRARY_PATH
19259 shlibpath_overrides_runpath=yes
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267 soname_spec='${libname}${release}${shared_ext}$major'
19268 shlibpath_var=LD_LIBRARY_PATH
19269 shlibpath_overrides_runpath=yes
19274 sys_lib_dlsearch_path_spec="/usr/lib"
19276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19279 *) need_version=no ;;
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19283 shlibpath_var=LD_LIBRARY_PATH
19284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19286 openbsd2.[89] | openbsd2.[89].*)
19287 shlibpath_overrides_runpath=no
19290 shlibpath_overrides_runpath=yes
19294 shlibpath_overrides_runpath=yes
19299 libname_spec='$name'
19302 library_names_spec='$libname${shared_ext} $libname.a'
19303 dynamic_linker='OS/2 ld.exe'
19304 shlibpath_var=LIBPATH
19307 osf3* | osf4* | osf5*)
19311 soname_spec='${libname}${release}${shared_ext}$major'
19312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313 shlibpath_var=LD_LIBRARY_PATH
19314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 shlibpath_overrides_runpath=yes
19326 hardcode_into_libs=yes
19327 # ldd complains unless libraries are executable
19328 postinstall_cmds='chmod +x $lib'
19333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 shlibpath_overrides_runpath=yes
19337 if test "$with_gnu_ld" = yes; then
19345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19346 soname_spec='${libname}${release}${shared_ext}$major'
19347 shlibpath_var=LD_LIBRARY_PATH
19348 case $host_vendor in
19350 shlibpath_overrides_runpath=no
19352 export_dynamic_flag_spec='${wl}-Blargedynsym'
19353 runpath_var=LD_RUN_PATH
19361 shlibpath_overrides_runpath=no
19362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19368 if test -d /usr/nec ;then
19370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19371 soname_spec='$libname${shared_ext}.$major'
19372 shlibpath_var=LD_LIBRARY_PATH
19376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19377 version_type=freebsd-elf
19380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19381 soname_spec='${libname}${release}${shared_ext}$major'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 hardcode_into_libs=yes
19384 if test "$with_gnu_ld" = yes; then
19385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19386 shlibpath_overrides_runpath=no
19388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19389 shlibpath_overrides_runpath=yes
19392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19396 sys_lib_dlsearch_path_spec='/usr/lib'
19401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19402 soname_spec='${libname}${release}${shared_ext}$major'
19403 shlibpath_var=LD_LIBRARY_PATH
19410 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19411 echo "${ECHO_T}$dynamic_linker" >&6; }
19412 test "$dynamic_linker" = no && can_build_shared=no
19414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19415 if test "$GCC" = yes; then
19416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19419 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19420 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19421 hardcode_action_GCJ=
19422 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19423 test -n "$runpath_var_GCJ" || \
19424 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19426 # We can hardcode non-existant directories.
19427 if test "$hardcode_direct_GCJ" != no &&
19428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19429 # have to relink, otherwise we might link with an installed library
19430 # when we should be linking with a yet-to-be-installed one
19431 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19432 test "$hardcode_minus_L_GCJ" != no; then
19433 # Linking always hardcodes the temporary library directory.
19434 hardcode_action_GCJ=relink
19436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19437 hardcode_action_GCJ=immediate
19440 # We cannot hardcode anything, or else we can only hardcode existing
19442 hardcode_action_GCJ=unsupported
19444 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19445 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19447 if test "$hardcode_action_GCJ" = relink; then
19448 # Fast installation is not supported
19449 enable_fast_install=no
19450 elif test "$shlibpath_overrides_runpath" = yes ||
19451 test "$enable_shared" = no; then
19452 # Fast installation is not necessary
19453 enable_fast_install=needless
19457 # The else clause should only fire when bootstrapping the
19458 # libtool distribution, otherwise you forgot to ship ltmain.sh
19459 # with your package, and you will get complaints that there are
19460 # no rules to generate ltmain.sh.
19461 if test -f "$ltmain"; then
19462 # See if we are running on zsh, and set the options which allow our commands through
19463 # without removal of \ escapes.
19464 if test -n "${ZSH_VERSION+set}" ; then
19465 setopt NO_GLOB_SUBST
19467 # Now quote all the things that may contain metacharacters while being
19468 # careful not to overquote the AC_SUBSTed values. We take copies of the
19469 # variables and quote the copies for generation of the libtool script.
19470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19474 deplibs_check_method reload_flag reload_cmds need_locks \
19475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19476 lt_cv_sys_global_symbol_to_c_name_address \
19477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19478 old_postinstall_cmds old_postuninstall_cmds \
19482 lt_prog_compiler_wl_GCJ \
19483 lt_prog_compiler_pic_GCJ \
19484 lt_prog_compiler_static_GCJ \
19485 lt_prog_compiler_no_builtin_flag_GCJ \
19486 export_dynamic_flag_spec_GCJ \
19487 thread_safe_flag_spec_GCJ \
19488 whole_archive_flag_spec_GCJ \
19489 enable_shared_with_static_runtimes_GCJ \
19490 old_archive_cmds_GCJ \
19491 old_archive_from_new_cmds_GCJ \
19492 predep_objects_GCJ \
19493 postdep_objects_GCJ \
19496 compiler_lib_search_path_GCJ \
19498 archive_expsym_cmds_GCJ \
19499 postinstall_cmds_GCJ \
19500 postuninstall_cmds_GCJ \
19501 old_archive_from_expsyms_cmds_GCJ \
19502 allow_undefined_flag_GCJ \
19503 no_undefined_flag_GCJ \
19504 export_symbols_cmds_GCJ \
19505 hardcode_libdir_flag_spec_GCJ \
19506 hardcode_libdir_flag_spec_ld_GCJ \
19507 hardcode_libdir_separator_GCJ \
19508 hardcode_automatic_GCJ \
19510 module_expsym_cmds_GCJ \
19511 lt_cv_prog_compiler_c_o_GCJ \
19512 exclude_expsyms_GCJ \
19513 include_expsyms_GCJ; do
19516 old_archive_cmds_GCJ | \
19517 old_archive_from_new_cmds_GCJ | \
19518 archive_cmds_GCJ | \
19519 archive_expsym_cmds_GCJ | \
19520 module_cmds_GCJ | \
19521 module_expsym_cmds_GCJ | \
19522 old_archive_from_expsyms_cmds_GCJ | \
19523 export_symbols_cmds_GCJ | \
19524 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19525 postinstall_cmds | postuninstall_cmds | \
19526 old_postinstall_cmds | old_postuninstall_cmds | \
19527 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19528 # Double-quote double-evaled strings.
19529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19538 *'\$0 --fallback-echo"')
19539 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19545 cat <<__EOF__ >> "$cfgfile"
19546 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19548 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19550 # Shell to use when invoking shell scripts.
19553 # Whether or not to build shared libraries.
19554 build_libtool_libs=$enable_shared
19556 # Whether or not to build static libraries.
19557 build_old_libs=$enable_static
19559 # Whether or not to add -lc for building shared libraries.
19560 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19562 # Whether or not to disallow shared libs when runtime libs are static
19563 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19565 # Whether or not to optimize for fast installation.
19566 fast_install=$enable_fast_install
19569 host_alias=$host_alias
19573 # The build system.
19574 build_alias=$build_alias
19578 # An echo program that does not interpret backslashes.
19583 AR_FLAGS=$lt_AR_FLAGS
19588 # LTCC compiler flags.
19589 LTCFLAGS=$lt_LTCFLAGS
19591 # A language-specific compiler.
19592 CC=$lt_compiler_GCJ
19594 # Is the compiler the GNU C compiler?
19600 # The linker used to build libraries.
19603 # Whether we need hard or soft links.
19606 # A BSD-compatible nm program.
19609 # A symbol stripping program
19612 # Used to examine libraries when file_magic_cmd begins "file"
19613 MAGIC_CMD=$MAGIC_CMD
19615 # Used on cygwin: DLL creation program.
19618 # Used on cygwin: object dumper.
19621 # Used on cygwin: assembler.
19624 # The name of the directory that contains temporary libtool files.
19627 # How to create reloadable object files.
19628 reload_flag=$lt_reload_flag
19629 reload_cmds=$lt_reload_cmds
19631 # How to pass a linker flag through the compiler.
19632 wl=$lt_lt_prog_compiler_wl_GCJ
19634 # Object file suffix (normally "o").
19635 objext="$ac_objext"
19637 # Old archive suffix (normally "a").
19640 # Shared library suffix (normally ".so").
19641 shrext_cmds='$shrext_cmds'
19643 # Executable file suffix (normally "").
19646 # Additional compiler flags for building library objects.
19647 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19650 # What is the maximum length of a command?
19651 max_cmd_len=$lt_cv_sys_max_cmd_len
19653 # Does compiler simultaneously support -c and -o options?
19654 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19656 # Must we lock files when doing compilation?
19657 need_locks=$lt_need_locks
19659 # Do we need the lib prefix for modules?
19660 need_lib_prefix=$need_lib_prefix
19662 # Do we need a version for libraries?
19663 need_version=$need_version
19665 # Whether dlopen is supported.
19666 dlopen_support=$enable_dlopen
19668 # Whether dlopen of programs is supported.
19669 dlopen_self=$enable_dlopen_self
19671 # Whether dlopen of statically linked programs is supported.
19672 dlopen_self_static=$enable_dlopen_self_static
19674 # Compiler flag to prevent dynamic linking.
19675 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19677 # Compiler flag to turn off builtin functions.
19678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19680 # Compiler flag to allow reflexive dlopens.
19681 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19683 # Compiler flag to generate shared objects directly from archives.
19684 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19686 # Compiler flag to generate thread-safe objects.
19687 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19689 # Library versioning type.
19690 version_type=$version_type
19692 # Format of library name prefix.
19693 libname_spec=$lt_libname_spec
19695 # List of archive names. First name is the real one, the rest are links.
19696 # The last name is the one that the linker finds with -lNAME.
19697 library_names_spec=$lt_library_names_spec
19699 # The coded name of the library, if different from the real name.
19700 soname_spec=$lt_soname_spec
19702 # Commands used to build and install an old-style archive.
19704 old_archive_cmds=$lt_old_archive_cmds_GCJ
19705 old_postinstall_cmds=$lt_old_postinstall_cmds
19706 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19708 # Create an old-style archive from a shared archive.
19709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19711 # Create a temporary old-style archive to link instead of a shared archive.
19712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19714 # Commands used to build and install a shared archive.
19715 archive_cmds=$lt_archive_cmds_GCJ
19716 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19717 postinstall_cmds=$lt_postinstall_cmds
19718 postuninstall_cmds=$lt_postuninstall_cmds
19720 # Commands used to build a loadable module (assumed same as above if empty)
19721 module_cmds=$lt_module_cmds_GCJ
19722 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19724 # Commands to strip libraries.
19725 old_striplib=$lt_old_striplib
19726 striplib=$lt_striplib
19728 # Dependencies to place before the objects being linked to create a
19730 predep_objects=$lt_predep_objects_GCJ
19732 # Dependencies to place after the objects being linked to create a
19734 postdep_objects=$lt_postdep_objects_GCJ
19736 # Dependencies to place before the objects being linked to create a
19738 predeps=$lt_predeps_GCJ
19740 # Dependencies to place after the objects being linked to create a
19742 postdeps=$lt_postdeps_GCJ
19744 # The library search path used internally by the compiler when linking
19745 # a shared library.
19746 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19748 # Method to check whether dependent libraries are shared objects.
19749 deplibs_check_method=$lt_deplibs_check_method
19751 # Command to use when deplibs_check_method == file_magic.
19752 file_magic_cmd=$lt_file_magic_cmd
19754 # Flag that allows shared libraries with undefined symbols to be built.
19755 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19757 # Flag that forces no undefined symbols.
19758 no_undefined_flag=$lt_no_undefined_flag_GCJ
19760 # Commands used to finish a libtool library installation in a directory.
19761 finish_cmds=$lt_finish_cmds
19763 # Same as above, but a single script fragment to be evaled but not shown.
19764 finish_eval=$lt_finish_eval
19766 # Take the output of nm and produce a listing of raw symbols and C names.
19767 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19769 # Transform the output of nm in a proper C declaration
19770 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19772 # Transform the output of nm in a C name address pair
19773 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19775 # This is the shared library runtime path variable.
19776 runpath_var=$runpath_var
19778 # This is the shared library path variable.
19779 shlibpath_var=$shlibpath_var
19781 # Is shlibpath searched before the hard-coded library search path?
19782 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19784 # How to hardcode a shared library path into an executable.
19785 hardcode_action=$hardcode_action_GCJ
19787 # Whether we should hardcode library paths into libraries.
19788 hardcode_into_libs=$hardcode_into_libs
19790 # Flag to hardcode \$libdir into a binary during linking.
19791 # This must work even if \$libdir does not exist.
19792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19794 # If ld is used when linking, flag to hardcode \$libdir into
19795 # a binary during linking. This must work even if \$libdir does
19797 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19799 # Whether we need a single -rpath flag with a separated argument.
19800 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19802 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19803 # resulting binary.
19804 hardcode_direct=$hardcode_direct_GCJ
19806 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19807 # resulting binary.
19808 hardcode_minus_L=$hardcode_minus_L_GCJ
19810 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19811 # the resulting binary.
19812 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19814 # Set to yes if building a shared library automatically hardcodes DIR into the library
19815 # and all subsequent libraries and executables linked against it.
19816 hardcode_automatic=$hardcode_automatic_GCJ
19818 # Variables whose values should be saved in libtool wrapper scripts and
19819 # restored at relink time.
19820 variables_saved_for_relink="$variables_saved_for_relink"
19822 # Whether libtool must link a program against all its dependency libraries.
19823 link_all_deplibs=$link_all_deplibs_GCJ
19825 # Compile-time system search path for libraries
19826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19828 # Run-time system search path for libraries
19829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19831 # Fix the shell variable \$srcfile for the compiler.
19832 fix_srcfile_path="$fix_srcfile_path_GCJ"
19834 # Set to yes if exported symbols are required.
19835 always_export_symbols=$always_export_symbols_GCJ
19837 # The commands to list exported symbols.
19838 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19840 # The commands to extract the exported symbol list from a shared archive.
19841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19843 # Symbols that should not be listed in the preloaded symbols.
19844 exclude_expsyms=$lt_exclude_expsyms_GCJ
19846 # Symbols that must always be exported.
19847 include_expsyms=$lt_include_expsyms_GCJ
19849 # ### END LIBTOOL TAG CONFIG: $tagname
19855 # If there is no Makefile yet, we rely on a make rule to execute
19856 # `config.status --recheck' to rerun these tests and create the
19857 # libtool script then.
19858 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19859 if test -f "$ltmain_in"; then
19860 test -f Makefile && make "$ltmain"
19866 ac_cpp='$CPP $CPPFLAGS'
19867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881 # Source file extension for RC test sources.
19884 # Object file extension for compiled RC test sources.
19888 # Code to be used in simple compile tests
19889 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19891 # Code to be used in simple link tests
19892 lt_simple_link_test_code="$lt_simple_compile_test_code"
19894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19896 # If no C compiler was specified, use CC.
19899 # If no C compiler flags were specified, use CFLAGS.
19900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19902 # Allow CC to be a program name with arguments.
19906 # save warnings/boilerplate of simple test code
19907 ac_outfile=conftest.$ac_objext
19908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19910 _lt_compiler_boilerplate=`cat conftest.err`
19913 ac_outfile=conftest.$ac_objext
19914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19916 _lt_linker_boilerplate=`cat conftest.err`
19920 # Allow CC to be a program name with arguments.
19925 for cc_temp in $compiler""; do
19927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19935 lt_cv_prog_compiler_c_o_RC=yes
19937 # The else clause should only fire when bootstrapping the
19938 # libtool distribution, otherwise you forgot to ship ltmain.sh
19939 # with your package, and you will get complaints that there are
19940 # no rules to generate ltmain.sh.
19941 if test -f "$ltmain"; then
19942 # See if we are running on zsh, and set the options which allow our commands through
19943 # without removal of \ escapes.
19944 if test -n "${ZSH_VERSION+set}" ; then
19945 setopt NO_GLOB_SUBST
19947 # Now quote all the things that may contain metacharacters while being
19948 # careful not to overquote the AC_SUBSTed values. We take copies of the
19949 # variables and quote the copies for generation of the libtool script.
19950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19954 deplibs_check_method reload_flag reload_cmds need_locks \
19955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19956 lt_cv_sys_global_symbol_to_c_name_address \
19957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19958 old_postinstall_cmds old_postuninstall_cmds \
19962 lt_prog_compiler_wl_RC \
19963 lt_prog_compiler_pic_RC \
19964 lt_prog_compiler_static_RC \
19965 lt_prog_compiler_no_builtin_flag_RC \
19966 export_dynamic_flag_spec_RC \
19967 thread_safe_flag_spec_RC \
19968 whole_archive_flag_spec_RC \
19969 enable_shared_with_static_runtimes_RC \
19970 old_archive_cmds_RC \
19971 old_archive_from_new_cmds_RC \
19972 predep_objects_RC \
19973 postdep_objects_RC \
19976 compiler_lib_search_path_RC \
19978 archive_expsym_cmds_RC \
19979 postinstall_cmds_RC \
19980 postuninstall_cmds_RC \
19981 old_archive_from_expsyms_cmds_RC \
19982 allow_undefined_flag_RC \
19983 no_undefined_flag_RC \
19984 export_symbols_cmds_RC \
19985 hardcode_libdir_flag_spec_RC \
19986 hardcode_libdir_flag_spec_ld_RC \
19987 hardcode_libdir_separator_RC \
19988 hardcode_automatic_RC \
19990 module_expsym_cmds_RC \
19991 lt_cv_prog_compiler_c_o_RC \
19992 exclude_expsyms_RC \
19993 include_expsyms_RC; do
19996 old_archive_cmds_RC | \
19997 old_archive_from_new_cmds_RC | \
19998 archive_cmds_RC | \
19999 archive_expsym_cmds_RC | \
20001 module_expsym_cmds_RC | \
20002 old_archive_from_expsyms_cmds_RC | \
20003 export_symbols_cmds_RC | \
20004 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20005 postinstall_cmds | postuninstall_cmds | \
20006 old_postinstall_cmds | old_postuninstall_cmds | \
20007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20008 # Double-quote double-evaled strings.
20009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20018 *'\$0 --fallback-echo"')
20019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20025 cat <<__EOF__ >> "$cfgfile"
20026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20030 # Shell to use when invoking shell scripts.
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20039 # Whether or not to add -lc for building shared libraries.
20040 build_libtool_need_lc=$archive_cmds_need_lc_RC
20042 # Whether or not to disallow shared libs when runtime libs are static
20043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20045 # Whether or not to optimize for fast installation.
20046 fast_install=$enable_fast_install
20049 host_alias=$host_alias
20053 # The build system.
20054 build_alias=$build_alias
20058 # An echo program that does not interpret backslashes.
20063 AR_FLAGS=$lt_AR_FLAGS
20068 # LTCC compiler flags.
20069 LTCFLAGS=$lt_LTCFLAGS
20071 # A language-specific compiler.
20074 # Is the compiler the GNU C compiler?
20080 # The linker used to build libraries.
20083 # Whether we need hard or soft links.
20086 # A BSD-compatible nm program.
20089 # A symbol stripping program
20092 # Used to examine libraries when file_magic_cmd begins "file"
20093 MAGIC_CMD=$MAGIC_CMD
20095 # Used on cygwin: DLL creation program.
20098 # Used on cygwin: object dumper.
20101 # Used on cygwin: assembler.
20104 # The name of the directory that contains temporary libtool files.
20107 # How to create reloadable object files.
20108 reload_flag=$lt_reload_flag
20109 reload_cmds=$lt_reload_cmds
20111 # How to pass a linker flag through the compiler.
20112 wl=$lt_lt_prog_compiler_wl_RC
20114 # Object file suffix (normally "o").
20115 objext="$ac_objext"
20117 # Old archive suffix (normally "a").
20120 # Shared library suffix (normally ".so").
20121 shrext_cmds='$shrext_cmds'
20123 # Executable file suffix (normally "").
20126 # Additional compiler flags for building library objects.
20127 pic_flag=$lt_lt_prog_compiler_pic_RC
20130 # What is the maximum length of a command?
20131 max_cmd_len=$lt_cv_sys_max_cmd_len
20133 # Does compiler simultaneously support -c and -o options?
20134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20136 # Must we lock files when doing compilation?
20137 need_locks=$lt_need_locks
20139 # Do we need the lib prefix for modules?
20140 need_lib_prefix=$need_lib_prefix
20142 # Do we need a version for libraries?
20143 need_version=$need_version
20145 # Whether dlopen is supported.
20146 dlopen_support=$enable_dlopen
20148 # Whether dlopen of programs is supported.
20149 dlopen_self=$enable_dlopen_self
20151 # Whether dlopen of statically linked programs is supported.
20152 dlopen_self_static=$enable_dlopen_self_static
20154 # Compiler flag to prevent dynamic linking.
20155 link_static_flag=$lt_lt_prog_compiler_static_RC
20157 # Compiler flag to turn off builtin functions.
20158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20160 # Compiler flag to allow reflexive dlopens.
20161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20163 # Compiler flag to generate shared objects directly from archives.
20164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20166 # Compiler flag to generate thread-safe objects.
20167 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20169 # Library versioning type.
20170 version_type=$version_type
20172 # Format of library name prefix.
20173 libname_spec=$lt_libname_spec
20175 # List of archive names. First name is the real one, the rest are links.
20176 # The last name is the one that the linker finds with -lNAME.
20177 library_names_spec=$lt_library_names_spec
20179 # The coded name of the library, if different from the real name.
20180 soname_spec=$lt_soname_spec
20182 # Commands used to build and install an old-style archive.
20184 old_archive_cmds=$lt_old_archive_cmds_RC
20185 old_postinstall_cmds=$lt_old_postinstall_cmds
20186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20188 # Create an old-style archive from a shared archive.
20189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20191 # Create a temporary old-style archive to link instead of a shared archive.
20192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20194 # Commands used to build and install a shared archive.
20195 archive_cmds=$lt_archive_cmds_RC
20196 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20197 postinstall_cmds=$lt_postinstall_cmds
20198 postuninstall_cmds=$lt_postuninstall_cmds
20200 # Commands used to build a loadable module (assumed same as above if empty)
20201 module_cmds=$lt_module_cmds_RC
20202 module_expsym_cmds=$lt_module_expsym_cmds_RC
20204 # Commands to strip libraries.
20205 old_striplib=$lt_old_striplib
20206 striplib=$lt_striplib
20208 # Dependencies to place before the objects being linked to create a
20210 predep_objects=$lt_predep_objects_RC
20212 # Dependencies to place after the objects being linked to create a
20214 postdep_objects=$lt_postdep_objects_RC
20216 # Dependencies to place before the objects being linked to create a
20218 predeps=$lt_predeps_RC
20220 # Dependencies to place after the objects being linked to create a
20222 postdeps=$lt_postdeps_RC
20224 # The library search path used internally by the compiler when linking
20225 # a shared library.
20226 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20228 # Method to check whether dependent libraries are shared objects.
20229 deplibs_check_method=$lt_deplibs_check_method
20231 # Command to use when deplibs_check_method == file_magic.
20232 file_magic_cmd=$lt_file_magic_cmd
20234 # Flag that allows shared libraries with undefined symbols to be built.
20235 allow_undefined_flag=$lt_allow_undefined_flag_RC
20237 # Flag that forces no undefined symbols.
20238 no_undefined_flag=$lt_no_undefined_flag_RC
20240 # Commands used to finish a libtool library installation in a directory.
20241 finish_cmds=$lt_finish_cmds
20243 # Same as above, but a single script fragment to be evaled but not shown.
20244 finish_eval=$lt_finish_eval
20246 # Take the output of nm and produce a listing of raw symbols and C names.
20247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20249 # Transform the output of nm in a proper C declaration
20250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20252 # Transform the output of nm in a C name address pair
20253 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20255 # This is the shared library runtime path variable.
20256 runpath_var=$runpath_var
20258 # This is the shared library path variable.
20259 shlibpath_var=$shlibpath_var
20261 # Is shlibpath searched before the hard-coded library search path?
20262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20264 # How to hardcode a shared library path into an executable.
20265 hardcode_action=$hardcode_action_RC
20267 # Whether we should hardcode library paths into libraries.
20268 hardcode_into_libs=$hardcode_into_libs
20270 # Flag to hardcode \$libdir into a binary during linking.
20271 # This must work even if \$libdir does not exist.
20272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20274 # If ld is used when linking, flag to hardcode \$libdir into
20275 # a binary during linking. This must work even if \$libdir does
20277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20279 # Whether we need a single -rpath flag with a separated argument.
20280 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20282 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20283 # resulting binary.
20284 hardcode_direct=$hardcode_direct_RC
20286 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20287 # resulting binary.
20288 hardcode_minus_L=$hardcode_minus_L_RC
20290 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20291 # the resulting binary.
20292 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20294 # Set to yes if building a shared library automatically hardcodes DIR into the library
20295 # and all subsequent libraries and executables linked against it.
20296 hardcode_automatic=$hardcode_automatic_RC
20298 # Variables whose values should be saved in libtool wrapper scripts and
20299 # restored at relink time.
20300 variables_saved_for_relink="$variables_saved_for_relink"
20302 # Whether libtool must link a program against all its dependency libraries.
20303 link_all_deplibs=$link_all_deplibs_RC
20305 # Compile-time system search path for libraries
20306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20308 # Run-time system search path for libraries
20309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20311 # Fix the shell variable \$srcfile for the compiler.
20312 fix_srcfile_path="$fix_srcfile_path_RC"
20314 # Set to yes if exported symbols are required.
20315 always_export_symbols=$always_export_symbols_RC
20317 # The commands to list exported symbols.
20318 export_symbols_cmds=$lt_export_symbols_cmds_RC
20320 # The commands to extract the exported symbol list from a shared archive.
20321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20323 # Symbols that should not be listed in the preloaded symbols.
20324 exclude_expsyms=$lt_exclude_expsyms_RC
20326 # Symbols that must always be exported.
20327 include_expsyms=$lt_include_expsyms_RC
20329 # ### END LIBTOOL TAG CONFIG: $tagname
20335 # If there is no Makefile yet, we rely on a make rule to execute
20336 # `config.status --recheck' to rerun these tests and create the
20337 # libtool script then.
20338 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20339 if test -f "$ltmain_in"; then
20340 test -f Makefile && make "$ltmain"
20346 ac_cpp='$CPP $CPPFLAGS'
20347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20356 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20357 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20358 { (exit 1); exit 1; }; }
20362 # Append the new tag name to the list of available tags.
20363 if test -n "$tagname" ; then
20364 available_tags="$available_tags $tagname"
20370 # Now substitute the updated list of available tags.
20371 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20372 mv "${ofile}T" "$ofile"
20376 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20377 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20378 { (exit 1); exit 1; }; }
20384 # This can be used to rebuild libtool when needed
20385 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20387 # Always use our own libtool.
20388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20390 # Prevent multiple expansion
20412 if test "x$cross_compiling" = "xno"; then
20413 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20415 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20420 if test -n "$ac_tool_prefix"; then
20421 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20422 set dummy ${ac_tool_prefix}ar; ac_word=$2
20423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20425 if test "${ac_cv_prog_AR+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 if test -n "$AR"; then
20429 ac_cv_prog_AR="$AR" # Let the user override the test.
20431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432 for as_dir in $PATH
20435 test -z "$as_dir" && as_dir=.
20436 for ac_exec_ext in '' $ac_executable_extensions; do
20437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20438 ac_cv_prog_AR="${ac_tool_prefix}ar"
20439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20449 if test -n "$AR"; then
20450 { echo "$as_me:$LINENO: result: $AR" >&5
20451 echo "${ECHO_T}$AR" >&6; }
20453 { echo "$as_me:$LINENO: result: no" >&5
20454 echo "${ECHO_T}no" >&6; }
20459 if test -z "$ac_cv_prog_AR"; then
20461 # Extract the first word of "ar", so it can be a program name with args.
20462 set dummy ar; ac_word=$2
20463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20465 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 if test -n "$ac_ct_AR"; then
20469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20472 for as_dir in $PATH
20475 test -z "$as_dir" && as_dir=.
20476 for ac_exec_ext in '' $ac_executable_extensions; do
20477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20478 ac_cv_prog_ac_ct_AR="ar"
20479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20489 if test -n "$ac_ct_AR"; then
20490 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20491 echo "${ECHO_T}$ac_ct_AR" >&6; }
20493 { echo "$as_me:$LINENO: result: no" >&5
20494 echo "${ECHO_T}no" >&6; }
20497 if test "x$ac_ct_AR" = x; then
20500 case $cross_compiling:$ac_tool_warned in
20502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20503 whose name does not start with the host triplet. If you think this
20504 configuration is useful to you, please write to autoconf@gnu.org." >&5
20505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20506 whose name does not start with the host triplet. If you think this
20507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20508 ac_tool_warned=yes ;;
20513 AR="$ac_cv_prog_AR"
20516 if test -n "$ac_tool_prefix"; then
20517 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20518 set dummy ${ac_tool_prefix}ld; ac_word=$2
20519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20521 if test "${ac_cv_prog_LD+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20524 if test -n "$LD"; then
20525 ac_cv_prog_LD="$LD" # Let the user override the test.
20527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20528 for as_dir in $PATH
20531 test -z "$as_dir" && as_dir=.
20532 for ac_exec_ext in '' $ac_executable_extensions; do
20533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534 ac_cv_prog_LD="${ac_tool_prefix}ld"
20535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20545 if test -n "$LD"; then
20546 { echo "$as_me:$LINENO: result: $LD" >&5
20547 echo "${ECHO_T}$LD" >&6; }
20549 { echo "$as_me:$LINENO: result: no" >&5
20550 echo "${ECHO_T}no" >&6; }
20555 if test -z "$ac_cv_prog_LD"; then
20557 # Extract the first word of "ld", so it can be a program name with args.
20558 set dummy ld; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 if test -n "$ac_ct_LD"; then
20565 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568 for as_dir in $PATH
20571 test -z "$as_dir" && as_dir=.
20572 for ac_exec_ext in '' $ac_executable_extensions; do
20573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20574 ac_cv_prog_ac_ct_LD="ld"
20575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20584 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20585 if test -n "$ac_ct_LD"; then
20586 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20587 echo "${ECHO_T}$ac_ct_LD" >&6; }
20589 { echo "$as_me:$LINENO: result: no" >&5
20590 echo "${ECHO_T}no" >&6; }
20593 if test "x$ac_ct_LD" = x; then
20596 case $cross_compiling:$ac_tool_warned in
20598 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20599 whose name does not start with the host triplet. If you think this
20600 configuration is useful to you, please write to autoconf@gnu.org." >&5
20601 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20602 whose name does not start with the host triplet. If you think this
20603 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20604 ac_tool_warned=yes ;;
20609 LD="$ac_cv_prog_LD"
20613 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20614 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20615 if test "${ac_cv_header_stdc+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <stdlib.h>
20625 #include <stdarg.h>
20626 #include <string.h>
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_cv_header_stdc=yes
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_cv_header_stdc=no
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 if test $ac_cv_header_stdc = yes; then
20665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20666 cat >conftest.$ac_ext <<_ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <string.h>
20675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20676 $EGREP "memchr" >/dev/null 2>&1; then
20679 ac_cv_header_stdc=no
20685 if test $ac_cv_header_stdc = yes; then
20686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 #include <stdlib.h>
20696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20697 $EGREP "free" >/dev/null 2>&1; then
20700 ac_cv_header_stdc=no
20706 if test $ac_cv_header_stdc = yes; then
20707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20708 if test "$cross_compiling" = yes; then
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20718 #include <stdlib.h>
20719 #if ((' ' & 0x0FF) == 0x020)
20720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20723 # define ISLOWER(c) \
20724 (('a' <= (c) && (c) <= 'i') \
20725 || ('j' <= (c) && (c) <= 'r') \
20726 || ('s' <= (c) && (c) <= 'z'))
20727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20735 for (i = 0; i < 256; i++)
20736 if (XOR (islower (i), ISLOWER (i))
20737 || toupper (i) != TOUPPER (i))
20742 rm -f conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20764 echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ( exit $ac_status )
20769 ac_cv_header_stdc=no
20771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20777 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20778 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20779 if test $ac_cv_header_stdc = yes; then
20781 cat >>confdefs.h <<\_ACEOF
20782 #define STDC_HEADERS 1
20788 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20789 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20790 if test "${knfsd_cv_glibc2+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20800 #include <features.h>
20801 #if !defined(__GLIBC__)
20806 if { (ac_try="$ac_cpp conftest.$ac_ext"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20814 grep -v '^ *+' conftest.er1 >conftest.err
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } >/dev/null && {
20819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20822 knfsd_cv_glibc2=yes
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20830 rm -f conftest.err conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20834 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20835 if test $knfsd_cv_glibc2 = yes; then
20836 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20837 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20841 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20842 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20843 if test "${knfsd_cv_bsd_signals+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 if test "$cross_compiling" = yes; then
20849 *linux*) knfsd_cv_bsd_signals=no;;
20850 *bsd*) knfsd_cv_bsd_signals=yes;;
20851 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
20852 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
20853 { (exit 1); exit 1; }; };;
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20864 #include <signal.h>
20865 #include <unistd.h>
20866 #include <sys/wait.h>
20868 static int counter = 0;
20869 static RETSIGTYPE handler(int num) { counter++; }
20874 if ((s = fork()) < 0) return 1;
20876 if (wait(&s) < 0) return 1;
20877 return WIFSIGNALED(s)? 1 : 0;
20880 signal(SIGHUP, handler);
20881 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20882 return (counter == 2)? 0 : 1;
20886 rm -f conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_link") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 knfsd_cv_bsd_signals=yes
20908 echo "$as_me: program exited with status $ac_status" >&5
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ( exit $ac_status )
20913 knfsd_cv_bsd_signals=no
20915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20921 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20922 test $knfsd_cv_bsd_signals = yes &&
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_BSD_SIGNALS 1
20929 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20930 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20931 if test "${ac_cv_func_gethostbyname+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20942 #define gethostbyname innocuous_gethostbyname
20944 /* System header to define __stub macros and hopefully few prototypes,
20945 which can conflict with char gethostbyname (); below.
20946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947 <limits.h> exists even on freestanding compilers. */
20950 # include <limits.h>
20952 # include <assert.h>
20955 #undef gethostbyname
20957 /* Override any GCC internal prototype to avoid an error.
20958 Use char because int might match the return type of a GCC
20959 builtin and then its argument prototype would still apply. */
20963 char gethostbyname ();
20964 /* The GNU C library defines this for functions which it implements
20965 to always fail with ENOSYS. Some functions are actually named
20966 something starting with __ and the normal name is an alias. */
20967 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20974 return gethostbyname ();
20979 rm -f conftest.$ac_objext conftest$ac_exeext
20980 if { (ac_try="$ac_link"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_link") 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest$ac_exeext &&
20996 $as_test_x conftest$ac_exeext; then
20997 ac_cv_func_gethostbyname=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_cv_func_gethostbyname=no
21005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21006 conftest$ac_exeext conftest.$ac_ext
21008 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21009 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21010 if test $ac_cv_func_gethostbyname = yes; then
21013 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21014 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21015 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 ac_check_lib_save_LIBS=$LIBS
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21027 /* Override any GCC internal prototype to avoid an error.
21028 Use char because int might match the return type of a GCC
21029 builtin and then its argument prototype would still apply. */
21033 char gethostbyname ();
21037 return gethostbyname ();
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_link") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest$ac_exeext &&
21059 $as_test_x conftest$ac_exeext; then
21060 ac_cv_lib_nsl_gethostbyname=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_lib_nsl_gethostbyname=no
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069 conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21072 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21082 { echo "$as_me:$LINENO: checking for connect" >&5
21083 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21084 if test "${ac_cv_func_connect+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21095 #define connect innocuous_connect
21097 /* System header to define __stub macros and hopefully few prototypes,
21098 which can conflict with char connect (); below.
21099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100 <limits.h> exists even on freestanding compilers. */
21103 # include <limits.h>
21105 # include <assert.h>
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21117 /* The GNU C library defines this for functions which it implements
21118 to always fail with ENOSYS. Some functions are actually named
21119 something starting with __ and the normal name is an alias. */
21120 #if defined __stub_connect || defined __stub___connect
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_link") 2>conftest.er1
21141 grep -v '^ *+' conftest.er1 >conftest.err
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && {
21146 test -z "$ac_c_werror_flag" ||
21147 test ! -s conftest.err
21148 } && test -s conftest$ac_exeext &&
21149 $as_test_x conftest$ac_exeext; then
21150 ac_cv_func_connect=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ac_cv_func_connect=no
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21162 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21163 if test $ac_cv_func_connect = yes; then
21166 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21167 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21168 if test "${ac_cv_lib_socket_connect+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 ac_check_lib_save_LIBS=$LIBS
21172 LIBS="-lsocket $LIBNSL $LIBS"
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 /* Override any GCC internal prototype to avoid an error.
21181 Use char because int might match the return type of a GCC
21182 builtin and then its argument prototype would still apply. */
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_link") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest$ac_exeext &&
21212 $as_test_x conftest$ac_exeext; then
21213 ac_cv_lib_socket_connect=yes
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_cv_lib_socket_connect=no
21221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21222 conftest$ac_exeext conftest.$ac_ext
21223 LIBS=$ac_check_lib_save_LIBS
21225 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21226 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21227 if test $ac_cv_lib_socket_connect = yes; then
21228 LIBSOCKET="-lsocket"
21230 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21231 echo "$as_me: error: Function 'socket' not found." >&2;}
21232 { (exit 1); exit 1; }; }
21238 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21239 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21240 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 ac_check_lib_save_LIBS=$LIBS
21244 LIBS="-lcrypt $LIBS"
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21252 /* Override any GCC internal prototype to avoid an error.
21253 Use char because int might match the return type of a GCC
21254 builtin and then its argument prototype would still apply. */
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (ac_try="$ac_link"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_link") 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } && {
21281 test -z "$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 } && test -s conftest$ac_exeext &&
21284 $as_test_x conftest$ac_exeext; then
21285 ac_cv_lib_crypt_crypt=yes
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_cv_lib_crypt_crypt=no
21293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21294 conftest$ac_exeext conftest.$ac_ext
21295 LIBS=$ac_check_lib_save_LIBS
21297 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21298 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21299 if test $ac_cv_lib_crypt_crypt = yes; then
21303 if test "$enable_nfsv4" = yes; then
21304 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21305 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21306 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 ac_check_lib_save_LIBS=$LIBS
21310 LIBS="-levent $LIBS"
21311 cat >conftest.$ac_ext <<_ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21324 char event_dispatch ();
21328 return event_dispatch ();
21333 rm -f conftest.$ac_objext conftest$ac_exeext
21334 if { (ac_try="$ac_link"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_link") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest$ac_exeext &&
21350 $as_test_x conftest$ac_exeext; then
21351 ac_cv_lib_event_event_dispatch=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_cv_lib_event_event_dispatch=no
21359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21360 conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21363 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21364 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21365 if test $ac_cv_lib_event_event_dispatch = yes; then
21368 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21369 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21370 { (exit 1); exit 1; }; }
21373 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21374 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21375 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 ac_check_lib_save_LIBS=$LIBS
21379 LIBS="-lnfsidmap $LIBS"
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21387 /* Override any GCC internal prototype to avoid an error.
21388 Use char because int might match the return type of a GCC
21389 builtin and then its argument prototype would still apply. */
21393 char nfs4_init_name_mapping ();
21397 return nfs4_init_name_mapping ();
21402 rm -f conftest.$ac_objext conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_link") 2>conftest.er1
21411 grep -v '^ *+' conftest.er1 >conftest.err
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest$ac_exeext &&
21419 $as_test_x conftest$ac_exeext; then
21420 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429 conftest$ac_exeext conftest.$ac_ext
21430 LIBS=$ac_check_lib_save_LIBS
21432 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21433 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21434 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21437 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21438 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21439 { (exit 1); exit 1; }; }
21443 for ac_header in event.h
21445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 ac_res=`eval echo '${'$as_ac_Header'}'`
21453 { echo "$as_me:$LINENO: result: $ac_res" >&5
21454 echo "${ECHO_T}$ac_res" >&6; }
21456 # Is the header compilable?
21457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21466 #include <$ac_header>
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21485 ac_header_compiler=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_compiler=no
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21495 echo "${ECHO_T}$ac_header_compiler" >&6; }
21497 # Is the header present?
21498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 #include <$ac_header>
21508 if { (ac_try="$ac_cpp conftest.$ac_ext"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } >/dev/null && {
21521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21524 ac_header_preproc=yes
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_header_preproc=no
21532 rm -f conftest.err conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21534 echo "${ECHO_T}$ac_header_preproc" >&6; }
21536 # So? What about this header?
21537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21543 ac_header_preproc=yes
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21559 ## ------------------------------- ##
21560 ## Report this to nfs@lists.sf.net ##
21561 ## ------------------------------- ##
21563 ) | sed "s/^/$as_me: WARNING: /" >&2
21566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 eval "$as_ac_Header=\$ac_header_preproc"
21573 ac_res=`eval echo '${'$as_ac_Header'}'`
21574 { echo "$as_me:$LINENO: result: $ac_res" >&5
21575 echo "${ECHO_T}$ac_res" >&6; }
21578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21579 cat >>confdefs.h <<_ACEOF
21580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21584 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21585 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21586 { (exit 1); exit 1; }; }
21592 for ac_header in nfsidmap.h
21594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 ac_res=`eval echo '${'$as_ac_Header'}'`
21602 { echo "$as_me:$LINENO: result: $ac_res" >&5
21603 echo "${ECHO_T}$ac_res" >&6; }
21605 # Is the header compilable?
21606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 $ac_includes_default
21615 #include <$ac_header>
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21634 ac_header_compiler=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_header_compiler=no
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21644 echo "${ECHO_T}$ac_header_compiler" >&6; }
21646 # Is the header present?
21647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 #include <$ac_header>
21657 if { (ac_try="$ac_cpp conftest.$ac_ext"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } >/dev/null && {
21670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21673 ac_header_preproc=yes
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 ac_header_preproc=no
21681 rm -f conftest.err conftest.$ac_ext
21682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21683 echo "${ECHO_T}$ac_header_preproc" >&6; }
21685 # So? What about this header?
21686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21692 ac_header_preproc=yes
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21708 ## ------------------------------- ##
21709 ## Report this to nfs@lists.sf.net ##
21710 ## ------------------------------- ##
21712 ) | sed "s/^/$as_me: WARNING: /" >&2
21715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 eval "$as_ac_Header=\$ac_header_preproc"
21722 ac_res=`eval echo '${'$as_ac_Header'}'`
21723 { echo "$as_me:$LINENO: result: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21733 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21734 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21735 { (exit 1); exit 1; }; }
21740 if test "$enable_gss" = yes; then
21743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21744 if test -n "$ac_tool_prefix"; then
21745 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 case $PKG_CONFIG in
21754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21761 test -z "$as_dir" && as_dir=.
21762 for ac_exec_ext in '' $ac_executable_extensions; do
21763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21764 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21776 if test -n "$PKG_CONFIG"; then
21777 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21778 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21780 { echo "$as_me:$LINENO: result: no" >&5
21781 echo "${ECHO_T}no" >&6; }
21786 if test -z "$ac_cv_path_PKG_CONFIG"; then
21787 ac_pt_PKG_CONFIG=$PKG_CONFIG
21788 # Extract the first word of "pkg-config", so it can be a program name with args.
21789 set dummy pkg-config; ac_word=$2
21790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21792 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 case $ac_pt_PKG_CONFIG in
21797 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21804 test -z "$as_dir" && as_dir=.
21805 for ac_exec_ext in '' $ac_executable_extensions; do
21806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21819 if test -n "$ac_pt_PKG_CONFIG"; then
21820 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21821 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21823 { echo "$as_me:$LINENO: result: no" >&5
21824 echo "${ECHO_T}no" >&6; }
21827 if test "x$ac_pt_PKG_CONFIG" = x; then
21830 case $cross_compiling:$ac_tool_warned in
21832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21833 whose name does not start with the host triplet. If you think this
21834 configuration is useful to you, please write to autoconf@gnu.org." >&5
21835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21836 whose name does not start with the host triplet. If you think this
21837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21838 ac_tool_warned=yes ;;
21840 PKG_CONFIG=$ac_pt_PKG_CONFIG
21843 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21847 if test -n "$PKG_CONFIG"; then
21848 _pkg_min_version=0.9.0
21849 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21850 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21851 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21852 { echo "$as_me:$LINENO: result: yes" >&5
21853 echo "${ECHO_T}yes" >&6; }
21855 { echo "$as_me:$LINENO: result: no" >&5
21856 echo "${ECHO_T}no" >&6; }
21863 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21864 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21866 if test -n "$PKG_CONFIG"; then
21867 if test -n "$RPCSECGSS_CFLAGS"; then
21868 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21870 if test -n "$PKG_CONFIG" && \
21871 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21872 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; then
21876 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21884 if test -n "$PKG_CONFIG"; then
21885 if test -n "$RPCSECGSS_LIBS"; then
21886 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21888 if test -n "$PKG_CONFIG" && \
21889 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21890 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; then
21894 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21905 if test $pkg_failed = yes; then
21907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21908 _pkg_short_errors_supported=yes
21910 _pkg_short_errors_supported=no
21912 if test $_pkg_short_errors_supported = yes; then
21913 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21915 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21917 # Put the nasty error message in config.log where it belongs
21918 echo "$RPCSECGSS_PKG_ERRORS" >&5
21920 { echo "$as_me:$LINENO: result: no" >&5
21921 echo "${ECHO_T}no" >&6; }
21922 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21923 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21924 { (exit 1); exit 1; }; }
21927 elif test $pkg_failed = untried; then
21928 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21929 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21930 { (exit 1); exit 1; }; }
21934 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21935 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21936 { echo "$as_me:$LINENO: result: yes" >&5
21937 echo "${ECHO_T}yes" >&6; }
21942 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21943 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21945 if test -n "$PKG_CONFIG"; then
21946 if test -n "$GSSAPI_CFLAGS"; then
21947 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21949 if test -n "$PKG_CONFIG" && \
21950 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21951 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; then
21955 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21963 if test -n "$PKG_CONFIG"; then
21964 if test -n "$GSSAPI_LIBS"; then
21965 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21967 if test -n "$PKG_CONFIG" && \
21968 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21969 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; then
21973 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21984 if test $pkg_failed = yes; then
21986 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21987 _pkg_short_errors_supported=yes
21989 _pkg_short_errors_supported=no
21991 if test $_pkg_short_errors_supported = yes; then
21992 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21994 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21996 # Put the nasty error message in config.log where it belongs
21997 echo "$GSSAPI_PKG_ERRORS" >&5
21999 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22004 installed software in a non-standard prefix.
22006 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22007 and GSSAPI_LIBS to avoid the need to call pkg-config.
22008 See the pkg-config man page for more details.
22010 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22015 installed software in a non-standard prefix.
22017 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22018 and GSSAPI_LIBS to avoid the need to call pkg-config.
22019 See the pkg-config man page for more details.
22021 { (exit 1); exit 1; }; }
22022 elif test $pkg_failed = untried; then
22023 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22024 is in your PATH or set the PKG_CONFIG environment variable to the full
22025 path to pkg-config.
22027 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22028 and GSSAPI_LIBS to avoid the need to call pkg-config.
22029 See the pkg-config man page for more details.
22031 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22032 See \`config.log' for more details." >&5
22033 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22034 is in your PATH or set the PKG_CONFIG environment variable to the full
22035 path to pkg-config.
22037 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22038 and GSSAPI_LIBS to avoid the need to call pkg-config.
22039 See the pkg-config man page for more details.
22041 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22042 See \`config.log' for more details." >&2;}
22043 { (exit 1); exit 1; }; }
22045 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22046 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22047 { echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6; }
22054 if test "$knfsd_cv_glibc2" = no; then
22055 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22056 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22057 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 ac_check_lib_save_LIBS=$LIBS
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22069 /* Override any GCC internal prototype to avoid an error.
22070 Use char because int might match the return type of a GCC
22071 builtin and then its argument prototype would still apply. */
22084 rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 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 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest$ac_exeext &&
22101 $as_test_x conftest$ac_exeext; then
22102 ac_cv_lib_bsd_daemon=yes
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22107 ac_cv_lib_bsd_daemon=no
22110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22111 conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22114 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22115 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22116 if test $ac_cv_lib_bsd_daemon = yes; then
22121 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22122 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22123 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 ac_check_lib_save_LIBS=$LIBS
22127 LIBS="-lblkid $LIBS"
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22135 /* Override any GCC internal prototype to avoid an error.
22136 Use char because int might match the return type of a GCC
22137 builtin and then its argument prototype would still apply. */
22141 char blkid_get_cache ();
22145 return blkid_get_cache ();
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (ac_try="$ac_link"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_link") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest$ac_exeext &&
22167 $as_test_x conftest$ac_exeext; then
22168 ac_cv_lib_blkid_blkid_get_cache=yes
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22173 ac_cv_lib_blkid_blkid_get_cache=no
22176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22177 conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22180 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22181 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22182 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22185 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22186 echo "$as_me: error: libblkid needed" >&2;}
22187 { (exit 1); exit 1; }; }
22190 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22191 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22192 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22193 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22197 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22199 # Is the header compilable?
22200 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22201 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 $ac_includes_default
22209 #include <blkid/blkid.h>
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest.$ac_objext; then
22228 ac_header_compiler=yes
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ac_header_compiler=no
22236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22238 echo "${ECHO_T}$ac_header_compiler" >&6; }
22240 # Is the header present?
22241 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22242 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 #include <blkid/blkid.h>
22251 if { (ac_try="$ac_cpp conftest.$ac_ext"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22259 grep -v '^ *+' conftest.er1 >conftest.err
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } >/dev/null && {
22264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22267 ac_header_preproc=yes
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_header_preproc=no
22275 rm -f conftest.err conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22277 echo "${ECHO_T}$ac_header_preproc" >&6; }
22279 # So? What about this header?
22280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22282 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22283 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22285 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22286 ac_header_preproc=yes
22289 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22290 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
22292 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22294 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
22296 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22298 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22300 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22302 ## ------------------------------- ##
22303 ## Report this to nfs@lists.sf.net ##
22304 ## ------------------------------- ##
22306 ) | sed "s/^/$as_me: WARNING: /" >&2
22309 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22310 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 ac_cv_header_blkid_blkid_h=$ac_header_preproc
22316 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22317 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22320 if test $ac_cv_header_blkid_blkid_h = yes; then
22323 { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22324 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22325 { (exit 1); exit 1; }; }
22334 if test "$enable_gss" = yes; then
22336 for ac_header in nfsidmap.h
22338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 ac_res=`eval echo '${'$as_ac_Header'}'`
22346 { echo "$as_me:$LINENO: result: $ac_res" >&5
22347 echo "${ECHO_T}$ac_res" >&6; }
22349 # Is the header compilable?
22350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22352 cat >conftest.$ac_ext <<_ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 $ac_includes_default
22359 #include <$ac_header>
22361 rm -f conftest.$ac_objext
22362 if { (ac_try="$ac_compile"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22378 ac_header_compiler=yes
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_header_compiler=no
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 echo "${ECHO_T}$ac_header_compiler" >&6; }
22390 # Is the header present?
22391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 #include <$ac_header>
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
22414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22417 ac_header_preproc=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_header_preproc=no
22425 rm -f conftest.err conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22427 echo "${ECHO_T}$ac_header_preproc" >&6; }
22429 # So? What about this header?
22430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22436 ac_header_preproc=yes
22439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22452 ## ------------------------------- ##
22453 ## Report this to nfs@lists.sf.net ##
22454 ## ------------------------------- ##
22456 ) | sed "s/^/$as_me: WARNING: /" >&2
22459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 eval "$as_ac_Header=\$ac_header_preproc"
22466 ac_res=`eval echo '${'$as_ac_Header'}'`
22467 { echo "$as_me:$LINENO: result: $ac_res" >&5
22468 echo "${ECHO_T}$ac_res" >&6; }
22471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22472 cat >>confdefs.h <<_ACEOF
22473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22477 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22478 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22479 { (exit 1); exit 1; }; }
22485 for ac_header in spkm3.h
22487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 ac_res=`eval echo '${'$as_ac_Header'}'`
22495 { echo "$as_me:$LINENO: result: $ac_res" >&5
22496 echo "${ECHO_T}$ac_res" >&6; }
22498 # Is the header compilable?
22499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 $ac_includes_default
22508 #include <$ac_header>
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_compile") 2>conftest.er1
22519 grep -v '^ *+' conftest.er1 >conftest.err
22521 cat conftest.err >&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && {
22524 test -z "$ac_c_werror_flag" ||
22525 test ! -s conftest.err
22526 } && test -s conftest.$ac_objext; then
22527 ac_header_compiler=yes
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ac_header_compiler=no
22535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22537 echo "${ECHO_T}$ac_header_compiler" >&6; }
22539 # Is the header present?
22540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 #include <$ac_header>
22550 if { (ac_try="$ac_cpp conftest.$ac_ext"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } >/dev/null && {
22563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22564 test ! -s conftest.err
22566 ac_header_preproc=yes
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ac_header_preproc=no
22574 rm -f conftest.err conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22576 echo "${ECHO_T}$ac_header_preproc" >&6; }
22578 # So? What about this header?
22579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22585 ac_header_preproc=yes
22588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22601 ## ------------------------------- ##
22602 ## Report this to nfs@lists.sf.net ##
22603 ## ------------------------------- ##
22605 ) | sed "s/^/$as_me: WARNING: /" >&2
22608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 eval "$as_ac_Header=\$ac_header_preproc"
22615 ac_res=`eval echo '${'$as_ac_Header'}'`
22616 { echo "$as_me:$LINENO: result: $ac_res" >&5
22617 echo "${ECHO_T}$ac_res" >&6; }
22620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22621 cat >>confdefs.h <<_ACEOF
22622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22626 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22627 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22632 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22633 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 ac_check_lib_save_LIBS=$LIBS
22638 LIBS="-lnfsidmap $LIBS"
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22652 char nfs4_set_debug ();
22656 return nfs4_set_debug ();
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest$ac_exeext &&
22678 $as_test_x conftest$ac_exeext; then
22679 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688 conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22692 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22693 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22695 cat >>confdefs.h <<\_ACEOF
22696 #define HAVE_NFS4_SET_DEBUG 1
22703 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22704 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22706 # Check whether --with-krb5 was given.
22707 if test "${with_krb5+set}" = set; then
22708 withval=$with_krb5; case "$withval" in
22713 krb5_with="$withval"
22720 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22721 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22723 if test -f $dir/bin/krb5-config; then
22724 K5CONFIG=$dir/bin/krb5-config
22725 elif test -f "/usr/kerberos/bin/krb5-config"; then
22726 K5CONFIG="/usr/kerberos/bin/krb5-config"
22727 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22728 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22730 if test "$K5CONFIG" != ""; then
22731 KRBCFLAGS=`$K5CONFIG --cflags`
22732 KRBLIBS=`$K5CONFIG --libs gssapi`
22733 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22735 cat >>confdefs.h <<_ACEOF
22736 #define KRB5_VERSION $K5VERS
22739 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22740 \( -f $dir/lib/libgssapi_krb5.a -o \
22741 -f $dir/lib/libgssapi_krb5.so \) ; then
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_KRB5 1
22748 if test $K5VERS -le 131; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define USE_GSS_KRB5_CCACHE_NAME 1
22755 gssapi_lib=gssapi_krb5
22757 elif test \( -f $dir/include/heim_err.h -o\
22758 -f $dir/include/heimdal/heim_err.h \) -a \
22759 -f $dir/lib/libroken.a; then
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_HEIMDAL 1
22771 if test "x$KRBDIR" = "x"; then
22772 if test "x$krb5_with" = "x"; then
22773 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22774 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22775 { (exit 1); exit 1; }; }
22777 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22778 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22779 { (exit 1); exit 1; }; }
22782 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22783 echo "${ECHO_T}$KRBDIR" >&6; }
22785 echo "The current KRBDIR is $KRBDIR"
22786 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22787 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22789 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22792 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22795 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22796 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22797 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 ac_check_lib_save_LIBS=$LIBS
22802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22816 char gss_krb5_export_lucid_sec_context ();
22820 return gss_krb5_export_lucid_sec_context ();
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest$ac_exeext &&
22842 $as_test_x conftest$ac_exeext; then
22843 eval "$as_ac_Lib=yes"
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 eval "$as_ac_Lib=no"
22851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852 conftest$ac_exeext conftest.$ac_ext
22853 LIBS=$ac_check_lib_save_LIBS
22855 ac_res=`eval echo '${'$as_ac_Lib'}'`
22856 { echo "$as_me:$LINENO: result: $ac_res" >&5
22857 echo "${ECHO_T}$ac_res" >&6; }
22858 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22860 cat >>confdefs.h <<\_ACEOF
22861 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22866 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22867 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22868 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22869 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 ac_check_lib_save_LIBS=$LIBS
22873 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* Override any GCC internal prototype to avoid an error.
22882 Use char because int might match the return type of a GCC
22883 builtin and then its argument prototype would still apply. */
22887 char gss_krb5_set_allowable_enctypes ();
22891 return gss_krb5_set_allowable_enctypes ();
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_link") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest$ac_exeext &&
22913 $as_test_x conftest$ac_exeext; then
22914 eval "$as_ac_Lib=yes"
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 eval "$as_ac_Lib=no"
22922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22923 conftest$ac_exeext conftest.$ac_ext
22924 LIBS=$ac_check_lib_save_LIBS
22926 ac_res=`eval echo '${'$as_ac_Lib'}'`
22927 { echo "$as_me:$LINENO: result: $ac_res" >&5
22928 echo "${ECHO_T}$ac_res" >&6; }
22929 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22931 cat >>confdefs.h <<\_ACEOF
22932 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22937 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22938 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22939 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 ac_check_lib_save_LIBS=$LIBS
22944 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22952 /* Override any GCC internal prototype to avoid an error.
22953 Use char because int might match the return type of a GCC
22954 builtin and then its argument prototype would still apply. */
22958 char gss_krb5_ccache_name ();
22962 return gss_krb5_ccache_name ();
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (ac_try="$ac_link"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_link") 2>conftest.er1
22976 grep -v '^ *+' conftest.er1 >conftest.err
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } && {
22981 test -z "$ac_c_werror_flag" ||
22982 test ! -s conftest.err
22983 } && test -s conftest$ac_exeext &&
22984 $as_test_x conftest$ac_exeext; then
22985 eval "$as_ac_Lib=yes"
22987 echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22990 eval "$as_ac_Lib=no"
22993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22994 conftest$ac_exeext conftest.$ac_ext
22995 LIBS=$ac_check_lib_save_LIBS
22997 ac_res=`eval echo '${'$as_ac_Lib'}'`
22998 { echo "$as_me:$LINENO: result: $ac_res" >&5
22999 echo "${ECHO_T}$ac_res" >&6; }
23000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23002 cat >>confdefs.h <<\_ACEOF
23003 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23009 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23010 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23011 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23022 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23023 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23024 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23027 ac_check_lib_save_LIBS=$LIBS
23028 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23029 cat >conftest.$ac_ext <<_ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23036 /* Override any GCC internal prototype to avoid an error.
23037 Use char because int might match the return type of a GCC
23038 builtin and then its argument prototype would still apply. */
23042 char authgss_create_default ();
23046 return authgss_create_default ();
23051 rm -f conftest.$ac_objext conftest$ac_exeext
23052 if { (ac_try="$ac_link"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_link") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest$ac_exeext &&
23068 $as_test_x conftest$ac_exeext; then
23069 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23071 echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_lib_rpcsecgss_authgss_create_default=no
23077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23078 conftest$ac_exeext conftest.$ac_ext
23079 LIBS=$ac_check_lib_save_LIBS
23081 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23082 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23083 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23086 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23087 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23088 { (exit 1); exit 1; }; }
23091 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23092 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23093 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 ac_check_lib_save_LIBS=$LIBS
23097 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23105 /* Override any GCC internal prototype to avoid an error.
23106 Use char because int might match the return type of a GCC
23107 builtin and then its argument prototype would still apply. */
23111 char authgss_set_debug_level ();
23115 return authgss_set_debug_level ();
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (ac_try="$ac_link"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_link") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest$ac_exeext &&
23137 $as_test_x conftest$ac_exeext; then
23138 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23147 conftest$ac_exeext conftest.$ac_ext
23148 LIBS=$ac_check_lib_save_LIBS
23150 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23151 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23152 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23186 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23187 malloc.h memory.h netdb.h netinet/in.h paths.h \
23188 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23189 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23190 syslog.h unistd.h com_err.h et/com_err.h \
23193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 ac_res=`eval echo '${'$as_ac_Header'}'`
23201 { echo "$as_me:$LINENO: result: $ac_res" >&5
23202 echo "${ECHO_T}$ac_res" >&6; }
23204 # Is the header compilable?
23205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23214 #include <$ac_header>
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_compile") 2>conftest.er1
23225 grep -v '^ *+' conftest.er1 >conftest.err
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest.$ac_objext; then
23233 ac_header_compiler=yes
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ac_header_compiler=no
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23243 echo "${ECHO_T}$ac_header_compiler" >&6; }
23245 # Is the header present?
23246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 #include <$ac_header>
23256 if { (ac_try="$ac_cpp conftest.$ac_ext"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } >/dev/null && {
23269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23272 ac_header_preproc=yes
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_header_preproc=no
23280 rm -f conftest.err conftest.$ac_ext
23281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23282 echo "${ECHO_T}$ac_header_preproc" >&6; }
23284 # So? What about this header?
23285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23291 ac_header_preproc=yes
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23307 ## ------------------------------- ##
23308 ## Report this to nfs@lists.sf.net ##
23309 ## ------------------------------- ##
23311 ) | sed "s/^/$as_me: WARNING: /" >&2
23314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23319 eval "$as_ac_Header=\$ac_header_preproc"
23321 ac_res=`eval echo '${'$as_ac_Header'}'`
23322 { echo "$as_me:$LINENO: result: $ac_res" >&5
23323 echo "${ECHO_T}$ac_res" >&6; }
23326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23327 cat >>confdefs.h <<_ACEOF
23328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23336 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23338 if test "${ac_cv_c_const+set}" = set; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23351 /* FIXME: Include the comments suggested by Paul. */
23352 #ifndef __cplusplus
23353 /* Ultrix mips cc rejects this. */
23354 typedef int charset[2];
23356 /* SunOS 4.1.1 cc rejects this. */
23357 char const *const *pcpcc;
23359 /* NEC SVR4.0.2 mips cc rejects this. */
23360 struct point {int x, y;};
23361 static struct point const zero = {0,0};
23362 /* AIX XL C 1.02.0.0 rejects this.
23363 It does not let you subtract one const X* pointer from another in
23364 an arm of an if-expression whose if-part is not a constant
23366 const char *g = "string";
23367 pcpcc = &g + (g ? g-g : 0);
23368 /* HPUX 7.0 cc rejects these. */
23370 ppc = (char**) pcpcc;
23371 pcpcc = (char const *const *) ppc;
23372 { /* SCO 3.2v4 cc rejects this. */
23374 char const *s = 0 ? (char *) 0 : (char const *) 0;
23379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23380 int x[] = {25, 17};
23381 const int *foo = &x[0];
23384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23385 typedef const int *iptr;
23389 { /* AIX XL C 1.02.0.0 rejects this saying
23390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23391 struct s { int j; const int *ap[3]; };
23392 struct s *b; b->j = 5;
23394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23395 const int foo = 10;
23396 if (!foo) return 0;
23398 return !cs[0] && !zero.x;
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412 (eval "$ac_compile") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23433 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23434 if test $ac_cv_c_const = no; then
23436 cat >>confdefs.h <<\_ACEOF
23442 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23444 if test "${ac_cv_type_uid_t+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 #include <sys/types.h>
23456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23457 $EGREP "uid_t" >/dev/null 2>&1; then
23458 ac_cv_type_uid_t=yes
23460 ac_cv_type_uid_t=no
23465 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23466 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23467 if test $ac_cv_type_uid_t = no; then
23469 cat >>confdefs.h <<\_ACEOF
23474 cat >>confdefs.h <<\_ACEOF
23480 { echo "$as_me:$LINENO: checking for inline" >&5
23481 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23482 if test "${ac_cv_c_inline+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 for ac_kw in inline __inline__ __inline; do
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 #ifndef __cplusplus
23495 static $ac_kw foo_t static_foo () {return 0; }
23496 $ac_kw foo_t foo () {return 0; }
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_compile") 2>conftest.er1
23509 grep -v '^ *+' conftest.er1 >conftest.err
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest.$ac_objext; then
23517 ac_cv_c_inline=$ac_kw
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 test "$ac_cv_c_inline" != no && break
23530 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23531 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23534 case $ac_cv_c_inline in
23537 case $ac_cv_c_inline in
23539 *) ac_val=$ac_cv_c_inline;;
23541 cat >>confdefs.h <<_ACEOF
23542 #ifndef __cplusplus
23543 #define inline $ac_val
23549 { echo "$as_me:$LINENO: checking for off_t" >&5
23550 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23551 if test "${ac_cv_type_off_t+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 $ac_includes_default
23561 typedef off_t ac__type_new_;
23565 if ((ac__type_new_ *) 0)
23567 if (sizeof (ac__type_new_))
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_cv_type_off_t=yes
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_cv_type_off_t=no
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23601 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23602 if test $ac_cv_type_off_t = yes; then
23606 cat >>confdefs.h <<_ACEOF
23607 #define off_t long int
23612 { echo "$as_me:$LINENO: checking for pid_t" >&5
23613 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23614 if test "${ac_cv_type_pid_t+set}" = set; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 cat >conftest.$ac_ext <<_ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 $ac_includes_default
23624 typedef pid_t ac__type_new_;
23628 if ((ac__type_new_ *) 0)
23630 if (sizeof (ac__type_new_))
23636 rm -f conftest.$ac_objext
23637 if { (ac_try="$ac_compile"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 ac_cv_type_pid_t=yes
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23658 ac_cv_type_pid_t=no
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23665 if test $ac_cv_type_pid_t = yes; then
23669 cat >>confdefs.h <<_ACEOF
23675 { echo "$as_me:$LINENO: checking for size_t" >&5
23676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23677 if test "${ac_cv_type_size_t+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 $ac_includes_default
23687 typedef size_t ac__type_new_;
23691 if ((ac__type_new_ *) 0)
23693 if (sizeof (ac__type_new_))
23699 rm -f conftest.$ac_objext
23700 if { (ac_try="$ac_compile"
23701 case "(($ac_try" in
23702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703 *) ac_try_echo=$ac_try;;
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1 >conftest.err
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23716 ac_cv_type_size_t=yes
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 ac_cv_type_size_t=no
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23727 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23728 if test $ac_cv_type_size_t = yes; then
23732 cat >>confdefs.h <<_ACEOF
23733 #define size_t unsigned int
23738 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23739 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23740 if test "${ac_cv_header_time+set}" = set; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23743 cat >conftest.$ac_ext <<_ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <sys/types.h>
23750 #include <sys/time.h>
23756 if ((struct tm *) 0)
23762 rm -f conftest.$ac_objext
23763 if { (ac_try="$ac_compile"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_compile") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest.$ac_objext; then
23779 ac_cv_header_time=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_header_time=no
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23791 if test $ac_cv_header_time = yes; then
23793 cat >>confdefs.h <<\_ACEOF
23794 #define TIME_WITH_SYS_TIME 1
23799 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23800 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23801 if test "${ac_cv_struct_tm+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 #include <sys/types.h>
23817 int *p = &tm.tm_sec;
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_compile") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest.$ac_objext; then
23840 ac_cv_struct_tm=time.h
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 ac_cv_struct_tm=sys/time.h
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23851 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23852 if test $ac_cv_struct_tm = sys/time.h; then
23854 cat >>confdefs.h <<\_ACEOF
23855 #define TM_IN_SYS_TIME 1
23861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23862 # for constant arguments. Useless!
23863 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23864 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23865 if test "${ac_cv_working_alloca_h+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 #include <alloca.h>
23878 char *p = (char *) alloca (2 * sizeof (int));
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_link") 2>conftest.er1
23893 grep -v '^ *+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } && {
23898 test -z "$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 } && test -s conftest$ac_exeext &&
23901 $as_test_x conftest$ac_exeext; then
23902 ac_cv_working_alloca_h=yes
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_cv_working_alloca_h=no
23910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23911 conftest$ac_exeext conftest.$ac_ext
23913 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23915 if test $ac_cv_working_alloca_h = yes; then
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_ALLOCA_H 1
23923 { echo "$as_me:$LINENO: checking for alloca" >&5
23924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23925 if test "${ac_cv_func_alloca_works+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23935 # define alloca __builtin_alloca
23938 # include <malloc.h>
23939 # define alloca _alloca
23941 # ifdef HAVE_ALLOCA_H
23942 # include <alloca.h>
23947 # ifndef alloca /* predefined by HP cc +Olibcalls */
23958 char *p = (char *) alloca (1);
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (ac_try="$ac_link"
23966 case "(($ac_try" in
23967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968 *) ac_try_echo=$ac_try;;
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971 (eval "$ac_link") 2>conftest.er1
23973 grep -v '^ *+' conftest.er1 >conftest.err
23975 cat conftest.err >&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } && {
23978 test -z "$ac_c_werror_flag" ||
23979 test ! -s conftest.err
23980 } && test -s conftest$ac_exeext &&
23981 $as_test_x conftest$ac_exeext; then
23982 ac_cv_func_alloca_works=yes
23984 echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23987 ac_cv_func_alloca_works=no
23990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23991 conftest$ac_exeext conftest.$ac_ext
23993 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23994 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23996 if test $ac_cv_func_alloca_works = yes; then
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_ALLOCA 1
24003 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24004 # that cause trouble. Some versions do not even contain alloca or
24005 # contain a buggy version. If you still want to use their alloca,
24006 # use ar to extract alloca.o from them instead of compiling alloca.c.
24008 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24010 cat >>confdefs.h <<\_ACEOF
24015 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24016 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24017 if test "${ac_cv_os_cray+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 cat >conftest.$ac_ext <<_ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 #if defined CRAY && ! defined CRAY2
24033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24034 $EGREP "webecray" >/dev/null 2>&1; then
24042 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24043 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24044 if test $ac_cv_os_cray = yes; then
24045 for ac_func in _getb67 GETB67 getb67; do
24046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 cat >conftest.$ac_ext <<_ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h. */
24058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24060 #define $ac_func innocuous_$ac_func
24062 /* System header to define __stub macros and hopefully few prototypes,
24063 which can conflict with char $ac_func (); below.
24064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24065 <limits.h> exists even on freestanding compilers. */
24068 # include <limits.h>
24070 # include <assert.h>
24075 /* Override any GCC internal prototype to avoid an error.
24076 Use char because int might match the return type of a GCC
24077 builtin and then its argument prototype would still apply. */
24082 /* The GNU C library defines this for functions which it implements
24083 to always fail with ENOSYS. Some functions are actually named
24084 something starting with __ and the normal name is an alias. */
24085 #if defined __stub_$ac_func || defined __stub___$ac_func
24092 return $ac_func ();
24097 rm -f conftest.$ac_objext conftest$ac_exeext
24098 if { (ac_try="$ac_link"
24099 case "(($ac_try" in
24100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101 *) ac_try_echo=$ac_try;;
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
24112 test ! -s conftest.err
24113 } && test -s conftest$ac_exeext &&
24114 $as_test_x conftest$ac_exeext; then
24115 eval "$as_ac_var=yes"
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 eval "$as_ac_var=no"
24123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24124 conftest$ac_exeext conftest.$ac_ext
24126 ac_res=`eval echo '${'$as_ac_var'}'`
24127 { echo "$as_me:$LINENO: result: $ac_res" >&5
24128 echo "${ECHO_T}$ac_res" >&6; }
24129 if test `eval echo '${'$as_ac_var'}'` = yes; then
24131 cat >>confdefs.h <<_ACEOF
24132 #define CRAY_STACKSEG_END $ac_func
24141 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24142 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24143 if test "${ac_cv_c_stack_direction+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 if test "$cross_compiling" = yes; then
24147 ac_cv_c_stack_direction=0
24149 cat >conftest.$ac_ext <<_ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 $ac_includes_default
24157 find_stack_direction ()
24159 static char *addr = 0;
24164 return find_stack_direction ();
24167 return (&dummy > addr) ? 1 : -1;
24173 return find_stack_direction () < 0;
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_link") 2>&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187 { (case "(($ac_try" in
24188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189 *) ac_try_echo=$ac_try;;
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192 (eval "$ac_try") 2>&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; }; then
24196 ac_cv_c_stack_direction=1
24198 echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24202 ( exit $ac_status )
24203 ac_cv_c_stack_direction=-1
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24210 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24211 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24213 cat >>confdefs.h <<_ACEOF
24214 #define STACK_DIRECTION $ac_cv_c_stack_direction
24225 ac_header_dirent=no
24226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24227 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 #include <sys/types.h>
24251 rm -f conftest.$ac_objext
24252 if { (ac_try="$ac_compile"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 eval "$as_ac_Header=yes"
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 eval "$as_ac_Header=no"
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279 { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24286 ac_header_dirent=$ac_hdr; break
24290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24291 if test $ac_header_dirent = dirent.h; then
24292 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24293 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24294 if test "${ac_cv_search_opendir+set}" = set; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 ac_func_search_save_LIBS=$LIBS
24298 cat >conftest.$ac_ext <<_ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24305 /* Override any GCC internal prototype to avoid an error.
24306 Use char because int might match the return type of a GCC
24307 builtin and then its argument prototype would still apply. */
24320 for ac_lib in '' dir; do
24321 if test -z "$ac_lib"; then
24322 ac_res="none required"
24325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (ac_try="$ac_link"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_link") 2>conftest.er1
24336 grep -v '^ *+' conftest.er1 >conftest.err
24338 cat conftest.err >&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } && {
24341 test -z "$ac_c_werror_flag" ||
24342 test ! -s conftest.err
24343 } && test -s conftest$ac_exeext &&
24344 $as_test_x conftest$ac_exeext; then
24345 ac_cv_search_opendir=$ac_res
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24355 if test "${ac_cv_search_opendir+set}" = set; then
24359 if test "${ac_cv_search_opendir+set}" = set; then
24362 ac_cv_search_opendir=no
24364 rm conftest.$ac_ext
24365 LIBS=$ac_func_search_save_LIBS
24367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24369 ac_res=$ac_cv_search_opendir
24370 if test "$ac_res" != no; then
24371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24376 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24378 if test "${ac_cv_search_opendir+set}" = set; then
24379 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 ac_func_search_save_LIBS=$LIBS
24382 cat >conftest.$ac_ext <<_ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24389 /* Override any GCC internal prototype to avoid an error.
24390 Use char because int might match the return type of a GCC
24391 builtin and then its argument prototype would still apply. */
24404 for ac_lib in '' x; do
24405 if test -z "$ac_lib"; then
24406 ac_res="none required"
24409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24411 rm -f conftest.$ac_objext conftest$ac_exeext
24412 if { (ac_try="$ac_link"
24413 case "(($ac_try" in
24414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415 *) ac_try_echo=$ac_try;;
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418 (eval "$ac_link") 2>conftest.er1
24420 grep -v '^ *+' conftest.er1 >conftest.err
24422 cat conftest.err >&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest$ac_exeext &&
24428 $as_test_x conftest$ac_exeext; then
24429 ac_cv_search_opendir=$ac_res
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24439 if test "${ac_cv_search_opendir+set}" = set; then
24443 if test "${ac_cv_search_opendir+set}" = set; then
24446 ac_cv_search_opendir=no
24448 rm conftest.$ac_ext
24449 LIBS=$ac_func_search_save_LIBS
24451 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24452 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24453 ac_res=$ac_cv_search_opendir
24454 if test "$ac_res" != no; then
24455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24461 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24462 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24463 if test "${ac_cv_func_closedir_void+set}" = set; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24466 if test "$cross_compiling" = yes; then
24467 ac_cv_func_closedir_void=yes
24469 cat >conftest.$ac_ext <<_ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24475 $ac_includes_default
24476 #include <$ac_header_dirent>
24477 #ifndef __cplusplus
24484 return closedir (opendir (".")) != 0;
24489 rm -f conftest$ac_exeext
24490 if { (ac_try="$ac_link"
24491 case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_link") 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24500 { (case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_try") 2>&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); }; }; then
24509 ac_cv_func_closedir_void=no
24511 echo "$as_me: program exited with status $ac_status" >&5
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ( exit $ac_status )
24516 ac_cv_func_closedir_void=yes
24518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24523 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24524 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24525 if test $ac_cv_func_closedir_void = yes; then
24527 cat >>confdefs.h <<\_ACEOF
24528 #define CLOSEDIR_VOID 1
24533 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24534 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_error_at_line+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 cat >conftest.$ac_ext <<_ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24548 error_at_line (0, 0, "", 0, "an error occurred");
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (ac_try="$ac_link"
24555 case "(($ac_try" in
24556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560 (eval "$ac_link") 2>conftest.er1
24562 grep -v '^ *+' conftest.er1 >conftest.err
24564 cat conftest.err >&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } && {
24567 test -z "$ac_c_werror_flag" ||
24568 test ! -s conftest.err
24569 } && test -s conftest$ac_exeext &&
24570 $as_test_x conftest$ac_exeext; then
24571 ac_cv_lib_error_at_line=yes
24573 echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24576 ac_cv_lib_error_at_line=no
24579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24580 conftest$ac_exeext conftest.$ac_ext
24582 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24583 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24584 if test $ac_cv_lib_error_at_line = no; then
24585 case " $LIBOBJS " in
24586 *" error.$ac_objext "* ) ;;
24587 *) LIBOBJS="$LIBOBJS error.$ac_objext"
24594 for ac_header in vfork.h
24596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 ac_res=`eval echo '${'$as_ac_Header'}'`
24604 { echo "$as_me:$LINENO: result: $ac_res" >&5
24605 echo "${ECHO_T}$ac_res" >&6; }
24607 # Is the header compilable?
24608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24610 cat >conftest.$ac_ext <<_ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24616 $ac_includes_default
24617 #include <$ac_header>
24619 rm -f conftest.$ac_objext
24620 if { (ac_try="$ac_compile"
24621 case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_compile") 2>conftest.er1
24628 grep -v '^ *+' conftest.er1 >conftest.err
24630 cat conftest.err >&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } && {
24633 test -z "$ac_c_werror_flag" ||
24634 test ! -s conftest.err
24635 } && test -s conftest.$ac_objext; then
24636 ac_header_compiler=yes
24638 echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24641 ac_header_compiler=no
24644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24646 echo "${ECHO_T}$ac_header_compiler" >&6; }
24648 # Is the header present?
24649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24657 #include <$ac_header>
24659 if { (ac_try="$ac_cpp conftest.$ac_ext"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } >/dev/null && {
24672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24675 ac_header_preproc=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_header_preproc=no
24683 rm -f conftest.err conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24685 echo "${ECHO_T}$ac_header_preproc" >&6; }
24687 # So? What about this header?
24688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24694 ac_header_preproc=yes
24697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24710 ## ------------------------------- ##
24711 ## Report this to nfs@lists.sf.net ##
24712 ## ------------------------------- ##
24714 ) | sed "s/^/$as_me: WARNING: /" >&2
24717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 eval "$as_ac_Header=\$ac_header_preproc"
24724 ac_res=`eval echo '${'$as_ac_Header'}'`
24725 { echo "$as_me:$LINENO: result: $ac_res" >&5
24726 echo "${ECHO_T}$ac_res" >&6; }
24729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24730 cat >>confdefs.h <<_ACEOF
24731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24740 for ac_func in fork vfork
24742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24756 #define $ac_func innocuous_$ac_func
24758 /* System header to define __stub macros and hopefully few prototypes,
24759 which can conflict with char $ac_func (); below.
24760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24761 <limits.h> exists even on freestanding compilers. */
24764 # include <limits.h>
24766 # include <assert.h>
24771 /* Override any GCC internal prototype to avoid an error.
24772 Use char because int might match the return type of a GCC
24773 builtin and then its argument prototype would still apply. */
24778 /* The GNU C library defines this for functions which it implements
24779 to always fail with ENOSYS. Some functions are actually named
24780 something starting with __ and the normal name is an alias. */
24781 #if defined __stub_$ac_func || defined __stub___$ac_func
24788 return $ac_func ();
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (ac_try="$ac_link"
24795 case "(($ac_try" in
24796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797 *) ac_try_echo=$ac_try;;
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800 (eval "$ac_link") 2>conftest.er1
24802 grep -v '^ *+' conftest.er1 >conftest.err
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && {
24807 test -z "$ac_c_werror_flag" ||
24808 test ! -s conftest.err
24809 } && test -s conftest$ac_exeext &&
24810 $as_test_x conftest$ac_exeext; then
24811 eval "$as_ac_var=yes"
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 eval "$as_ac_var=no"
24819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24820 conftest$ac_exeext conftest.$ac_ext
24822 ac_res=`eval echo '${'$as_ac_var'}'`
24823 { echo "$as_me:$LINENO: result: $ac_res" >&5
24824 echo "${ECHO_T}$ac_res" >&6; }
24825 if test `eval echo '${'$as_ac_var'}'` = yes; then
24826 cat >>confdefs.h <<_ACEOF
24827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24833 if test "x$ac_cv_func_fork" = xyes; then
24834 { echo "$as_me:$LINENO: checking for working fork" >&5
24835 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24836 if test "${ac_cv_func_fork_works+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 if test "$cross_compiling" = yes; then
24840 ac_cv_func_fork_works=cross
24842 cat >conftest.$ac_ext <<_ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h. */
24848 $ac_includes_default
24853 /* By Ruediger Kuhlmann. */
24854 return fork () < 0;
24860 rm -f conftest$ac_exeext
24861 if { (ac_try="$ac_link"
24862 case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_link") 2>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24871 { (case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_try") 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 ac_cv_func_fork_works=yes
24882 echo "$as_me: program exited with status $ac_status" >&5
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 ( exit $ac_status )
24887 ac_cv_func_fork_works=no
24889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24894 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24895 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24898 ac_cv_func_fork_works=$ac_cv_func_fork
24900 if test "x$ac_cv_func_fork_works" = xcross; then
24902 *-*-amigaos* | *-*-msdosdjgpp*)
24903 # Override, as these systems have only a dummy fork() stub
24904 ac_cv_func_fork_works=no
24907 ac_cv_func_fork_works=yes
24910 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24911 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24913 ac_cv_func_vfork_works=$ac_cv_func_vfork
24914 if test "x$ac_cv_func_vfork" = xyes; then
24915 { echo "$as_me:$LINENO: checking for working vfork" >&5
24916 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24917 if test "${ac_cv_func_vfork_works+set}" = set; then
24918 echo $ECHO_N "(cached) $ECHO_C" >&6
24920 if test "$cross_compiling" = yes; then
24921 ac_cv_func_vfork_works=cross
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24929 /* Thanks to Paul Eggert for this test. */
24930 $ac_includes_default
24931 #include <sys/wait.h>
24932 #ifdef HAVE_VFORK_H
24933 # include <vfork.h>
24935 /* On some sparc systems, changes by the child to local and incoming
24936 argument registers are propagated back to the parent. The compiler
24937 is told about this with #include <vfork.h>, but some compilers
24938 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24939 static variable whose address is put into a register that is
24940 clobbered by the vfork. */
24943 sparc_address_test (int arg)
24945 sparc_address_test (arg) int arg;
24948 static pid_t child;
24966 pid_t parent = getpid ();
24969 sparc_address_test (0);
24974 /* Here is another test for sparc vfork register problems. This
24975 test uses lots of local variables, at least as many local
24976 variables as main has allocated so far including compiler
24977 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24978 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24979 reuse the register of parent for one of the local variables,
24980 since it will think that parent can't possibly be used any more
24981 in this routine. Assigning to the local variable will thus
24982 munge parent in the parent process. */
24984 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24985 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24986 /* Convince the compiler that p..p7 are live; otherwise, it might
24987 use the same hardware register for all 8 local variables. */
24988 if (p != p1 || p != p2 || p != p3 || p != p4
24989 || p != p5 || p != p6 || p != p7)
24992 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24993 from child file descriptors. If the child closes a descriptor
24994 before it execs or exits, this munges the parent's descriptor
24995 as well. Test for this by closing stdout in the child. */
24996 _exit(close(fileno(stdout)) != 0);
25001 while (wait(&status) != child)
25004 /* Was there some problem with vforking? */
25007 /* Did the child fail? (This shouldn't happen.) */
25010 /* Did the vfork/compiler bug occur? */
25011 || parent != getpid()
25013 /* Did the file descriptor bug occur? */
25014 || fstat(fileno(stdout), &st) != 0
25019 rm -f conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 (eval "$ac_try") 2>&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 ac_cv_func_vfork_works=yes
25041 echo "$as_me: program exited with status $ac_status" >&5
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 ( exit $ac_status )
25046 ac_cv_func_vfork_works=no
25048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25053 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25054 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25057 if test "x$ac_cv_func_fork_works" = xcross; then
25058 ac_cv_func_vfork_works=$ac_cv_func_vfork
25059 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25060 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25063 if test "x$ac_cv_func_vfork_works" = xyes; then
25065 cat >>confdefs.h <<\_ACEOF
25066 #define HAVE_WORKING_VFORK 1
25071 cat >>confdefs.h <<\_ACEOF
25076 if test "x$ac_cv_func_fork_works" = xyes; then
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_WORKING_FORK 1
25084 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25085 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25086 if test "${ac_cv_type_getgroups+set}" = set; then
25087 echo $ECHO_N "(cached) $ECHO_C" >&6
25089 if test "$cross_compiling" = yes; then
25090 ac_cv_type_getgroups=cross
25092 cat >conftest.$ac_ext <<_ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 /* Thanks to Mike Rendell for this test. */
25099 $ac_includes_default
25102 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25107 gid_t gidset[NGID];
25109 union { gid_t gval; long int lval; } val;
25112 for (i = 0; i < NGID; i++)
25113 gidset[i] = val.gval;
25114 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25116 /* Exit non-zero if getgroups seems to require an array of ints. This
25117 happens when gid_t is short int but getgroups modifies an array
25119 return n > 0 && gidset[n] != val.gval;
25122 rm -f conftest$ac_exeext
25123 if { (ac_try="$ac_link"
25124 case "(($ac_try" in
25125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129 (eval "$ac_link") 2>&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25133 { (case "(($ac_try" in
25134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135 *) ac_try_echo=$ac_try;;
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138 (eval "$ac_try") 2>&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 ac_cv_type_getgroups=gid_t
25144 echo "$as_me: program exited with status $ac_status" >&5
25145 echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25148 ( exit $ac_status )
25149 ac_cv_type_getgroups=int
25151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25155 if test $ac_cv_type_getgroups = cross; then
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 #include <unistd.h>
25165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25166 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25167 ac_cv_type_getgroups=gid_t
25169 ac_cv_type_getgroups=int
25175 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25176 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25178 cat >>confdefs.h <<_ACEOF
25179 #define GETGROUPS_T $ac_cv_type_getgroups
25183 { echo "$as_me:$LINENO: checking for getgroups" >&5
25184 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25185 if test "${ac_cv_func_getgroups+set}" = set; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 cat >conftest.$ac_ext <<_ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25196 #define getgroups innocuous_getgroups
25198 /* System header to define __stub macros and hopefully few prototypes,
25199 which can conflict with char getgroups (); below.
25200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25201 <limits.h> exists even on freestanding compilers. */
25204 # include <limits.h>
25206 # include <assert.h>
25211 /* Override any GCC internal prototype to avoid an error.
25212 Use char because int might match the return type of a GCC
25213 builtin and then its argument prototype would still apply. */
25218 /* The GNU C library defines this for functions which it implements
25219 to always fail with ENOSYS. Some functions are actually named
25220 something starting with __ and the normal name is an alias. */
25221 #if defined __stub_getgroups || defined __stub___getgroups
25228 return getgroups ();
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (ac_try="$ac_link"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_link") 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } && {
25247 test -z "$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25249 } && test -s conftest$ac_exeext &&
25250 $as_test_x conftest$ac_exeext; then
25251 ac_cv_func_getgroups=yes
25253 echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25256 ac_cv_func_getgroups=no
25259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25260 conftest$ac_exeext conftest.$ac_ext
25262 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25263 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25266 # If we don't yet have getgroups, see if it's in -lbsd.
25267 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25269 if test $ac_cv_func_getgroups = no; then
25270 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25271 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25272 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 ac_check_lib_save_LIBS=$LIBS
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25284 /* Override any GCC internal prototype to avoid an error.
25285 Use char because int might match the return type of a GCC
25286 builtin and then its argument prototype would still apply. */
25294 return getgroups ();
25299 rm -f conftest.$ac_objext conftest$ac_exeext
25300 if { (ac_try="$ac_link"
25301 case "(($ac_try" in
25302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303 *) ac_try_echo=$ac_try;;
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306 (eval "$ac_link") 2>conftest.er1
25308 grep -v '^ *+' conftest.er1 >conftest.err
25310 cat conftest.err >&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } && {
25313 test -z "$ac_c_werror_flag" ||
25314 test ! -s conftest.err
25315 } && test -s conftest$ac_exeext &&
25316 $as_test_x conftest$ac_exeext; then
25317 ac_cv_lib_bsd_getgroups=yes
25319 echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 ac_cv_lib_bsd_getgroups=no
25325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25326 conftest$ac_exeext conftest.$ac_ext
25327 LIBS=$ac_check_lib_save_LIBS
25329 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25330 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25331 if test $ac_cv_lib_bsd_getgroups = yes; then
25332 GETGROUPS_LIB=-lbsd
25337 # Run the program to test the functionality of the system-supplied
25338 # getgroups function only if there is such a function.
25339 if test $ac_cv_func_getgroups = yes; then
25340 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25341 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25342 if test "${ac_cv_func_getgroups_works+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 if test "$cross_compiling" = yes; then
25346 ac_cv_func_getgroups_works=no
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 $ac_includes_default
25358 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25359 return getgroups (0, 0) == -1;
25364 rm -f conftest$ac_exeext
25365 if { (ac_try="$ac_link"
25366 case "(($ac_try" in
25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368 *) ac_try_echo=$ac_try;;
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371 (eval "$ac_link") 2>&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25375 { (case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_try") 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 ac_cv_func_getgroups_works=yes
25386 echo "$as_me: program exited with status $ac_status" >&5
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25390 ( exit $ac_status )
25391 ac_cv_func_getgroups_works=no
25393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25399 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25400 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25401 if test $ac_cv_func_getgroups_works = yes; then
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_GETGROUPS 1
25411 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25412 # -lseq on Dynix/PTX, -lgen on Unixware.
25413 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25414 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25415 if test "${ac_cv_search_getmntent+set}" = set; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25418 ac_func_search_save_LIBS=$LIBS
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25426 /* Override any GCC internal prototype to avoid an error.
25427 Use char because int might match the return type of a GCC
25428 builtin and then its argument prototype would still apply. */
25436 return getmntent ();
25441 for ac_lib in '' sun seq gen; do
25442 if test -z "$ac_lib"; then
25443 ac_res="none required"
25446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_link") 2>conftest.er1
25457 grep -v '^ *+' conftest.er1 >conftest.err
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && {
25462 test -z "$ac_c_werror_flag" ||
25463 test ! -s conftest.err
25464 } && test -s conftest$ac_exeext &&
25465 $as_test_x conftest$ac_exeext; then
25466 ac_cv_search_getmntent=$ac_res
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25476 if test "${ac_cv_search_getmntent+set}" = set; then
25480 if test "${ac_cv_search_getmntent+set}" = set; then
25483 ac_cv_search_getmntent=no
25485 rm conftest.$ac_ext
25486 LIBS=$ac_func_search_save_LIBS
25488 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25489 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25490 ac_res=$ac_cv_search_getmntent
25491 if test "$ac_res" != no; then
25492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25493 ac_cv_func_getmntent=yes
25495 cat >>confdefs.h <<\_ACEOF
25496 #define HAVE_GETMNTENT 1
25500 ac_cv_func_getmntent=no
25504 if test $ac_cv_c_compiler_gnu = yes; then
25505 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25506 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25507 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 ac_pattern="Autoconf.*'x'"
25511 cat >conftest.$ac_ext <<_ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h. */
25520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25521 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25522 ac_cv_prog_gcc_traditional=yes
25524 ac_cv_prog_gcc_traditional=no
25529 if test $ac_cv_prog_gcc_traditional = no; then
25530 cat >conftest.$ac_ext <<_ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536 #include <termio.h>
25539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25540 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25541 ac_cv_prog_gcc_traditional=yes
25547 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25548 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25549 if test $ac_cv_prog_gcc_traditional = yes; then
25550 CC="$CC -traditional"
25554 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25555 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25556 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 rm -f conftest.sym conftest.file
25560 echo >conftest.file
25561 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25562 if test "$cross_compiling" = yes; then
25563 ac_cv_func_lstat_dereferences_slashed_symlink=no
25565 cat >conftest.$ac_ext <<_ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 $ac_includes_default
25576 /* Linux will dereference the symlink and fail.
25577 That is better in the sense that it means we will not
25578 have to compile and use the lstat wrapper. */
25579 return lstat ("conftest.sym/", &sbuf) == 0;
25584 rm -f conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591 (eval "$ac_link") 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25595 { (case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600 (eval "$ac_try") 2>&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; }; then
25604 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25606 echo "$as_me: program exited with status $ac_status" >&5
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ( exit $ac_status )
25611 ac_cv_func_lstat_dereferences_slashed_symlink=no
25613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25618 # If the `ln -s' command failed, then we probably don't even
25619 # have an lstat function.
25620 ac_cv_func_lstat_dereferences_slashed_symlink=no
25622 rm -f conftest.sym conftest.file
25625 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25626 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25628 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25630 cat >>confdefs.h <<_ACEOF
25631 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25635 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25636 case " $LIBOBJS " in
25637 *" lstat.$ac_objext "* ) ;;
25638 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25644 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25645 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25646 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25649 if test "$cross_compiling" = yes; then
25650 ac_cv_func_lstat_empty_string_bug=yes
25652 cat >conftest.$ac_ext <<_ACEOF
25655 cat confdefs.h >>conftest.$ac_ext
25656 cat >>conftest.$ac_ext <<_ACEOF
25657 /* end confdefs.h. */
25658 $ac_includes_default
25663 return lstat ("", &sbuf) == 0;
25668 rm -f conftest$ac_exeext
25669 if { (ac_try="$ac_link"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_link") 2>&5
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25679 { (case "(($ac_try" in
25680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25681 *) ac_try_echo=$ac_try;;
25683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25684 (eval "$ac_try") 2>&5
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); }; }; then
25688 ac_cv_func_lstat_empty_string_bug=no
25690 echo "$as_me: program exited with status $ac_status" >&5
25691 echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ( exit $ac_status )
25695 ac_cv_func_lstat_empty_string_bug=yes
25697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25702 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25703 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25704 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25705 case " $LIBOBJS " in
25706 *" lstat.$ac_objext "* ) ;;
25707 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25718 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25719 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25720 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 rm -f conftest.sym conftest.file
25724 echo >conftest.file
25725 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25726 if test "$cross_compiling" = yes; then
25727 ac_cv_func_lstat_dereferences_slashed_symlink=no
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 $ac_includes_default
25740 /* Linux will dereference the symlink and fail.
25741 That is better in the sense that it means we will not
25742 have to compile and use the lstat wrapper. */
25743 return lstat ("conftest.sym/", &sbuf) == 0;
25748 rm -f conftest$ac_exeext
25749 if { (ac_try="$ac_link"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_link") 2>&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25759 { (case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_try") 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25770 echo "$as_me: program exited with status $ac_status" >&5
25771 echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25774 ( exit $ac_status )
25775 ac_cv_func_lstat_dereferences_slashed_symlink=no
25777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25782 # If the `ln -s' command failed, then we probably don't even
25783 # have an lstat function.
25784 ac_cv_func_lstat_dereferences_slashed_symlink=no
25786 rm -f conftest.sym conftest.file
25789 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25790 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25792 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25794 cat >>confdefs.h <<_ACEOF
25795 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25799 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25800 case " $LIBOBJS " in
25801 *" lstat.$ac_objext "* ) ;;
25802 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25808 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25809 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25810 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 #include <sys/types.h>
25823 return makedev(0, 0);
25828 rm -f conftest.$ac_objext conftest$ac_exeext
25829 if { (ac_try="$ac_link"
25830 case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25835 (eval "$ac_link") 2>conftest.er1
25837 grep -v '^ *+' conftest.er1 >conftest.err
25839 cat conftest.err >&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } && {
25842 test -z "$ac_c_werror_flag" ||
25843 test ! -s conftest.err
25844 } && test -s conftest$ac_exeext &&
25845 $as_test_x conftest$ac_exeext; then
25846 ac_cv_header_sys_types_h_makedev=yes
25848 echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 ac_cv_header_sys_types_h_makedev=no
25854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25855 conftest$ac_exeext conftest.$ac_ext
25858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25859 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25861 if test $ac_cv_header_sys_types_h_makedev = no; then
25862 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25863 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25864 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25865 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25868 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25869 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25871 # Is the header compilable?
25872 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25873 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25874 cat >conftest.$ac_ext <<_ACEOF
25877 cat confdefs.h >>conftest.$ac_ext
25878 cat >>conftest.$ac_ext <<_ACEOF
25879 /* end confdefs.h. */
25880 $ac_includes_default
25881 #include <sys/mkdev.h>
25883 rm -f conftest.$ac_objext
25884 if { (ac_try="$ac_compile"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_compile") 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest.$ac_objext; then
25900 ac_header_compiler=yes
25902 echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25905 ac_header_compiler=no
25908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25910 echo "${ECHO_T}$ac_header_compiler" >&6; }
25912 # Is the header present?
25913 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25914 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 #include <sys/mkdev.h>
25923 if { (ac_try="$ac_cpp conftest.$ac_ext"
25924 case "(($ac_try" in
25925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926 *) ac_try_echo=$ac_try;;
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25931 grep -v '^ *+' conftest.er1 >conftest.err
25933 cat conftest.err >&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } >/dev/null && {
25936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25937 test ! -s conftest.err
25939 ac_header_preproc=yes
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 ac_header_preproc=no
25947 rm -f conftest.err conftest.$ac_ext
25948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25949 echo "${ECHO_T}$ac_header_preproc" >&6; }
25951 # So? What about this header?
25952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25954 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25955 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25957 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25958 ac_header_preproc=yes
25961 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25962 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25964 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25966 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25968 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25972 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25974 ## ------------------------------- ##
25975 ## Report this to nfs@lists.sf.net ##
25976 ## ------------------------------- ##
25978 ) | sed "s/^/$as_me: WARNING: /" >&2
25981 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25982 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25983 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25988 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25989 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25992 if test $ac_cv_header_sys_mkdev_h = yes; then
25994 cat >>confdefs.h <<\_ACEOF
25995 #define MAJOR_IN_MKDEV 1
26002 if test $ac_cv_header_sys_mkdev_h = no; then
26003 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26004 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26005 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26006 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26007 echo $ECHO_N "(cached) $ECHO_C" >&6
26009 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26010 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26012 # Is the header compilable?
26013 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26014 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26015 cat >conftest.$ac_ext <<_ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h. */
26021 $ac_includes_default
26022 #include <sys/sysmacros.h>
26024 rm -f conftest.$ac_objext
26025 if { (ac_try="$ac_compile"
26026 case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_compile") 2>conftest.er1
26033 grep -v '^ *+' conftest.er1 >conftest.err
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } && {
26038 test -z "$ac_c_werror_flag" ||
26039 test ! -s conftest.err
26040 } && test -s conftest.$ac_objext; then
26041 ac_header_compiler=yes
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 ac_header_compiler=no
26049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26051 echo "${ECHO_T}$ac_header_compiler" >&6; }
26053 # Is the header present?
26054 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26055 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 #include <sys/sysmacros.h>
26064 if { (ac_try="$ac_cpp conftest.$ac_ext"
26065 case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26072 grep -v '^ *+' conftest.er1 >conftest.err
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } >/dev/null && {
26077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26078 test ! -s conftest.err
26080 ac_header_preproc=yes
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26085 ac_header_preproc=no
26088 rm -f conftest.err conftest.$ac_ext
26089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26090 echo "${ECHO_T}$ac_header_preproc" >&6; }
26092 # So? What about this header?
26093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26095 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26096 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26098 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26099 ac_header_preproc=yes
26102 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26103 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
26105 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
26106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26107 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
26109 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26111 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26113 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26115 ## ------------------------------- ##
26116 ## Report this to nfs@lists.sf.net ##
26117 ## ------------------------------- ##
26119 ) | sed "s/^/$as_me: WARNING: /" >&2
26122 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26123 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26124 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26127 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26129 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26130 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26133 if test $ac_cv_header_sys_sysmacros_h = yes; then
26135 cat >>confdefs.h <<\_ACEOF
26136 #define MAJOR_IN_SYSMACROS 1
26146 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26147 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26148 if test "${ac_cv_func_memcmp_working+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26151 if test "$cross_compiling" = yes; then
26152 ac_cv_func_memcmp_working=no
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 $ac_includes_default
26165 /* Some versions of memcmp are not 8-bit clean. */
26166 char c0 = '\100', c1 = '\200', c2 = '\201';
26167 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26170 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26171 or more and with at least one buffer not starting on a 4-byte boundary.
26172 William Lewis provided this test program. */
26177 for (i = 0; i < 4; i++)
26181 strcpy (a, "--------01111111");
26182 strcpy (b, "--------10000000");
26183 if (memcmp (a, b, 16) >= 0)
26193 rm -f conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_link") 2>&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26204 { (case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_try") 2>&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 ac_cv_func_memcmp_working=yes
26215 echo "$as_me: program exited with status $ac_status" >&5
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ( exit $ac_status )
26220 ac_cv_func_memcmp_working=no
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26227 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26228 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26229 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26230 *" memcmp.$ac_objext "* ) ;;
26231 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26239 for ac_header in sys/select.h sys/socket.h
26241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26246 echo $ECHO_N "(cached) $ECHO_C" >&6
26248 ac_res=`eval echo '${'$as_ac_Header'}'`
26249 { echo "$as_me:$LINENO: result: $ac_res" >&5
26250 echo "${ECHO_T}$ac_res" >&6; }
26252 # Is the header compilable?
26253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26255 cat >conftest.$ac_ext <<_ACEOF
26258 cat confdefs.h >>conftest.$ac_ext
26259 cat >>conftest.$ac_ext <<_ACEOF
26260 /* end confdefs.h. */
26261 $ac_includes_default
26262 #include <$ac_header>
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268 *) ac_try_echo=$ac_try;;
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271 (eval "$ac_compile") 2>conftest.er1
26273 grep -v '^ *+' conftest.er1 >conftest.err
26275 cat conftest.err >&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } && {
26278 test -z "$ac_c_werror_flag" ||
26279 test ! -s conftest.err
26280 } && test -s conftest.$ac_objext; then
26281 ac_header_compiler=yes
26283 echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26286 ac_header_compiler=no
26289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26291 echo "${ECHO_T}$ac_header_compiler" >&6; }
26293 # Is the header present?
26294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 #include <$ac_header>
26304 if { (ac_try="$ac_cpp conftest.$ac_ext"
26305 case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26312 grep -v '^ *+' conftest.er1 >conftest.err
26314 cat conftest.err >&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } >/dev/null && {
26317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26318 test ! -s conftest.err
26320 ac_header_preproc=yes
26322 echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26325 ac_header_preproc=no
26328 rm -f conftest.err conftest.$ac_ext
26329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26330 echo "${ECHO_T}$ac_header_preproc" >&6; }
26332 # So? What about this header?
26333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26339 ac_header_preproc=yes
26342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26355 ## ------------------------------- ##
26356 ## Report this to nfs@lists.sf.net ##
26357 ## ------------------------------- ##
26359 ) | sed "s/^/$as_me: WARNING: /" >&2
26362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
26367 eval "$as_ac_Header=\$ac_header_preproc"
26369 ac_res=`eval echo '${'$as_ac_Header'}'`
26370 { echo "$as_me:$LINENO: result: $ac_res" >&5
26371 echo "${ECHO_T}$ac_res" >&6; }
26374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26375 cat >>confdefs.h <<_ACEOF
26376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26383 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26384 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26385 if test "${ac_cv_func_select_args+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26389 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26390 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26391 cat >conftest.$ac_ext <<_ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 $ac_includes_default
26398 #ifdef HAVE_SYS_SELECT_H
26399 # include <sys/select.h>
26401 #ifdef HAVE_SYS_SOCKET_H
26402 # include <sys/socket.h>
26408 extern int select ($ac_arg1,
26409 $ac_arg234, $ac_arg234, $ac_arg234,
26415 rm -f conftest.$ac_objext
26416 if { (ac_try="$ac_compile"
26417 case "(($ac_try" in
26418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419 *) ac_try_echo=$ac_try;;
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_compile") 2>conftest.er1
26424 grep -v '^ *+' conftest.er1 >conftest.err
26426 cat conftest.err >&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } && {
26429 test -z "$ac_c_werror_flag" ||
26430 test ! -s conftest.err
26431 } && test -s conftest.$ac_objext; then
26432 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26444 # Provide a safe default value.
26445 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26448 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26449 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26450 ac_save_IFS=$IFS; IFS=','
26451 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26455 cat >>confdefs.h <<_ACEOF
26456 #define SELECT_TYPE_ARG1 $1
26460 cat >>confdefs.h <<_ACEOF
26461 #define SELECT_TYPE_ARG234 ($2)
26465 cat >>confdefs.h <<_ACEOF
26466 #define SELECT_TYPE_ARG5 ($3)
26471 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26472 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26473 if test "${ac_cv_type_signal+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <signal.h>
26488 return *(signal (0, 0)) (0) == 1;
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_compile") 2>conftest.er1
26502 grep -v '^ *+' conftest.er1 >conftest.err
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } && {
26507 test -z "$ac_c_werror_flag" ||
26508 test ! -s conftest.err
26509 } && test -s conftest.$ac_objext; then
26510 ac_cv_type_signal=int
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_cv_type_signal=void
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26521 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26523 cat >>confdefs.h <<_ACEOF
26524 #define RETSIGTYPE $ac_cv_type_signal
26528 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26529 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26530 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 if test "$cross_compiling" = yes; then
26534 ac_cv_func_stat_empty_string_bug=yes
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 $ac_includes_default
26547 return stat ("", &sbuf) == 0;
26552 rm -f conftest$ac_exeext
26553 if { (ac_try="$ac_link"
26554 case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559 (eval "$ac_link") 2>&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26563 { (case "(($ac_try" in
26564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565 *) ac_try_echo=$ac_try;;
26567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26568 (eval "$ac_try") 2>&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; }; then
26572 ac_cv_func_stat_empty_string_bug=no
26574 echo "$as_me: program exited with status $ac_status" >&5
26575 echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26578 ( exit $ac_status )
26579 ac_cv_func_stat_empty_string_bug=yes
26581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26586 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26587 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26588 if test $ac_cv_func_stat_empty_string_bug = yes; then
26589 case " $LIBOBJS " in
26590 *" stat.$ac_objext "* ) ;;
26591 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26596 cat >>confdefs.h <<_ACEOF
26597 #define HAVE_STAT_EMPTY_STRING_BUG 1
26603 for ac_func in vprintf
26605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
26611 cat >conftest.$ac_ext <<_ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h. */
26617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26619 #define $ac_func innocuous_$ac_func
26621 /* System header to define __stub macros and hopefully few prototypes,
26622 which can conflict with char $ac_func (); below.
26623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26624 <limits.h> exists even on freestanding compilers. */
26627 # include <limits.h>
26629 # include <assert.h>
26634 /* Override any GCC internal prototype to avoid an error.
26635 Use char because int might match the return type of a GCC
26636 builtin and then its argument prototype would still apply. */
26641 /* The GNU C library defines this for functions which it implements
26642 to always fail with ENOSYS. Some functions are actually named
26643 something starting with __ and the normal name is an alias. */
26644 #if defined __stub_$ac_func || defined __stub___$ac_func
26651 return $ac_func ();
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (ac_try="$ac_link"
26658 case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663 (eval "$ac_link") 2>conftest.er1
26665 grep -v '^ *+' conftest.er1 >conftest.err
26667 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && {
26670 test -z "$ac_c_werror_flag" ||
26671 test ! -s conftest.err
26672 } && test -s conftest$ac_exeext &&
26673 $as_test_x conftest$ac_exeext; then
26674 eval "$as_ac_var=yes"
26676 echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26679 eval "$as_ac_var=no"
26682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26683 conftest$ac_exeext conftest.$ac_ext
26685 ac_res=`eval echo '${'$as_ac_var'}'`
26686 { echo "$as_me:$LINENO: result: $ac_res" >&5
26687 echo "${ECHO_T}$ac_res" >&6; }
26688 if test `eval echo '${'$as_ac_var'}'` = yes; then
26689 cat >>confdefs.h <<_ACEOF
26690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26693 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26694 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26695 if test "${ac_cv_func__doprnt+set}" = set; then
26696 echo $ECHO_N "(cached) $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26706 #define _doprnt innocuous__doprnt
26708 /* System header to define __stub macros and hopefully few prototypes,
26709 which can conflict with char _doprnt (); below.
26710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26711 <limits.h> exists even on freestanding compilers. */
26714 # include <limits.h>
26716 # include <assert.h>
26721 /* Override any GCC internal prototype to avoid an error.
26722 Use char because int might match the return type of a GCC
26723 builtin and then its argument prototype would still apply. */
26728 /* The GNU C library defines this for functions which it implements
26729 to always fail with ENOSYS. Some functions are actually named
26730 something starting with __ and the normal name is an alias. */
26731 #if defined __stub__doprnt || defined __stub____doprnt
26743 rm -f conftest.$ac_objext conftest$ac_exeext
26744 if { (ac_try="$ac_link"
26745 case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_link") 2>conftest.er1
26752 grep -v '^ *+' conftest.er1 >conftest.err
26754 cat conftest.err >&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } && {
26757 test -z "$ac_c_werror_flag" ||
26758 test ! -s conftest.err
26759 } && test -s conftest$ac_exeext &&
26760 $as_test_x conftest$ac_exeext; then
26761 ac_cv_func__doprnt=yes
26763 echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 ac_cv_func__doprnt=no
26769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26770 conftest$ac_exeext conftest.$ac_ext
26772 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26773 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26774 if test $ac_cv_func__doprnt = yes; then
26776 cat >>confdefs.h <<\_ACEOF
26777 #define HAVE_DOPRNT 1
26815 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26816 gethostbyaddr gethostbyname gethostname getmntent \
26817 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26818 realpath rmdir select socket strcasecmp strchr strdup \
26819 strerror strrchr strtol strtoul sigprocmask
26821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 cat >conftest.$ac_ext <<_ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h. */
26833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26835 #define $ac_func innocuous_$ac_func
26837 /* System header to define __stub macros and hopefully few prototypes,
26838 which can conflict with char $ac_func (); below.
26839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26840 <limits.h> exists even on freestanding compilers. */
26843 # include <limits.h>
26845 # include <assert.h>
26850 /* Override any GCC internal prototype to avoid an error.
26851 Use char because int might match the return type of a GCC
26852 builtin and then its argument prototype would still apply. */
26857 /* The GNU C library defines this for functions which it implements
26858 to always fail with ENOSYS. Some functions are actually named
26859 something starting with __ and the normal name is an alias. */
26860 #if defined __stub_$ac_func || defined __stub___$ac_func
26867 return $ac_func ();
26872 rm -f conftest.$ac_objext conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_link") 2>conftest.er1
26881 grep -v '^ *+' conftest.er1 >conftest.err
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } && {
26886 test -z "$ac_c_werror_flag" ||
26887 test ! -s conftest.err
26888 } && test -s conftest$ac_exeext &&
26889 $as_test_x conftest$ac_exeext; then
26890 eval "$as_ac_var=yes"
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 eval "$as_ac_var=no"
26898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26899 conftest$ac_exeext conftest.$ac_ext
26901 ac_res=`eval echo '${'$as_ac_var'}'`
26902 { echo "$as_me:$LINENO: result: $ac_res" >&5
26903 echo "${ECHO_T}$ac_res" >&6; }
26904 if test `eval echo '${'$as_ac_var'}'` = yes; then
26905 cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26914 { echo "$as_me:$LINENO: checking for short" >&5
26915 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26916 if test "${ac_cv_type_short+set}" = set; then
26917 echo $ECHO_N "(cached) $ECHO_C" >&6
26919 cat >conftest.$ac_ext <<_ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h. */
26925 $ac_includes_default
26926 typedef short ac__type_new_;
26930 if ((ac__type_new_ *) 0)
26932 if (sizeof (ac__type_new_))
26938 rm -f conftest.$ac_objext
26939 if { (ac_try="$ac_compile"
26940 case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_compile") 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && {
26952 test -z "$ac_c_werror_flag" ||
26953 test ! -s conftest.err
26954 } && test -s conftest.$ac_objext; then
26955 ac_cv_type_short=yes
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_cv_type_short=no
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26966 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26968 # The cast to long int works around a bug in the HP C Compiler
26969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26971 # This bug is HP SR number 8606223364.
26972 { echo "$as_me:$LINENO: checking size of short" >&5
26973 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26974 if test "${ac_cv_sizeof_short+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26977 if test "$cross_compiling" = yes; then
26978 # Depending upon the size, compute the lo and hi bounds.
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 $ac_includes_default
26986 typedef short ac__type_sizeof_;
26990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 *) ac_try_echo=$ac_try;;
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_compile") 2>conftest.er1
27006 grep -v '^ *+' conftest.er1 >conftest.err
27008 cat conftest.err >&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } && {
27011 test -z "$ac_c_werror_flag" ||
27012 test ! -s conftest.err
27013 } && test -s conftest.$ac_objext; then
27016 cat >conftest.$ac_ext <<_ACEOF
27019 cat confdefs.h >>conftest.$ac_ext
27020 cat >>conftest.$ac_ext <<_ACEOF
27021 /* end confdefs.h. */
27022 $ac_includes_default
27023 typedef short ac__type_sizeof_;
27027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27034 rm -f conftest.$ac_objext
27035 if { (ac_try="$ac_compile"
27036 case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_compile") 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } && {
27048 test -z "$ac_c_werror_flag" ||
27049 test ! -s conftest.err
27050 } && test -s conftest.$ac_objext; then
27051 ac_hi=$ac_mid; break
27053 echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27056 ac_lo=`expr $ac_mid + 1`
27057 if test $ac_lo -le $ac_mid; then
27061 ac_mid=`expr 2 '*' $ac_mid + 1`
27064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27067 echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27070 cat >conftest.$ac_ext <<_ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h. */
27076 $ac_includes_default
27077 typedef short ac__type_sizeof_;
27081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27088 rm -f conftest.$ac_objext
27089 if { (ac_try="$ac_compile"
27090 case "(($ac_try" in
27091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092 *) ac_try_echo=$ac_try;;
27094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27095 (eval "$ac_compile") 2>conftest.er1
27097 grep -v '^ *+' conftest.er1 >conftest.err
27099 cat conftest.err >&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } && {
27102 test -z "$ac_c_werror_flag" ||
27103 test ! -s conftest.err
27104 } && test -s conftest.$ac_objext; then
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 $ac_includes_default
27114 typedef short ac__type_sizeof_;
27118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27125 rm -f conftest.$ac_objext
27126 if { (ac_try="$ac_compile"
27127 case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_compile") 2>conftest.er1
27134 grep -v '^ *+' conftest.er1 >conftest.err
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest.$ac_objext; then
27142 ac_lo=$ac_mid; break
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27147 ac_hi=`expr '(' $ac_mid ')' - 1`
27148 if test $ac_mid -le $ac_hi; then
27152 ac_mid=`expr 2 '*' $ac_mid`
27155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168 # Binary search between lo and hi bounds.
27169 while test "x$ac_lo" != "x$ac_hi"; do
27170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 $ac_includes_default
27178 typedef short ac__type_sizeof_;
27182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } && {
27203 test -z "$ac_c_werror_flag" ||
27204 test ! -s conftest.err
27205 } && test -s conftest.$ac_objext; then
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_lo=`expr '(' $ac_mid ')' + 1`
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217 ?*) ac_cv_sizeof_short=$ac_lo;;
27218 '') if test "$ac_cv_type_short" = yes; then
27219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27220 See \`config.log' for more details." >&5
27221 echo "$as_me: error: cannot compute sizeof (short)
27222 See \`config.log' for more details." >&2;}
27223 { (exit 77); exit 77; }; }
27225 ac_cv_sizeof_short=0
27229 cat >conftest.$ac_ext <<_ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235 $ac_includes_default
27236 typedef short ac__type_sizeof_;
27237 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27238 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27240 #include <stdlib.h>
27245 FILE *f = fopen ("conftest.val", "w");
27248 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27250 long int i = longval ();
27251 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27253 fprintf (f, "%ld\n", i);
27257 unsigned long int i = ulongval ();
27258 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27260 fprintf (f, "%lu\n", i);
27262 return ferror (f) || fclose (f) != 0;
27268 rm -f conftest$ac_exeext
27269 if { (ac_try="$ac_link"
27270 case "(($ac_try" in
27271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27272 *) ac_try_echo=$ac_try;;
27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275 (eval "$ac_link") 2>&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; }; then
27288 ac_cv_sizeof_short=`cat conftest.val`
27290 echo "$as_me: program exited with status $ac_status" >&5
27291 echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 ( exit $ac_status )
27295 if test "$ac_cv_type_short" = yes; then
27296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27297 See \`config.log' for more details." >&5
27298 echo "$as_me: error: cannot compute sizeof (short)
27299 See \`config.log' for more details." >&2;}
27300 { (exit 77); exit 77; }; }
27302 ac_cv_sizeof_short=0
27305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27309 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27310 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27314 cat >>confdefs.h <<_ACEOF
27315 #define SIZEOF_SHORT $ac_cv_sizeof_short
27319 { echo "$as_me:$LINENO: checking for int" >&5
27320 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27321 if test "${ac_cv_type_int+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27324 cat >conftest.$ac_ext <<_ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h. */
27330 $ac_includes_default
27331 typedef int ac__type_new_;
27335 if ((ac__type_new_ *) 0)
27337 if (sizeof (ac__type_new_))
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_compile") 2>conftest.er1
27352 grep -v '^ *+' conftest.er1 >conftest.err
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest.$ac_objext; then
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27371 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27373 # The cast to long int works around a bug in the HP C Compiler
27374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27376 # This bug is HP SR number 8606223364.
27377 { echo "$as_me:$LINENO: checking size of int" >&5
27378 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27379 if test "${ac_cv_sizeof_int+set}" = set; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 if test "$cross_compiling" = yes; then
27383 # Depending upon the size, compute the lo and hi bounds.
27384 cat >conftest.$ac_ext <<_ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27390 $ac_includes_default
27391 typedef int ac__type_sizeof_;
27395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27402 rm -f conftest.$ac_objext
27403 if { (ac_try="$ac_compile"
27404 case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_compile") 2>conftest.er1
27411 grep -v '^ *+' conftest.er1 >conftest.err
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } && {
27416 test -z "$ac_c_werror_flag" ||
27417 test ! -s conftest.err
27418 } && test -s conftest.$ac_objext; then
27421 cat >conftest.$ac_ext <<_ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h. */
27427 $ac_includes_default
27428 typedef int ac__type_sizeof_;
27432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27439 rm -f conftest.$ac_objext
27440 if { (ac_try="$ac_compile"
27441 case "(($ac_try" in
27442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27443 *) ac_try_echo=$ac_try;;
27445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27446 (eval "$ac_compile") 2>conftest.er1
27448 grep -v '^ *+' conftest.er1 >conftest.err
27450 cat conftest.err >&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); } && {
27453 test -z "$ac_c_werror_flag" ||
27454 test ! -s conftest.err
27455 } && test -s conftest.$ac_objext; then
27456 ac_hi=$ac_mid; break
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 ac_lo=`expr $ac_mid + 1`
27462 if test $ac_lo -le $ac_mid; then
27466 ac_mid=`expr 2 '*' $ac_mid + 1`
27469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 cat >conftest.$ac_ext <<_ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 $ac_includes_default
27482 typedef int ac__type_sizeof_;
27486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27493 rm -f conftest.$ac_objext
27494 if { (ac_try="$ac_compile"
27495 case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_compile") 2>conftest.er1
27502 grep -v '^ *+' conftest.er1 >conftest.err
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } && {
27507 test -z "$ac_c_werror_flag" ||
27508 test ! -s conftest.err
27509 } && test -s conftest.$ac_objext; then
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 $ac_includes_default
27519 typedef int ac__type_sizeof_;
27523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27530 rm -f conftest.$ac_objext
27531 if { (ac_try="$ac_compile"
27532 case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_compile") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest.$ac_objext; then
27547 ac_lo=$ac_mid; break
27549 echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27552 ac_hi=`expr '(' $ac_mid ')' - 1`
27553 if test $ac_mid -le $ac_hi; then
27557 ac_mid=`expr 2 '*' $ac_mid`
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27573 # Binary search between lo and hi bounds.
27574 while test "x$ac_lo" != "x$ac_hi"; do
27575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27582 $ac_includes_default
27583 typedef int ac__type_sizeof_;
27587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.$ac_objext; then
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ac_lo=`expr '(' $ac_mid ')' + 1`
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 ?*) ac_cv_sizeof_int=$ac_lo;;
27623 '') if test "$ac_cv_type_int" = yes; then
27624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27625 See \`config.log' for more details." >&5
27626 echo "$as_me: error: cannot compute sizeof (int)
27627 See \`config.log' for more details." >&2;}
27628 { (exit 77); exit 77; }; }
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 $ac_includes_default
27641 typedef int ac__type_sizeof_;
27642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27645 #include <stdlib.h>
27650 FILE *f = fopen ("conftest.val", "w");
27653 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27655 long int i = longval ();
27656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27658 fprintf (f, "%ld\n", i);
27662 unsigned long int i = ulongval ();
27663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27665 fprintf (f, "%lu\n", i);
27667 return ferror (f) || fclose (f) != 0;
27673 rm -f conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
27693 ac_cv_sizeof_int=`cat conftest.val`
27695 echo "$as_me: program exited with status $ac_status" >&5
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27699 ( exit $ac_status )
27700 if test "$ac_cv_type_int" = yes; then
27701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27702 See \`config.log' for more details." >&5
27703 echo "$as_me: error: cannot compute sizeof (int)
27704 See \`config.log' for more details." >&2;}
27705 { (exit 77); exit 77; }; }
27710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27715 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27719 cat >>confdefs.h <<_ACEOF
27720 #define SIZEOF_INT $ac_cv_sizeof_int
27724 { echo "$as_me:$LINENO: checking for long" >&5
27725 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27726 if test "${ac_cv_type_long+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 cat >conftest.$ac_ext <<_ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27735 $ac_includes_default
27736 typedef long ac__type_new_;
27740 if ((ac__type_new_ *) 0)
27742 if (sizeof (ac__type_new_))
27748 rm -f conftest.$ac_objext
27749 if { (ac_try="$ac_compile"
27750 case "(($ac_try" in
27751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752 *) ac_try_echo=$ac_try;;
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755 (eval "$ac_compile") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } && {
27762 test -z "$ac_c_werror_flag" ||
27763 test ! -s conftest.err
27764 } && test -s conftest.$ac_objext; then
27765 ac_cv_type_long=yes
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27776 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27778 # The cast to long int works around a bug in the HP C Compiler
27779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27781 # This bug is HP SR number 8606223364.
27782 { echo "$as_me:$LINENO: checking size of long" >&5
27783 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27784 if test "${ac_cv_sizeof_long+set}" = set; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27787 if test "$cross_compiling" = yes; then
27788 # Depending upon the size, compute the lo and hi bounds.
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 $ac_includes_default
27796 typedef long ac__type_sizeof_;
27800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811 *) ac_try_echo=$ac_try;;
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814 (eval "$ac_compile") 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 $ac_includes_default
27833 typedef long ac__type_sizeof_;
27837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27844 rm -f conftest.$ac_objext
27845 if { (ac_try="$ac_compile"
27846 case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27861 ac_hi=$ac_mid; break
27863 echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27866 ac_lo=`expr $ac_mid + 1`
27867 if test $ac_lo -le $ac_mid; then
27871 ac_mid=`expr 2 '*' $ac_mid + 1`
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27877 echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27886 $ac_includes_default
27887 typedef long ac__type_sizeof_;
27891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27898 rm -f conftest.$ac_objext
27899 if { (ac_try="$ac_compile"
27900 case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_compile") 2>conftest.er1
27907 grep -v '^ *+' conftest.er1 >conftest.err
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } && {
27912 test -z "$ac_c_werror_flag" ||
27913 test ! -s conftest.err
27914 } && test -s conftest.$ac_objext; then
27917 cat >conftest.$ac_ext <<_ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 $ac_includes_default
27924 typedef long ac__type_sizeof_;
27928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27944 grep -v '^ *+' conftest.er1 >conftest.err
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } && {
27949 test -z "$ac_c_werror_flag" ||
27950 test ! -s conftest.err
27951 } && test -s conftest.$ac_objext; then
27952 ac_lo=$ac_mid; break
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 ac_hi=`expr '(' $ac_mid ')' - 1`
27958 if test $ac_mid -le $ac_hi; then
27962 ac_mid=`expr 2 '*' $ac_mid`
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27968 echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978 # Binary search between lo and hi bounds.
27979 while test "x$ac_lo" != "x$ac_hi"; do
27980 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27981 cat >conftest.$ac_ext <<_ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27987 $ac_includes_default
27988 typedef long ac__type_sizeof_;
27992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_compile") 2>conftest.er1
28008 grep -v '^ *+' conftest.er1 >conftest.err
28010 cat conftest.err >&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); } && {
28013 test -z "$ac_c_werror_flag" ||
28014 test ! -s conftest.err
28015 } && test -s conftest.$ac_objext; then
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 ac_lo=`expr '(' $ac_mid ')' + 1`
28024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28027 ?*) ac_cv_sizeof_long=$ac_lo;;
28028 '') if test "$ac_cv_type_long" = yes; then
28029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28030 See \`config.log' for more details." >&5
28031 echo "$as_me: error: cannot compute sizeof (long)
28032 See \`config.log' for more details." >&2;}
28033 { (exit 77); exit 77; }; }
28035 ac_cv_sizeof_long=0
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 $ac_includes_default
28046 typedef long ac__type_sizeof_;
28047 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28048 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28050 #include <stdlib.h>
28055 FILE *f = fopen ("conftest.val", "w");
28058 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28060 long int i = longval ();
28061 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28063 fprintf (f, "%ld\n", i);
28067 unsigned long int i = ulongval ();
28068 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28070 fprintf (f, "%lu\n", i);
28072 return ferror (f) || fclose (f) != 0;
28078 rm -f conftest$ac_exeext
28079 if { (ac_try="$ac_link"
28080 case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_link") 2>&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_try") 2>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 ac_cv_sizeof_long=`cat conftest.val`
28100 echo "$as_me: program exited with status $ac_status" >&5
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 ( exit $ac_status )
28105 if test "$ac_cv_type_long" = yes; then
28106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28107 See \`config.log' for more details." >&5
28108 echo "$as_me: error: cannot compute sizeof (long)
28109 See \`config.log' for more details." >&2;}
28110 { (exit 77); exit 77; }; }
28112 ac_cv_sizeof_long=0
28115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28119 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28120 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28124 cat >>confdefs.h <<_ACEOF
28125 #define SIZEOF_LONG $ac_cv_sizeof_long
28129 { echo "$as_me:$LINENO: checking for size_t" >&5
28130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28131 if test "${ac_cv_type_size_t+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 cat >conftest.$ac_ext <<_ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 $ac_includes_default
28141 typedef size_t ac__type_new_;
28145 if ((ac__type_new_ *) 0)
28147 if (sizeof (ac__type_new_))
28153 rm -f conftest.$ac_objext
28154 if { (ac_try="$ac_compile"
28155 case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_compile") 2>conftest.er1
28162 grep -v '^ *+' conftest.er1 >conftest.err
28164 cat conftest.err >&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } && {
28167 test -z "$ac_c_werror_flag" ||
28168 test ! -s conftest.err
28169 } && test -s conftest.$ac_objext; then
28170 ac_cv_type_size_t=yes
28172 echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28175 ac_cv_type_size_t=no
28178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28181 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28183 # The cast to long int works around a bug in the HP C Compiler
28184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28186 # This bug is HP SR number 8606223364.
28187 { echo "$as_me:$LINENO: checking size of size_t" >&5
28188 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28189 if test "${ac_cv_sizeof_size_t+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 if test "$cross_compiling" = yes; then
28193 # Depending upon the size, compute the lo and hi bounds.
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28200 $ac_includes_default
28201 typedef size_t ac__type_sizeof_;
28205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28212 rm -f conftest.$ac_objext
28213 if { (ac_try="$ac_compile"
28214 case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_compile") 2>conftest.er1
28221 grep -v '^ *+' conftest.er1 >conftest.err
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } && {
28226 test -z "$ac_c_werror_flag" ||
28227 test ! -s conftest.err
28228 } && test -s conftest.$ac_objext; then
28231 cat >conftest.$ac_ext <<_ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h. */
28237 $ac_includes_default
28238 typedef size_t ac__type_sizeof_;
28242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28249 rm -f conftest.$ac_objext
28250 if { (ac_try="$ac_compile"
28251 case "(($ac_try" in
28252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253 *) ac_try_echo=$ac_try;;
28255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256 (eval "$ac_compile") 2>conftest.er1
28258 grep -v '^ *+' conftest.er1 >conftest.err
28260 cat conftest.err >&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } && {
28263 test -z "$ac_c_werror_flag" ||
28264 test ! -s conftest.err
28265 } && test -s conftest.$ac_objext; then
28266 ac_hi=$ac_mid; break
28268 echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.$ac_ext >&5
28271 ac_lo=`expr $ac_mid + 1`
28272 if test $ac_lo -le $ac_mid; then
28276 ac_mid=`expr 2 '*' $ac_mid + 1`
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 cat >conftest.$ac_ext <<_ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h. */
28291 $ac_includes_default
28292 typedef size_t ac__type_sizeof_;
28296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28303 rm -f conftest.$ac_objext
28304 if { (ac_try="$ac_compile"
28305 case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310 (eval "$ac_compile") 2>conftest.er1
28312 grep -v '^ *+' conftest.er1 >conftest.err
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } && {
28317 test -z "$ac_c_werror_flag" ||
28318 test ! -s conftest.err
28319 } && test -s conftest.$ac_objext; then
28322 cat >conftest.$ac_ext <<_ACEOF
28325 cat confdefs.h >>conftest.$ac_ext
28326 cat >>conftest.$ac_ext <<_ACEOF
28327 /* end confdefs.h. */
28328 $ac_includes_default
28329 typedef size_t ac__type_sizeof_;
28333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28340 rm -f conftest.$ac_objext
28341 if { (ac_try="$ac_compile"
28342 case "(($ac_try" in
28343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344 *) ac_try_echo=$ac_try;;
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347 (eval "$ac_compile") 2>conftest.er1
28349 grep -v '^ *+' conftest.er1 >conftest.err
28351 cat conftest.err >&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); } && {
28354 test -z "$ac_c_werror_flag" ||
28355 test ! -s conftest.err
28356 } && test -s conftest.$ac_objext; then
28357 ac_lo=$ac_mid; break
28359 echo "$as_me: failed program was:" >&5
28360 sed 's/^/| /' conftest.$ac_ext >&5
28362 ac_hi=`expr '(' $ac_mid ')' - 1`
28363 if test $ac_mid -le $ac_hi; then
28367 ac_mid=`expr 2 '*' $ac_mid`
28370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28383 # Binary search between lo and hi bounds.
28384 while test "x$ac_lo" != "x$ac_hi"; do
28385 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 $ac_includes_default
28393 typedef size_t ac__type_sizeof_;
28397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28404 rm -f conftest.$ac_objext
28405 if { (ac_try="$ac_compile"
28406 case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_compile") 2>conftest.er1
28413 grep -v '^ *+' conftest.er1 >conftest.err
28415 cat conftest.err >&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_c_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest.$ac_objext; then
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28426 ac_lo=`expr '(' $ac_mid ')' + 1`
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28433 '') if test "$ac_cv_type_size_t" = yes; then
28434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28435 See \`config.log' for more details." >&5
28436 echo "$as_me: error: cannot compute sizeof (size_t)
28437 See \`config.log' for more details." >&2;}
28438 { (exit 77); exit 77; }; }
28440 ac_cv_sizeof_size_t=0
28444 cat >conftest.$ac_ext <<_ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h. */
28450 $ac_includes_default
28451 typedef size_t ac__type_sizeof_;
28452 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28453 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28455 #include <stdlib.h>
28460 FILE *f = fopen ("conftest.val", "w");
28463 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28465 long int i = longval ();
28466 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28468 fprintf (f, "%ld\n", i);
28472 unsigned long int i = ulongval ();
28473 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28475 fprintf (f, "%lu\n", i);
28477 return ferror (f) || fclose (f) != 0;
28483 rm -f conftest$ac_exeext
28484 if { (ac_try="$ac_link"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_link") 2>&5
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28494 { (case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_try") 2>&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; }; then
28503 ac_cv_sizeof_size_t=`cat conftest.val`
28505 echo "$as_me: program exited with status $ac_status" >&5
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 ( exit $ac_status )
28510 if test "$ac_cv_type_size_t" = yes; then
28511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28512 See \`config.log' for more details." >&5
28513 echo "$as_me: error: cannot compute sizeof (size_t)
28514 See \`config.log' for more details." >&2;}
28515 { (exit 77); exit 77; }; }
28517 ac_cv_sizeof_size_t=0
28520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28524 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28525 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28529 cat >>confdefs.h <<_ACEOF
28530 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28534 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28535 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28536 if test "${ac_cv_type_socklen_t+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 cat >conftest.$ac_ext <<_ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 $ac_includes_default
28546 typedef socklen_t ac__type_new_;
28550 if ((ac__type_new_ *) 0)
28552 if (sizeof (ac__type_new_))
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565 (eval "$ac_compile") 2>conftest.er1
28567 grep -v '^ *+' conftest.er1 >conftest.err
28569 cat conftest.err >&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } && {
28572 test -z "$ac_c_werror_flag" ||
28573 test ! -s conftest.err
28574 } && test -s conftest.$ac_objext; then
28575 ac_cv_type_socklen_t=yes
28577 echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28580 ac_cv_type_socklen_t=no
28583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28586 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28588 # The cast to long int works around a bug in the HP C Compiler
28589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28591 # This bug is HP SR number 8606223364.
28592 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28593 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28594 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28595 echo $ECHO_N "(cached) $ECHO_C" >&6
28597 if test "$cross_compiling" = yes; then
28598 # Depending upon the size, compute the lo and hi bounds.
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 $ac_includes_default
28606 typedef socklen_t ac__type_sizeof_;
28610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_compile") 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } && {
28631 test -z "$ac_c_werror_flag" ||
28632 test ! -s conftest.err
28633 } && test -s conftest.$ac_objext; then
28636 cat >conftest.$ac_ext <<_ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28642 $ac_includes_default
28643 typedef socklen_t ac__type_sizeof_;
28647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28654 rm -f conftest.$ac_objext
28655 if { (ac_try="$ac_compile"
28656 case "(($ac_try" in
28657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28658 *) ac_try_echo=$ac_try;;
28660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28661 (eval "$ac_compile") 2>conftest.er1
28663 grep -v '^ *+' conftest.er1 >conftest.err
28665 cat conftest.err >&5
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } && {
28668 test -z "$ac_c_werror_flag" ||
28669 test ! -s conftest.err
28670 } && test -s conftest.$ac_objext; then
28671 ac_hi=$ac_mid; break
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 ac_lo=`expr $ac_mid + 1`
28677 if test $ac_lo -le $ac_mid; then
28681 ac_mid=`expr 2 '*' $ac_mid + 1`
28684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28687 echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28690 cat >conftest.$ac_ext <<_ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28696 $ac_includes_default
28697 typedef socklen_t ac__type_sizeof_;
28701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28708 rm -f conftest.$ac_objext
28709 if { (ac_try="$ac_compile"
28710 case "(($ac_try" in
28711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712 *) ac_try_echo=$ac_try;;
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715 (eval "$ac_compile") 2>conftest.er1
28717 grep -v '^ *+' conftest.er1 >conftest.err
28719 cat conftest.err >&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); } && {
28722 test -z "$ac_c_werror_flag" ||
28723 test ! -s conftest.err
28724 } && test -s conftest.$ac_objext; then
28727 cat >conftest.$ac_ext <<_ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h. */
28733 $ac_includes_default
28734 typedef socklen_t ac__type_sizeof_;
28738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28745 rm -f conftest.$ac_objext
28746 if { (ac_try="$ac_compile"
28747 case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_compile") 2>conftest.er1
28754 grep -v '^ *+' conftest.er1 >conftest.err
28756 cat conftest.err >&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } && {
28759 test -z "$ac_c_werror_flag" ||
28760 test ! -s conftest.err
28761 } && test -s conftest.$ac_objext; then
28762 ac_lo=$ac_mid; break
28764 echo "$as_me: failed program was:" >&5
28765 sed 's/^/| /' conftest.$ac_ext >&5
28767 ac_hi=`expr '(' $ac_mid ')' - 1`
28768 if test $ac_mid -le $ac_hi; then
28772 ac_mid=`expr 2 '*' $ac_mid`
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28788 # Binary search between lo and hi bounds.
28789 while test "x$ac_lo" != "x$ac_hi"; do
28790 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28791 cat >conftest.$ac_ext <<_ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h. */
28797 $ac_includes_default
28798 typedef socklen_t ac__type_sizeof_;
28802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28809 rm -f conftest.$ac_objext
28810 if { (ac_try="$ac_compile"
28811 case "(($ac_try" in
28812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813 *) ac_try_echo=$ac_try;;
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816 (eval "$ac_compile") 2>conftest.er1
28818 grep -v '^ *+' conftest.er1 >conftest.err
28820 cat conftest.err >&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); } && {
28823 test -z "$ac_c_werror_flag" ||
28824 test ! -s conftest.err
28825 } && test -s conftest.$ac_objext; then
28828 echo "$as_me: failed program was:" >&5
28829 sed 's/^/| /' conftest.$ac_ext >&5
28831 ac_lo=`expr '(' $ac_mid ')' + 1`
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28837 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28838 '') if test "$ac_cv_type_socklen_t" = yes; then
28839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28840 See \`config.log' for more details." >&5
28841 echo "$as_me: error: cannot compute sizeof (socklen_t)
28842 See \`config.log' for more details." >&2;}
28843 { (exit 77); exit 77; }; }
28845 ac_cv_sizeof_socklen_t=0
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 $ac_includes_default
28856 typedef socklen_t ac__type_sizeof_;
28857 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28858 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28860 #include <stdlib.h>
28865 FILE *f = fopen ("conftest.val", "w");
28868 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28870 long int i = longval ();
28871 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28873 fprintf (f, "%ld\n", i);
28877 unsigned long int i = ulongval ();
28878 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28880 fprintf (f, "%lu\n", i);
28882 return ferror (f) || fclose (f) != 0;
28888 rm -f conftest$ac_exeext
28889 if { (ac_try="$ac_link"
28890 case "(($ac_try" in
28891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892 *) ac_try_echo=$ac_try;;
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895 (eval "$ac_link") 2>&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28899 { (case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_try") 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; }; then
28908 ac_cv_sizeof_socklen_t=`cat conftest.val`
28910 echo "$as_me: program exited with status $ac_status" >&5
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 ( exit $ac_status )
28915 if test "$ac_cv_type_socklen_t" = yes; then
28916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28917 See \`config.log' for more details." >&5
28918 echo "$as_me: error: cannot compute sizeof (socklen_t)
28919 See \`config.log' for more details." >&2;}
28920 { (exit 77); exit 77; }; }
28922 ac_cv_sizeof_socklen_t=0
28925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28929 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28930 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28934 cat >>confdefs.h <<_ACEOF
28935 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28942 cat >>confdefs.h <<_ACEOF
28943 #define NFS_STATEDIR "$statedir"
28947 if test "x$cross_compiling" = "xno"; then
28948 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28949 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28950 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28951 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28953 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28954 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28955 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28956 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28971 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28976 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28978 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28980 AM_CFLAGS="$my_am_cflags"
28983 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28984 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28987 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/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28989 cat >confcache <<\_ACEOF
28990 # This file is a shell script that caches the results of configure
28991 # tests run on this system so they can be shared between configure
28992 # scripts and configure runs, see configure's option --config-cache.
28993 # It is not useful on other systems. If it contains results you don't
28994 # want to keep, you may remove or edit it.
28996 # config.status only pays attention to the cache file if you give it
28997 # the --recheck option to rerun configure.
28999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29001 # following values.
29005 # The following way of writing the cache mishandles newlines in values,
29006 # but we know of no workaround that is simple, portable, and efficient.
29007 # So, we kill variables containing newlines.
29008 # Ultrix sh set writes to stderr and can't be redirected directly,
29009 # and sets the high bit in the cache file unless we assign to the vars.
29011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29012 eval ac_val=\$$ac_var
29016 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29020 _ | IFS | as_nl) ;; #(
29021 *) $as_unset $ac_var ;;
29027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29028 *${as_nl}ac_space=\ *)
29029 # `set' does not quote correctly, so add quotes (double-quote
29030 # substitution turns \\\\ into \\, and sed turns \\ into \).
29033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29036 # `set' quotes correctly as required by POSIX, so do not add quotes.
29037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29051 if test -w "$cache_file"; then
29052 test "x$cache_file" != "x/dev/null" &&
29053 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29054 echo "$as_me: updating cache $cache_file" >&6;}
29055 cat confcache >$cache_file
29057 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29064 # Let make expand exec_prefix.
29065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29067 DEFS=-DHAVE_CONFIG_H
29071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29072 # 1. Remove the extension, and $U if already installed.
29073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29074 ac_i=`echo "$ac_i" | sed "$ac_script"`
29075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29076 # will be set to the directory where LIBOBJS objects are built.
29077 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29078 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29080 LIBOBJS=$ac_libobjs
29082 LTLIBOBJS=$ac_ltlibobjs
29085 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29086 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29087 Usually this means the macro was only invoked conditionally." >&5
29088 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29089 Usually this means the macro was only invoked conditionally." >&2;}
29090 { (exit 1); exit 1; }; }
29092 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29093 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29094 Usually this means the macro was only invoked conditionally." >&5
29095 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29096 Usually this means the macro was only invoked conditionally." >&2;}
29097 { (exit 1); exit 1; }; }
29099 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29100 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29101 Usually this means the macro was only invoked conditionally." >&5
29102 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29103 Usually this means the macro was only invoked conditionally." >&2;}
29104 { (exit 1); exit 1; }; }
29106 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29107 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29108 Usually this means the macro was only invoked conditionally." >&5
29109 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29110 Usually this means the macro was only invoked conditionally." >&2;}
29111 { (exit 1); exit 1; }; }
29113 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29114 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29115 Usually this means the macro was only invoked conditionally." >&5
29116 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29117 Usually this means the macro was only invoked conditionally." >&2;}
29118 { (exit 1); exit 1; }; }
29120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29121 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29122 Usually this means the macro was only invoked conditionally." >&5
29123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29124 Usually this means the macro was only invoked conditionally." >&2;}
29125 { (exit 1); exit 1; }; }
29127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29129 Usually this means the macro was only invoked conditionally." >&5
29130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29131 Usually this means the macro was only invoked conditionally." >&2;}
29132 { (exit 1); exit 1; }; }
29134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29136 Usually this means the macro was only invoked conditionally." >&5
29137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29138 Usually this means the macro was only invoked conditionally." >&2;}
29139 { (exit 1); exit 1; }; }
29141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29142 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29143 Usually this means the macro was only invoked conditionally." >&5
29144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29145 Usually this means the macro was only invoked conditionally." >&2;}
29146 { (exit 1); exit 1; }; }
29149 : ${CONFIG_STATUS=./config.status}
29150 ac_clean_files_save=$ac_clean_files
29151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29152 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29153 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29154 cat >$CONFIG_STATUS <<_ACEOF
29156 # Generated by $as_me.
29157 # Run this file to recreate the current configuration.
29158 # Compiler output produced by configure, useful for debugging
29159 # configure, is in config.log if it exists.
29162 ac_cs_recheck=false
29164 SHELL=\${CONFIG_SHELL-$SHELL}
29167 cat >>$CONFIG_STATUS <<\_ACEOF
29168 ## --------------------- ##
29169 ## M4sh Initialization. ##
29170 ## --------------------- ##
29172 # Be more Bourne compatible
29173 DUALCASE=1; export DUALCASE # for MKS sh
29174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29178 # is contrary to our usage. Disable this feature.
29179 alias -g '${1+"$@"}'='"$@"'
29180 setopt NO_GLOB_SUBST
29182 case `(set -o) 2>/dev/null` in
29183 *posix*) set -o posix ;;
29192 # Avoid depending upon Character Ranges.
29193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29196 as_cr_digits='0123456789'
29197 as_cr_alnum=$as_cr_Letters$as_cr_digits
29199 # The user is always right.
29200 if test "${PATH_SEPARATOR+set}" != set; then
29201 echo "#! /bin/sh" >conf$$.sh
29202 echo "exit 0" >>conf$$.sh
29204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29212 # Support unset when possible.
29213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29221 # We need space, tab and new line, in precisely that order. Quoting is
29222 # there to prevent editors from complaining about space-tab.
29223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29224 # splitting by setting IFS to empty value.)
29229 # Find who we are. Look in the path if we contain no directory separator.
29231 *[\\/]* ) as_myself=$0 ;;
29232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29233 for as_dir in $PATH
29236 test -z "$as_dir" && as_dir=.
29237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29243 # We did not find ourselves, most probably we were run as `sh COMMAND'
29244 # in which case we are not to be found in the path.
29245 if test "x$as_myself" = x; then
29248 if test ! -f "$as_myself"; then
29249 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29250 { (exit 1); exit 1; }
29253 # Work around bugs in pre-3.0 UWIN ksh.
29254 for as_var in ENV MAIL MAILPATH
29255 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29265 LC_TELEPHONE LC_TIME
29267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29268 eval $as_var=C; export $as_var
29270 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29274 # Required to use basename.
29275 if expr a : '\(a\)' >/dev/null 2>&1 &&
29276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29283 as_basename=basename
29289 # Name of the executable.
29290 as_me=`$as_basename -- "$0" ||
29291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29292 X"$0" : 'X\(//\)$' \| \
29293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29295 sed '/^.*\/\([^/][^/]*\)\/*$/{
29314 as_lineno_1=$LINENO
29315 as_lineno_2=$LINENO
29316 test "x$as_lineno_1" != "x$as_lineno_2" &&
29317 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29320 # uniformly replaced by the line number. The first 'sed' inserts a
29321 # line-number line after each line using $LINENO; the second 'sed'
29322 # does the real work. The second script uses 'N' to pair each
29323 # line-number line with the line containing $LINENO, and appends
29324 # trailing '-' during substitution so that $LINENO is not a special
29325 # case at line end.
29326 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29327 # scripts with optimization help from Paolo Bonzini. Blame Lee
29328 # E. McMahon (1931-1989) for sed's syntax. :-)
29340 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29343 ' >$as_me.lineno &&
29344 chmod +x "$as_me.lineno" ||
29345 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29346 { (exit 1); exit 1; }; }
29348 # Don't try to exec as it changes $[0], causing all sort of problems
29349 # (the dirname of $[0] is not the place where we might find the
29350 # original and so on. Autoconf is especially sensitive to this).
29351 . "./$as_me.lineno"
29352 # Exit status is that of the last command.
29357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29363 ECHO_C= ECHO_N= ECHO_T=
29364 case `echo -n x` in
29366 case `echo 'x\c'` in
29367 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29374 if expr a : '\(a\)' >/dev/null 2>&1 &&
29375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29381 rm -f conf$$ conf$$.exe conf$$.file
29382 if test -d conf$$.dir; then
29383 rm -f conf$$.dir/conf$$.file
29389 if ln -s conf$$.file conf$$ 2>/dev/null; then
29391 # ... but there are two gotchas:
29392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29394 # In both cases, we have to default to `cp -p'.
29395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29397 elif ln conf$$.file conf$$ 2>/dev/null; then
29402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29403 rmdir conf$$.dir 2>/dev/null
29405 if mkdir -p . 2>/dev/null; then
29408 test -d ./-p && rmdir ./-p
29412 if test -x / >/dev/null 2>&1; then
29413 as_test_x='test -x'
29415 if ls -dL / >/dev/null 2>&1; then
29422 if test -d "$1"; then
29428 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29429 ???[sx]*):;;*)false;;esac;fi
29433 as_executable_p=$as_test_x
29435 # Sed expression to map a string onto a valid CPP name.
29436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29438 # Sed expression to map a string onto a valid variable name.
29439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29444 # Save the log message, to keep $[0] and so on meaningful, and to
29445 # report actual input values of CONFIG_FILES etc. instead of their
29446 # values after options handling.
29448 This file was extended by linux nfs-utils $as_me 1.0.11, which was
29449 generated by GNU Autoconf 2.61. Invocation command line was
29451 CONFIG_FILES = $CONFIG_FILES
29452 CONFIG_HEADERS = $CONFIG_HEADERS
29453 CONFIG_LINKS = $CONFIG_LINKS
29454 CONFIG_COMMANDS = $CONFIG_COMMANDS
29457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29462 cat >>$CONFIG_STATUS <<_ACEOF
29463 # Files that config.status was made for.
29464 config_files="$ac_config_files"
29465 config_headers="$ac_config_headers"
29466 config_commands="$ac_config_commands"
29470 cat >>$CONFIG_STATUS <<\_ACEOF
29472 \`$as_me' instantiates files from templates according to the
29473 current configuration.
29475 Usage: $0 [OPTIONS] [FILE]...
29477 -h, --help print this help, then exit
29478 -V, --version print version number and configuration settings, then exit
29479 -q, --quiet do not print progress messages
29480 -d, --debug don't remove temporary files
29481 --recheck update $as_me by reconfiguring in the same conditions
29482 --file=FILE[:TEMPLATE]
29483 instantiate the configuration file FILE
29484 --header=FILE[:TEMPLATE]
29485 instantiate the configuration header FILE
29487 Configuration files:
29490 Configuration headers:
29493 Configuration commands:
29496 Report bugs to <bug-autoconf@gnu.org>."
29499 cat >>$CONFIG_STATUS <<_ACEOF
29501 linux nfs-utils config.status 1.0.11
29502 configured by $0, generated by GNU Autoconf 2.61,
29503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29505 Copyright (C) 2006 Free Software Foundation, Inc.
29506 This config.status script is free software; the Free Software Foundation
29507 gives unlimited permission to copy, distribute and modify it."
29515 cat >>$CONFIG_STATUS <<\_ACEOF
29516 # If no file are specified by the user, then we need to provide default
29517 # value. By we need to know if files were specified by the user.
29523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29535 # Handling of the options.
29536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29539 echo "$ac_cs_version"; exit ;;
29540 --debug | --debu | --deb | --de | --d | -d )
29542 --file | --fil | --fi | --f )
29544 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29545 ac_need_defaults=false;;
29546 --header | --heade | --head | --hea )
29548 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29549 ac_need_defaults=false;;
29551 # Conflict between --help and --header
29552 { echo "$as_me: error: ambiguous option: $1
29553 Try \`$0 --help' for more information." >&2
29554 { (exit 1); exit 1; }; };;
29555 --help | --hel | -h )
29556 echo "$ac_cs_usage"; exit ;;
29557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29561 # This is an error.
29562 -*) { echo "$as_me: error: unrecognized option: $1
29563 Try \`$0 --help' for more information." >&2
29564 { (exit 1); exit 1; }; } ;;
29566 *) ac_config_targets="$ac_config_targets $1"
29567 ac_need_defaults=false ;;
29573 ac_configure_extra_args=
29575 if $ac_cs_silent; then
29577 ac_configure_extra_args="$ac_configure_extra_args --silent"
29581 cat >>$CONFIG_STATUS <<_ACEOF
29582 if \$ac_cs_recheck; then
29583 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29584 CONFIG_SHELL=$SHELL
29585 export CONFIG_SHELL
29586 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29590 cat >>$CONFIG_STATUS <<\_ACEOF
29594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29595 ## Running $as_me. ##
29601 cat >>$CONFIG_STATUS <<_ACEOF
29605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29609 cat >>$CONFIG_STATUS <<\_ACEOF
29611 # Handling of arguments.
29612 for ac_config_target in $ac_config_targets
29614 case $ac_config_target in
29615 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29616 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29618 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29619 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29620 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29621 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29622 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29623 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29624 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29625 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29626 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29627 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29628 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29629 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29630 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29631 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29632 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29633 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29634 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29635 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29636 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29637 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29638 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29639 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29640 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29641 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29642 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29643 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29644 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29645 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29648 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29649 { (exit 1); exit 1; }; };;
29654 # If the user did not use the arguments to specify the items to instantiate,
29655 # then the envvar interface is used. Set only those that are not.
29656 # We use the long form for the default assignment because of an extremely
29657 # bizarre bug on SunOS 4.1.3.
29658 if $ac_need_defaults; then
29659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29664 # Have a temporary directory for convenience. Make it in the build tree
29665 # simply because there is no reason against having it here, and in addition,
29666 # creating and moving files from /tmp can sometimes cause problems.
29667 # Hook for its removal unless debugging.
29668 # Note that there is a small window in which the directory will not be cleaned:
29669 # after its creation but before its name has been assigned to `$tmp'.
29673 trap 'exit_status=$?
29674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29676 trap '{ (exit 1); exit 1; }' 1 2 13 15
29678 # Create a (secure) tmp directory for tmp files.
29681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29682 test -n "$tmp" && test -d "$tmp"
29685 tmp=./conf$$-$RANDOM
29686 (umask 077 && mkdir "$tmp")
29689 echo "$me: cannot create a temporary directory in ." >&2
29690 { (exit 1); exit 1; }
29694 # Set up the sed scripts for CONFIG_FILES section.
29697 # No need to generate the scripts if there are no CONFIG_FILES.
29698 # This happens for instance when ./config.status config.h
29699 if test -n "$CONFIG_FILES"; then
29706 for ac_last_try in false false false false false :; do
29707 cat >conf$$subs.sed <<_ACEOF
29708 SHELL!$SHELL$ac_delim
29709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29715 exec_prefix!$exec_prefix$ac_delim
29716 prefix!$prefix$ac_delim
29717 program_transform_name!$program_transform_name$ac_delim
29718 bindir!$bindir$ac_delim
29719 sbindir!$sbindir$ac_delim
29720 libexecdir!$libexecdir$ac_delim
29721 datarootdir!$datarootdir$ac_delim
29722 datadir!$datadir$ac_delim
29723 sysconfdir!$sysconfdir$ac_delim
29724 sharedstatedir!$sharedstatedir$ac_delim
29725 localstatedir!$localstatedir$ac_delim
29726 includedir!$includedir$ac_delim
29727 oldincludedir!$oldincludedir$ac_delim
29728 docdir!$docdir$ac_delim
29729 infodir!$infodir$ac_delim
29730 htmldir!$htmldir$ac_delim
29731 dvidir!$dvidir$ac_delim
29732 pdfdir!$pdfdir$ac_delim
29733 psdir!$psdir$ac_delim
29734 libdir!$libdir$ac_delim
29735 localedir!$localedir$ac_delim
29736 mandir!$mandir$ac_delim
29737 DEFS!$DEFS$ac_delim
29738 ECHO_C!$ECHO_C$ac_delim
29739 ECHO_N!$ECHO_N$ac_delim
29740 ECHO_T!$ECHO_T$ac_delim
29741 LIBS!$LIBS$ac_delim
29742 build_alias!$build_alias$ac_delim
29743 host_alias!$host_alias$ac_delim
29744 target_alias!$target_alias$ac_delim
29745 build!$build$ac_delim
29746 build_cpu!$build_cpu$ac_delim
29747 build_vendor!$build_vendor$ac_delim
29748 build_os!$build_os$ac_delim
29749 host!$host$ac_delim
29750 host_cpu!$host_cpu$ac_delim
29751 host_vendor!$host_vendor$ac_delim
29752 host_os!$host_os$ac_delim
29753 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29754 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29755 INSTALL_DATA!$INSTALL_DATA$ac_delim
29756 am__isrc!$am__isrc$ac_delim
29757 CYGPATH_W!$CYGPATH_W$ac_delim
29758 PACKAGE!$PACKAGE$ac_delim
29759 VERSION!$VERSION$ac_delim
29760 ACLOCAL!$ACLOCAL$ac_delim
29761 AUTOCONF!$AUTOCONF$ac_delim
29762 AUTOMAKE!$AUTOMAKE$ac_delim
29763 AUTOHEADER!$AUTOHEADER$ac_delim
29764 MAKEINFO!$MAKEINFO$ac_delim
29765 install_sh!$install_sh$ac_delim
29766 STRIP!$STRIP$ac_delim
29767 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29768 mkdir_p!$mkdir_p$ac_delim
29770 SET_MAKE!$SET_MAKE$ac_delim
29771 am__leading_dot!$am__leading_dot$ac_delim
29772 AMTAR!$AMTAR$ac_delim
29773 am__tar!$am__tar$ac_delim
29774 am__untar!$am__untar$ac_delim
29775 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29776 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29777 MAINT!$MAINT$ac_delim
29778 RELEASE!$RELEASE$ac_delim
29779 statedir!$statedir$ac_delim
29780 statduser!$statduser$ac_delim
29781 enable_nfsv3!$enable_nfsv3$ac_delim
29782 IDMAPD!$IDMAPD$ac_delim
29783 enable_nfsv4!$enable_nfsv4$ac_delim
29784 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29785 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29786 GSSD!$GSSD$ac_delim
29787 SVCGSSD!$SVCGSSD$ac_delim
29788 enable_gss!$enable_gss$ac_delim
29789 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29790 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29791 kprefix!$kprefix$ac_delim
29792 secure_statd!$secure_statd$ac_delim
29793 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29794 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29795 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29796 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29798 CFLAGS!$CFLAGS$ac_delim
29799 LDFLAGS!$LDFLAGS$ac_delim
29800 CPPFLAGS!$CPPFLAGS$ac_delim
29801 ac_ct_CC!$ac_ct_CC$ac_delim
29802 EXEEXT!$EXEEXT$ac_delim
29803 OBJEXT!$OBJEXT$ac_delim
29804 DEPDIR!$DEPDIR$ac_delim
29807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29809 elif $ac_last_try; then
29810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29812 { (exit 1); exit 1; }; }
29814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29818 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29819 if test -n "$ac_eof"; then
29820 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29821 ac_eof=`expr $ac_eof + 1`
29824 cat >>$CONFIG_STATUS <<_ACEOF
29825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29830 s/^/s,@/; s/!/@,|#_!!_#|/
29833 s/'"$ac_delim"'$/,g/; t
29835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29836 ' >>$CONFIG_STATUS <conf$$subs.sed
29837 rm -f conf$$subs.sed
29838 cat >>$CONFIG_STATUS <<_ACEOF
29844 for ac_last_try in false false false false false :; do
29845 cat >conf$$subs.sed <<_ACEOF
29846 am__include!$am__include$ac_delim
29847 am__quote!$am__quote$ac_delim
29848 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29849 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29850 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29851 CCDEPMODE!$CCDEPMODE$ac_delim
29852 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29853 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29854 LIBWRAP!$LIBWRAP$ac_delim
29855 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29856 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29858 CXXFLAGS!$CXXFLAGS$ac_delim
29859 ac_ct_CXX!$ac_ct_CXX$ac_delim
29860 CXXDEPMODE!$CXXDEPMODE$ac_delim
29861 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29862 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29864 LN_S!$LN_S$ac_delim
29865 GREP!$GREP$ac_delim
29866 EGREP!$EGREP$ac_delim
29867 ECHO!$ECHO$ac_delim
29869 RANLIB!$RANLIB$ac_delim
29870 CXXCPP!$CXXCPP$ac_delim
29872 FFLAGS!$FFLAGS$ac_delim
29873 ac_ct_F77!$ac_ct_F77$ac_delim
29874 LIBTOOL!$LIBTOOL$ac_delim
29875 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29877 LIBNSL!$LIBNSL$ac_delim
29878 PKG_CONFIG!$PKG_CONFIG$ac_delim
29879 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29880 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29881 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29882 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29883 LIBSOCKET!$LIBSOCKET$ac_delim
29884 LIBCRYPT!$LIBCRYPT$ac_delim
29885 LIBBSD!$LIBBSD$ac_delim
29886 LIBBLKID!$LIBBLKID$ac_delim
29887 KRBDIR!$KRBDIR$ac_delim
29888 KRBLIBS!$KRBLIBS$ac_delim
29889 KRBCFLAGS!$KRBCFLAGS$ac_delim
29890 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29891 K5VERS!$K5VERS$ac_delim
29892 ALLOCA!$ALLOCA$ac_delim
29893 LIBOBJS!$LIBOBJS$ac_delim
29894 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29895 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29896 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29897 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29898 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29899 AM_CFLAGS!$AM_CFLAGS$ac_delim
29900 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29901 LTLIBOBJS!$LTLIBOBJS$ac_delim
29904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
29906 elif $ac_last_try; then
29907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29909 { (exit 1); exit 1; }; }
29911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29916 if test -n "$ac_eof"; then
29917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29918 ac_eof=`expr $ac_eof + 1`
29921 cat >>$CONFIG_STATUS <<_ACEOF
29922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29927 s/^/s,@/; s/!/@,|#_!!_#|/
29930 s/'"$ac_delim"'$/,g/; t
29932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29933 ' >>$CONFIG_STATUS <conf$$subs.sed
29934 rm -f conf$$subs.sed
29935 cat >>$CONFIG_STATUS <<_ACEOF
29942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29944 # trailing colons and then remove the whole line if VPATH becomes empty
29945 # (actually we leave an empty line to preserve line numbers).
29946 if test "x$srcdir" = x.; then
29947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29948 s/:*\$(srcdir):*/:/
29949 s/:*\${srcdir}:*/:/
29951 s/^\([^=]*=[ ]*\):*/\1/
29957 cat >>$CONFIG_STATUS <<\_ACEOF
29958 fi # test -n "$CONFIG_FILES"
29961 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29964 :[FHLC]) ac_mode=$ac_tag; continue;;
29966 case $ac_mode$ac_tag in
29968 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29970 { (exit 1); exit 1; }; };;
29971 :[FH]-) ac_tag=-:-;;
29972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29989 -) ac_f="$tmp/stdin";;
29990 *) # Look for the file first in the build tree, then in the source tree
29991 # (if the path is not absolute). The absolute path cannot be DOS-style,
29992 # because $ac_f cannot contain `:'.
29996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29998 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30000 { (exit 1); exit 1; }; };;
30002 ac_file_inputs="$ac_file_inputs $ac_f"
30005 # Let's still pretend it is `configure' which instantiates (i.e., don't
30006 # use $as_me), people would be surprised to read:
30007 # /* config.h. Generated by config.status. */
30008 configure_input="Generated from "`IFS=:
30009 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30010 if test x"$ac_file" != x-; then
30011 configure_input="$ac_file. $configure_input"
30012 { echo "$as_me:$LINENO: creating $ac_file" >&5
30013 echo "$as_me: creating $ac_file" >&6;}
30017 *:-:* | *:-) cat >"$tmp/stdin";;
30022 ac_dir=`$as_dirname -- "$ac_file" ||
30023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30024 X"$ac_file" : 'X\(//\)[^/]' \| \
30025 X"$ac_file" : 'X\(//\)$' \| \
30026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30032 /^X\(\/\/\)[^/].*/{
30047 -*) as_dir=./$as_dir;;
30049 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30053 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30054 *) as_qdir=$as_dir;;
30056 as_dirs="'$as_qdir' $as_dirs"
30057 as_dir=`$as_dirname -- "$as_dir" ||
30058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30059 X"$as_dir" : 'X\(//\)[^/]' \| \
30060 X"$as_dir" : 'X\(//\)$' \| \
30061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30067 /^X\(\/\/\)[^/].*/{
30080 test -d "$as_dir" && break
30082 test -z "$as_dirs" || eval "mkdir $as_dirs"
30083 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30085 { (exit 1); exit 1; }; }; }
30089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30092 # A ".." for each directory in $ac_dir_suffix.
30093 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30094 case $ac_top_builddir_sub in
30095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30099 ac_abs_top_builddir=$ac_pwd
30100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30101 # for backward compatibility:
30102 ac_top_builddir=$ac_top_build_prefix
30105 .) # We are building in place.
30107 ac_top_srcdir=$ac_top_builddir_sub
30108 ac_abs_top_srcdir=$ac_pwd ;;
30109 [\\/]* | ?:[\\/]* ) # Absolute name.
30110 ac_srcdir=$srcdir$ac_dir_suffix;
30111 ac_top_srcdir=$srcdir
30112 ac_abs_top_srcdir=$srcdir ;;
30113 *) # Relative name.
30114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30115 ac_top_srcdir=$ac_top_build_prefix$srcdir
30116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30131 ac_MKDIR_P=$MKDIR_P
30133 [\\/$]* | ?:[\\/]* ) ;;
30134 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30138 cat >>$CONFIG_STATUS <<\_ACEOF
30139 # If the template does not know about datarootdir, expand it.
30140 # FIXME: This hack should be removed a few years after 2.60.
30141 ac_datarootdir_hack=; ac_datarootdir_seen=
30143 case `sed -n '/datarootdir/ {
30152 ' $ac_file_inputs` in
30153 *datarootdir*) ac_datarootdir_seen=yes;;
30154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30155 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30158 cat >>$CONFIG_STATUS <<_ACEOF
30159 ac_datarootdir_hack='
30160 s&@datadir@&$datadir&g
30161 s&@docdir@&$docdir&g
30162 s&@infodir@&$infodir&g
30163 s&@localedir@&$localedir&g
30164 s&@mandir@&$mandir&g
30165 s&\\\${datarootdir}&$datarootdir&g' ;;
30169 # Neutralize VPATH when `$srcdir' = `.'.
30170 # Shell code in configure.ac might set extrasub.
30171 # FIXME: do we really want to maintain this feature?
30172 cat >>$CONFIG_STATUS <<_ACEOF
30176 cat >>$CONFIG_STATUS <<\_ACEOF
30178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30179 s&@configure_input@&$configure_input&;t t
30180 s&@top_builddir@&$ac_top_builddir_sub&;t t
30181 s&@srcdir@&$ac_srcdir&;t t
30182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30183 s&@top_srcdir@&$ac_top_srcdir&;t t
30184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30185 s&@builddir@&$ac_builddir&;t t
30186 s&@abs_builddir@&$ac_abs_builddir&;t t
30187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30188 s&@INSTALL@&$ac_INSTALL&;t t
30189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30190 $ac_datarootdir_hack
30191 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30194 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30196 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30197 which seems to be undefined. Please make sure it is defined." >&5
30198 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30199 which seems to be undefined. Please make sure it is defined." >&2;}
30203 -) cat "$tmp/out"; rm -f "$tmp/out";;
30204 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30213 # Transform confdefs.h into a sed script `conftest.defines', that
30214 # substitutes the proper values into config.h.in to produce config.h.
30215 rm -f conftest.defines conftest.tail
30216 # First, append a space to every undef/define line, to ease matching.
30217 echo 's/$/ /' >conftest.defines
30218 # Then, protect against being on the right side of a sed subst, or in
30219 # an unquoted here document, in config.status. If some macros were
30220 # called several times there might be several #defines for the same
30221 # symbol, which is useless. But do not sort them, since the last
30222 # AC_DEFINE must be honored.
30223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30224 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30225 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30226 # PARAMS is the parameter list in the macro definition--in most cases, it's
30227 # just an empty string.
30228 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30229 ac_dB='\\)[ (].*,\\1define\\2'
30237 s/^[ ]*#[ ]*define[ ][ ]*//
30242 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30243 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30244 ' >>conftest.defines
30246 # Remove the space that was appended to ease matching.
30247 # Then replace #undef with comments. This is necessary, for
30248 # example, in the case of _POSIX_SOURCE, which is predefined and required
30249 # on some systems where configure will not decide to define it.
30250 # (The regexp can be short, since the line contains either #define or #undef.)
30252 s,^[ #]*u.*,/* & */,' >>conftest.defines
30254 # Break up conftest.defines:
30255 ac_max_sed_lines=50
30257 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30258 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30259 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30261 ac_in='$ac_file_inputs'
30262 ac_out='"$tmp/out1"'
30263 ac_nxt='"$tmp/out2"'
30267 # Write a here document:
30268 cat >>$CONFIG_STATUS <<_ACEOF
30269 # First, check the format of the line:
30270 cat >"\$tmp/defines.sed" <<\\CEOF
30271 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30272 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30276 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30278 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30279 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30280 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30281 grep . conftest.tail >/dev/null || break
30282 rm -f conftest.defines
30283 mv conftest.tail conftest.defines
30285 rm -f conftest.defines conftest.tail
30287 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30288 cat >>$CONFIG_STATUS <<\_ACEOF
30289 if test x"$ac_file" != x-; then
30290 echo "/* $configure_input */" >"$tmp/config.h"
30291 cat "$ac_result" >>"$tmp/config.h"
30292 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30293 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30294 echo "$as_me: $ac_file is unchanged" >&6;}
30297 mv "$tmp/config.h" $ac_file
30300 echo "/* $configure_input */"
30304 # Compute $ac_file's index in $config_headers.
30306 for _am_header in $config_headers :; do
30307 case $_am_header in
30308 $ac_file | $ac_file:* )
30311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30314 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30315 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30316 X$ac_file : 'X\(//\)[^/]' \| \
30317 X$ac_file : 'X\(//\)$' \| \
30318 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30324 /^X\(\/\/\)[^/].*/{
30336 s/.*/./; q'`/stamp-h$_am_stamp_count
30339 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30340 echo "$as_me: executing $ac_file commands" >&6;}
30345 case $ac_file$ac_mode in
30346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30347 # Strip MF so we end up with the name of the file.
30348 mf=`echo "$mf" | sed -e 's/:.*$//'`
30349 # Check whether this is an Automake generated Makefile or not.
30350 # We used to match only the files named `Makefile.in', but
30351 # some people rename them; so instead we look at the file content.
30352 # Grep'ing the first line is not enough: some people post-process
30353 # each Makefile.in and add a new line on top of each file to say so.
30354 # Grep'ing the whole file is not good either: AIX grep has a line
30355 # limit of 2048, but all sed's we know have understand at least 4000.
30356 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30357 dirpart=`$as_dirname -- "$mf" ||
30358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30359 X"$mf" : 'X\(//\)[^/]' \| \
30360 X"$mf" : 'X\(//\)$' \| \
30361 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30367 /^X\(\/\/\)[^/].*/{
30383 # Extract the definition of DEPDIR, am__include, and am__quote
30384 # from the Makefile without running `make'.
30385 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30386 test -z "$DEPDIR" && continue
30387 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30388 test -z "am__include" && continue
30389 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30390 # When using ansi2knr, U may be empty or an underscore; expand it
30391 U=`sed -n 's/^U = //p' < "$mf"`
30392 # Find all dependency output files, they are included files with
30393 # $(DEPDIR) in their names. We invoke sed twice because it is the
30394 # simplest approach to changing $(DEPDIR) to its actual value in the
30396 for file in `sed -n "
30397 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30398 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30399 # Make sure the directory exists.
30400 test -f "$dirpart/$file" && continue
30401 fdir=`$as_dirname -- "$file" ||
30402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30403 X"$file" : 'X\(//\)[^/]' \| \
30404 X"$file" : 'X\(//\)$' \| \
30405 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30411 /^X\(\/\/\)[^/].*/{
30424 { as_dir=$dirpart/$fdir
30426 -*) as_dir=./$as_dir;;
30428 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30432 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30433 *) as_qdir=$as_dir;;
30435 as_dirs="'$as_qdir' $as_dirs"
30436 as_dir=`$as_dirname -- "$as_dir" ||
30437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30438 X"$as_dir" : 'X\(//\)[^/]' \| \
30439 X"$as_dir" : 'X\(//\)$' \| \
30440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30446 /^X\(\/\/\)[^/].*/{
30459 test -d "$as_dir" && break
30461 test -z "$as_dirs" || eval "mkdir $as_dirs"
30462 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30464 { (exit 1); exit 1; }; }; }
30465 # echo "creating $dirpart/$file"
30466 echo '# dummy' > "$dirpart/$file"
30475 { (exit 0); exit 0; }
30477 chmod +x $CONFIG_STATUS
30478 ac_clean_files=$ac_clean_files_save
30481 # configure is writing to config.log, and then calls config.status.
30482 # config.status does its own redirection, appending to config.log.
30483 # Unfortunately, on DOS this fails, as config.log is still kept open
30484 # by configure, so config.status won't be able to write to it; its
30485 # output is simply discarded. So we exec the FD to /dev/null,
30486 # effectively closing config.log, so it can be properly (re)opened and
30487 # appended to by config.status. When coming back to configure, we
30488 # need to make the FD available again.
30489 if test "$no_create" != yes; then
30491 ac_config_status_args=
30492 test "$silent" = yes &&
30493 ac_config_status_args="$ac_config_status_args --quiet"
30495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30498 # would make configure fail if this is the last instruction.
30499 $ac_cs_success || { (exit 1); exit 1; }