2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.1.
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.1.1'
732 PACKAGE_STRING='linux nfs-utils 1.1.1'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
832 INSTALL_STRIP_PROGRAM
841 MAINTAINER_MODE_FALSE
930 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078 eval enable_$ac_feature=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1242 -site=* | --site=* | --sit=*)
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275 eval with_$ac_package=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284 eval with_$ac_package=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1335 # Be sure to have absolute directory names.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
1392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421 { (exit 1); exit 1; }; }
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426 { (exit 1); exit 1; }; }
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures linux nfs-utils 1.1.1 to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive ) echo "Configuration of linux nfs-utils 1.1.1:";;
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-maintainer-mode enable make rules and dependencies not useful
1530 (and sometimes confusing) to the casual installer
1531 --enable-nfsv3 enable support for NFSv3 [default=yes]
1532 --enable-nfsv4 enable support for NFSv4 [default=yes]
1533 --enable-gss enable support for rpcsec_gss [default=yes]
1534 --enable-kprefix install progs as rpc.knfsd etc
1535 --enable-secure-statd Only lockd can use statd (security)
1536 --without-uuid Exclude uuid support and so avoid possibly buggy
1538 --enable-mount Create mount.nfs and don't use the util-linux
1539 mount(8) functionality. [default=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --disable-largefile omit support for large files
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-release=XXX set release to XXX [1]
1553 --with-statedir=/foo use state dir /foo /var/lib/nfs
1554 --with-statduser=rpcuser
1555 statd to run under [rpcuser or nobody]
1556 --with-start-statd=scriptname
1557 When an nfs filesystems is mounted with locking, run
1559 --with-rpcgen=internal use internal rpcgen instead of system one
1560 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1561 (optionally in PATH)
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1565 --with-tags[=TAGS] include additional configurations [automatic]
1566 --with-krb5=DIR use Kerberos v5 installation in DIR
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1579 CXXCPP C++ preprocessor
1580 F77 Fortran 77 compiler command
1581 FFLAGS Fortran 77 compiler flags
1582 PKG_CONFIG path to pkg-config utility
1584 C compiler flags for RPCSECGSS, overriding pkg-config
1586 linker flags for RPCSECGSS, overriding pkg-config
1588 C compiler flags for GSSGLUE, overriding pkg-config
1590 linker flags for GSSGLUE, overriding pkg-config
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1595 Report bugs to <nfs@lists.sf.net>.
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" || continue
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1610 # A ".." for each directory in $ac_dir_suffix.
1611 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1623 .) # We are building in place.
1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
1628 ac_srcdir=$srcdir$ac_dir_suffix;
1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1645 $SHELL "$ac_srcdir/configure" --help=recursive
1647 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 cd "$ac_pwd" || { ac_status=$?; break; }
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1656 linux nfs-utils configure 1.1.1
1657 generated by GNU Autoconf 2.61
1659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1670 It was created by linux nfs-utils $as_me 1.1.1, which was
1671 generated by GNU Autoconf 2.61. Invocation command line was
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1696 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 echo "PATH: $as_dir"
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_must_keep_next=false
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1742 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 -* ) ac_must_keep_next=true ;;
1763 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log. We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1787 # The following way of writing the cache mishandles newlines in values,
1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790 eval ac_val=\$$ac_var
1794 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1798 _ | IFS | as_nl) ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 echo "$as_me: caught signal $ac_signal"
1864 echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908 set x "$CONFIG_SITE"
1909 elif test "x$prefix" != xNONE; then
1910 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912 set x "$ac_default_prefix/share/config.site" \
1913 "$ac_default_prefix/etc/config.site"
1918 if test -r "$ac_site_file"; then
1919 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1920 echo "$as_me: loading site script $ac_site_file" >&6;}
1921 sed 's/^/| /' "$ac_site_file" >&5
1926 if test -r "$cache_file"; then
1927 # Some versions of bash will fail to source /dev/null (special
1928 # files actually), so we avoid doing that.
1929 if test -f "$cache_file"; then
1930 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1931 echo "$as_me: loading cache $cache_file" >&6;}
1933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934 *) . "./$cache_file";;
1938 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1939 echo "$as_me: creating cache $cache_file" >&6;}
1943 # Check that the precious variables saved in the cache have kept the same
1945 ac_cache_corrupted=false
1946 for ac_var in $ac_precious_vars; do
1947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948 eval ac_new_set=\$ac_env_${ac_var}_set
1949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950 eval ac_new_val=\$ac_env_${ac_var}_value
1951 case $ac_old_set,$ac_new_set in
1953 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955 ac_cache_corrupted=: ;;
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1962 if test "x$ac_old_val" != "x$ac_new_val"; then
1963 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1964 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1966 echo "$as_me: former value: $ac_old_val" >&2;}
1967 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1968 echo "$as_me: current value: $ac_new_val" >&2;}
1969 ac_cache_corrupted=:
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1975 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 *) ac_arg=$ac_var=$ac_new_val ;;
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984 if $ac_cache_corrupted; then
1985 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989 { (exit 1); exit 1; }; }
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2025 if test -f "$ac_dir/install-sh"; then
2027 ac_install_sh="$ac_aux_dir/install-sh -c"
2029 elif test -f "$ac_dir/install.sh"; then
2031 ac_install_sh="$ac_aux_dir/install.sh -c"
2033 elif test -f "$ac_dir/shtool"; then
2035 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 if test -z "$ac_aux_dir"; then
2040 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2041 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2042 { (exit 1); exit 1; }; }
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054 # Make sure we can run config.sub.
2055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2056 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2057 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2058 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_build+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 ac_build_alias=$build_alias
2066 test "x$ac_build_alias" = x &&
2067 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2068 test "x$ac_build_alias" = x &&
2069 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071 { (exit 1); exit 1; }; }
2072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2073 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2074 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2075 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6; }
2080 case $ac_cv_build in
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2083 echo "$as_me: error: invalid value of canonical build" >&2;}
2084 { (exit 1); exit 1; }; };;
2087 ac_save_IFS=$IFS; IFS='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking host system type" >&5
2101 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_host+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test "x$host_alias" = x; then
2106 ac_cv_host=$ac_cv_build
2108 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2116 echo "${ECHO_T}$ac_cv_host" >&6; }
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2120 echo "$as_me: error: invalid value of canonical host" >&2;}
2121 { (exit 1); exit 1; }; };;
2124 ac_save_IFS=$IFS; IFS='-'
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2138 am__api_version='1.10'
2140 # Find a good install program. We prefer a C program (faster),
2141 # so one script is as good as another. But avoid the broken or
2142 # incompatible versions:
2143 # SysV /etc/install, /usr/sbin/install
2144 # SunOS /usr/etc/install
2145 # IRIX /sbin/install
2147 # AmigaOS /C/install, which installs bootblocks on floppy discs
2148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2151 # OS/2's system install, which has a completely different semantic
2152 # ./install, which can be erroneously created by make from ./install.sh.
2153 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2155 if test -z "$INSTALL"; then
2156 if test "${ac_cv_path_install+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 # Account for people who put trailing slashes in PATH elements.
2166 ./ | .// | /cC/* | \
2167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2168 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2171 # OSF1 and SCO ODT 3.0 have their own names for install.
2172 # Don't use installbsd from OSF since it installs stuff as root
2174 for ac_prog in ginstall scoinst install; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2177 if test $ac_prog = install &&
2178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179 # AIX install. It has an incompatible calling convention.
2181 elif test $ac_prog = install &&
2182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183 # program-specific install script used by HP pwplus--don't use.
2186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2199 if test "${ac_cv_path_install+set}" = set; then
2200 INSTALL=$ac_cv_path_install
2202 # As a last resort, use the slow shell script. Don't cache a
2203 # value for INSTALL within a source directory, because that will
2204 # break other packages using the cache if that directory is
2205 # removed, or if the value is a relative name.
2206 INSTALL=$ac_install_sh
2209 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2210 echo "${ECHO_T}$INSTALL" >&6; }
2212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213 # It thinks the first close brace ends the variable substitution.
2214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2221 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2224 echo timestamp > conftest.file
2225 # Do `set' in a subshell so we don't clobber the current shell's
2226 # arguments. Must try -L first in case configure is actually a
2227 # symlink; some systems play weird games with the mod time of symlinks
2228 # (eg FreeBSD returns the mod time of the symlink's containing
2231 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2232 if test "$*" = "X"; then
2234 set X `ls -t $srcdir/configure conftest.file`
2237 if test "$*" != "X $srcdir/configure conftest.file" \
2238 && test "$*" != "X conftest.file $srcdir/configure"; then
2240 # If neither matched, then we have a broken ls. This can happen
2241 # if, for instance, CONFIG_SHELL is bash and it inherits a
2242 # broken ls alias from the environment. This has actually
2243 # happened. Such a system could not be considered "sane".
2244 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&5
2246 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2247 alias in your environment" >&2;}
2248 { (exit 1); exit 1; }; }
2251 test "$2" = conftest.file
2257 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2258 Check your system clock" >&5
2259 echo "$as_me: error: newly created file is older than distributed files!
2260 Check your system clock" >&2;}
2261 { (exit 1); exit 1; }; }
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6; }
2265 test "$program_prefix" != NONE &&
2266 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2267 # Use a double $ so make ignores it.
2268 test "$program_suffix" != NONE &&
2269 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2270 # Double any \ or $. echo might interpret backslashes.
2271 # By default was `s,x,x', remove it if useless.
2272 cat <<\_ACEOF >conftest.sed
2273 s/[\\$]/&&/g;s/;s,x,x,$//
2275 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2278 # expand $ac_aux_dir to an absolute path
2279 am_aux_dir=`cd $ac_aux_dir && pwd`
2281 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284 am_missing_run="$MISSING --run "
2287 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2292 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2293 if test -z "$MKDIR_P"; then
2294 if test "${ac_cv_path_mkdir+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2301 test -z "$as_dir" && as_dir=.
2302 for ac_prog in mkdir gmkdir; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2305 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2306 'mkdir (GNU coreutils) '* | \
2307 'mkdir (coreutils) '* | \
2308 'mkdir (fileutils) '4.1*)
2309 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2319 if test "${ac_cv_path_mkdir+set}" = set; then
2320 MKDIR_P="$ac_cv_path_mkdir -p"
2322 # As a last resort, use the slow shell script. Don't cache a
2323 # value for MKDIR_P within a source directory, because that will
2324 # break other packages using the cache if that directory is
2325 # removed, or if the value is a relative name.
2326 test -d ./--version && rmdir ./--version
2327 MKDIR_P="$ac_install_sh -d"
2330 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2331 echo "${ECHO_T}$MKDIR_P" >&6; }
2335 [\\/$]* | ?:[\\/]*) ;;
2336 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2339 for ac_prog in gawk mawk nawk awk
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_AWK+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$AWK"; then
2349 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_AWK="$ac_prog"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 if test -n "$AWK"; then
2370 { echo "$as_me:$LINENO: result: $AWK" >&5
2371 echo "${ECHO_T}$AWK" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2378 test -n "$AWK" && break
2381 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2382 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2383 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2384 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.make <<\_ACEOF
2390 @echo '@@@%%%=$(MAKE)=@@@%%%'
2392 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2395 eval ac_cv_prog_make_${ac_make}_set=yes;;
2397 eval ac_cv_prog_make_${ac_make}_set=no;;
2401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2402 { echo "$as_me:$LINENO: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6; }
2406 { echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6; }
2408 SET_MAKE="MAKE=${MAKE-make}"
2411 rm -rf .tst 2>/dev/null
2412 mkdir .tst 2>/dev/null
2413 if test -d .tst; then
2418 rmdir .tst 2>/dev/null
2420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2421 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2422 # is not polluted with repeated "-I."
2423 am__isrc=' -I$(srcdir)'
2424 # test to see if srcdir already configured
2425 if test -f $srcdir/config.status; then
2426 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2427 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2428 { (exit 1); exit 1; }; }
2432 # test whether we have cygpath
2433 if test -z "$CYGPATH_W"; then
2434 if (cygpath --version) >/dev/null 2>/dev/null; then
2435 CYGPATH_W='cygpath -w'
2442 # Define the identity of the package.
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE "$PACKAGE"
2452 cat >>confdefs.h <<_ACEOF
2453 #define VERSION "$VERSION"
2456 # Some tools Automake needs.
2458 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2467 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2472 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'. However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_STRIP+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$STRIP"; then
2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509 { echo "$as_me:$LINENO: result: $STRIP" >&5
2510 echo "${ECHO_T}$STRIP" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2518 if test -z "$ac_cv_prog_STRIP"; then
2520 # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_STRIP"; then
2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_STRIP="strip"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2556 if test "x$ac_ct_STRIP" = x; then
2559 case $cross_compiling:$ac_tool_warned in
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2572 STRIP="$ac_cv_prog_STRIP"
2576 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578 # We need awk for the "check" target. The system "awk" is bad on
2580 # Always define AMTAR for backward compatibility.
2582 AMTAR=${AMTAR-"${am_missing_run}tar"}
2584 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2592 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2594 # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then
2596 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2598 USE_MAINTAINER_MODE=no
2601 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2602 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2603 if test $USE_MAINTAINER_MODE = yes; then
2604 MAINTAINER_MODE_TRUE=
2605 MAINTAINER_MODE_FALSE='#'
2607 MAINTAINER_MODE_TRUE='#'
2608 MAINTAINER_MODE_FALSE=
2611 MAINT=$MAINTAINER_MODE_TRUE
2616 # Check whether --with-release was given.
2617 if test "${with_release+set}" = set; then
2618 withval=$with_release; RELEASE=$withval
2625 # Check whether --with-statedir was given.
2626 if test "${with_statedir+set}" = set; then
2627 withval=$with_statedir; statedir=$withval
2629 statedir=/var/lib/nfs
2634 # Check whether --with-statduser was given.
2635 if test "${with_statduser+set}" = set; then
2636 withval=$with_statduser; statduser=$withval
2638 if test "x$cross_compiling" = "xno"; then
2639 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2651 # Check whether --with-start-statd was given.
2652 if test "${with_start_statd+set}" = set; then
2653 withval=$with_start_statd; startstatd=$withval
2655 startstatd=/usr/sbin/start-statd
2661 cat >>confdefs.h <<_ACEOF
2662 #define START_STATD "$startstatd"
2665 # Check whether --enable-nfsv3 was given.
2666 if test "${enable_nfsv3+set}" = set; then
2667 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2672 if test "$enable_nfsv3" = yes; then
2674 cat >>confdefs.h <<\_ACEOF
2675 #define NFS3_SUPPORTED 1
2682 # Check whether --enable-nfsv4 was given.
2683 if test "${enable_nfsv4+set}" = set; then
2684 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2689 if test "$enable_nfsv4" = yes; then
2691 cat >>confdefs.h <<\_ACEOF
2692 #define NFS4_SUPPORTED 1
2702 if test "$enable_nfsv4" = "yes"; then
2704 CONFIG_NFSV4_FALSE='#'
2706 CONFIG_NFSV4_TRUE='#'
2710 # Check whether --enable-gss was given.
2711 if test "${enable_gss+set}" = set; then
2712 enableval=$enable_gss; enable_gss=$enableval
2717 if test "$enable_gss" = yes; then
2719 cat >>confdefs.h <<\_ACEOF
2720 #define GSS_SUPPORTED 1
2733 if test "$enable_gss" = "yes"; then
2735 CONFIG_GSS_FALSE='#'
2741 # Check whether --enable-kprefix was given.
2742 if test "${enable_kprefix+set}" = set; then
2743 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2749 # Check whether --enable-secure-statd was given.
2750 if test "${enable_secure_statd+set}" = set; then
2751 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2756 if test "$secure_statd" = yes; then
2758 cat >>confdefs.h <<\_ACEOF
2759 #define RESTRICTED_STATD 1
2765 # Check whether --with-rpcgen was given.
2766 if test "${with_rpcgen+set}" = set; then
2767 withval=$with_rpcgen; rpcgen_path=$withval
2773 if test "$rpcgen_path" == "yes"; then
2774 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2775 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2776 elif test "$rpcgen_path" != "internal"; then
2777 RPCGEN_PATH=$rpcgen_path
2780 if test "$RPCGEN_PATH" == ""; then
2782 CONFIG_RPCGEN_FALSE='#'
2784 CONFIG_RPCGEN_TRUE='#'
2785 CONFIG_RPCGEN_FALSE=
2788 # Check whether --enable-uuid was given.
2789 if test "${enable_uuid+set}" = set; then
2790 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2792 choose_blkid=default
2795 # Check whether --enable-mount was given.
2796 if test "${enable_mount+set}" = set; then
2797 enableval=$enable_mount; enable_mount=$enableval
2802 if test "$enable_mount" = "yes"; then
2804 CONFIG_MOUNT_FALSE='#'
2806 CONFIG_MOUNT_TRUE='#'
2811 # Check whether user wants TCP wrappers support
2812 DEPDIR="${am__leading_dot}deps"
2814 ac_config_commands="$ac_config_commands depfiles"
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2823 # If we don't find an include directive, just comment out the code.
2824 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2825 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # We grep out `Entering directory' and `Leaving directory'
2832 # messages which can occur if `w' ends up in MAKEFLAGS.
2833 # In particular we don't look at `^make:' because GNU make might
2834 # be invoked under some other name (usually "gmake"), in which
2835 # case it prints its new name instead of `make'.
2836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2845 am__include=.include
2852 { echo "$as_me:$LINENO: result: $_am_result" >&5
2853 echo "${ECHO_T}$_am_result" >&6; }
2854 rm -f confinc confmf
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then
2858 enableval=$enable_dependency_tracking;
2861 if test "x$enable_dependency_tracking" != xno; then
2862 am_depcomp="$ac_aux_dir/depcomp"
2865 if test "x$enable_dependency_tracking" != xno; then
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2956 if test "x$ac_ct_CC" = x; then
2959 case $cross_compiling:$ac_tool_warned in
2961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2962 whose name does not start with the host triplet. If you think this
2963 configuration is useful to you, please write to autoconf@gnu.org." >&5
2964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2967 ac_tool_warned=yes ;;
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 if test -n "$CC"; then
3006 { echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6; }
3009 { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062 if test -n "$CC"; then
3063 { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3066 { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$CC"; then
3105 { echo "$as_me:$LINENO: result: $CC" >&5
3106 echo "${ECHO_T}$CC" >&6; }
3108 { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3113 test -n "$CC" && break
3116 if test -z "$CC"; then
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 echo "${ECHO_T}$ac_ct_CC" >&6; }
3152 { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3157 test -n "$ac_ct_CC" && break
3160 if test "x$ac_ct_CC" = x; then
3163 case $cross_compiling:$ac_tool_warned in
3165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet. If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&5
3168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3171 ac_tool_warned=yes ;;
3180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3186 # Provide some information about the compiler.
3187 echo "$as_me:$LINENO: checking for C compiler version" >&5
3188 ac_compiler=`set X $ac_compile; echo $2`
3189 { (ac_try="$ac_compiler --version >&5"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compiler --version >&5") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compiler -v >&5") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3209 { (ac_try="$ac_compiler -V >&5"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler -V >&5") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244 # List of possible output files, starting from the most likely.
3245 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3246 # only as a last resort. b.out is created by i960 compilers.
3247 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3249 # The IRIX 6 linker writes into existing files which may not be
3250 # executable, retaining their permissions. Remove them first so a
3251 # subsequent execution test works.
3253 for ac_file in $ac_files
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 if { (ac_try="$ac_link_default"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_link_default") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3277 for ac_file in $ac_files ''
3279 test -f "$ac_file" || continue
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3284 # We found the default executable, but exeext='' is most
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308 { echo "$as_me:$LINENO: result: $ac_file" >&5
3309 echo "${ECHO_T}$ac_file" >&6; }
3310 if test -z "$ac_file"; then
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318 { (exit 77); exit 77; }; }
3321 ac_exeext=$ac_cv_exeext
3323 # Check that the compiler produces executables we can run. If not, either
3324 # the compiler is broken, or we cross compile.
3325 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330 if { ac_try='./$ac_file'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3342 if test "$cross_compiling" = maybe; then
3345 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3346 If you meant to cross compile, use \`--host'.
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }
3355 { echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6; }
3358 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 # Check that the compiler produces executables we can run. If not, either
3361 # the compiler is broken, or we cross compile.
3362 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3363 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3364 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3365 echo "${ECHO_T}$cross_compiling" >&6; }
3367 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3368 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3369 if { (ac_try="$ac_link"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_link") 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; then
3379 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3381 # work properly (i.e., refer to `conftest.exe'), while it won't with
3383 for ac_file in conftest.exe conftest conftest.*; do
3384 test -f "$ac_file" || continue
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&2;}
3397 { (exit 1); exit 1; }; }
3400 rm -f conftest$ac_cv_exeext
3401 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3402 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3407 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3408 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3409 if test "${ac_cv_objext+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3427 rm -f conftest.o conftest.obj
3428 if { (ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3460 echo "${ECHO_T}$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3463 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest.$ac_objext; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3517 GCC=`test $ac_compiler_gnu = yes && echo yes`
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_g+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658 CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660 if test "$GCC" = yes; then
3666 if test "$GCC" = yes; then
3672 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3673 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3674 if test "${ac_cv_prog_cc_c89+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_prog_cc_c89=no
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3703 s = g (p, va_arg (v,int));
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_cv_prog_cc_c89=$ac_arg
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3765 rm -f core conftest.err conftest.$ac_objext
3766 test "x$ac_cv_prog_cc_c89" != "xno" && break
3768 rm -f conftest.$ac_ext
3773 case "x$ac_cv_prog_cc_c89" in
3775 { echo "$as_me:$LINENO: result: none needed" >&5
3776 echo "${ECHO_T}none needed" >&6; } ;;
3778 { echo "$as_me:$LINENO: result: unsupported" >&5
3779 echo "${ECHO_T}unsupported" >&6; } ;;
3781 CC="$CC $ac_cv_prog_cc_c89"
3782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3783 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 depcc="$CC" am_compiler_list=
3795 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3797 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801 # We make a subdir and do the tests there. Otherwise we can end up
3802 # making bogus files that we don't know about and never remove. For
3803 # instance it was reported that on HP-UX the gcc test will end up
3804 # making a dummy file named `D' -- because `-MD' means `put the output
3807 # Copy depcomp to subdir because otherwise we won't find it if we're
3808 # using a relative directory.
3809 cp "$am_depcomp" conftest.dir
3811 # We will build objects and dependencies in a subdirectory because
3812 # it helps to detect inapplicable dependency modes. For instance
3813 # both Tru64's cc and ICC support -MD to output dependencies as a
3814 # side effect of compilation, but ICC will put the dependencies in
3815 # the current directory while Tru64 will put them in the object
3819 am_cv_CC_dependencies_compiler_type=none
3820 if test "$am_compiler_list" = ""; then
3821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835 # Solaris 8's {/usr,}/bin/sh.
3836 touch sub/conftst$i.h
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842 # after this tag, mechanisms are not by side-effect, so they'll
3843 # only be used when explicitly requested
3844 if test "x$enable_dependency_tracking" = xyes; then
3852 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3853 # mode. It turns out that the SunPro C++ compiler does not properly
3854 # handle `-M -o', and we need to detect this.
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3882 am_cv_CC_dependencies_compiler_type=none
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894 am__fastdepCC_FALSE='#'
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3905 # Check whether --with-tcp-wrappers was given.
3906 if test "${with_tcp_wrappers+set}" = set; then
3907 withval=$with_tcp_wrappers; with_tcpw=$withval
3912 if test "x$with_tcpw" != "xno" ; then
3914 saved_LDFLAGS="$LDFLAGS"
3915 saved_CPPFLAGS="$CPPFLAGS"
3916 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3917 if test -d "${with_tcpw}/lib"; then
3918 if test -n "${need_dash_r}"; then
3919 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3921 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3924 if test -n "${need_dash_r}"; then
3925 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3927 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3930 if test -d "${with_tcpw}/include"; then
3931 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3933 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3937 LIBS="$LIBWRAP $LIBS"
3938 { echo "$as_me:$LINENO: checking for libwrap" >&5
3939 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3948 int deny_severity = 0, allow_severity = 0;
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_link") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest$ac_exeext &&
3975 $as_test_x conftest$ac_exeext; then
3977 { echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6; }
3981 cat >>confdefs.h <<\_ACEOF
3986 cat >>confdefs.h <<\_ACEOF
3987 #define HAVE_LIBWRAP 1
3991 cat >>confdefs.h <<\_ACEOF
3992 #define HAVE_TCP_WRAPPER 1
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4003 echo "$as_me: error: *** libwrap missing" >&2;}
4004 { (exit 1); exit 1; }; }
4009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4010 conftest$ac_exeext conftest.$ac_ext
4018 # Arrange for large-file support
4019 # Check whether --enable-largefile was given.
4020 if test "${enable_largefile+set}" = set; then
4021 enableval=$enable_largefile;
4024 if test "$enable_largefile" != no; then
4026 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4027 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4028 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_cv_sys_largefile_CC=no
4032 if test "$GCC" != yes; then
4035 # IRIX 6.2 and later do not support large files by default,
4036 # so use the C compiler's -n32 option if that helps.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <sys/types.h>
4044 /* Check that off_t can represent 2**63 - 1 correctly.
4045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4046 since some C++ compilers masquerading as C compilers
4047 incorrectly reject 9223372036854775807. */
4048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4050 && LARGE_OFF_T % 2147483647 == 1)
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } && {
4074 test -z "$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4076 } && test -s conftest.$ac_objext; then
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f core conftest.err conftest.$ac_objext
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4096 grep -v '^ *+' conftest.er1 >conftest.err
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4104 ac_cv_sys_largefile_CC=' -n32'; break
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f core conftest.err conftest.$ac_objext
4116 rm -f conftest.$ac_ext
4119 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4120 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4121 if test "$ac_cv_sys_largefile_CC" != no; then
4122 CC=$CC$ac_cv_sys_largefile_CC
4125 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4126 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4127 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 /* Check that off_t can represent 2**63 - 1 correctly.
4139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4140 since some C++ compilers masquerading as C compilers
4141 incorrectly reject 9223372036854775807. */
4142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4144 && LARGE_OFF_T % 2147483647 == 1)
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 ac_cv_sys_file_offset_bits=no; break
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #define _FILE_OFFSET_BITS 64
4187 #include <sys/types.h>
4188 /* Check that off_t can represent 2**63 - 1 correctly.
4189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190 since some C++ compilers masquerading as C compilers
4191 incorrectly reject 9223372036854775807. */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194 && LARGE_OFF_T % 2147483647 == 1)
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 ac_cv_sys_file_offset_bits=64; break
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_sys_file_offset_bits=unknown
4234 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4239 cat >>confdefs.h <<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4245 if test $ac_cv_sys_file_offset_bits = unknown; then
4246 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4247 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 /* Check that off_t can represent 2**63 - 1 correctly.
4260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261 since some C++ compilers masquerading as C compilers
4262 incorrectly reject 9223372036854775807. */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265 && LARGE_OFF_T % 2147483647 == 1)
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 ac_cv_sys_large_files=no; break
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 #define _LARGE_FILES 1
4308 #include <sys/types.h>
4309 /* Check that off_t can represent 2**63 - 1 correctly.
4310 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311 since some C++ compilers masquerading as C compilers
4312 incorrectly reject 9223372036854775807. */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315 && LARGE_OFF_T % 2147483647 == 1)
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4342 ac_cv_sys_large_files=1; break
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_sys_large_files=unknown
4355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4357 case $ac_cv_sys_large_files in #(
4360 cat >>confdefs.h <<_ACEOF
4361 #define _LARGE_FILES $ac_cv_sys_large_files
4371 ac_config_headers="$ac_config_headers support/include/config.h"
4374 # Checks for programs.
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381 if test -n "$CCC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$CXX"; then
4395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test -n "$CXX"; then
4416 { echo "$as_me:$LINENO: result: $CXX" >&5
4417 echo "${ECHO_T}$CXX" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 test -n "$CXX" && break
4427 if test -z "$CXX"; then
4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 if test -n "$ac_ct_CXX"; then
4439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_ac_ct_CXX="$ac_prog"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4461 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4468 test -n "$ac_ct_CXX" && break
4471 if test "x$ac_ct_CXX" = x; then
4474 case $cross_compiling:$ac_tool_warned in
4476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4477 whose name does not start with the host triplet. If you think this
4478 configuration is useful to you, please write to autoconf@gnu.org." >&5
4479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet. If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4482 ac_tool_warned=yes ;;
4490 # Provide some information about the compiler.
4491 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (ac_try="$ac_compiler --version >&5"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_compiler --version >&5") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }
4503 { (ac_try="$ac_compiler -v >&5"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compiler -v >&5") 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }
4513 { (ac_try="$ac_compiler -V >&5"
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_compiler -V >&5") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }
4524 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4525 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4526 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4547 rm -f conftest.$ac_objext
4548 if { (ac_try="$ac_compile"
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_compile") 2>conftest.er1
4556 grep -v '^ *+' conftest.er1 >conftest.err
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_cxx_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest.$ac_objext; then
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4576 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4577 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4578 GXX=`test $ac_compiler_gnu = yes && echo yes`
4579 ac_test_CXXFLAGS=${CXXFLAGS+set}
4580 ac_save_CXXFLAGS=$CXXFLAGS
4581 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4582 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_cxx_g+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4587 ac_cxx_werror_flag=yes
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_cxx_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_cv_prog_cxx_g=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_cxx_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_compile") 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && {
4696 test -z "$ac_cxx_werror_flag" ||
4697 test ! -s conftest.err
4698 } && test -s conftest.$ac_objext; then
4699 ac_cv_prog_cxx_g=yes
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4717 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4718 if test "$ac_test_CXXFLAGS" = set; then
4719 CXXFLAGS=$ac_save_CXXFLAGS
4720 elif test $ac_cv_prog_cxx_g = yes; then
4721 if test "$GXX" = yes; then
4727 if test "$GXX" = yes; then
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 depcc="$CXX" am_compiler_list=
4741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4743 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747 # We make a subdir and do the tests there. Otherwise we can end up
4748 # making bogus files that we don't know about and never remove. For
4749 # instance it was reported that on HP-UX the gcc test will end up
4750 # making a dummy file named `D' -- because `-MD' means `put the output
4753 # Copy depcomp to subdir because otherwise we won't find it if we're
4754 # using a relative directory.
4755 cp "$am_depcomp" conftest.dir
4757 # We will build objects and dependencies in a subdirectory because
4758 # it helps to detect inapplicable dependency modes. For instance
4759 # both Tru64's cc and ICC support -MD to output dependencies as a
4760 # side effect of compilation, but ICC will put the dependencies in
4761 # the current directory while Tru64 will put them in the object
4765 am_cv_CXX_dependencies_compiler_type=none
4766 if test "$am_compiler_list" = ""; then
4767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4769 for depmode in $am_compiler_list; do
4770 # Setup a source with many dependencies, because some compilers
4771 # like to wrap large dependency lists on column 80 (with \), and
4772 # we should not choose a depcomp mode which is confused by this.
4774 # We need to recreate these files for each test, as the compiler may
4775 # overwrite some of them when testing with obscure command lines.
4776 # This happens at least with the AIX C compiler.
4778 for i in 1 2 3 4 5 6; do
4779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4781 # Solaris 8's {/usr,}/bin/sh.
4782 touch sub/conftst$i.h
4784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788 # after this tag, mechanisms are not by side-effect, so they'll
4789 # only be used when explicitly requested
4790 if test "x$enable_dependency_tracking" = xyes; then
4798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799 # mode. It turns out that the SunPro C++ compiler does not properly
4800 # handle `-M -o', and we need to detect this.
4801 if depmode=$depmode \
4802 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805 >/dev/null 2>conftest.err &&
4806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810 # icc doesn't choke on unknown options, it will just issue warnings
4811 # or remarks (even with -Werror). So we grep stderr for any message
4812 # that says an option was ignored or not supported.
4813 # When given -MP, icc 7.0 and 7.1 complain thusly:
4814 # icc: Command line warning: ignoring option '-M'; no argument required
4815 # The diagnosis changed in icc 8.0:
4816 # icc: Command line remark: option '-MP' not supported
4817 if (grep 'ignoring option' conftest.err ||
4818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819 am_cv_CXX_dependencies_compiler_type=$depmode
4828 am_cv_CXX_dependencies_compiler_type=none
4832 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4837 test "x$enable_dependency_tracking" != xno \
4838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839 am__fastdepCXX_TRUE=
4840 am__fastdepCXX_FALSE='#'
4842 am__fastdepCXX_TRUE='#'
4843 am__fastdepCXX_FALSE=
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 if test -n "$ac_tool_prefix"; then
4853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$CC"; then
4861 ac_cv_prog_CC="$CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 if test -n "$CC"; then
4882 { echo "$as_me:$LINENO: result: $CC" >&5
4883 echo "${ECHO_T}$CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4891 if test -z "$ac_cv_prog_CC"; then
4893 # Extract the first word of "gcc", so it can be a program name with args.
4894 set dummy gcc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC="gcc"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4923 echo "${ECHO_T}$ac_ct_CC" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4929 if test "x$ac_ct_CC" = x; then
4932 case $cross_compiling:$ac_tool_warned in
4934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet. If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&5
4937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4938 whose name does not start with the host triplet. If you think this
4939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4940 ac_tool_warned=yes ;;
4948 if test -z "$CC"; then
4949 if test -n "$ac_tool_prefix"; then
4950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}cc; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_CC+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_CC="${ac_tool_prefix}cc"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 if test -n "$CC"; then
4979 { echo "$as_me:$LINENO: result: $CC" >&5
4980 echo "${ECHO_T}$CC" >&6; }
4982 { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4989 if test -z "$CC"; then
4990 # Extract the first word of "cc", so it can be a program name with args.
4991 set dummy cc; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_CC+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 if test -n "$CC"; then
4998 ac_cv_prog_CC="$CC" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5009 ac_prog_rejected=yes
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 if test $ac_prog_rejected = yes; then
5021 # We found a bogon in the path, so make sure we never use it.
5022 set dummy $ac_cv_prog_CC
5024 if test $# != 0; then
5025 # We chose a different compiler from the bogus one.
5026 # However, it has the same basename, so the bogon will be chosen
5027 # first if we set CC to just the basename; use the full file name.
5029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5035 if test -n "$CC"; then
5036 { echo "$as_me:$LINENO: result: $CC" >&5
5037 echo "${ECHO_T}$CC" >&6; }
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5045 if test -z "$CC"; then
5046 if test -n "$ac_tool_prefix"; then
5047 for ac_prog in cl.exe
5049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 if test -n "$CC"; then
5078 { echo "$as_me:$LINENO: result: $CC" >&5
5079 echo "${ECHO_T}$CC" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5086 test -n "$CC" && break
5089 if test -z "$CC"; then
5091 for ac_prog in cl.exe
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$ac_ct_CC"; then
5101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_CC="$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 test -n "$ac_ct_CC" && break
5133 if test "x$ac_ct_CC" = x; then
5136 case $cross_compiling:$ac_tool_warned in
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet. If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet. If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: no acceptable C compiler found in \$PATH
5156 See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5159 # Provide some information about the compiler.
5160 echo "$as_me:$LINENO: checking for C compiler version" >&5
5161 ac_compiler=`set X $ac_compile; echo $2`
5162 { (ac_try="$ac_compiler --version >&5"
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_compiler --version >&5") 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }
5172 { (ac_try="$ac_compiler -v >&5"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_compiler -v >&5") 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }
5182 { (ac_try="$ac_compiler -V >&5"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_compiler -V >&5") 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }
5193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5247 GCC=`test $ac_compiler_gnu = yes && echo yes`
5248 ac_test_CFLAGS=${CFLAGS+set}
5249 ac_save_CFLAGS=$CFLAGS
5250 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5251 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_cc_g+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_save_c_werror_flag=$ac_c_werror_flag
5256 ac_c_werror_flag=yes
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compile") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.$ac_objext; then
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_c_werror_flag=$ac_save_c_werror_flag
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5387 if test "$ac_test_CFLAGS" = set; then
5388 CFLAGS=$ac_save_CFLAGS
5389 elif test $ac_cv_prog_cc_g = yes; then
5390 if test "$GCC" = yes; then
5396 if test "$GCC" = yes; then
5402 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5403 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_c89+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_cv_prog_cc_c89=no
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5417 #include <sys/types.h>
5418 #include <sys/stat.h>
5419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5420 struct buf { int x; };
5421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5422 static char *e (p, i)
5428 static char *f (char * (*g) (char **, int), char **p, ...)
5433 s = g (p, va_arg (v,int));
5438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5439 function prototypes and stuff, but not '\xHH' hex character constants.
5440 These don't provoke an error unfortunately, instead are silently treated
5441 as 'x'. The following induces an error, until -std is added to get
5442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5443 array size at least. It's necessary to write '\x00'==0 to get something
5444 that's true only with -std. */
5445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5448 inside strings and character constants. */
5450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5452 int test (int i, double x);
5453 struct s1 {int (*f) (int a);};
5454 struct s2 {int (*f) (double a);};
5455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5469 CC="$ac_save_CC $ac_arg"
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_cv_prog_cc_c89=$ac_arg
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5495 rm -f core conftest.err conftest.$ac_objext
5496 test "x$ac_cv_prog_cc_c89" != "xno" && break
5498 rm -f conftest.$ac_ext
5503 case "x$ac_cv_prog_cc_c89" in
5505 { echo "$as_me:$LINENO: result: none needed" >&5
5506 echo "${ECHO_T}none needed" >&6; } ;;
5508 { echo "$as_me:$LINENO: result: unsupported" >&5
5509 echo "${ECHO_T}unsupported" >&6; } ;;
5511 CC="$CC $ac_cv_prog_cc_c89"
5512 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5513 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 depcc="$CC" am_compiler_list=
5525 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5526 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5549 am_cv_CC_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 for depmode in $am_compiler_list; do
5554 # Setup a source with many dependencies, because some compilers
5555 # like to wrap large dependency lists on column 80 (with \), and
5556 # we should not choose a depcomp mode which is confused by this.
5558 # We need to recreate these files for each test, as the compiler may
5559 # overwrite some of them when testing with obscure command lines.
5560 # This happens at least with the AIX C compiler.
5562 for i in 1 2 3 4 5 6; do
5563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565 # Solaris 8's {/usr,}/bin/sh.
5566 touch sub/conftst$i.h
5568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5572 # after this tag, mechanisms are not by side-effect, so they'll
5573 # only be used when explicitly requested
5574 if test "x$enable_dependency_tracking" = xyes; then
5582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5583 # mode. It turns out that the SunPro C++ compiler does not properly
5584 # handle `-M -o', and we need to detect this.
5585 if depmode=$depmode \
5586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5589 >/dev/null 2>conftest.err &&
5590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594 # icc doesn't choke on unknown options, it will just issue warnings
5595 # or remarks (even with -Werror). So we grep stderr for any message
5596 # that says an option was ignored or not supported.
5597 # When given -MP, icc 7.0 and 7.1 complain thusly:
5598 # icc: Command line warning: ignoring option '-M'; no argument required
5599 # The diagnosis changed in icc 8.0:
5600 # icc: Command line remark: option '-MP' not supported
5601 if (grep 'ignoring option' conftest.err ||
5602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603 am_cv_CC_dependencies_compiler_type=$depmode
5612 am_cv_CC_dependencies_compiler_type=none
5616 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5621 test "x$enable_dependency_tracking" != xno \
5622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5624 am__fastdepCC_FALSE='#'
5626 am__fastdepCC_TRUE='#'
5627 am__fastdepCC_FALSE=
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5642 if test -z "$CPP"; then
5643 if test "${ac_cv_prog_CPP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 # Double quotes because CPP needs to be expanded
5647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5650 for ac_c_preproc_warn_flag in '' yes
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 # <limits.h> exists even on freestanding compilers.
5656 # On the NeXT, cc -E runs the code through the compiler's parser,
5657 # not just through cpp. "Syntax error" is here to catch this case.
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 # include <limits.h>
5667 # include <assert.h>
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev/null && {
5684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 # Broken: fails on valid input.
5696 rm -f conftest.err conftest.$ac_ext
5698 # OK, works on sane cases. Now check whether nonexistent headers
5699 # can be detected and how.
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <ac_nonexistent.h>
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5724 # Broken: success on invalid input.
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 # Passes both tests.
5735 rm -f conftest.err conftest.$ac_ext
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5752 { echo "$as_me:$LINENO: result: $CPP" >&5
5753 echo "${ECHO_T}$CPP" >&6; }
5755 for ac_c_preproc_warn_flag in '' yes
5757 # Use a header file that comes with gcc, so configuring glibc
5758 # with a fresh cross-compiler works.
5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 # <limits.h> exists even on freestanding compilers.
5761 # On the NeXT, cc -E runs the code through the compiler's parser,
5762 # not just through cpp. "Syntax error" is here to catch this case.
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 # include <limits.h>
5772 # include <assert.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null && {
5789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 # Broken: fails on valid input.
5801 rm -f conftest.err conftest.$ac_ext
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <ac_nonexistent.h>
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5829 # Broken: success on invalid input.
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 # Passes both tests.
5840 rm -f conftest.err conftest.$ac_ext
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5848 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852 { (exit 1); exit 1; }; }
5856 ac_cpp='$CPP $CPPFLAGS'
5857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 # Find a good install program. We prefer a C program (faster),
5862 # so one script is as good as another. But avoid the broken or
5863 # incompatible versions:
5864 # SysV /etc/install, /usr/sbin/install
5865 # SunOS /usr/etc/install
5866 # IRIX /sbin/install
5868 # AmigaOS /C/install, which installs bootblocks on floppy discs
5869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5872 # OS/2's system install, which has a completely different semantic
5873 # ./install, which can be erroneously created by make from ./install.sh.
5874 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5875 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5876 if test -z "$INSTALL"; then
5877 if test "${ac_cv_path_install+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 # Account for people who put trailing slashes in PATH elements.
5887 ./ | .// | /cC/* | \
5888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5889 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5892 # OSF1 and SCO ODT 3.0 have their own names for install.
5893 # Don't use installbsd from OSF since it installs stuff as root
5895 for ac_prog in ginstall scoinst install; do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5898 if test $ac_prog = install &&
5899 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5900 # AIX install. It has an incompatible calling convention.
5902 elif test $ac_prog = install &&
5903 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5904 # program-specific install script used by HP pwplus--don't use.
5907 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5920 if test "${ac_cv_path_install+set}" = set; then
5921 INSTALL=$ac_cv_path_install
5923 # As a last resort, use the slow shell script. Don't cache a
5924 # value for INSTALL within a source directory, because that will
5925 # break other packages using the cache if that directory is
5926 # removed, or if the value is a relative name.
5927 INSTALL=$ac_install_sh
5930 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5931 echo "${ECHO_T}$INSTALL" >&6; }
5933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5934 # It thinks the first close brace ends the variable substitution.
5935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5944 if test "$LN_S" = "ln -s"; then
5945 { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5948 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5952 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5954 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.make <<\_ACEOF
5961 @echo '@@@%%%=$(MAKE)=@@@%%%'
5963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5966 eval ac_cv_prog_make_${ac_make}_set=yes;;
5968 eval ac_cv_prog_make_${ac_make}_set=no;;
5972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5973 { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 SET_MAKE="MAKE=${MAKE-make}"
5982 # Check whether --enable-shared was given.
5983 if test "${enable_shared+set}" = set; then
5984 enableval=$enable_shared; p=${PACKAGE-default}
5986 yes) enable_shared=yes ;;
5987 no) enable_shared=no ;;
5990 # Look at the argument we got. We use all the common list separators.
5991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992 for pkg in $enableval; do
5994 if test "X$pkg" = "X$p"; then
6006 # Check whether --enable-static was given.
6007 if test "${enable_static+set}" = set; then
6008 enableval=$enable_static; p=${PACKAGE-default}
6010 yes) enable_static=yes ;;
6011 no) enable_static=no ;;
6014 # Look at the argument we got. We use all the common list separators.
6015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6016 for pkg in $enableval; do
6018 if test "X$pkg" = "X$p"; then
6030 # Check whether --enable-fast-install was given.
6031 if test "${enable_fast_install+set}" = set; then
6032 enableval=$enable_fast_install; p=${PACKAGE-default}
6034 yes) enable_fast_install=yes ;;
6035 no) enable_fast_install=no ;;
6037 enable_fast_install=no
6038 # Look at the argument we got. We use all the common list separators.
6039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6040 for pkg in $enableval; do
6042 if test "X$pkg" = "X$p"; then
6043 enable_fast_install=yes
6050 enable_fast_install=yes
6054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6056 if test "${lt_cv_path_SED+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 # Loop through the user's path and test for sed and gsed.
6060 # Then use that list of sed's as ones to test for truncation.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for lt_ac_prog in sed gsed; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6078 # along with /bin/sed that truncates output.
6079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6080 test ! -f $lt_ac_sed && continue
6081 cat /dev/null > conftest.in
6083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6084 # Check for GNU sed and select it if it is found.
6085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6086 lt_cv_path_SED=$lt_ac_sed
6090 cat conftest.in conftest.in >conftest.tmp
6091 mv conftest.tmp conftest.in
6092 cp conftest.in conftest.nl
6094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6095 cmp -s conftest.out conftest.nl || break
6096 # 10000 chars as input seems more than enough
6097 test $lt_ac_count -gt 10 && break
6098 lt_ac_count=`expr $lt_ac_count + 1`
6099 if test $lt_ac_count -gt $lt_ac_max; then
6100 lt_ac_max=$lt_ac_count
6101 lt_cv_path_SED=$lt_ac_sed
6110 { echo "$as_me:$LINENO: result: $SED" >&5
6111 echo "${ECHO_T}$SED" >&6; }
6113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 # Extract the first word of "grep ggrep" to use in msg output
6119 if test -z "$GREP"; then
6120 set dummy grep ggrep; ac_prog_name=$2
6121 if test "${ac_cv_path_GREP+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_path_GREP_found=false
6125 # Loop through the user's path and test for each of PROGNAME-LIST
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130 test -z "$as_dir" && as_dir=.
6131 for ac_prog in grep ggrep; do
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6135 # Check for GNU ac_path_GREP and select it if it is found.
6136 # Check for GNU $ac_path_GREP
6137 case `"$ac_path_GREP" --version 2>&1` in
6139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6145 cat "conftest.in" "conftest.in" >"conftest.tmp"
6146 mv "conftest.tmp" "conftest.in"
6147 cp "conftest.in" "conftest.nl"
6148 echo 'GREP' >> "conftest.nl"
6149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6151 ac_count=`expr $ac_count + 1`
6152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6153 # Best one so far, save it but keep looking for a better one
6154 ac_cv_path_GREP="$ac_path_GREP"
6155 ac_path_GREP_max=$ac_count
6157 # 10*(2^10) chars as input seems more than enough
6158 test $ac_count -gt 10 && break
6160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 $ac_path_GREP_found && break 3
6174 GREP="$ac_cv_path_GREP"
6175 if test -z "$GREP"; then
6176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6178 { (exit 1); exit 1; }; }
6182 ac_cv_path_GREP=$GREP
6187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6189 GREP="$ac_cv_path_GREP"
6192 { echo "$as_me:$LINENO: checking for egrep" >&5
6193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_EGREP+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6198 then ac_cv_path_EGREP="$GREP -E"
6200 # Extract the first word of "egrep" to use in msg output
6201 if test -z "$EGREP"; then
6202 set dummy egrep; ac_prog_name=$2
6203 if test "${ac_cv_path_EGREP+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212 test -z "$as_dir" && as_dir=.
6213 for ac_prog in egrep; do
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217 # Check for GNU ac_path_EGREP and select it if it is found.
6218 # Check for GNU $ac_path_EGREP
6219 case `"$ac_path_EGREP" --version 2>&1` in
6221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 echo 'EGREP' >> "conftest.nl"
6231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 ac_count=`expr $ac_count + 1`
6234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_EGREP="$ac_path_EGREP"
6237 ac_path_EGREP_max=$ac_count
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6246 $ac_path_EGREP_found && break 3
6256 EGREP="$ac_cv_path_EGREP"
6257 if test -z "$EGREP"; then
6258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6260 { (exit 1); exit 1; }; }
6264 ac_cv_path_EGREP=$EGREP
6270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6272 EGREP="$ac_cv_path_EGREP"
6276 # Check whether --with-gnu-ld was given.
6277 if test "${with_gnu_ld+set}" = set; then
6278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6284 if test "$GCC" = yes; then
6285 # Check if gcc -print-prog-name=ld gives a path.
6286 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6290 # gcc leaves a trailing carriage return which upsets mingw
6291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6296 # Accept absolute paths.
6298 re_direlt='/[^/][^/]*/\.\./'
6299 # Canonicalize the pathname of ld
6300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6302 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6304 test -z "$LD" && LD="$ac_prog"
6307 # If it fails, then pretend we aren't using GCC.
6311 # If it is relative, then search for the first ld in PATH.
6315 elif test "$with_gnu_ld" = yes; then
6316 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6319 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6322 if test "${lt_cv_path_LD+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 if test -z "$LD"; then
6326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327 for ac_dir in $PATH; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 lt_cv_path_LD="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
6333 # but apparently some variants of GNU ld only accept -v.
6334 # Break only if it was the GNU/non-GNU ld that we prefer.
6335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336 *GNU* | *'with BFD'*)
6337 test "$with_gnu_ld" != no && break
6340 test "$with_gnu_ld" != yes && break
6347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6352 if test -n "$LD"; then
6353 { echo "$as_me:$LINENO: result: $LD" >&5
6354 echo "${ECHO_T}$LD" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6361 { (exit 1); exit 1; }; }
6362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6368 case `$LD -v 2>&1 </dev/null` in
6369 *GNU* | *'with BFD'*)
6370 lt_cv_prog_gnu_ld=yes
6373 lt_cv_prog_gnu_ld=no
6377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6379 with_gnu_ld=$lt_cv_prog_gnu_ld
6382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6384 if test "${lt_cv_ld_reload_flag+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 lt_cv_ld_reload_flag='-r'
6389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6391 reload_flag=$lt_cv_ld_reload_flag
6392 case $reload_flag in
6394 *) reload_flag=" $reload_flag" ;;
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6399 if test "$GCC" = yes; then
6400 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 if test -n "$NM"; then
6413 # Let the user override the test.
6416 lt_nm_to_check="${ac_tool_prefix}nm"
6417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418 lt_nm_to_check="$lt_nm_to_check nm"
6420 for lt_tmp_nm in $lt_nm_to_check; do
6421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6424 test -z "$ac_dir" && ac_dir=.
6425 tmp_nm="$ac_dir/$lt_tmp_nm"
6426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427 # Check to see if the nm accepts a BSD-compat flag.
6428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429 # nm: unknown option "B" ignored
6430 # Tru64's nm complains that /dev/null is an invalid object file
6431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432 */dev/null* | *'Invalid file or object type'*)
6433 lt_cv_path_NM="$tmp_nm -B"
6437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6439 lt_cv_path_NM="$tmp_nm -p"
6443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444 continue # so that we can try to find one that supports BSD flags
6453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6460 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6461 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6462 if test "${lt_cv_deplibs_check_method+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 lt_cv_file_magic_cmd='$MAGIC_CMD'
6466 lt_cv_file_magic_test_file=
6467 lt_cv_deplibs_check_method='unknown'
6468 # Need to set the preceding variable on all platforms that support
6469 # interlibrary dependencies.
6470 # 'none' -- dependencies not supported.
6471 # `unknown' -- same as none, but documents that we really don't know.
6472 # 'pass_all' -- all dependencies passed with no checks.
6473 # 'test_compile' -- check by making test program.
6474 # 'file_magic [[regex]]' -- check by looking for files in library path
6475 # which responds to the $file_magic_cmd with a given extended regex.
6476 # If you have `file' or equivalent on your system and you're not sure
6477 # whether `pass_all' will *always* work, you probably want this one.
6481 lt_cv_deplibs_check_method=pass_all
6485 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6490 lt_cv_file_magic_cmd='/usr/bin/file -L'
6491 lt_cv_file_magic_test_file=/shlib/libc.so
6495 # func_win32_libid is a shell function defined in ltmain.sh
6496 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6497 lt_cv_file_magic_cmd='func_win32_libid'
6501 # Base MSYS/MinGW do not provide the 'file' command needed by
6502 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6503 # unless we find 'file', for example because we are cross-compiling.
6504 if ( file / ) >/dev/null 2>&1; then
6505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506 lt_cv_file_magic_cmd='func_win32_libid'
6508 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6509 lt_cv_file_magic_cmd='$OBJDUMP -f'
6513 darwin* | rhapsody*)
6514 lt_cv_deplibs_check_method=pass_all
6517 freebsd* | dragonfly*)
6518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6521 # Not sure whether the presence of OpenBSD here was a mistake.
6522 # Let's accept both of them until this is cleared up.
6523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6524 lt_cv_file_magic_cmd=/usr/bin/file
6525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6529 lt_cv_deplibs_check_method=pass_all
6534 lt_cv_deplibs_check_method=pass_all
6537 hpux10.20* | hpux11*)
6538 lt_cv_file_magic_cmd=/usr/bin/file
6541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6545 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]'
6546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6560 irix5* | irix6* | nonstopux*)
6562 *-32|*"-32 ") libmagic=32-bit;;
6563 *-n32|*"-n32 ") libmagic=N32;;
6564 *-64|*"-64 ") libmagic=64-bit;;
6565 *) libmagic=never-match;;
6567 lt_cv_deplibs_check_method=pass_all
6570 # This must be Linux ELF.
6571 linux* | k*bsd*-gnu)
6572 lt_cv_deplibs_check_method=pass_all
6575 netbsd* | netbsdelf*-gnu)
6576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6585 lt_cv_file_magic_cmd=/usr/bin/file
6586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6590 lt_cv_deplibs_check_method=unknown
6594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6601 osf3* | osf4* | osf5*)
6602 lt_cv_deplibs_check_method=pass_all
6606 lt_cv_deplibs_check_method=pass_all
6610 lt_cv_deplibs_check_method=pass_all
6614 case $host_vendor in
6616 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]'
6617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6620 lt_cv_deplibs_check_method=pass_all
6623 lt_cv_file_magic_cmd='/bin/file'
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6627 lt_cv_file_magic_cmd='/bin/file'
6628 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6629 lt_cv_file_magic_test_file=/lib/libc.so
6632 lt_cv_deplibs_check_method=pass_all
6635 lt_cv_deplibs_check_method=pass_all
6640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6641 lt_cv_deplibs_check_method=pass_all
6646 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6647 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6648 file_magic_cmd=$lt_cv_file_magic_cmd
6649 deplibs_check_method=$lt_cv_deplibs_check_method
6650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6655 # If no C compiler was specified, use CC.
6658 # If no C compiler flags were specified, use CFLAGS.
6659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6661 # Allow CC to be a program name with arguments.
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then
6666 enableval=$enable_libtool_lock;
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6671 # Some flags need to be propagated to the compiler or linker for good
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6694 # Find out which ABI we are using.
6695 echo '#line 6695 "configure"' > conftest.$ac_ext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697 (eval $ac_compile) 2>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; then
6701 if test "$lt_cv_prog_gnu_ld" = yes; then
6702 case `/usr/bin/file conftest.$ac_objext` in
6704 LD="${LD-ld} -melf32bsmip"
6707 LD="${LD-ld} -melf32bmipn32"
6710 LD="${LD-ld} -melf64bmip"
6714 case `/usr/bin/file conftest.$ac_objext` in
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|sparc*-*linux*)
6732 # Find out which ABI we are using.
6733 echo 'int i;' > conftest.$ac_ext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; then
6739 case `/usr/bin/file conftest.o` in
6742 x86_64-*kfreebsd*-gnu)
6743 LD="${LD-ld} -m elf_i386_fbsd"
6746 LD="${LD-ld} -m elf_i386"
6748 ppc64-*linux*|powerpc64-*linux*)
6749 LD="${LD-ld} -m elf32ppclinux"
6752 LD="${LD-ld} -m elf_s390"
6755 LD="${LD-ld} -m elf32_sparc"
6761 x86_64-*kfreebsd*-gnu)
6762 LD="${LD-ld} -m elf_x86_64_fbsd"
6765 LD="${LD-ld} -m elf_x86_64"
6767 ppc*-*linux*|powerpc*-*linux*)
6768 LD="${LD-ld} -m elf64ppc"
6771 LD="${LD-ld} -m elf64_s390"
6774 LD="${LD-ld} -m elf64_sparc"
6784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6785 SAVE_CFLAGS="$CFLAGS"
6786 CFLAGS="$CFLAGS -belf"
6787 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6788 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6789 if test "${lt_cv_cc_needs_belf+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (ac_try="$ac_link"
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_link") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest$ac_exeext &&
6830 $as_test_x conftest$ac_exeext; then
6831 lt_cv_cc_needs_belf=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 lt_cv_cc_needs_belf=no
6839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6840 conftest$ac_exeext conftest.$ac_ext
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6849 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6852 CFLAGS="$SAVE_CFLAGS"
6856 # Find out which ABI we are using.
6857 echo 'int i;' > conftest.$ac_ext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; then
6863 case `/usr/bin/file conftest.o` in
6865 case $lt_cv_prog_gnu_ld in
6866 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6867 *) LD="${LD-ld} -64" ;;
6878 need_locks="$enable_libtool_lock"
6882 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6883 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6884 if test "${ac_cv_header_stdc+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
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_compile") 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); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6923 ac_cv_header_stdc=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_header_stdc=no
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 if test $ac_cv_header_stdc = yes; then
6934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "memchr" >/dev/null 2>&1; then
6948 ac_cv_header_stdc=no
6954 if test $ac_cv_header_stdc = yes; then
6955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966 $EGREP "free" >/dev/null 2>&1; then
6969 ac_cv_header_stdc=no
6975 if test $ac_cv_header_stdc = yes; then
6976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6977 if test "$cross_compiling" = yes; then
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6992 # define ISLOWER(c) \
6993 (('a' <= (c) && (c) <= 'i') \
6994 || ('j' <= (c) && (c) <= 'r') \
6995 || ('s' <= (c) && (c) <= 'z'))
6996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7004 for (i = 0; i < 256; i++)
7005 if (XOR (islower (i), ISLOWER (i))
7006 || toupper (i) != TOUPPER (i))
7011 rm -f conftest$ac_exeext
7012 if { (ac_try="$ac_link"
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_link") 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7022 { (case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_try") 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7033 echo "$as_me: program exited with status $ac_status" >&5
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_header_stdc=no
7040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7046 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7047 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7048 if test $ac_cv_header_stdc = yes; then
7050 cat >>confdefs.h <<\_ACEOF
7051 #define STDC_HEADERS 1
7056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7067 inttypes.h stdint.h unistd.h
7069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 cat >conftest.$ac_ext <<_ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 $ac_includes_default
7083 #include <$ac_header>
7085 rm -f conftest.$ac_objext
7086 if { (ac_try="$ac_compile"
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_compile") 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && {
7099 test -z "$ac_c_werror_flag" ||
7100 test ! -s conftest.err
7101 } && test -s conftest.$ac_objext; then
7102 eval "$as_ac_Header=yes"
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 eval "$as_ac_Header=no"
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113 { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116 cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126 for ac_header in dlfcn.h
7128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_res=`eval echo '${'$as_ac_Header'}'`
7136 { echo "$as_me:$LINENO: result: $ac_res" >&5
7137 echo "${ECHO_T}$ac_res" >&6; }
7139 # Is the header compilable?
7140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 $ac_includes_default
7149 #include <$ac_header>
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_header_compiler=yes
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_header_compiler=no
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7178 echo "${ECHO_T}$ac_header_compiler" >&6; }
7180 # Is the header present?
7181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <$ac_header>
7191 if { (ac_try="$ac_cpp conftest.$ac_ext"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } >/dev/null && {
7204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7207 ac_header_preproc=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_header_preproc=no
7215 rm -f conftest.err conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217 echo "${ECHO_T}$ac_header_preproc" >&6; }
7219 # So? What about this header?
7220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7226 ac_header_preproc=yes
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7242 ## ------------------------------- ##
7243 ## Report this to nfs@lists.sf.net ##
7244 ## ------------------------------- ##
7246 ) | sed "s/^/$as_me: WARNING: /" >&2
7249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 eval "$as_ac_Header=\$ac_header_preproc"
7256 ac_res=`eval echo '${'$as_ac_Header'}'`
7257 { echo "$as_me:$LINENO: result: $ac_res" >&5
7258 echo "${ECHO_T}$ac_res" >&6; }
7261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7262 cat >>confdefs.h <<_ACEOF
7263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7273 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7274 (test "X$CXX" != "Xg++"))) ; then
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7281 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7282 if test -z "$CXXCPP"; then
7283 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 # Double quotes because CXXCPP needs to be expanded
7287 for CXXCPP in "$CXX -E" "/lib/cpp"
7290 for ac_cxx_preproc_warn_flag in '' yes
7292 # Use a header file that comes with gcc, so configuring glibc
7293 # with a fresh cross-compiler works.
7294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 # <limits.h> exists even on freestanding compilers.
7296 # On the NeXT, cc -E runs the code through the compiler's parser,
7297 # not just through cpp. "Syntax error" is here to catch this case.
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7305 # include <limits.h>
7307 # include <assert.h>
7311 if { (ac_try="$ac_cpp conftest.$ac_ext"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } >/dev/null && {
7324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7325 test ! -s conftest.err
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 # Broken: fails on valid input.
7336 rm -f conftest.err conftest.$ac_ext
7338 # OK, works on sane cases. Now check whether nonexistent headers
7339 # can be detected and how.
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <ac_nonexistent.h>
7348 if { (ac_try="$ac_cpp conftest.$ac_ext"
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } >/dev/null && {
7361 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7362 test ! -s conftest.err
7364 # Broken: success on invalid input.
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 # Passes both tests.
7375 rm -f conftest.err conftest.$ac_ext
7378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7379 rm -f conftest.err conftest.$ac_ext
7380 if $ac_preproc_ok; then
7385 ac_cv_prog_CXXCPP=$CXXCPP
7388 CXXCPP=$ac_cv_prog_CXXCPP
7390 ac_cv_prog_CXXCPP=$CXXCPP
7392 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7393 echo "${ECHO_T}$CXXCPP" >&6; }
7395 for ac_cxx_preproc_warn_flag in '' yes
7397 # Use a header file that comes with gcc, so configuring glibc
7398 # with a fresh cross-compiler works.
7399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 # <limits.h> exists even on freestanding compilers.
7401 # On the NeXT, cc -E runs the code through the compiler's parser,
7402 # not just through cpp. "Syntax error" is here to catch this case.
7403 cat >conftest.$ac_ext <<_ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7410 # include <limits.h>
7412 # include <assert.h>
7416 if { (ac_try="$ac_cpp conftest.$ac_ext"
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } >/dev/null && {
7429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7430 test ! -s conftest.err
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 # Broken: fails on valid input.
7441 rm -f conftest.err conftest.$ac_ext
7443 # OK, works on sane cases. Now check whether nonexistent headers
7444 # can be detected and how.
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <ac_nonexistent.h>
7453 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } >/dev/null && {
7466 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7467 test ! -s conftest.err
7469 # Broken: success on invalid input.
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 # Passes both tests.
7480 rm -f conftest.err conftest.$ac_ext
7483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7484 rm -f conftest.err conftest.$ac_ext
7485 if $ac_preproc_ok; then
7488 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7489 See \`config.log' for more details." >&5
7490 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7491 See \`config.log' for more details." >&2;}
7492 { (exit 1); exit 1; }; }
7496 ac_cpp='$CXXCPP $CPPFLAGS'
7497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7505 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7506 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7508 if test -n "$ac_tool_prefix"; then
7509 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
7511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_F77+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test -n "$F77"; then
7519 ac_cv_prog_F77="$F77" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 if test -n "$F77"; then
7540 { echo "$as_me:$LINENO: result: $F77" >&5
7541 echo "${ECHO_T}$F77" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7548 test -n "$F77" && break
7551 if test -z "$F77"; then
7553 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
7555 # Extract the first word of "$ac_prog", so it can be a program name with args.
7556 set dummy $ac_prog; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test -n "$ac_ct_F77"; then
7563 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_ac_ct_F77="$ac_prog"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7583 if test -n "$ac_ct_F77"; then
7584 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7585 echo "${ECHO_T}$ac_ct_F77" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 test -n "$ac_ct_F77" && break
7595 if test "x$ac_ct_F77" = x; then
7598 case $cross_compiling:$ac_tool_warned in
7600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7601 whose name does not start with the host triplet. If you think this
7602 configuration is useful to you, please write to autoconf@gnu.org." >&5
7603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7604 whose name does not start with the host triplet. If you think this
7605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7606 ac_tool_warned=yes ;;
7613 # Provide some information about the compiler.
7614 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7615 ac_compiler=`set X $ac_compile; echo $2`
7616 { (ac_try="$ac_compiler --version >&5"
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compiler --version >&5") 2>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }
7626 { (ac_try="$ac_compiler -v >&5"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compiler -v >&5") 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }
7636 { (ac_try="$ac_compiler -V >&5"
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compiler -V >&5") 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }
7648 # If we don't use `.F' as extension, the preprocessor is not run on the
7649 # input file. (Note that this only needs to work for GNU compilers.)
7652 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7653 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7654 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_f77_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7694 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7695 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7697 ac_test_FFLAGS=${FFLAGS+set}
7698 ac_save_FFLAGS=$FFLAGS
7700 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7701 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7702 if test "${ac_cv_prog_f77_g+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_compile") 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_f77_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest.$ac_objext; then
7728 ac_cv_prog_f77_g=yes
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7740 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7741 if test "$ac_test_FFLAGS" = set; then
7742 FFLAGS=$ac_save_FFLAGS
7743 elif test $ac_cv_prog_f77_g = yes; then
7744 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7750 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7757 G77=`test $ac_compiler_gnu = yes && echo yes`
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7768 # find the maximum length of command line arguments
7769 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7770 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7771 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 # On DJGPP, this test can blow up pretty badly due to problems in libc
7780 # (any single argument exceeding 2000 bytes causes a buffer overrun
7781 # during glob expansion). Even if it were fixed, the result of this
7782 # check would be larger than it should be.
7783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7787 # Under GNU Hurd, this test is not required because there is
7788 # no limit to the length of command line arguments.
7789 # Libtool will interpret -1 as no limit whatsoever
7790 lt_cv_sys_max_cmd_len=-1;
7794 # On Win9x/ME, this test blows up -- it succeeds, but takes
7795 # about 5 minutes as the teststring grows exponentially.
7796 # Worse, since 9x/ME are not pre-emptively multitasking,
7797 # you end up with a "frozen" computer, even though with patience
7798 # the test eventually succeeds (with a max line length of 256k).
7799 # Instead, let's just punt: use the minimum linelength reported by
7800 # all of the supported platforms: 8192 (on NT/2K/XP).
7801 lt_cv_sys_max_cmd_len=8192;
7805 # On AmigaOS with pdksh, this test takes hours, literally.
7806 # So we just punt and use a minimum line length of 8192.
7807 lt_cv_sys_max_cmd_len=8192;
7810 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7811 # This has been around since 386BSD, at least. Likely further.
7812 if test -x /sbin/sysctl; then
7813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7814 elif test -x /usr/sbin/sysctl; then
7815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7819 # And add a safety zone
7820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7826 lt_cv_sys_max_cmd_len=196608
7830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7832 # nice to cause kernel panics so lets avoid the loop below.
7833 # First set a reasonable default.
7834 lt_cv_sys_max_cmd_len=16384
7836 if test -x /sbin/sysconfig; then
7837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7843 lt_cv_sys_max_cmd_len=102400
7845 sysv5* | sco5v6* | sysv4.2uw2*)
7846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7847 if test -n "$kargmax"; then
7848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7850 lt_cv_sys_max_cmd_len=32768
7854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7855 if test -n "$lt_cv_sys_max_cmd_len"; then
7856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7860 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7861 = "XX$teststring") >/dev/null 2>&1 &&
7862 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7863 lt_cv_sys_max_cmd_len=$new_result &&
7864 test $i != 17 # 1/2 MB should be enough
7867 teststring=$teststring$teststring
7870 # Add a significant safety factor because C++ compilers can tack on massive
7871 # amounts of additional arguments before passing them to the linker.
7872 # It appears as though 1/2 is a usable value.
7873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7880 if test -n $lt_cv_sys_max_cmd_len ; then
7881 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7882 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7884 { echo "$as_me:$LINENO: result: none" >&5
7885 echo "${ECHO_T}none" >&6; }
7892 # Check for command to grab the raw symbol name followed by C symbol from nm.
7893 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7894 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 # These are sane defaults that work on at least a few old systems.
7900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7902 # Character class describing NM global symbol codes.
7903 symcode='[BCDEGRST]'
7905 # Regexp to match symbols that can be accessed directly from C.
7906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7908 # Transform an extracted symbol line into a proper C declaration
7909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7911 # Transform an extracted symbol line into symbol name and symbol address
7912 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'"
7914 # Define system-specific variables.
7919 cygwin* | mingw* | pw32*)
7920 symcode='[ABCDGISTW]'
7922 hpux*) # Its linker distinguishes data from code symbols
7923 if test "$host_cpu" = ia64; then
7924 symcode='[ABCDEGRST]'
7926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7927 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'"
7929 linux* | k*bsd*-gnu)
7930 if test "$host_cpu" = ia64; then
7931 symcode='[ABCDGIRSTW]'
7932 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7933 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'"
7937 symcode='[BCDEGRST]'
7940 symcode='[BCDEGQRST]'
7951 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7959 # Handle CRLF in mingw tool chain
7963 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7967 # If we're using GNU nm, then use its standard symbol codes.
7968 case `$NM -V 2>&1` in
7969 *GNU* | *'with BFD'*)
7970 symcode='[ABCDGIRSTW]' ;;
7973 # Try without a prefix undercore, then with it.
7974 for ac_symprfx in "" "_"; do
7976 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7977 symxfrm="\\1 $ac_symprfx\\2 \\2"
7979 # Write the raw and C identifiers.
7980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7982 # Check to see that the pipe works correctly.
7986 cat > conftest.$ac_ext <<EOF
7991 void nm_test_func(){}
7995 int main(){nm_test_var='a';nm_test_func();return(0);}
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; then
8003 # Now try to grab the symbols.
8005 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && test -s "$nlist"; then
8010 # Try sorting and uniquifying the output.
8011 if sort "$nlist" | uniq > "$nlist"T; then
8012 mv -f "$nlist"T "$nlist"
8017 # Make sure that we snagged all the symbols we need.
8018 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8019 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8020 cat <<EOF > conftest.$ac_ext
8026 # Now generate the symbol file.
8027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8029 cat <<EOF >> conftest.$ac_ext
8030 #if defined (__STDC__) && __STDC__
8031 # define lt_ptr_t void *
8033 # define lt_ptr_t char *
8037 /* The mapping between symbol names and symbols. */
8042 lt_preloaded_symbols[] =
8045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8046 cat <<\EOF >> conftest.$ac_ext
8054 # Now try linking the two files.
8055 mv conftest.$ac_objext conftstm.$ac_objext
8056 lt_save_LIBS="$LIBS"
8057 lt_save_CFLAGS="$CFLAGS"
8058 LIBS="conftstm.$ac_objext"
8059 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8067 LIBS="$lt_save_LIBS"
8068 CFLAGS="$lt_save_CFLAGS"
8070 echo "cannot find nm_test_func in $nlist" >&5
8073 echo "cannot find nm_test_var in $nlist" >&5
8076 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8079 echo "$progname: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 rm -f conftest* conftst*
8084 # Do not use the global_symbol_pipe unless it works.
8085 if test "$pipe_works" = yes; then
8088 lt_cv_sys_global_symbol_pipe=
8094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8095 lt_cv_sys_global_symbol_to_cdecl=
8097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8098 { echo "$as_me:$LINENO: result: failed" >&5
8099 echo "${ECHO_T}failed" >&6; }
8101 { echo "$as_me:$LINENO: result: ok" >&5
8102 echo "${ECHO_T}ok" >&6; }
8105 { echo "$as_me:$LINENO: checking for objdir" >&5
8106 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8107 if test "${lt_cv_objdir+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 rm -f .libs 2>/dev/null
8111 mkdir .libs 2>/dev/null
8112 if test -d .libs; then
8115 # MS-DOS does not allow filenames that begin with a dot.
8118 rmdir .libs 2>/dev/null
8120 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8121 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8122 objdir=$lt_cv_objdir
8130 # AIX sometimes has problems with the GCC collect2 program. For some
8131 # reason, if we set the COLLECT_NAMES environment variable, the problems
8132 # vanish in a puff of smoke.
8133 if test "X${COLLECT_NAMES+set}" != Xset; then
8135 export COLLECT_NAMES
8140 # Sed substitution that helps us do robust quoting. It backslashifies
8141 # metacharacters that are still active within double-quoted strings.
8142 Xsed='sed -e 1s/^X//'
8143 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8145 # Same as above, but do not quote variable references.
8146 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8148 # Sed substitution to delay expansion of an escaped shell variable in a
8149 # double_quote_subst'ed string.
8150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8152 # Sed substitution to avoid accidental globbing in evaled expressions
8153 no_glob_subst='s/\*/\\\*/g'
8159 default_ofile=libtool
8160 can_build_shared=yes
8162 # All known linkers require a `.a' archive for static linking (except MSVC,
8163 # which needs '.lib').
8165 ltmain="$ac_aux_dir/ltmain.sh"
8166 ofile="$default_ofile"
8167 with_gnu_ld="$lt_cv_prog_gnu_ld"
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}ar; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_prog_AR+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 if test -n "$AR"; then
8178 ac_cv_prog_AR="$AR" # Let the user override the test.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_AR="${ac_tool_prefix}ar"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 if test -n "$AR"; then
8199 { echo "$as_me:$LINENO: result: $AR" >&5
8200 echo "${ECHO_T}$AR" >&6; }
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8208 if test -z "$ac_cv_prog_AR"; then
8210 # Extract the first word of "ar", so it can be a program name with args.
8211 set dummy ar; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 if test -n "$ac_ct_AR"; then
8218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_ac_ct_AR="ar"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8238 if test -n "$ac_ct_AR"; then
8239 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8240 echo "${ECHO_T}$ac_ct_AR" >&6; }
8242 { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8246 if test "x$ac_ct_AR" = x; then
8249 case $cross_compiling:$ac_tool_warned in
8251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8252 whose name does not start with the host triplet. If you think this
8253 configuration is useful to you, please write to autoconf@gnu.org." >&5
8254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8255 whose name does not start with the host triplet. If you think this
8256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8257 ac_tool_warned=yes ;;
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270 if test "${ac_cv_prog_RANLIB+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 if test -n "$RANLIB"; then
8274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 RANLIB=$ac_cv_prog_RANLIB
8294 if test -n "$RANLIB"; then
8295 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8296 echo "${ECHO_T}$RANLIB" >&6; }
8298 { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8304 if test -z "$ac_cv_prog_RANLIB"; then
8305 ac_ct_RANLIB=$RANLIB
8306 # Extract the first word of "ranlib", so it can be a program name with args.
8307 set dummy ranlib; ac_word=$2
8308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 if test -n "$ac_ct_RANLIB"; then
8314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_prog_ac_ct_RANLIB="ranlib"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8334 if test -n "$ac_ct_RANLIB"; then
8335 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8336 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8338 { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8342 if test "x$ac_ct_RANLIB" = x; then
8345 case $cross_compiling:$ac_tool_warned in
8347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8348 whose name does not start with the host triplet. If you think this
8349 configuration is useful to you, please write to autoconf@gnu.org." >&5
8350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8351 whose name does not start with the host triplet. If you think this
8352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8353 ac_tool_warned=yes ;;
8355 RANLIB=$ac_ct_RANLIB
8358 RANLIB="$ac_cv_prog_RANLIB"
8361 if test -n "$ac_tool_prefix"; then
8362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8363 set dummy ${ac_tool_prefix}strip; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_prog_STRIP+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 if test -n "$STRIP"; then
8370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 STRIP=$ac_cv_prog_STRIP
8390 if test -n "$STRIP"; then
8391 { echo "$as_me:$LINENO: result: $STRIP" >&5
8392 echo "${ECHO_T}$STRIP" >&6; }
8394 { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8400 if test -z "$ac_cv_prog_STRIP"; then
8402 # Extract the first word of "strip", so it can be a program name with args.
8403 set dummy strip; ac_word=$2
8404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8406 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 if test -n "$ac_ct_STRIP"; then
8410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_ac_ct_STRIP="strip"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8430 if test -n "$ac_ct_STRIP"; then
8431 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8432 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8434 { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8438 if test "x$ac_ct_STRIP" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8454 STRIP="$ac_cv_prog_STRIP"
8459 old_CFLAGS="$CFLAGS"
8461 # Set sane defaults for various variables
8462 test -z "$AR" && AR=ar
8463 test -z "$AR_FLAGS" && AR_FLAGS=cru
8464 test -z "$AS" && AS=as
8465 test -z "$CC" && CC=cc
8466 test -z "$LTCC" && LTCC=$CC
8467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8468 test -z "$DLLTOOL" && DLLTOOL=dlltool
8469 test -z "$LD" && LD=ld
8470 test -z "$LN_S" && LN_S="ln -s"
8471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8472 test -z "$NM" && NM=nm
8473 test -z "$SED" && SED=sed
8474 test -z "$OBJDUMP" && OBJDUMP=objdump
8475 test -z "$RANLIB" && RANLIB=:
8476 test -z "$STRIP" && STRIP=:
8477 test -z "$ac_objext" && ac_objext=o
8479 # Determine commands to create old-style static archives.
8480 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8481 old_postinstall_cmds='chmod 644 $oldlib'
8482 old_postuninstall_cmds=
8484 if test -n "$RANLIB"; then
8487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8496 for cc_temp in $compiler""; do
8498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8507 # Only perform the check for file, if the check method requires it
8508 case $deplibs_check_method in
8510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8511 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8521 lt_save_MAGIC_CMD="$MAGIC_CMD"
8522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8524 for ac_dir in $ac_dummy; do
8526 test -z "$ac_dir" && ac_dir=.
8527 if test -f $ac_dir/${ac_tool_prefix}file; then
8528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8529 if test -n "$file_magic_test_file"; then
8530 case $deplibs_check_method in
8532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8535 $EGREP "$file_magic_regex" > /dev/null; then
8540 *** Warning: the command libtool uses to detect shared libraries,
8541 *** $file_magic_cmd, produces output that libtool cannot recognize.
8542 *** The result is that libtool may fail to recognize shared libraries
8543 *** as such. This will affect the creation of libtool libraries that
8544 *** depend on shared libraries, but programs linked with such libtool
8545 *** libraries will work regardless of this problem. Nevertheless, you
8546 *** may want to report the problem to your system manager and/or to
8547 *** bug-libtool@gnu.org
8557 MAGIC_CMD="$lt_save_MAGIC_CMD"
8562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8563 if test -n "$MAGIC_CMD"; then
8564 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8565 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8571 if test -z "$lt_cv_path_MAGIC_CMD"; then
8572 if test -n "$ac_tool_prefix"; then
8573 { echo "$as_me:$LINENO: checking for file" >&5
8574 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8575 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8583 lt_save_MAGIC_CMD="$MAGIC_CMD"
8584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8586 for ac_dir in $ac_dummy; do
8588 test -z "$ac_dir" && ac_dir=.
8589 if test -f $ac_dir/file; then
8590 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8591 if test -n "$file_magic_test_file"; then
8592 case $deplibs_check_method in
8594 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8597 $EGREP "$file_magic_regex" > /dev/null; then
8602 *** Warning: the command libtool uses to detect shared libraries,
8603 *** $file_magic_cmd, produces output that libtool cannot recognize.
8604 *** The result is that libtool may fail to recognize shared libraries
8605 *** as such. This will affect the creation of libtool libraries that
8606 *** depend on shared libraries, but programs linked with such libtool
8607 *** libraries will work regardless of this problem. Nevertheless, you
8608 *** may want to report the problem to your system manager and/or to
8609 *** bug-libtool@gnu.org
8619 MAGIC_CMD="$lt_save_MAGIC_CMD"
8624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625 if test -n "$MAGIC_CMD"; then
8626 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8627 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8629 { echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6; }
8645 # Check whether --enable-libtool-lock was given.
8646 if test "${enable_libtool_lock+set}" = set; then
8647 enableval=$enable_libtool_lock;
8650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8653 # Check whether --with-pic was given.
8654 if test "${with_pic+set}" = set; then
8655 withval=$with_pic; pic_mode="$withval"
8660 test -z "$pic_mode" && pic_mode=default
8662 # Use C for the default configuration in the libtool script
8666 ac_cpp='$CPP $CPPFLAGS'
8667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672 # Source file extension for C test sources.
8675 # Object file extension for compiled C test sources.
8679 # Code to be used in simple compile tests
8680 lt_simple_compile_test_code="int some_variable = 0;"
8682 # Code to be used in simple link tests
8683 lt_simple_link_test_code='int main(){return(0);}'
8686 # If no C compiler was specified, use CC.
8689 # If no C compiler flags were specified, use CFLAGS.
8690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8692 # Allow CC to be a program name with arguments.
8696 # save warnings/boilerplate of simple test code
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8699 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_compiler_boilerplate=`cat conftest.err`
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8705 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_linker_boilerplate=`cat conftest.err`
8711 lt_prog_compiler_no_builtin_flag=
8713 if test "$GCC" = yes; then
8714 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8717 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 lt_cv_prog_compiler_rtti_exceptions=no
8723 ac_outfile=conftest.$ac_objext
8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725 lt_compiler_flag="-fno-rtti -fno-exceptions"
8726 # Insert the option either (1) after the last *FLAGS variable, or
8727 # (2) before a word containing "conftest.", or (3) at the end.
8728 # Note that $ac_compile itself does not contain backslashes and begins
8729 # with a dollar sign (not a hyphen), so the echo should work correctly.
8730 # The option is referenced via a variable to avoid confusing sed.
8731 lt_compile=`echo "$ac_compile" | $SED \
8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734 -e 's:$: $lt_compiler_flag:'`
8735 (eval echo "\"\$as_me:8735: $lt_compile\"" >&5)
8736 (eval "$lt_compile" 2>conftest.err)
8738 cat conftest.err >&5
8739 echo "$as_me:8739: \$? = $ac_status" >&5
8740 if (exit $ac_status) && test -s "$ac_outfile"; then
8741 # The compiler can only warn and ignore the option if not recognized
8742 # So say no if there are warnings other than the usual output.
8743 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8746 lt_cv_prog_compiler_rtti_exceptions=yes
8752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8763 lt_prog_compiler_wl=
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_static=
8767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8770 if test "$GCC" = yes; then
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_static='-static'
8776 # All AIX code is PIC.
8777 if test "$host_cpu" = ia64; then
8778 # AIX 5 now supports IA64 processor
8779 lt_prog_compiler_static='-Bstatic'
8784 # FIXME: we need at least 68020 code to build shared libraries, but
8785 # adding the `-m68020' flag to GCC prevents building anything better,
8787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8794 mingw* | cygwin* | pw32* | os2*)
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8810 # Instead, we relocate shared libraries at runtime.
8814 # Just because we use GCC doesn't mean we suddenly get shared libraries
8815 # on systems that don't support them.
8816 lt_prog_compiler_can_build_shared=no
8821 if test -d /usr/nec; then
8822 lt_prog_compiler_pic=-Kconform_pic
8827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8834 lt_prog_compiler_pic='-fPIC'
8840 lt_prog_compiler_pic='-fPIC'
8844 # PORTME Check for flag to pass linker flags through the system compiler.
8847 lt_prog_compiler_wl='-Wl,'
8848 if test "$host_cpu" = ia64; then
8849 # AIX 5 now supports IA64 processor
8850 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8856 # PIC is the default on this platform
8857 # Common symbols not allowed in MH_DYLIB files
8858 case $cc_basename in
8860 lt_prog_compiler_pic='-qnocommon'
8861 lt_prog_compiler_wl='-Wl,'
8866 mingw* | cygwin* | pw32* | os2*)
8867 # This hack is so that the source file can tell whether it is being
8868 # built for inclusion in a dll (and should export symbols for example).
8869 lt_prog_compiler_pic='-DDLL_EXPORT'
8872 hpux9* | hpux10* | hpux11*)
8873 lt_prog_compiler_wl='-Wl,'
8874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8881 lt_prog_compiler_pic='+Z'
8884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8885 lt_prog_compiler_static='${wl}-a ${wl}archive'
8888 irix5* | irix6* | nonstopux*)
8889 lt_prog_compiler_wl='-Wl,'
8890 # PIC (with -KPIC) is the default.
8891 lt_prog_compiler_static='-non_shared'
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8899 linux* | k*bsd*-gnu)
8900 case $cc_basename in
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-static'
8906 pgcc* | pgf77* | pgf90* | pgf95*)
8907 # Portland Group compilers (*not* the Pentium gcc compiler,
8908 # which looks to be a dead project)
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-fpic'
8911 lt_prog_compiler_static='-Bstatic'
8914 lt_prog_compiler_wl='-Wl,'
8915 # All Alpha code is PIC.
8916 lt_prog_compiler_static='-non_shared'
8919 case `$CC -V 2>&1 | sed 5q` in
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl='-Wl,'
8927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_wl=''
8937 osf3* | osf4* | osf5*)
8938 lt_prog_compiler_wl='-Wl,'
8939 # All OSF/1 code is PIC.
8940 lt_prog_compiler_static='-non_shared'
8944 lt_prog_compiler_static='-non_shared'
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 case $cc_basename in
8952 lt_prog_compiler_wl='-Qoption ld ';;
8954 lt_prog_compiler_wl='-Wl,';;
8959 lt_prog_compiler_wl='-Qoption ld '
8960 lt_prog_compiler_pic='-PIC'
8961 lt_prog_compiler_static='-Bstatic'
8964 sysv4 | sysv4.2uw2* | sysv4.3*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8971 if test -d /usr/nec ;then
8972 lt_prog_compiler_pic='-Kconform_pic'
8973 lt_prog_compiler_static='-Bstatic'
8977 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_can_build_shared=no
8989 lt_prog_compiler_pic='-pic'
8990 lt_prog_compiler_static='-Bstatic'
8994 lt_prog_compiler_can_build_shared=no
8999 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9000 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9003 # Check to make sure the PIC flag actually works.
9005 if test -n "$lt_prog_compiler_pic"; then
9007 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9009 if test "${lt_prog_compiler_pic_works+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 lt_prog_compiler_pic_works=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:9025: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9028 cat conftest.err >&5
9029 echo "$as_me:9029: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_prog_compiler_pic_works=yes
9042 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9043 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9045 if test x"$lt_prog_compiler_pic_works" = xyes; then
9046 case $lt_prog_compiler_pic in
9048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9051 lt_prog_compiler_pic=
9052 lt_prog_compiler_can_build_shared=no
9057 # For platforms which do not support PIC, -DPIC is meaningless:
9059 lt_prog_compiler_pic=
9062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9067 # Check to make sure the static flag actually works.
9069 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9070 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9071 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9072 if test "${lt_prog_compiler_static_works+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 lt_prog_compiler_static_works=no
9076 save_LDFLAGS="$LDFLAGS"
9077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9080 # The linker can only warn and ignore the option if not recognized
9081 # So say no if there are warnings
9082 if test -s conftest.err; then
9083 # Append any errors to the config.log.
9084 cat conftest.err 1>&5
9085 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087 if diff conftest.exp conftest.er2 >/dev/null; then
9088 lt_prog_compiler_static_works=yes
9091 lt_prog_compiler_static_works=yes
9095 LDFLAGS="$save_LDFLAGS"
9098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9099 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9101 if test x"$lt_prog_compiler_static_works" = xyes; then
9104 lt_prog_compiler_static=
9108 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9110 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 lt_cv_prog_compiler_c_o=no
9114 $rm -r conftest 2>/dev/null
9118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120 lt_compiler_flag="-o out/conftest2.$ac_objext"
9121 # Insert the option either (1) after the last *FLAGS variable, or
9122 # (2) before a word containing "conftest.", or (3) at the end.
9123 # Note that $ac_compile itself does not contain backslashes and begins
9124 # with a dollar sign (not a hyphen), so the echo should work correctly.
9125 lt_compile=`echo "$ac_compile" | $SED \
9126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128 -e 's:$: $lt_compiler_flag:'`
9129 (eval echo "\"\$as_me:9129: $lt_compile\"" >&5)
9130 (eval "$lt_compile" 2>out/conftest.err)
9132 cat out/conftest.err >&5
9133 echo "$as_me:9133: \$? = $ac_status" >&5
9134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 # The compiler can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141 lt_cv_prog_compiler_c_o=yes
9146 # SGI C++ compiler will create directory out/ii_files/ for
9147 # template instantiation
9148 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9149 $rm out/* && rmdir out
9155 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9159 hard_links="nottested"
9160 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9161 # do not overwrite the value of need_locks provided by the user
9162 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9168 ln conftest.a conftest.b 2>&5 || hard_links=no
9169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170 { echo "$as_me:$LINENO: result: $hard_links" >&5
9171 echo "${ECHO_T}$hard_links" >&6; }
9172 if test "$hard_links" = no; then
9173 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9181 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9185 allow_undefined_flag=
9186 enable_shared_with_static_runtimes=no
9188 archive_expsym_cmds=
9189 old_archive_From_new_cmds=
9190 old_archive_from_expsyms_cmds=
9191 export_dynamic_flag_spec=
9192 whole_archive_flag_spec=
9193 thread_safe_flag_spec=
9194 hardcode_libdir_flag_spec=
9195 hardcode_libdir_flag_spec_ld=
9196 hardcode_libdir_separator=
9199 hardcode_shlibpath_var=unsupported
9200 link_all_deplibs=unknown
9201 hardcode_automatic=no
9204 always_export_symbols=no
9205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9206 # include_expsyms should be a list of space-separated symbols to be *always*
9207 # included in the symbol list
9209 # exclude_expsyms can be an extended regexp of symbols to exclude
9210 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9211 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9212 # as well as any symbol that contains `d'.
9213 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9214 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9215 # platforms (ab)use it in PIC code, but their linkers get confused if
9216 # the symbol is explicitly referenced. Since portable code cannot
9217 # rely on this symbol name, it's probably fine to never include it in
9218 # preloaded symbol tables.
9219 extract_expsyms_cmds=
9220 # Just being paranoid about ensuring that cc_basename is set.
9221 for cc_temp in $compiler""; do
9223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9229 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9232 cygwin* | mingw* | pw32*)
9233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234 # When not using gcc, we currently assume that we are using
9235 # Microsoft Visual C++.
9236 if test "$GCC" != yes; then
9241 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 if test "$with_gnu_ld" = yes; then
9251 # If archive_cmds runs LD, not CC, wlarc should be empty
9254 # Set some defaults for GNU ld with shared library support. These
9255 # are reset later if shared libraries are not supported. Putting them
9256 # here allows them to be overridden if necessary.
9257 runpath_var=LD_RUN_PATH
9258 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9259 export_dynamic_flag_spec='${wl}--export-dynamic'
9260 # ancient GNU ld didn't support --whole-archive et. al.
9261 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9264 whole_archive_flag_spec=
9266 supports_anon_versioning=no
9267 case `$LD -v 2>/dev/null` in
9268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271 *\ 2.11.*) ;; # other 2.11 versions
9272 *) supports_anon_versioning=yes ;;
9275 # See if GNU ld supports shared libraries.
9277 aix3* | aix4* | aix5*)
9278 # On AIX/PPC, the GNU linker is very broken
9279 if test "$host_cpu" != ia64; then
9283 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support. If you
9286 *** really care for shared libraries, you may want to modify your PATH
9287 *** so that a non-GNU linker is found, and then restart.
9294 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)'
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 hardcode_minus_L=yes
9298 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9299 # that the semantics of dynamic libraries on AmigaOS, at least up
9300 # to version 4, is to share data among multiple programs linked
9301 # with the same dynamic library. Since this doesn't match the
9302 # behavior of shared libraries on other platforms, we can't use
9308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9309 allow_undefined_flag=unsupported
9310 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9311 # support --undefined. This deserves some investigation. FIXME
9312 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318 cygwin* | mingw* | pw32*)
9319 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9320 # as there is no search path for DLLs.
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 allow_undefined_flag=unsupported
9323 always_export_symbols=no
9324 enable_shared_with_static_runtimes=yes
9325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9327 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329 # If the export-symbols file already is a .def file (1st line
9330 # is EXPORTS), use it as is; otherwise, prepend...
9331 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9332 cp $export_symbols $output_objdir/$soname.def;
9334 echo EXPORTS > $output_objdir/$soname.def;
9335 cat $export_symbols >> $output_objdir/$soname.def;
9337 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345 hardcode_shlibpath_var=no
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 export_dynamic_flag_spec='${wl}-E'
9348 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9349 # Instead, shared libraries are loaded at an image base (0x10000000 by
9350 # default) and relocated if they conflict, which is a slow very memory
9351 # consuming and fragmenting process. To avoid this, we pick a random,
9352 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9353 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9354 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9355 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'
9358 gnu* | linux* | k*bsd*-gnu)
9359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9361 case $cc_basename,$host_cpu in
9362 pgcc*) # Portland Group C compiler
9363 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'
9364 tmp_addflag=' $pic_flag'
9366 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9367 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'
9368 tmp_addflag=' $pic_flag -Mnomain' ;;
9369 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9370 tmp_addflag=' -i_dynamic' ;;
9371 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9372 tmp_addflag=' -i_dynamic -nofor_main' ;;
9373 ifc* | ifort*) # Intel Fortran compiler
9374 tmp_addflag=' -nofor_main' ;;
9376 case `$CC -V 2>&1 | sed 5q` in
9377 *Sun\ C*) # Sun C 5.9
9378 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9379 tmp_sharedflag='-G' ;;
9380 *Sun\ F*) # Sun Fortran 8.3
9381 tmp_sharedflag='-G' ;;
9383 tmp_sharedflag='-shared' ;;
9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 if test $supports_anon_versioning = yes; then
9388 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9390 $echo "local: *; };" >> $output_objdir/$libname.ver~
9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9399 netbsd* | netbsdelf*-gnu)
9400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9415 *** create shared libraries on Solaris systems. Therefore, libtool
9416 *** is disabling shared libraries support. We urge you to upgrade GNU
9417 *** binutils to release 2.9.1 or newer. Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9431 case `$LD -v 2>&1` in
9432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9437 *** reliably create shared libraries on SCO systems. Therefore, libtool
9438 *** is disabling shared libraries support. We urge you to upgrade GNU
9439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9440 *** your PATH or compiler configuration so that the native linker is
9441 *** used, and then restart.
9446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var=no
9465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474 if test "$ld_shlibs" = no; then
9476 hardcode_libdir_flag_spec=
9477 export_dynamic_flag_spec=
9478 whole_archive_flag_spec=
9481 # PORTME fill in a description of your system's linker (not GNU ld)
9484 allow_undefined_flag=unsupported
9485 always_export_symbols=yes
9486 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'
9487 # Note: this linker hardcodes the directories in LIBPATH if there
9488 # are no directories specified by -L.
9489 hardcode_minus_L=yes
9490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9491 # Neither direct hardcoding nor static linking is supported with a
9493 hardcode_direct=unsupported
9498 if test "$host_cpu" = ia64; then
9499 # On IA64, the linker does run time linking by default, so we don't
9500 # have to do anything special.
9501 aix_use_runtimelinking=no
9502 exp_sym_flag='-Bexport'
9505 # If we're using GNU nm, then we don't want the "-C" option.
9506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9508 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'
9510 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'
9512 aix_use_runtimelinking=no
9514 # Test if we are trying to use run time linking or normal
9515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516 # need to do runtime linking.
9517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9518 for ld_flag in $LDFLAGS; do
9519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520 aix_use_runtimelinking=yes
9527 exp_sym_flag='-bexport'
9528 no_entry_flag='-bnoentry'
9531 # When large executables or shared objects are built, AIX ld can
9532 # have problems creating the table of contents. If linking a library
9533 # or program results in "error TOC overflow" add -mminimal-toc to
9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9539 hardcode_libdir_separator=':'
9540 link_all_deplibs=yes
9542 if test "$GCC" = yes; then
9543 case $host_os in aix4.[012]|aix4.[012].*)
9544 # We only want to do this on AIX 4.2 and lower, the check
9545 # below for broken collect2 doesn't work under 4.3+
9546 collect2name=`${CC} -print-prog-name=collect2`
9547 if test -f "$collect2name" && \
9548 strings "$collect2name" | grep resolve_lib_name >/dev/null
9550 # We have reworked collect2
9553 # We have old collect2
9554 hardcode_direct=unsupported
9555 # It fails to find uninstalled libraries when the uninstalled
9556 # path is not listed in the libpath. Setting hardcode_minus_L
9557 # to unsupported forces relinking
9558 hardcode_minus_L=yes
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_libdir_separator=
9564 shared_flag='-shared'
9565 if test "$aix_use_runtimelinking" = yes; then
9566 shared_flag="$shared_flag "'${wl}-G'
9570 if test "$host_cpu" = ia64; then
9571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9572 # chokes on -Wl,-G. The following line is correct:
9575 if test "$aix_use_runtimelinking" = yes; then
9576 shared_flag='${wl}-G'
9578 shared_flag='${wl}-bM:SRE'
9583 # It seems that -bexpall does not export symbols beginning with
9584 # underscore (_), so it is better to generate a list of symbols to export.
9585 always_export_symbols=yes
9586 if test "$aix_use_runtimelinking" = yes; then
9587 # Warning - without using the other runtime loading flags (-brtl),
9588 # -berok will link without error, but may produce a broken library.
9589 allow_undefined_flag='-berok'
9590 # Determine the default libpath from the value encoded in an empty executable.
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then
9635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649 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"
9651 if test "$host_cpu" = ia64; then
9652 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653 allow_undefined_flag="-z nodefs"
9654 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"
9656 # Determine the default libpath from the value encoded in an empty executable.
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
9691 lt_aix_libpath_sed='
9692 /Import File Strings/,/^$/ {
9698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$aix_libpath"; then
9701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9715 # Warning - without using the other run time loading flags,
9716 # -berok will link without error, but may produce a broken library.
9717 no_undefined_flag=' ${wl}-bernotok'
9718 allow_undefined_flag=' ${wl}-berok'
9719 # Exported symbols can be pulled into shared objects from archives
9720 whole_archive_flag_spec='$convenience'
9721 archive_cmds_need_lc=yes
9722 # This is similar to how AIX traditionally builds its shared libraries.
9723 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'
9729 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)'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 # see comment about different semantics on the GNU ld section
9737 export_dynamic_flag_spec=-rdynamic
9740 cygwin* | mingw* | pw32*)
9741 # When not using gcc, we currently assume that we are using
9742 # Microsoft Visual C++.
9743 # hardcode_libdir_flag_spec is actually meaningless, as there is
9744 # no search path for DLLs.
9745 hardcode_libdir_flag_spec=' '
9746 allow_undefined_flag=unsupported
9747 # Tell ltmain to make .lib files, not .a files.
9749 # Tell ltmain to make .dll files, not .so files.
9751 # FIXME: Setting linknames here is a bad hack.
9752 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9753 # The linker will automatically build a .lib file if we build a DLL.
9754 old_archive_From_new_cmds='true'
9755 # FIXME: Should let the user specify the lib program.
9756 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757 fix_srcfile_path='`cygpath -w "$srcfile"`'
9758 enable_shared_with_static_runtimes=yes
9761 darwin* | rhapsody*)
9763 rhapsody* | darwin1.[012])
9764 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9768 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9770 case ${MACOSX_DEPLOYMENT_TARGET} in
9772 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9775 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9781 archive_cmds_need_lc=no
9783 hardcode_automatic=yes
9784 hardcode_shlibpath_var=unsupported
9785 whole_archive_flag_spec=''
9786 link_all_deplibs=yes
9787 if test "$GCC" = yes ; then
9788 output_verbose_link_cmd='echo'
9789 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9790 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9792 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}'
9793 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}'
9795 case $cc_basename in
9797 output_verbose_link_cmd='echo'
9798 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9799 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9801 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9802 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}'
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_shlibpath_var=no
9821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9822 # support. Future versions do this automatically, but an explicit c++rt0.o
9823 # does not break anything, and helps significantly (at the cost of a little
9826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9827 hardcode_libdir_flag_spec='-R$libdir'
9829 hardcode_shlibpath_var=no
9832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_minus_L=yes
9837 hardcode_shlibpath_var=no
9840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9841 freebsd* | dragonfly*)
9842 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='-R$libdir'
9845 hardcode_shlibpath_var=no
9849 if test "$GCC" = yes; then
9850 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'
9852 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'
9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855 hardcode_libdir_separator=:
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9861 export_dynamic_flag_spec='${wl}-E'
9865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9870 if test "$with_gnu_ld" = no; then
9871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872 hardcode_libdir_separator=:
9875 export_dynamic_flag_spec='${wl}-E'
9877 # hardcode_minus_L: Not really in the search PATH,
9878 # but as the default location of the library.
9879 hardcode_minus_L=yes
9884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9887 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909 if test "$with_gnu_ld" = no; then
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9915 hardcode_libdir_flag_spec_ld='+b $libdir'
9917 hardcode_shlibpath_var=no
9921 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9931 irix5* | irix6* | nonstopux*)
9932 if test "$GCC" = yes; then
9933 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'
9935 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'
9936 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator=:
9940 link_all_deplibs=yes
9943 netbsd* | netbsdelf*-gnu)
9944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9949 hardcode_libdir_flag_spec='-R$libdir'
9951 hardcode_shlibpath_var=no
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 hardcode_shlibpath_var=no
9963 if test -f /usr/libexec/ld.so; then
9965 hardcode_shlibpath_var=no
9966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970 export_dynamic_flag_spec='${wl}-E'
9973 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975 hardcode_libdir_flag_spec='-R$libdir'
9978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 allow_undefined_flag=unsupported
9992 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'
9993 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9997 if test "$GCC" = yes; then
9998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999 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'
10001 allow_undefined_flag=' -expect_unresolved \*'
10002 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'
10004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005 hardcode_libdir_separator=:
10008 osf4* | osf5*) # as osf3* with the addition of -msym flag
10009 if test "$GCC" = yes; then
10010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011 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'
10012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 allow_undefined_flag=' -expect_unresolved \*'
10015 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'
10016 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10017 $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'
10019 # Both c and cxx compiler support -rpath directly
10020 hardcode_libdir_flag_spec='-rpath $libdir'
10022 hardcode_libdir_separator=:
10026 no_undefined_flag=' -z text'
10027 if test "$GCC" = yes; then
10029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 hardcode_shlibpath_var=no
10041 solaris2.[0-5] | solaris2.[0-5].*) ;;
10043 # The compiler driver will combine and reorder linker options,
10044 # but understands `-z linker_flag'. GCC discards it without `$wl',
10045 # but is careful enough not to reorder.
10046 # Supported since Solaris 2.6 (maybe 2.5.1?)
10047 if test "$GCC" = yes; then
10048 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10054 link_all_deplibs=yes
10058 if test "x$host_vendor" = xsequent; then
10059 # Use $CC to link under sequent, because it throws in some extra .o
10060 # files that make .init and .fini sections work.
10061 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_direct=yes
10067 hardcode_minus_L=yes
10068 hardcode_shlibpath_var=no
10072 case $host_vendor in
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_direct=yes # is this really true???
10078 ## LD is ld it makes a PLAMLIB
10079 ## CC just makes a GrossModule.
10080 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10081 reload_cmds='$CC -r -o $output$reload_objs'
10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10089 runpath_var='LD_RUN_PATH'
10090 hardcode_shlibpath_var=no
10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_shlibpath_var=no
10096 export_dynamic_flag_spec='-Bexport'
10100 if test -d /usr/nec; then
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_shlibpath_var=no
10103 runpath_var=LD_RUN_PATH
10104 hardcode_runpath_var=yes
10109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10110 no_undefined_flag='${wl}-z,text'
10111 archive_cmds_need_lc=no
10112 hardcode_shlibpath_var=no
10113 runpath_var='LD_RUN_PATH'
10115 if test "$GCC" = yes; then
10116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 sysv5* | sco3.2v5* | sco5v6*)
10125 # Note: We can NOT use -z defs as we might desire, because we do not
10126 # link with -lc, and that would cause any symbols used from libc to
10127 # always be unresolved, which means just about no library would
10128 # ever link correctly. If we're not using GNU ld we use -z text
10129 # though, which does catch some bad symbols but isn't as heavy-handed
10131 no_undefined_flag='${wl}-z,text'
10132 allow_undefined_flag='${wl}-z,nodefs'
10133 archive_cmds_need_lc=no
10134 hardcode_shlibpath_var=no
10135 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10136 hardcode_libdir_separator=':'
10137 link_all_deplibs=yes
10138 export_dynamic_flag_spec='${wl}-Bexport'
10139 runpath_var='LD_RUN_PATH'
10141 if test "$GCC" = yes; then
10142 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152 hardcode_libdir_flag_spec='-L$libdir'
10153 hardcode_shlibpath_var=no
10162 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10163 echo "${ECHO_T}$ld_shlibs" >&6; }
10164 test "$ld_shlibs" = no && can_build_shared=no
10167 # Do we need to explicitly link libc?
10169 case "x$archive_cmds_need_lc" in
10171 # Assume -lc should be added
10172 archive_cmds_need_lc=yes
10174 if test "$enable_shared" = yes && test "$GCC" = yes; then
10175 case $archive_cmds in
10177 # FIXME: we may have to deal with multi-command sequences.
10180 # Test whether the compiler implicitly links with -lc since on some
10181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182 # to ld, don't add -lc before -lgcc.
10183 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } 2>conftest.err; then
10195 libobjs=conftest.$ac_objext
10197 wl=$lt_prog_compiler_wl
10198 pic_flag=$lt_prog_compiler_pic
10204 lt_save_allow_undefined_flag=$allow_undefined_flag
10205 allow_undefined_flag=
10206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10207 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }
10212 archive_cmds_need_lc=no
10214 archive_cmds_need_lc=yes
10216 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 cat conftest.err 1>&5
10221 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10222 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10231 library_names_spec=
10232 libname_spec='lib$name'
10236 postuninstall_cmds=
10240 shlibpath_overrides_runpath=unknown
10242 dynamic_linker="$host_os ld.so"
10243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10245 if test "$GCC" = yes; then
10247 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10248 *) lt_awk_arg="/^libraries:/" ;;
10250 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10251 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10252 # if the path contains ";" then we assume it to be the separator
10253 # otherwise default to the standard path separator (i.e. ":") - it is
10254 # assumed that no part of a normal pathname contains ";" but that should
10255 # okay in the real world where ";" in dirpaths is itself problematic.
10256 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10258 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10260 # Ok, now we have the path, separated by spaces, we can step through it
10261 # and add multilib dir if necessary.
10262 lt_tmp_lt_search_path_spec=
10263 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10264 for lt_sys_path in $lt_search_path_spec; do
10265 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10266 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10268 test -d "$lt_sys_path" && \
10269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10272 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10273 BEGIN {RS=" "; FS="/|\n";} {
10276 for (lt_i = NF; lt_i > 0; lt_i--) {
10277 if ($lt_i != "" && $lt_i != ".") {
10278 if ($lt_i == "..") {
10281 if (lt_count == 0) {
10282 lt_foo="/" $lt_i lt_foo;
10289 if (lt_foo != "") { lt_freq[lt_foo]++; }
10290 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10292 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10296 need_lib_prefix=unknown
10297 hardcode_into_libs=no
10299 # when you set need_version to no, make sure it does not cause -set_version
10300 # flags to be left without arguments
10301 need_version=unknown
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10307 shlibpath_var=LIBPATH
10309 # AIX 3 has no versioning support, so we append a major version to the name.
10310 soname_spec='${libname}${release}${shared_ext}$major'
10317 hardcode_into_libs=yes
10318 if test "$host_cpu" = ia64; then
10319 # AIX 5 supports IA64
10320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10321 shlibpath_var=LD_LIBRARY_PATH
10323 # With GCC up to 2.95.x, collect2 would create an import file
10324 # for dependence libraries. The import file would start with
10325 # the line `#! .'. This would cause the generated library to
10326 # depend on `.', always an invalid library. This was fixed in
10327 # development snapshots of GCC prior to 3.0.
10329 aix4 | aix4.[01] | aix4.[01].*)
10330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10335 can_build_shared=no
10339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10340 # soname into executable. Probably we can add versioning support to
10341 # collect2, so additional links can be useful in future.
10342 if test "$aix_use_runtimelinking" = yes; then
10343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10344 # instead of lib<name>.a to let people know that these are not
10345 # typical AIX shared libraries.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 # We preserve .a as extension for shared libraries through AIX4.2
10349 # and later when we are not doing run time linking.
10350 library_names_spec='${libname}${release}.a $libname.a'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LIBPATH
10358 library_names_spec='$libname.ixlibrary $libname.a'
10359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10360 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'
10364 library_names_spec='${libname}${shared_ext}'
10365 dynamic_linker="$host_os ld.so"
10366 shlibpath_var=LIBRARY_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378 # the default ld.so.conf also contains /usr/contrib/lib and
10379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380 # libtool to hard-code these into programs
10383 cygwin* | mingw* | pw32*)
10384 version_type=windows
10389 case $GCC,$host_os in
10390 yes,cygwin* | yes,mingw* | yes,pw32*)
10391 library_names_spec='$libname.dll.a'
10392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393 postinstall_cmds='base_file=`basename \${file}`~
10394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10395 dldir=$destdir/`dirname \$dlpath`~
10396 test -d \$dldir || mkdir -p \$dldir~
10397 $install_prog $dir/$dlname \$dldir/$dlname~
10398 chmod a+x \$dldir/$dlname'
10399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400 dlpath=$dir/\$dldll~
10402 shlibpath_overrides_runpath=yes
10406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10411 # MinGW DLLs use traditional 'lib' prefix
10412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10415 # It is most probably a Windows format PATH printed by
10416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10417 # path with ; separators, and with drive letters. We can handle the
10418 # drive letters (cygwin fileutils understands them), so leave them,
10419 # especially as we might pass files found there to a mingw objdump,
10420 # which wouldn't understand a cygwinified path. Ahh.
10421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10427 # pw32 DLLs use 'pw' prefix rather than 'lib'
10428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10437 dynamic_linker='Win32 ld.exe'
10438 # FIXME: first we should search . and the directory the executable is in
10442 darwin* | rhapsody*)
10443 dynamic_linker="$host_os dyld"
10444 version_type=darwin
10447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10448 soname_spec='${libname}${release}${major}$shared_ext'
10449 shlibpath_overrides_runpath=yes
10450 shlibpath_var=DYLD_LIBRARY_PATH
10451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10470 freebsd* | dragonfly*)
10471 # DragonFly does not have aout. When/if they implement a new
10472 # versioning mechanism, adjust this.
10473 if test -x /usr/bin/objformat; then
10474 objformat=`/usr/bin/objformat`
10477 freebsd[123]*) objformat=aout ;;
10478 *) objformat=elf ;;
10481 version_type=freebsd-$objformat
10482 case $version_type in
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10493 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10498 freebsd3.[01]* | freebsdelf3.[01]*)
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10507 *) # from 4.6 on, and DragonFly
10508 shlibpath_overrides_runpath=yes
10509 hardcode_into_libs=yes
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 hardcode_into_libs=yes
10524 hpux9* | hpux10* | hpux11*)
10525 # Give a soname corresponding to the major version so that dld.sl refuses to
10526 # link against other versions.
10533 hardcode_into_libs=yes
10534 dynamic_linker="$host_os dld.so"
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 if test "X$HPUX_IA64_MODE" = X32; then
10540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10548 hardcode_into_libs=yes
10549 dynamic_linker="$host_os dld.sl"
10550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10559 dynamic_linker="$host_os dld.sl"
10560 shlibpath_var=SHLIB_PATH
10561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10567 postinstall_cmds='chmod 555 $lib'
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=no
10579 hardcode_into_libs=yes
10582 irix5* | irix6* | nonstopux*)
10584 nonstopux*) version_type=nonstopux ;;
10586 if test "$lt_cv_prog_gnu_ld" = yes; then
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10597 irix5* | nonstopux*)
10598 libsuff= shlibsuff=
10601 case $LD in # libtool.m4 will add one of these switches to LD
10602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10603 libsuff= shlibsuff= libmagic=32-bit;;
10604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10605 libsuff=32 shlibsuff=N32 libmagic=N32;;
10606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10608 *) libsuff= shlibsuff= libmagic=never-match;;
10612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10616 hardcode_into_libs=yes
10619 # No shared lib support for Linux oldld, aout, or coff.
10620 linux*oldld* | linux*aout* | linux*coff*)
10624 # This must be Linux ELF.
10625 linux* | k*bsd*-gnu)
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 # This implies no fast_install, which is unacceptable.
10635 # Some rework will be needed to allow for fast_install
10636 # before this can be enabled.
10637 hardcode_into_libs=yes
10639 # Append ld.so.conf contents to the search path
10640 if test -f /etc/ld.so.conf; then
10641 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10645 # We used to test for /lib/ld.so.1 and disable shared libraries on
10646 # powerpc, because MkLinux only supported shared libraries with the
10647 # GNU dynamic linker. Since this was broken with cross compilers,
10648 # most powerpc-linux boxes support dynamic linking these days and
10649 # people can always --disable-shared, the test was removed, and we
10650 # assume the GNU/Linux dynamic linker is in use.
10651 dynamic_linker='GNU/Linux ld.so'
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10663 dynamic_linker='NetBSD ld.elf_so'
10670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10673 dynamic_linker='NetBSD (a.out) ld.so'
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 dynamic_linker='NetBSD ld.elf_so'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=yes
10681 hardcode_into_libs=yes
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10703 sys_lib_dlsearch_path_spec="/usr/lib"
10705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10708 *) need_version=no ;;
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10715 openbsd2.[89] | openbsd2.[89].*)
10716 shlibpath_overrides_runpath=no
10719 shlibpath_overrides_runpath=yes
10723 shlibpath_overrides_runpath=yes
10728 libname_spec='$name'
10731 library_names_spec='$libname${shared_ext} $libname.a'
10732 dynamic_linker='OS/2 ld.exe'
10733 shlibpath_var=LIBPATH
10736 osf3* | osf4* | osf5*)
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes
10759 hardcode_into_libs=yes
10760 # ldd complains unless libraries are executable
10761 postinstall_cmds='chmod +x $lib'
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=yes
10770 if test "$with_gnu_ld" = yes; then
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 case $host_vendor in
10783 shlibpath_overrides_runpath=no
10785 export_dynamic_flag_spec='${wl}-Blargedynsym'
10786 runpath_var=LD_RUN_PATH
10794 shlibpath_overrides_runpath=no
10795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10801 if test -d /usr/nec ;then
10803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10804 soname_spec='$libname${shared_ext}.$major'
10805 shlibpath_var=LD_LIBRARY_PATH
10809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10810 version_type=freebsd-elf
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 hardcode_into_libs=yes
10817 if test "$with_gnu_ld" = yes; then
10818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10819 shlibpath_overrides_runpath=no
10821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10822 shlibpath_overrides_runpath=yes
10825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10829 sys_lib_dlsearch_path_spec='/usr/lib'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 shlibpath_var=LD_LIBRARY_PATH
10843 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10844 echo "${ECHO_T}$dynamic_linker" >&6; }
10845 test "$dynamic_linker" = no && can_build_shared=no
10847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10848 if test "$GCC" = yes; then
10849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10852 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10853 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10855 if test -n "$hardcode_libdir_flag_spec" || \
10856 test -n "$runpath_var" || \
10857 test "X$hardcode_automatic" = "Xyes" ; then
10859 # We can hardcode non-existant directories.
10860 if test "$hardcode_direct" != no &&
10861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10862 # have to relink, otherwise we might link with an installed library
10863 # when we should be linking with a yet-to-be-installed one
10864 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10865 test "$hardcode_minus_L" != no; then
10866 # Linking always hardcodes the temporary library directory.
10867 hardcode_action=relink
10869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10870 hardcode_action=immediate
10873 # We cannot hardcode anything, or else we can only hardcode existing
10875 hardcode_action=unsupported
10877 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10878 echo "${ECHO_T}$hardcode_action" >&6; }
10880 if test "$hardcode_action" = relink; then
10881 # Fast installation is not supported
10882 enable_fast_install=no
10883 elif test "$shlibpath_overrides_runpath" = yes ||
10884 test "$enable_shared" = no; then
10885 # Fast installation is not necessary
10886 enable_fast_install=needless
10891 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10892 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10893 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10896 { echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6; }
10899 # FIXME - insert some real tests, host_os isn't really good enough
10902 if test -n "$STRIP" ; then
10903 striplib="$STRIP -x"
10904 old_striplib="$STRIP -S"
10905 { echo "$as_me:$LINENO: result: yes" >&5
10906 echo "${ECHO_T}yes" >&6; }
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10913 { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10919 if test "x$enable_dlopen" != xyes; then
10920 enable_dlopen=unknown
10921 enable_dlopen_self=unknown
10922 enable_dlopen_self_static=unknown
10929 lt_cv_dlopen="load_add_on"
10931 lt_cv_dlopen_self=yes
10935 lt_cv_dlopen="LoadLibrary"
10940 lt_cv_dlopen="dlopen"
10945 # if libdl is installed we need to link against it
10946 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 ac_check_lib_save_LIBS=$LIBS
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_link") 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest$ac_exeext &&
10992 $as_test_x conftest$ac_exeext; then
10993 ac_cv_lib_dl_dlopen=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_cv_lib_dl_dlopen=no
11001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LIBS=$ac_check_lib_save_LIBS
11005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11006 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11007 if test $ac_cv_lib_dl_dlopen = yes; then
11008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11011 lt_cv_dlopen="dyld"
11013 lt_cv_dlopen_self=yes
11020 { echo "$as_me:$LINENO: checking for shl_load" >&5
11021 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11022 if test "${ac_cv_func_shl_load+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11033 #define shl_load innocuous_shl_load
11035 /* System header to define __stub macros and hopefully few prototypes,
11036 which can conflict with char shl_load (); below.
11037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038 <limits.h> exists even on freestanding compilers. */
11041 # include <limits.h>
11043 # include <assert.h>
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11055 /* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058 #if defined __stub_shl_load || defined __stub___shl_load
11065 return shl_load ();
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_link") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext &&
11087 $as_test_x conftest$ac_exeext; then
11088 ac_cv_func_shl_load=yes
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 ac_cv_func_shl_load=no
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097 conftest$ac_exeext conftest.$ac_ext
11099 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11100 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11101 if test $ac_cv_func_shl_load = yes; then
11102 lt_cv_dlopen="shl_load"
11104 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11105 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11106 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 ac_check_lib_save_LIBS=$LIBS
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11128 return shl_load ();
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_link") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext &&
11150 $as_test_x conftest$ac_exeext; then
11151 ac_cv_lib_dld_shl_load=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_lib_dld_shl_load=no
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11164 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11165 if test $ac_cv_lib_dld_shl_load = yes; then
11166 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11168 { echo "$as_me:$LINENO: checking for dlopen" >&5
11169 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11170 if test "${ac_cv_func_dlopen+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11181 #define dlopen innocuous_dlopen
11183 /* System header to define __stub macros and hopefully few prototypes,
11184 which can conflict with char dlopen (); below.
11185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11186 <limits.h> exists even on freestanding compilers. */
11189 # include <limits.h>
11191 # include <assert.h>
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined __stub_dlopen || defined __stub___dlopen
11218 rm -f conftest.$ac_objext conftest$ac_exeext
11219 if { (ac_try="$ac_link"
11220 case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_link") 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest$ac_exeext &&
11235 $as_test_x conftest$ac_exeext; then
11236 ac_cv_func_dlopen=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_cv_func_dlopen=no
11244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11245 conftest$ac_exeext conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11248 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11249 if test $ac_cv_func_dlopen = yes; then
11250 lt_cv_dlopen="dlopen"
11252 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 ac_check_lib_save_LIBS=$LIBS
11259 cat >conftest.$ac_ext <<_ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (ac_try="$ac_link"
11283 case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_link") 2>conftest.er1
11290 grep -v '^ *+' conftest.er1 >conftest.err
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && {
11295 test -z "$ac_c_werror_flag" ||
11296 test ! -s conftest.err
11297 } && test -s conftest$ac_exeext &&
11298 $as_test_x conftest$ac_exeext; then
11299 ac_cv_lib_dl_dlopen=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_cv_lib_dl_dlopen=no
11307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11313 if test $ac_cv_lib_dl_dlopen = yes; then
11314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11317 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11318 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 ac_check_lib_save_LIBS=$LIBS
11322 LIBS="-lsvld $LIBS"
11323 cat >conftest.$ac_ext <<_ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 ac_cv_lib_svld_dlopen=yes
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 ac_cv_lib_svld_dlopen=no
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11375 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11377 if test $ac_cv_lib_svld_dlopen = yes; then
11378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11380 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 ac_check_lib_save_LIBS=$LIBS
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11404 return dld_link ();
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (ac_try="$ac_link"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_link") 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest$ac_exeext &&
11426 $as_test_x conftest$ac_exeext; then
11427 ac_cv_lib_dld_dld_link=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_cv_lib_dld_dld_link=no
11435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11436 conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS
11439 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11440 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11441 if test $ac_cv_lib_dld_dld_link = yes; then
11442 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11463 if test "x$lt_cv_dlopen" != xno; then
11469 case $lt_cv_dlopen in
11471 save_CPPFLAGS="$CPPFLAGS"
11472 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11474 save_LDFLAGS="$LDFLAGS"
11475 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11478 LIBS="$lt_cv_dlopen_libs $LIBS"
11480 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11481 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11482 if test "${lt_cv_dlopen_self+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 if test "$cross_compiling" = yes; then :
11486 lt_cv_dlopen_self=cross
11488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11489 lt_status=$lt_dlunknown
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11491 "configure"
11492 #include "confdefs.h"
11501 # define LT_DLGLOBAL RTLD_GLOBAL
11504 # define LT_DLGLOBAL DL_GLOBAL
11506 # define LT_DLGLOBAL 0
11510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11511 find out it does not work in some platform. */
11512 #ifndef LT_DLLAZY_OR_NOW
11514 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11517 # define LT_DLLAZY_OR_NOW DL_LAZY
11520 # define LT_DLLAZY_OR_NOW RTLD_NOW
11523 # define LT_DLLAZY_OR_NOW DL_NOW
11525 # define LT_DLLAZY_OR_NOW 0
11533 extern "C" void exit (int);
11536 void fnord() { int i=42;}
11539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11540 int status = $lt_dlunknown;
11544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11546 /* dlclose (self); */
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11559 (./conftest; exit; ) >&5 2>/dev/null
11561 case x$lt_status in
11562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11564 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11567 # compilation failed
11568 lt_cv_dlopen_self=no
11575 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11578 if test "x$lt_cv_dlopen_self" = xyes; then
11579 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11580 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11582 if test "${lt_cv_dlopen_self_static+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 if test "$cross_compiling" = yes; then :
11586 lt_cv_dlopen_self_static=cross
11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589 lt_status=$lt_dlunknown
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11601 # define LT_DLGLOBAL RTLD_GLOBAL
11604 # define LT_DLGLOBAL DL_GLOBAL
11606 # define LT_DLGLOBAL 0
11610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612 #ifndef LT_DLLAZY_OR_NOW
11614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11617 # define LT_DLLAZY_OR_NOW DL_LAZY
11620 # define LT_DLLAZY_OR_NOW RTLD_NOW
11623 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # define LT_DLLAZY_OR_NOW 0
11633 extern "C" void exit (int);
11636 void fnord() { int i=42;}
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646 /* dlclose (self); */
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11659 (./conftest; exit; ) >&5 2>/dev/null
11661 case x$lt_status in
11662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11664 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11667 # compilation failed
11668 lt_cv_dlopen_self_static=no
11675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11676 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11679 CPPFLAGS="$save_CPPFLAGS"
11680 LDFLAGS="$save_LDFLAGS"
11685 case $lt_cv_dlopen_self in
11686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11687 *) enable_dlopen_self=unknown ;;
11690 case $lt_cv_dlopen_self_static in
11691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11692 *) enable_dlopen_self_static=unknown ;;
11697 # Report which library types will actually be built
11698 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11700 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701 echo "${ECHO_T}$can_build_shared" >&6; }
11703 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11705 test "$can_build_shared" = "no" && enable_shared=no
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11724 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11725 echo "${ECHO_T}$enable_shared" >&6; }
11727 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 { echo "$as_me:$LINENO: result: $enable_static" >&5
11732 echo "${ECHO_T}$enable_static" >&6; }
11734 # The else clause should only fire when bootstrapping the
11735 # libtool distribution, otherwise you forgot to ship ltmain.sh
11736 # with your package, and you will get complaints that there are
11737 # no rules to generate ltmain.sh.
11738 if test -f "$ltmain"; then
11739 # See if we are running on zsh, and set the options which allow our commands through
11740 # without removal of \ escapes.
11741 if test -n "${ZSH_VERSION+set}" ; then
11742 setopt NO_GLOB_SUBST
11744 # Now quote all the things that may contain metacharacters while being
11745 # careful not to overquote the AC_SUBSTed values. We take copies of the
11746 # variables and quote the copies for generation of the libtool script.
11747 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11749 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11750 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11751 deplibs_check_method reload_flag reload_cmds need_locks \
11752 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11753 lt_cv_sys_global_symbol_to_c_name_address \
11754 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11755 old_postinstall_cmds old_postuninstall_cmds \
11759 lt_prog_compiler_wl \
11760 lt_prog_compiler_pic \
11761 lt_prog_compiler_static \
11762 lt_prog_compiler_no_builtin_flag \
11763 export_dynamic_flag_spec \
11764 thread_safe_flag_spec \
11765 whole_archive_flag_spec \
11766 enable_shared_with_static_runtimes \
11768 old_archive_from_new_cmds \
11773 compiler_lib_search_path \
11775 archive_expsym_cmds \
11777 postuninstall_cmds \
11778 old_archive_from_expsyms_cmds \
11779 allow_undefined_flag \
11780 no_undefined_flag \
11781 export_symbols_cmds \
11782 hardcode_libdir_flag_spec \
11783 hardcode_libdir_flag_spec_ld \
11784 hardcode_libdir_separator \
11785 hardcode_automatic \
11787 module_expsym_cmds \
11788 lt_cv_prog_compiler_c_o \
11791 include_expsyms; do
11794 old_archive_cmds | \
11795 old_archive_from_new_cmds | \
11797 archive_expsym_cmds | \
11799 module_expsym_cmds | \
11800 old_archive_from_expsyms_cmds | \
11801 export_symbols_cmds | \
11802 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11803 postinstall_cmds | postuninstall_cmds | \
11804 old_postinstall_cmds | old_postuninstall_cmds | \
11805 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11806 # Double-quote double-evaled strings.
11807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11816 *'\$0 --fallback-echo"')
11817 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11821 cfgfile="${ofile}T"
11822 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11824 { echo "$as_me:$LINENO: creating $ofile" >&5
11825 echo "$as_me: creating $ofile" >&6;}
11827 cat <<__EOF__ >> "$cfgfile"
11830 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11831 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11834 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11835 # Free Software Foundation, Inc.
11837 # This file is part of GNU Libtool:
11838 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11840 # This program is free software; you can redistribute it and/or modify
11841 # it under the terms of the GNU General Public License as published by
11842 # the Free Software Foundation; either version 2 of the License, or
11843 # (at your option) any later version.
11845 # This program is distributed in the hope that it will be useful, but
11846 # WITHOUT ANY WARRANTY; without even the implied warranty of
11847 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11848 # General Public License for more details.
11850 # You should have received a copy of the GNU General Public License
11851 # along with this program; if not, write to the Free Software
11852 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11854 # As a special exception to the GNU General Public License, if you
11855 # distribute this file as part of a program that contains a
11856 # configuration script generated by Autoconf, you may include it under
11857 # the same distribution terms that you use for the rest of that program.
11859 # A sed program that does not truncate output.
11862 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11863 Xsed="$SED -e 1s/^X//"
11865 # The HP-UX ksh and POSIX shell print the target directory to stdout
11866 # if CDPATH is set.
11867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11869 # The names of the tagged configurations supported by this script.
11872 # ### BEGIN LIBTOOL CONFIG
11874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11876 # Shell to use when invoking shell scripts.
11879 # Whether or not to build shared libraries.
11880 build_libtool_libs=$enable_shared
11882 # Whether or not to build static libraries.
11883 build_old_libs=$enable_static
11885 # Whether or not to add -lc for building shared libraries.
11886 build_libtool_need_lc=$archive_cmds_need_lc
11888 # Whether or not to disallow shared libs when runtime libs are static
11889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11891 # Whether or not to optimize for fast installation.
11892 fast_install=$enable_fast_install
11895 host_alias=$host_alias
11899 # The build system.
11900 build_alias=$build_alias
11904 # An echo program that does not interpret backslashes.
11909 AR_FLAGS=$lt_AR_FLAGS
11914 # LTCC compiler flags.
11915 LTCFLAGS=$lt_LTCFLAGS
11917 # A language-specific compiler.
11920 # Is the compiler the GNU C compiler?
11926 # The linker used to build libraries.
11929 # Whether we need hard or soft links.
11932 # A BSD-compatible nm program.
11935 # A symbol stripping program
11938 # Used to examine libraries when file_magic_cmd begins "file"
11939 MAGIC_CMD=$MAGIC_CMD
11941 # Used on cygwin: DLL creation program.
11944 # Used on cygwin: object dumper.
11947 # Used on cygwin: assembler.
11950 # The name of the directory that contains temporary libtool files.
11953 # How to create reloadable object files.
11954 reload_flag=$lt_reload_flag
11955 reload_cmds=$lt_reload_cmds
11957 # How to pass a linker flag through the compiler.
11958 wl=$lt_lt_prog_compiler_wl
11960 # Object file suffix (normally "o").
11961 objext="$ac_objext"
11963 # Old archive suffix (normally "a").
11966 # Shared library suffix (normally ".so").
11967 shrext_cmds='$shrext_cmds'
11969 # Executable file suffix (normally "").
11972 # Additional compiler flags for building library objects.
11973 pic_flag=$lt_lt_prog_compiler_pic
11976 # What is the maximum length of a command?
11977 max_cmd_len=$lt_cv_sys_max_cmd_len
11979 # Does compiler simultaneously support -c and -o options?
11980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11982 # Must we lock files when doing compilation?
11983 need_locks=$lt_need_locks
11985 # Do we need the lib prefix for modules?
11986 need_lib_prefix=$need_lib_prefix
11988 # Do we need a version for libraries?
11989 need_version=$need_version
11991 # Whether dlopen is supported.
11992 dlopen_support=$enable_dlopen
11994 # Whether dlopen of programs is supported.
11995 dlopen_self=$enable_dlopen_self
11997 # Whether dlopen of statically linked programs is supported.
11998 dlopen_self_static=$enable_dlopen_self_static
12000 # Compiler flag to prevent dynamic linking.
12001 link_static_flag=$lt_lt_prog_compiler_static
12003 # Compiler flag to turn off builtin functions.
12004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12006 # Compiler flag to allow reflexive dlopens.
12007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12009 # Compiler flag to generate shared objects directly from archives.
12010 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12012 # Compiler flag to generate thread-safe objects.
12013 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12015 # Library versioning type.
12016 version_type=$version_type
12018 # Format of library name prefix.
12019 libname_spec=$lt_libname_spec
12021 # List of archive names. First name is the real one, the rest are links.
12022 # The last name is the one that the linker finds with -lNAME.
12023 library_names_spec=$lt_library_names_spec
12025 # The coded name of the library, if different from the real name.
12026 soname_spec=$lt_soname_spec
12028 # Commands used to build and install an old-style archive.
12030 old_archive_cmds=$lt_old_archive_cmds
12031 old_postinstall_cmds=$lt_old_postinstall_cmds
12032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12034 # Create an old-style archive from a shared archive.
12035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12037 # Create a temporary old-style archive to link instead of a shared archive.
12038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12040 # Commands used to build and install a shared archive.
12041 archive_cmds=$lt_archive_cmds
12042 archive_expsym_cmds=$lt_archive_expsym_cmds
12043 postinstall_cmds=$lt_postinstall_cmds
12044 postuninstall_cmds=$lt_postuninstall_cmds
12046 # Commands used to build a loadable module (assumed same as above if empty)
12047 module_cmds=$lt_module_cmds
12048 module_expsym_cmds=$lt_module_expsym_cmds
12050 # Commands to strip libraries.
12051 old_striplib=$lt_old_striplib
12052 striplib=$lt_striplib
12054 # Dependencies to place before the objects being linked to create a
12056 predep_objects=$lt_predep_objects
12058 # Dependencies to place after the objects being linked to create a
12060 postdep_objects=$lt_postdep_objects
12062 # Dependencies to place before the objects being linked to create a
12064 predeps=$lt_predeps
12066 # Dependencies to place after the objects being linked to create a
12068 postdeps=$lt_postdeps
12070 # The library search path used internally by the compiler when linking
12071 # a shared library.
12072 compiler_lib_search_path=$lt_compiler_lib_search_path
12074 # Method to check whether dependent libraries are shared objects.
12075 deplibs_check_method=$lt_deplibs_check_method
12077 # Command to use when deplibs_check_method == file_magic.
12078 file_magic_cmd=$lt_file_magic_cmd
12080 # Flag that allows shared libraries with undefined symbols to be built.
12081 allow_undefined_flag=$lt_allow_undefined_flag
12083 # Flag that forces no undefined symbols.
12084 no_undefined_flag=$lt_no_undefined_flag
12086 # Commands used to finish a libtool library installation in a directory.
12087 finish_cmds=$lt_finish_cmds
12089 # Same as above, but a single script fragment to be evaled but not shown.
12090 finish_eval=$lt_finish_eval
12092 # Take the output of nm and produce a listing of raw symbols and C names.
12093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12095 # Transform the output of nm in a proper C declaration
12096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12098 # Transform the output of nm in a C name address pair
12099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12101 # This is the shared library runtime path variable.
12102 runpath_var=$runpath_var
12104 # This is the shared library path variable.
12105 shlibpath_var=$shlibpath_var
12107 # Is shlibpath searched before the hard-coded library search path?
12108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12110 # How to hardcode a shared library path into an executable.
12111 hardcode_action=$hardcode_action
12113 # Whether we should hardcode library paths into libraries.
12114 hardcode_into_libs=$hardcode_into_libs
12116 # Flag to hardcode \$libdir into a binary during linking.
12117 # This must work even if \$libdir does not exist.
12118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12120 # If ld is used when linking, flag to hardcode \$libdir into
12121 # a binary during linking. This must work even if \$libdir does
12123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12125 # Whether we need a single -rpath flag with a separated argument.
12126 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12129 # resulting binary.
12130 hardcode_direct=$hardcode_direct
12132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12133 # resulting binary.
12134 hardcode_minus_L=$hardcode_minus_L
12136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12137 # the resulting binary.
12138 hardcode_shlibpath_var=$hardcode_shlibpath_var
12140 # Set to yes if building a shared library automatically hardcodes DIR into the library
12141 # and all subsequent libraries and executables linked against it.
12142 hardcode_automatic=$hardcode_automatic
12144 # Variables whose values should be saved in libtool wrapper scripts and
12145 # restored at relink time.
12146 variables_saved_for_relink="$variables_saved_for_relink"
12148 # Whether libtool must link a program against all its dependency libraries.
12149 link_all_deplibs=$link_all_deplibs
12151 # Compile-time system search path for libraries
12152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12154 # Run-time system search path for libraries
12155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12157 # Fix the shell variable \$srcfile for the compiler.
12158 fix_srcfile_path=$lt_fix_srcfile_path
12160 # Set to yes if exported symbols are required.
12161 always_export_symbols=$always_export_symbols
12163 # The commands to list exported symbols.
12164 export_symbols_cmds=$lt_export_symbols_cmds
12166 # The commands to extract the exported symbol list from a shared archive.
12167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12169 # Symbols that should not be listed in the preloaded symbols.
12170 exclude_expsyms=$lt_exclude_expsyms
12172 # Symbols that must always be exported.
12173 include_expsyms=$lt_include_expsyms
12175 # ### END LIBTOOL CONFIG
12182 cat <<\EOF >> "$cfgfile"
12184 # AIX sometimes has problems with the GCC collect2 program. For some
12185 # reason, if we set the COLLECT_NAMES environment variable, the problems
12186 # vanish in a puff of smoke.
12187 if test "X${COLLECT_NAMES+set}" != Xset; then
12189 export COLLECT_NAMES
12195 # We use sed instead of cat because bash on DJGPP gets confused if
12196 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12197 # text mode, it properly converts lines to CR/LF. This bash problem
12198 # is reportedly fixed, but why not run on old versions too?
12199 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12201 mv -f "$cfgfile" "$ofile" || \
12202 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12206 # If there is no Makefile yet, we rely on a make rule to execute
12207 # `config.status --recheck' to rerun these tests and create the
12208 # libtool script then.
12209 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12210 if test -f "$ltmain_in"; then
12211 test -f Makefile && make "$ltmain"
12217 ac_cpp='$CPP $CPPFLAGS'
12218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225 # Check whether --with-tags was given.
12226 if test "${with_tags+set}" = set; then
12227 withval=$with_tags; tagnames="$withval"
12231 if test -f "$ltmain" && test -n "$tagnames"; then
12232 if test ! -f "${ofile}"; then
12233 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12234 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12237 if test -z "$LTCC"; then
12238 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12239 if test -z "$LTCC"; then
12240 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12241 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12244 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12247 if test -z "$LTCFLAGS"; then
12248 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12251 # Extract list of available tagged configurations in $ofile.
12252 # Note that this assumes the entire list is on one line.
12253 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256 for tagname in $tagnames; do
12258 # Check whether tagname contains only valid characters
12259 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12261 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12262 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12263 { (exit 1); exit 1; }; }
12267 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12269 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12270 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12271 { (exit 1); exit 1; }; }
12274 # Update the list of available tags.
12275 if test -n "$tagname"; then
12276 echo appending configuration tag \"$tagname\" to $ofile
12280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12282 (test "X$CXX" != "Xg++"))) ; then
12284 ac_cpp='$CXXCPP $CPPFLAGS'
12285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12292 archive_cmds_need_lc_CXX=no
12293 allow_undefined_flag_CXX=
12294 always_export_symbols_CXX=no
12295 archive_expsym_cmds_CXX=
12296 export_dynamic_flag_spec_CXX=
12297 hardcode_direct_CXX=no
12298 hardcode_libdir_flag_spec_CXX=
12299 hardcode_libdir_flag_spec_ld_CXX=
12300 hardcode_libdir_separator_CXX=
12301 hardcode_minus_L_CXX=no
12302 hardcode_shlibpath_var_CXX=unsupported
12303 hardcode_automatic_CXX=no
12305 module_expsym_cmds_CXX=
12306 link_all_deplibs_CXX=unknown
12307 old_archive_cmds_CXX=$old_archive_cmds
12308 no_undefined_flag_CXX=
12309 whole_archive_flag_spec_CXX=
12310 enable_shared_with_static_runtimes_CXX=no
12312 # Dependencies to place before and after the object being linked:
12313 predep_objects_CXX=
12314 postdep_objects_CXX=
12317 compiler_lib_search_path_CXX=
12319 # Source file extension for C++ test sources.
12322 # Object file extension for compiled C++ test sources.
12326 # Code to be used in simple compile tests
12327 lt_simple_compile_test_code="int some_variable = 0;"
12329 # Code to be used in simple link tests
12330 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12334 # If no C compiler was specified, use CC.
12337 # If no C compiler flags were specified, use CFLAGS.
12338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12340 # Allow CC to be a program name with arguments.
12344 # save warnings/boilerplate of simple test code
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12348 _lt_compiler_boilerplate=`cat conftest.err`
12351 ac_outfile=conftest.$ac_objext
12352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12354 _lt_linker_boilerplate=`cat conftest.err`
12358 # Allow CC to be a program name with arguments.
12363 lt_save_with_gnu_ld=$with_gnu_ld
12364 lt_save_path_LD=$lt_cv_path_LD
12365 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12366 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12368 $as_unset lt_cv_prog_gnu_ld
12370 if test -n "${lt_cv_path_LDCXX+set}"; then
12371 lt_cv_path_LD=$lt_cv_path_LDCXX
12373 $as_unset lt_cv_path_LD
12375 test -z "${LDCXX+set}" || LD=$LDCXX
12379 for cc_temp in $compiler""; do
12381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12390 # We don't want -fno-exception wen compiling C++ code, so set the
12391 # no_builtin_flag separately
12392 if test "$GXX" = yes; then
12393 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12395 lt_prog_compiler_no_builtin_flag_CXX=
12398 if test "$GXX" = yes; then
12399 # Set up default GNU C++ configuration
12402 # Check whether --with-gnu-ld was given.
12403 if test "${with_gnu_ld+set}" = set; then
12404 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12410 if test "$GCC" = yes; then
12411 # Check if gcc -print-prog-name=ld gives a path.
12412 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12413 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12416 # gcc leaves a trailing carriage return which upsets mingw
12417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12422 # Accept absolute paths.
12424 re_direlt='/[^/][^/]*/\.\./'
12425 # Canonicalize the pathname of ld
12426 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12427 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12428 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12430 test -z "$LD" && LD="$ac_prog"
12433 # If it fails, then pretend we aren't using GCC.
12437 # If it is relative, then search for the first ld in PATH.
12438 with_gnu_ld=unknown
12441 elif test "$with_gnu_ld" = yes; then
12442 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12445 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12448 if test "${lt_cv_path_LD+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 if test -z "$LD"; then
12452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12453 for ac_dir in $PATH; do
12455 test -z "$ac_dir" && ac_dir=.
12456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12457 lt_cv_path_LD="$ac_dir/$ac_prog"
12458 # Check to see if the program is GNU ld. I'd rather use --version,
12459 # but apparently some variants of GNU ld only accept -v.
12460 # Break only if it was the GNU/non-GNU ld that we prefer.
12461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12462 *GNU* | *'with BFD'*)
12463 test "$with_gnu_ld" != no && break
12466 test "$with_gnu_ld" != yes && break
12473 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12477 LD="$lt_cv_path_LD"
12478 if test -n "$LD"; then
12479 { echo "$as_me:$LINENO: result: $LD" >&5
12480 echo "${ECHO_T}$LD" >&6; }
12482 { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12485 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12486 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12487 { (exit 1); exit 1; }; }
12488 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12489 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12490 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12494 case `$LD -v 2>&1 </dev/null` in
12495 *GNU* | *'with BFD'*)
12496 lt_cv_prog_gnu_ld=yes
12499 lt_cv_prog_gnu_ld=no
12503 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12504 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12505 with_gnu_ld=$lt_cv_prog_gnu_ld
12509 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12510 # archiving commands below assume that GNU ld is being used.
12511 if test "$with_gnu_ld" = yes; then
12512 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513 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'
12515 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12518 # If archive_cmds runs LD, not CC, wlarc should be empty
12519 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12520 # investigate it a little bit more. (MM)
12523 # ancient GNU ld didn't support --whole-archive et. al.
12524 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12525 grep 'no-whole-archive' > /dev/null; then
12526 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12528 whole_archive_flag_spec_CXX=
12534 # A generic and very simple default shared library creation
12535 # command for GNU C++ for the case where it uses the native
12536 # linker, instead of GNU ld. If possible, this setting should
12537 # overridden to take advantage of the native linker features on
12538 # the platform it is being used on.
12539 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12542 # Commands to make compiler produce verbose output that lists
12543 # what "hidden" libraries, object files and flags are used when
12544 # linking a shared library.
12545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12553 # PORTME: fill in a description of your system's C++ link characteristics
12554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12559 # FIXME: insert proper C++ library support
12563 if test "$host_cpu" = ia64; then
12564 # On IA64, the linker does run time linking by default, so we don't
12565 # have to do anything special.
12566 aix_use_runtimelinking=no
12567 exp_sym_flag='-Bexport'
12570 aix_use_runtimelinking=no
12572 # Test if we are trying to use run time linking or normal
12573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12574 # need to do runtime linking.
12575 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12576 for ld_flag in $LDFLAGS; do
12579 aix_use_runtimelinking=yes
12587 exp_sym_flag='-bexport'
12588 no_entry_flag='-bnoentry'
12591 # When large executables or shared objects are built, AIX ld can
12592 # have problems creating the table of contents. If linking a library
12593 # or program results in "error TOC overflow" add -mminimal-toc to
12594 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12595 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12597 archive_cmds_CXX=''
12598 hardcode_direct_CXX=yes
12599 hardcode_libdir_separator_CXX=':'
12600 link_all_deplibs_CXX=yes
12602 if test "$GXX" = yes; then
12603 case $host_os in aix4.[012]|aix4.[012].*)
12604 # We only want to do this on AIX 4.2 and lower, the check
12605 # below for broken collect2 doesn't work under 4.3+
12606 collect2name=`${CC} -print-prog-name=collect2`
12607 if test -f "$collect2name" && \
12608 strings "$collect2name" | grep resolve_lib_name >/dev/null
12610 # We have reworked collect2
12613 # We have old collect2
12614 hardcode_direct_CXX=unsupported
12615 # It fails to find uninstalled libraries when the uninstalled
12616 # path is not listed in the libpath. Setting hardcode_minus_L
12617 # to unsupported forces relinking
12618 hardcode_minus_L_CXX=yes
12619 hardcode_libdir_flag_spec_CXX='-L$libdir'
12620 hardcode_libdir_separator_CXX=
12624 shared_flag='-shared'
12625 if test "$aix_use_runtimelinking" = yes; then
12626 shared_flag="$shared_flag "'${wl}-G'
12630 if test "$host_cpu" = ia64; then
12631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12632 # chokes on -Wl,-G. The following line is correct:
12635 if test "$aix_use_runtimelinking" = yes; then
12636 shared_flag='${wl}-G'
12638 shared_flag='${wl}-bM:SRE'
12643 # It seems that -bexpall does not export symbols beginning with
12644 # underscore (_), so it is better to generate a list of symbols to export.
12645 always_export_symbols_CXX=yes
12646 if test "$aix_use_runtimelinking" = yes; then
12647 # Warning - without using the other runtime loading flags (-brtl),
12648 # -berok will link without error, but may produce a broken library.
12649 allow_undefined_flag_CXX='-berok'
12650 # Determine the default libpath from the value encoded in an empty executable.
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (ac_try="$ac_link"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_link") 2>conftest.er1
12675 grep -v '^ *+' conftest.er1 >conftest.err
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } && {
12680 test -z "$ac_cxx_werror_flag" ||
12681 test ! -s conftest.err
12682 } && test -s conftest$ac_exeext &&
12683 $as_test_x conftest$ac_exeext; then
12685 lt_aix_libpath_sed='
12686 /Import File Strings/,/^$/ {
12692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12693 # Check for a 64-bit object if we didn't find anything.
12694 if test -z "$aix_libpath"; then
12695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12708 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12710 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"
12712 if test "$host_cpu" = ia64; then
12713 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12714 allow_undefined_flag_CXX="-z nodefs"
12715 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"
12717 # Determine the default libpath from the value encoded in an empty executable.
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1 >conftest.err
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_cxx_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest$ac_exeext &&
12750 $as_test_x conftest$ac_exeext; then
12752 lt_aix_libpath_sed='
12753 /Import File Strings/,/^$/ {
12759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12760 # Check for a 64-bit object if we didn't find anything.
12761 if test -z "$aix_libpath"; then
12762 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772 conftest$ac_exeext conftest.$ac_ext
12773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12775 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12776 # Warning - without using the other run time loading flags,
12777 # -berok will link without error, but may produce a broken library.
12778 no_undefined_flag_CXX=' ${wl}-bernotok'
12779 allow_undefined_flag_CXX=' ${wl}-berok'
12780 # Exported symbols can be pulled into shared objects from archives
12781 whole_archive_flag_spec_CXX='$convenience'
12782 archive_cmds_need_lc_CXX=yes
12783 # This is similar to how AIX traditionally builds its shared libraries.
12784 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'
12790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12791 allow_undefined_flag_CXX=unsupported
12792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12793 # support --undefined. This deserves some investigation. FIXME
12794 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 case $cc_basename in
12803 # FIXME: insert proper C++ library support
12809 cygwin* | mingw* | pw32*)
12810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12811 # as there is no search path for DLLs.
12812 hardcode_libdir_flag_spec_CXX='-L$libdir'
12813 allow_undefined_flag_CXX=unsupported
12814 always_export_symbols_CXX=no
12815 enable_shared_with_static_runtimes_CXX=yes
12817 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12818 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'
12819 # If the export-symbols file already is a .def file (1st line
12820 # is EXPORTS), use it as is; otherwise, prepend...
12821 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12822 cp $export_symbols $output_objdir/$soname.def;
12824 echo EXPORTS > $output_objdir/$soname.def;
12825 cat $export_symbols >> $output_objdir/$soname.def;
12827 $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'
12832 darwin* | rhapsody*)
12834 rhapsody* | darwin1.[012])
12835 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12838 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12839 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12841 case ${MACOSX_DEPLOYMENT_TARGET} in
12843 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12846 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12852 archive_cmds_need_lc_CXX=no
12853 hardcode_direct_CXX=no
12854 hardcode_automatic_CXX=yes
12855 hardcode_shlibpath_var_CXX=unsupported
12856 whole_archive_flag_spec_CXX=''
12857 link_all_deplibs_CXX=yes
12859 if test "$GXX" = yes ; then
12860 lt_int_apple_cc_single_mod=no
12861 output_verbose_link_cmd='echo'
12862 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12863 lt_int_apple_cc_single_mod=yes
12865 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12866 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12868 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'
12870 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12871 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12872 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12873 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}'
12875 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}'
12877 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}'
12879 case $cc_basename in
12881 output_verbose_link_cmd='echo'
12882 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12883 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12885 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12886 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}'
12896 case $cc_basename in
12898 # FIXME: insert proper C++ library support
12902 # Green Hills C++ Compiler
12903 # FIXME: insert proper C++ library support
12907 # FIXME: insert proper C++ library support
12913 # C++ shared libraries reported to be fairly broken before switch to ELF
12917 archive_cmds_need_lc_CXX=no
12919 freebsd* | dragonfly*)
12920 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12927 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12928 hardcode_libdir_separator_CXX=:
12929 export_dynamic_flag_spec_CXX='${wl}-E'
12930 hardcode_direct_CXX=yes
12931 hardcode_minus_L_CXX=yes # Not in the search PATH,
12932 # but as the default
12933 # location of the library.
12935 case $cc_basename in
12937 # FIXME: insert proper C++ library support
12941 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'
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12950 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'
12953 if test "$GXX" = yes; then
12954 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'
12956 # FIXME: insert proper C++ library support
12963 if test $with_gnu_ld = no; then
12964 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12965 hardcode_libdir_separator_CXX=:
12970 export_dynamic_flag_spec_CXX='${wl}-E'
12976 hardcode_direct_CXX=no
12977 hardcode_shlibpath_var_CXX=no
12980 hardcode_direct_CXX=yes
12981 hardcode_minus_L_CXX=yes # Not in the search PATH,
12982 # but as the default
12983 # location of the library.
12987 case $cc_basename in
12989 # FIXME: insert proper C++ library support
12995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13008 # There doesn't appear to be a way to prevent this compiler from
13009 # explicitly linking system object files so we need to strip them
13010 # from the output so that they don't get included in the library
13012 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'
13015 if test "$GXX" = yes; then
13016 if test $with_gnu_ld = no; then
13019 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025 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'
13030 # FIXME: insert proper C++ library support
13037 hardcode_direct_CXX=no
13038 hardcode_shlibpath_var_CXX=no
13039 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13040 export_dynamic_flag_spec_CXX='${wl}-E'
13041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13042 # Instead, shared libraries are loaded at an image base (0x10000000 by
13043 # default) and relocated if they conflict, which is a slow very memory
13044 # consuming and fragmenting process. To avoid this, we pick a random,
13045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13047 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'
13048 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'
13051 case $cc_basename in
13054 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'
13056 # Archives containing C++ object files must be created using
13057 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13058 # necessary to make sure instantiated templates are included
13060 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13063 if test "$GXX" = yes; then
13064 if test "$with_gnu_ld" = no; then
13065 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'
13067 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'
13070 link_all_deplibs_CXX=yes
13073 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13074 hardcode_libdir_separator_CXX=:
13076 linux* | k*bsd*-gnu)
13077 case $cc_basename in
13079 # Kuck and Associates, Inc. (KAI) C++ Compiler
13081 # KCC will only create a shared library if the output file
13082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13083 # to its proper name (with version) after linking.
13084 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'
13085 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'
13086 # Commands to make compiler produce verbose output that lists
13087 # what "hidden" libraries, object files and flags are used when
13088 # linking a shared library.
13090 # There doesn't appear to be a way to prevent this compiler from
13091 # explicitly linking system object files so we need to strip them
13092 # from the output so that they don't get included in the library
13094 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'
13096 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13099 # Archives containing C++ object files must be created using
13100 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13101 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13106 # version 8.0 and above of icpc choke on multiply defined symbols
13107 # if we add $predep_objects and $postdep_objects, however 7.1 and
13108 # earlier do not add the objects themselves.
13109 case `$CC -V 2>&1` in
13111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13112 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'
13114 *) # Version 8.0 or newer
13117 ia64*) tmp_idyn=' -i_dynamic';;
13119 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 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'
13123 archive_cmds_need_lc_CXX=no
13124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13126 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13129 # Portland Group C++ compiler
13130 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13131 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'
13133 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13135 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'
13139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13142 runpath_var=LD_RUN_PATH
13143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13144 hardcode_libdir_separator_CXX=:
13146 # Commands to make compiler produce verbose output that lists
13147 # what "hidden" libraries, object files and flags are used when
13148 # linking a shared library.
13150 # There doesn't appear to be a way to prevent this compiler from
13151 # explicitly linking system object files so we need to strip them
13152 # from the output so that they don't get included in the library
13154 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'
13157 case `$CC -V 2>&1 | sed 5q` in
13160 no_undefined_flag_CXX=' -zdefs'
13161 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13163 hardcode_libdir_flag_spec_CXX='-R$libdir'
13164 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13166 # Not sure whether something based on
13167 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13169 output_verbose_link_cmd='echo'
13171 # Archives containing C++ object files must be created using
13172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13173 # necessary to make sure instantiated templates are included
13175 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13182 # FIXME: insert proper C++ library support
13186 # FIXME: insert proper C++ library support
13190 case $cc_basename in
13192 # FIXME: insert proper C++ library support
13196 # FIXME: insert proper C++ library support
13201 netbsd* | netbsdelf*-gnu)
13202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13203 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13205 hardcode_libdir_flag_spec_CXX='-R$libdir'
13206 hardcode_direct_CXX=yes
13207 hardcode_shlibpath_var_CXX=no
13209 # Workaround some broken pre-1.5 toolchains
13210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13213 # C++ shared libraries are fairly broken
13217 if test -f /usr/libexec/ld.so; then
13218 hardcode_direct_CXX=yes
13219 hardcode_shlibpath_var_CXX=no
13220 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13223 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13224 export_dynamic_flag_spec_CXX='${wl}-E'
13225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13227 output_verbose_link_cmd='echo'
13233 case $cc_basename in
13235 # Kuck and Associates, Inc. (KAI) C++ Compiler
13237 # KCC will only create a shared library if the output file
13238 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239 # to its proper name (with version) after linking.
13240 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243 hardcode_libdir_separator_CXX=:
13245 # Archives containing C++ object files must be created using
13246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13247 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13251 # Rational C++ 2.4.1
13252 # FIXME: insert proper C++ library support
13256 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13257 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260 hardcode_libdir_separator_CXX=:
13262 # Commands to make compiler produce verbose output that lists
13263 # what "hidden" libraries, object files and flags are used when
13264 # linking a shared library.
13266 # There doesn't appear to be a way to prevent this compiler from
13267 # explicitly linking system object files so we need to strip them
13268 # from the output so that they don't get included in the library
13270 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13275 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278 hardcode_libdir_separator_CXX=:
13280 # Commands to make compiler produce verbose output that lists
13281 # what "hidden" libraries, object files and flags are used when
13282 # linking a shared library.
13283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13286 # FIXME: insert proper C++ library support
13293 case $cc_basename in
13295 # Kuck and Associates, Inc. (KAI) C++ Compiler
13297 # KCC will only create a shared library if the output file
13298 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13299 # to its proper name (with version) after linking.
13300 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303 hardcode_libdir_separator_CXX=:
13305 # Archives containing C++ object files must be created using
13306 # the KAI C++ compiler.
13307 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13310 # Rational C++ 2.4.1
13311 # FIXME: insert proper C++ library support
13315 allow_undefined_flag_CXX=' -expect_unresolved \*'
13316 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13317 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13318 echo "-hidden">> $lib.exp~
13319 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323 hardcode_libdir_separator_CXX=:
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13333 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13338 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator_CXX=:
13343 # Commands to make compiler produce verbose output that lists
13344 # what "hidden" libraries, object files and flags are used when
13345 # linking a shared library.
13346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13349 # FIXME: insert proper C++ library support
13356 # FIXME: insert proper C++ library support
13360 case $cc_basename in
13363 # FIXME: insert proper C++ library support
13368 # FIXME: insert proper C++ library support
13372 # FIXME: insert proper C++ library support
13378 case $cc_basename in
13380 # Sun C++ 4.2, 5.x and Centerline C++
13381 archive_cmds_need_lc_CXX=yes
13382 no_undefined_flag_CXX=' -zdefs'
13383 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13384 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13385 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13387 hardcode_libdir_flag_spec_CXX='-R$libdir'
13388 hardcode_shlibpath_var_CXX=no
13390 solaris2.[0-5] | solaris2.[0-5].*) ;;
13392 # The compiler driver will combine and reorder linker options,
13393 # but understands `-z linker_flag'.
13394 # Supported since Solaris 2.6 (maybe 2.5.1?)
13395 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13398 link_all_deplibs_CXX=yes
13400 output_verbose_link_cmd='echo'
13402 # Archives containing C++ object files must be created using
13403 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13404 # necessary to make sure instantiated templates are included
13406 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13409 # Green Hills C++ Compiler
13410 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13412 # The C++ compiler must be used to create the archive.
13413 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13416 # GNU C++ compiler with Solaris linker
13417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13418 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13419 if $CC --version | grep -v '^2\.7' > /dev/null; then
13420 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13421 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13422 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13424 # Commands to make compiler produce verbose output that lists
13425 # what "hidden" libraries, object files and flags are used when
13426 # linking a shared library.
13427 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13429 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13431 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13432 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13435 # Commands to make compiler produce verbose output that lists
13436 # what "hidden" libraries, object files and flags are used when
13437 # linking a shared library.
13438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13441 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13443 solaris2.[0-5] | solaris2.[0-5].*) ;;
13445 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13453 no_undefined_flag_CXX='${wl}-z,text'
13454 archive_cmds_need_lc_CXX=no
13455 hardcode_shlibpath_var_CXX=no
13456 runpath_var='LD_RUN_PATH'
13458 case $cc_basename in
13460 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 sysv5* | sco3.2v5* | sco5v6*)
13470 # Note: We can NOT use -z defs as we might desire, because we do not
13471 # link with -lc, and that would cause any symbols used from libc to
13472 # always be unresolved, which means just about no library would
13473 # ever link correctly. If we're not using GNU ld we use -z text
13474 # though, which does catch some bad symbols but isn't as heavy-handed
13476 # For security reasons, it is highly recommended that you always
13477 # use absolute paths for naming shared libraries, and exclude the
13478 # DT_RUNPATH tag from executables and libraries. But doing so
13479 # requires that you compile everything twice, which is a pain.
13480 # So that behaviour is only enabled if SCOABSPATH is set to a
13481 # non-empty value in the environment. Most likely only useful for
13482 # creating official distributions of packages.
13483 # This is a hack until libtool officially supports absolute path
13484 # names for shared libraries.
13485 no_undefined_flag_CXX='${wl}-z,text'
13486 allow_undefined_flag_CXX='${wl}-z,nodefs'
13487 archive_cmds_need_lc_CXX=no
13488 hardcode_shlibpath_var_CXX=no
13489 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13490 hardcode_libdir_separator_CXX=':'
13491 link_all_deplibs_CXX=yes
13492 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13493 runpath_var='LD_RUN_PATH'
13495 case $cc_basename in
13497 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 case $cc_basename in
13509 # NonStop-UX NCC 3.20
13510 # FIXME: insert proper C++ library support
13514 # FIXME: insert proper C++ library support
13520 # FIXME: insert proper C++ library support
13524 # FIXME: insert proper C++ library support
13528 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13529 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13530 test "$ld_shlibs_CXX" = no && can_build_shared=no
13536 cat > conftest.$ac_ext <<EOF
13540 Foo (void) { a = 0; }
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; then
13551 # Parse the compiler output and extract the necessary
13552 # objects, libraries and library flags.
13554 # Sentinel used to keep track of whether or not we are before
13555 # the conftest object file.
13556 pre_test_object_deps_done=no
13558 # The `*' in the case matches for architectures that use `case' in
13559 # $output_verbose_cmd can trigger glob expansion during the loop
13560 # eval without this substitution.
13561 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13563 for p in `eval $output_verbose_link_cmd`; do
13567 # Some compilers place space between "-{L,R}" and the path.
13568 # Remove the space.
13569 if test $p = "-L" \
13570 || test $p = "-R"; then
13577 if test "$pre_test_object_deps_done" = no; then
13580 # Internal compiler library paths should come after those
13581 # provided the user. The postdeps already come after the
13582 # user supplied libs so there is no need to process them.
13583 if test -z "$compiler_lib_search_path_CXX"; then
13584 compiler_lib_search_path_CXX="${prev}${p}"
13586 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13589 # The "-l" case would never come before the object being
13590 # linked, so don't bother handling this case.
13593 if test -z "$postdeps_CXX"; then
13594 postdeps_CXX="${prev}${p}"
13596 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13602 # This assumes that the test object file only shows up
13603 # once in the compiler output.
13604 if test "$p" = "conftest.$objext"; then
13605 pre_test_object_deps_done=yes
13609 if test "$pre_test_object_deps_done" = no; then
13610 if test -z "$predep_objects_CXX"; then
13611 predep_objects_CXX="$p"
13613 predep_objects_CXX="$predep_objects_CXX $p"
13616 if test -z "$postdep_objects_CXX"; then
13617 postdep_objects_CXX="$p"
13619 postdep_objects_CXX="$postdep_objects_CXX $p"
13624 *) ;; # Ignore the rest.
13632 echo "libtool.m4: error: problem compiling CXX test program"
13635 $rm -f confest.$objext
13637 # PORTME: override above test on systems where it is broken
13640 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13641 # hack all around it, let's just trust "g++" to DTRT.
13642 predep_objects_CXX=
13643 postdep_objects_CXX=
13648 case `$CC -V 2>&1 | sed 5q` in
13652 # The more standards-conforming stlport4 library is
13653 # incompatible with the Cstd library. Avoid specifying
13654 # it if it's in CXXFLAGS. Ignore libCrun as
13655 # -library=stlport4 depends on it.
13656 case " $CXX $CXXFLAGS " in
13657 *" -library=stlport4 "*)
13658 solaris_use_stlport4=yes
13661 if test "$solaris_use_stlport4" != yes; then
13662 postdeps_CXX='-library=Cstd -library=Crun'
13669 case $cc_basename in
13671 # The more standards-conforming stlport4 library is
13672 # incompatible with the Cstd library. Avoid specifying
13673 # it if it's in CXXFLAGS. Ignore libCrun as
13674 # -library=stlport4 depends on it.
13675 case " $CXX $CXXFLAGS " in
13676 *" -library=stlport4 "*)
13677 solaris_use_stlport4=yes
13681 # Adding this requires a known-good setup of shared libraries for
13682 # Sun compiler versions before 5.6, else PIC objects from an old
13683 # archive will be linked into the output, leading to subtle bugs.
13684 if test "$solaris_use_stlport4" != yes; then
13685 postdeps_CXX='-library=Cstd -library=Crun'
13693 case " $postdeps_CXX " in
13694 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13697 lt_prog_compiler_wl_CXX=
13698 lt_prog_compiler_pic_CXX=
13699 lt_prog_compiler_static_CXX=
13701 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13704 # C++ specific cases for pic, static, wl, etc.
13705 if test "$GXX" = yes; then
13706 lt_prog_compiler_wl_CXX='-Wl,'
13707 lt_prog_compiler_static_CXX='-static'
13711 # All AIX code is PIC.
13712 if test "$host_cpu" = ia64; then
13713 # AIX 5 now supports IA64 processor
13714 lt_prog_compiler_static_CXX='-Bstatic'
13718 # FIXME: we need at least 68020 code to build shared libraries, but
13719 # adding the `-m68020' flag to GCC prevents building anything better,
13721 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13723 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13724 # PIC is the default for these OSes.
13726 mingw* | cygwin* | os2* | pw32*)
13727 # This hack is so that the source file can tell whether it is being
13728 # built for inclusion in a dll (and should export symbols for example).
13729 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13730 # (--disable-auto-import) libraries
13731 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13733 darwin* | rhapsody*)
13734 # PIC is the default on this platform
13735 # Common symbols not allowed in MH_DYLIB files
13736 lt_prog_compiler_pic_CXX='-fno-common'
13739 # DJGPP does not support shared libraries at all
13740 lt_prog_compiler_pic_CXX=
13743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13744 # Instead, we relocate shared libraries at runtime.
13747 if test -d /usr/nec; then
13748 lt_prog_compiler_pic_CXX=-Kconform_pic
13752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13753 # not for PA HP-UX.
13758 lt_prog_compiler_pic_CXX='-fPIC'
13763 lt_prog_compiler_pic_CXX='-fPIC'
13769 # All AIX code is PIC.
13770 if test "$host_cpu" = ia64; then
13771 # AIX 5 now supports IA64 processor
13772 lt_prog_compiler_static_CXX='-Bstatic'
13774 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13778 case $cc_basename in
13780 # Green Hills C++ Compiler
13781 # _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"
13786 # PIC is the default on this platform
13787 # Common symbols not allowed in MH_DYLIB files
13788 case $cc_basename in
13790 lt_prog_compiler_pic_CXX='-qnocommon'
13791 lt_prog_compiler_wl_CXX='-Wl,'
13796 case $cc_basename in
13798 lt_prog_compiler_pic_CXX='-KPIC'
13801 # Green Hills C++ Compiler
13802 lt_prog_compiler_pic_CXX='-pic'
13808 freebsd* | dragonfly*)
13809 # FreeBSD uses GNU C++
13811 hpux9* | hpux10* | hpux11*)
13812 case $cc_basename in
13814 lt_prog_compiler_wl_CXX='-Wl,'
13815 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13816 if test "$host_cpu" != ia64; then
13817 lt_prog_compiler_pic_CXX='+Z'
13821 lt_prog_compiler_wl_CXX='-Wl,'
13822 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13828 lt_prog_compiler_pic_CXX='+Z'
13837 # This is c89, which is MS Visual C++ (no shared libs)
13838 # Anyone wants to do a port?
13840 irix5* | irix6* | nonstopux*)
13841 case $cc_basename in
13843 lt_prog_compiler_wl_CXX='-Wl,'
13844 lt_prog_compiler_static_CXX='-non_shared'
13845 # CC pic flag -KPIC is the default.
13851 linux* | k*bsd*-gnu)
13852 case $cc_basename in
13855 lt_prog_compiler_wl_CXX='--backend -Wl,'
13856 lt_prog_compiler_pic_CXX='-fPIC'
13860 lt_prog_compiler_wl_CXX='-Wl,'
13861 lt_prog_compiler_pic_CXX='-KPIC'
13862 lt_prog_compiler_static_CXX='-static'
13865 # Portland Group C++ compiler.
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fpic'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13872 # Make sure the PIC flag is empty. It appears that all Alpha
13873 # Linux and Compaq Tru64 Unix objects are PIC.
13874 lt_prog_compiler_pic_CXX=
13875 lt_prog_compiler_static_CXX='-non_shared'
13878 case `$CC -V 2>&1 | sed 5q` in
13881 lt_prog_compiler_pic_CXX='-KPIC'
13882 lt_prog_compiler_static_CXX='-Bstatic'
13883 lt_prog_compiler_wl_CXX='-Qoption ld '
13894 case $cc_basename in
13896 lt_prog_compiler_pic_CXX='-W c,exportall'
13902 netbsd* | netbsdelf*-gnu)
13904 osf3* | osf4* | osf5*)
13905 case $cc_basename in
13907 lt_prog_compiler_wl_CXX='--backend -Wl,'
13910 # Rational C++ 2.4.1
13911 lt_prog_compiler_pic_CXX='-pic'
13914 # Digital/Compaq C++
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 # Make sure the PIC flag is empty. It appears that all Alpha
13917 # Linux and Compaq Tru64 Unix objects are PIC.
13918 lt_prog_compiler_pic_CXX=
13919 lt_prog_compiler_static_CXX='-non_shared'
13928 case $cc_basename in
13930 # Sun C++ 4.2, 5.x and Centerline C++
13931 lt_prog_compiler_pic_CXX='-KPIC'
13932 lt_prog_compiler_static_CXX='-Bstatic'
13933 lt_prog_compiler_wl_CXX='-Qoption ld '
13936 # Green Hills C++ Compiler
13937 lt_prog_compiler_pic_CXX='-PIC'
13944 case $cc_basename in
13947 lt_prog_compiler_pic_CXX='-pic'
13948 lt_prog_compiler_static_CXX='-Bstatic'
13952 lt_prog_compiler_pic_CXX='-pic'
13959 case $cc_basename in
13961 # NonStop-UX NCC 3.20
13962 lt_prog_compiler_pic_CXX='-KPIC'
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 case $cc_basename in
13971 lt_prog_compiler_wl_CXX='-Wl,'
13972 lt_prog_compiler_pic_CXX='-KPIC'
13973 lt_prog_compiler_static_CXX='-Bstatic'
13980 lt_prog_compiler_can_build_shared_CXX=no
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13989 # Check to make sure the PIC flag actually works.
13991 if test -n "$lt_prog_compiler_pic_CXX"; then
13993 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13995 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 lt_prog_compiler_pic_works_CXX=no
13999 ac_outfile=conftest.$ac_objext
14000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14001 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14002 # Insert the option either (1) after the last *FLAGS variable, or
14003 # (2) before a word containing "conftest.", or (3) at the end.
14004 # Note that $ac_compile itself does not contain backslashes and begins
14005 # with a dollar sign (not a hyphen), so the echo should work correctly.
14006 # The option is referenced via a variable to avoid confusing sed.
14007 lt_compile=`echo "$ac_compile" | $SED \
14008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14010 -e 's:$: $lt_compiler_flag:'`
14011 (eval echo "\"\$as_me:14011: $lt_compile\"" >&5)
14012 (eval "$lt_compile" 2>conftest.err)
14014 cat conftest.err >&5
14015 echo "$as_me:14015: \$? = $ac_status" >&5
14016 if (exit $ac_status) && test -s "$ac_outfile"; then
14017 # The compiler can only warn and ignore the option if not recognized
14018 # So say no if there are warnings other than the usual output.
14019 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14022 lt_prog_compiler_pic_works_CXX=yes
14028 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14029 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14031 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14032 case $lt_prog_compiler_pic_CXX in
14034 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14037 lt_prog_compiler_pic_CXX=
14038 lt_prog_compiler_can_build_shared_CXX=no
14043 # For platforms which do not support PIC, -DPIC is meaningless:
14045 lt_prog_compiler_pic_CXX=
14048 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14053 # Check to make sure the static flag actually works.
14055 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14056 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14057 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14058 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 lt_prog_compiler_static_works_CXX=no
14062 save_LDFLAGS="$LDFLAGS"
14063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14066 # The linker can only warn and ignore the option if not recognized
14067 # So say no if there are warnings
14068 if test -s conftest.err; then
14069 # Append any errors to the config.log.
14070 cat conftest.err 1>&5
14071 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14073 if diff conftest.exp conftest.er2 >/dev/null; then
14074 lt_prog_compiler_static_works_CXX=yes
14077 lt_prog_compiler_static_works_CXX=yes
14081 LDFLAGS="$save_LDFLAGS"
14084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14085 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14087 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14090 lt_prog_compiler_static_CXX=
14094 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 lt_cv_prog_compiler_c_o_CXX=no
14100 $rm -r conftest 2>/dev/null
14104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14106 lt_compiler_flag="-o out/conftest2.$ac_objext"
14107 # Insert the option either (1) after the last *FLAGS variable, or
14108 # (2) before a word containing "conftest.", or (3) at the end.
14109 # Note that $ac_compile itself does not contain backslashes and begins
14110 # with a dollar sign (not a hyphen), so the echo should work correctly.
14111 lt_compile=`echo "$ac_compile" | $SED \
14112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114 -e 's:$: $lt_compiler_flag:'`
14115 (eval echo "\"\$as_me:14115: $lt_compile\"" >&5)
14116 (eval "$lt_compile" 2>out/conftest.err)
14118 cat out/conftest.err >&5
14119 echo "$as_me:14119: \$? = $ac_status" >&5
14120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14122 # The compiler can only warn and ignore the option if not recognized
14123 # So say no if there are warnings
14124 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127 lt_cv_prog_compiler_c_o_CXX=yes
14132 # SGI C++ compiler will create directory out/ii_files/ for
14133 # template instantiation
14134 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14135 $rm out/* && rmdir out
14141 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14145 hard_links="nottested"
14146 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14147 # do not overwrite the value of need_locks provided by the user
14148 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14149 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154 ln conftest.a conftest.b 2>&5 || hard_links=no
14155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156 { echo "$as_me:$LINENO: result: $hard_links" >&5
14157 echo "${ECHO_T}$hard_links" >&6; }
14158 if test "$hard_links" = no; then
14159 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14160 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14167 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14168 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14170 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14173 # If we're using GNU nm, then we don't want the "-C" option.
14174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14175 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14176 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'
14178 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'
14182 export_symbols_cmds_CXX="$ltdll_cmds"
14185 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'
14187 linux* | k*bsd*-gnu)
14188 link_all_deplibs_CXX=no
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14196 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14197 test "$ld_shlibs_CXX" = no && can_build_shared=no
14200 # Do we need to explicitly link libc?
14202 case "x$archive_cmds_need_lc_CXX" in
14204 # Assume -lc should be added
14205 archive_cmds_need_lc_CXX=yes
14207 if test "$enable_shared" = yes && test "$GCC" = yes; then
14208 case $archive_cmds_CXX in
14210 # FIXME: we may have to deal with multi-command sequences.
14213 # Test whether the compiler implicitly links with -lc since on some
14214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14215 # to ld, don't add -lc before -lgcc.
14216 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } 2>conftest.err; then
14228 libobjs=conftest.$ac_objext
14230 wl=$lt_prog_compiler_wl_CXX
14231 pic_flag=$lt_prog_compiler_pic_CXX
14237 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14238 allow_undefined_flag_CXX=
14239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }
14245 archive_cmds_need_lc_CXX=no
14247 archive_cmds_need_lc_CXX=yes
14249 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14251 cat conftest.err 1>&5
14254 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14255 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14262 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14264 library_names_spec=
14265 libname_spec='lib$name'
14269 postuninstall_cmds=
14273 shlibpath_overrides_runpath=unknown
14275 dynamic_linker="$host_os ld.so"
14276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14278 need_lib_prefix=unknown
14279 hardcode_into_libs=no
14281 # when you set need_version to no, make sure it does not cause -set_version
14282 # flags to be left without arguments
14283 need_version=unknown
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14289 shlibpath_var=LIBPATH
14291 # AIX 3 has no versioning support, so we append a major version to the name.
14292 soname_spec='${libname}${release}${shared_ext}$major'
14299 hardcode_into_libs=yes
14300 if test "$host_cpu" = ia64; then
14301 # AIX 5 supports IA64
14302 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14303 shlibpath_var=LD_LIBRARY_PATH
14305 # With GCC up to 2.95.x, collect2 would create an import file
14306 # for dependence libraries. The import file would start with
14307 # the line `#! .'. This would cause the generated library to
14308 # depend on `.', always an invalid library. This was fixed in
14309 # development snapshots of GCC prior to 3.0.
14311 aix4 | aix4.[01] | aix4.[01].*)
14312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14314 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14317 can_build_shared=no
14321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14322 # soname into executable. Probably we can add versioning support to
14323 # collect2, so additional links can be useful in future.
14324 if test "$aix_use_runtimelinking" = yes; then
14325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14326 # instead of lib<name>.a to let people know that these are not
14327 # typical AIX shared libraries.
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 # We preserve .a as extension for shared libraries through AIX4.2
14331 # and later when we are not doing run time linking.
14332 library_names_spec='${libname}${release}.a $libname.a'
14333 soname_spec='${libname}${release}${shared_ext}$major'
14335 shlibpath_var=LIBPATH
14340 library_names_spec='$libname.ixlibrary $libname.a'
14341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14342 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'
14346 library_names_spec='${libname}${shared_ext}'
14347 dynamic_linker="$host_os ld.so"
14348 shlibpath_var=LIBRARY_PATH
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14359 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14360 # the default ld.so.conf also contains /usr/contrib/lib and
14361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14362 # libtool to hard-code these into programs
14365 cygwin* | mingw* | pw32*)
14366 version_type=windows
14371 case $GCC,$host_os in
14372 yes,cygwin* | yes,mingw* | yes,pw32*)
14373 library_names_spec='$libname.dll.a'
14374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375 postinstall_cmds='base_file=`basename \${file}`~
14376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14377 dldir=$destdir/`dirname \$dlpath`~
14378 test -d \$dldir || mkdir -p \$dldir~
14379 $install_prog $dir/$dlname \$dldir/$dlname~
14380 chmod a+x \$dldir/$dlname'
14381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14382 dlpath=$dir/\$dldll~
14384 shlibpath_overrides_runpath=yes
14388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14389 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14393 # MinGW DLLs use traditional 'lib' prefix
14394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14395 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14396 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14397 # It is most probably a Windows format PATH printed by
14398 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14399 # path with ; separators, and with drive letters. We can handle the
14400 # drive letters (cygwin fileutils understands them), so leave them,
14401 # especially as we might pass files found there to a mingw objdump,
14402 # which wouldn't understand a cygwinified path. Ahh.
14403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14409 # pw32 DLLs use 'pw' prefix rather than 'lib'
14410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14419 dynamic_linker='Win32 ld.exe'
14420 # FIXME: first we should search . and the directory the executable is in
14424 darwin* | rhapsody*)
14425 dynamic_linker="$host_os dyld"
14426 version_type=darwin
14429 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14430 soname_spec='${libname}${release}${major}$shared_ext'
14431 shlibpath_overrides_runpath=yes
14432 shlibpath_var=DYLD_LIBRARY_PATH
14433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 shlibpath_var=LD_LIBRARY_PATH
14451 freebsd* | dragonfly*)
14452 # DragonFly does not have aout. When/if they implement a new
14453 # versioning mechanism, adjust this.
14454 if test -x /usr/bin/objformat; then
14455 objformat=`/usr/bin/objformat`
14458 freebsd[123]*) objformat=aout ;;
14459 *) objformat=elf ;;
14462 version_type=freebsd-$objformat
14463 case $version_type in
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14474 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=yes
14479 freebsd3.[01]* | freebsdelf3.[01]*)
14480 shlibpath_overrides_runpath=yes
14481 hardcode_into_libs=yes
14483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14485 shlibpath_overrides_runpath=no
14486 hardcode_into_libs=yes
14488 *) # from 4.6 on, and DragonFly
14489 shlibpath_overrides_runpath=yes
14490 hardcode_into_libs=yes
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 hardcode_into_libs=yes
14505 hpux9* | hpux10* | hpux11*)
14506 # Give a soname corresponding to the major version so that dld.sl refuses to
14507 # link against other versions.
14514 hardcode_into_libs=yes
14515 dynamic_linker="$host_os dld.so"
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 if test "X$HPUX_IA64_MODE" = X32; then
14521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14529 hardcode_into_libs=yes
14530 dynamic_linker="$host_os dld.sl"
14531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14540 dynamic_linker="$host_os dld.sl"
14541 shlibpath_var=SHLIB_PATH
14542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14548 postinstall_cmds='chmod 555 $lib'
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14558 shlibpath_var=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath=no
14560 hardcode_into_libs=yes
14563 irix5* | irix6* | nonstopux*)
14565 nonstopux*) version_type=nonstopux ;;
14567 if test "$lt_cv_prog_gnu_ld" = yes; then
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14578 irix5* | nonstopux*)
14579 libsuff= shlibsuff=
14582 case $LD in # libtool.m4 will add one of these switches to LD
14583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14584 libsuff= shlibsuff= libmagic=32-bit;;
14585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14586 libsuff=32 shlibsuff=N32 libmagic=N32;;
14587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14589 *) libsuff= shlibsuff= libmagic=never-match;;
14593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14594 shlibpath_overrides_runpath=no
14595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14597 hardcode_into_libs=yes
14600 # No shared lib support for Linux oldld, aout, or coff.
14601 linux*oldld* | linux*aout* | linux*coff*)
14605 # This must be Linux ELF.
14606 linux* | k*bsd*-gnu)
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 # This implies no fast_install, which is unacceptable.
14616 # Some rework will be needed to allow for fast_install
14617 # before this can be enabled.
14618 hardcode_into_libs=yes
14620 # Append ld.so.conf contents to the search path
14621 if test -f /etc/ld.so.conf; then
14622 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14626 # We used to test for /lib/ld.so.1 and disable shared libraries on
14627 # powerpc, because MkLinux only supported shared libraries with the
14628 # GNU dynamic linker. Since this was broken with cross compilers,
14629 # most powerpc-linux boxes support dynamic linking these days and
14630 # people can always --disable-shared, the test was removed, and we
14631 # assume the GNU/Linux dynamic linker is in use.
14632 dynamic_linker='GNU/Linux ld.so'
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 dynamic_linker='NetBSD ld.elf_so'
14651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654 dynamic_linker='NetBSD (a.out) ld.so'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 dynamic_linker='NetBSD ld.elf_so'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes
14684 sys_lib_dlsearch_path_spec="/usr/lib"
14686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14688 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14689 *) need_version=no ;;
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14696 openbsd2.[89] | openbsd2.[89].*)
14697 shlibpath_overrides_runpath=no
14700 shlibpath_overrides_runpath=yes
14704 shlibpath_overrides_runpath=yes
14709 libname_spec='$name'
14712 library_names_spec='$libname${shared_ext} $libname.a'
14713 dynamic_linker='OS/2 ld.exe'
14714 shlibpath_var=LIBPATH
14717 osf3* | osf4* | osf5*)
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 # ldd complains unless libraries are executable
14742 postinstall_cmds='chmod +x $lib'
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=yes
14751 if test "$with_gnu_ld" = yes; then
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 case $host_vendor in
14764 shlibpath_overrides_runpath=no
14766 export_dynamic_flag_spec='${wl}-Blargedynsym'
14767 runpath_var=LD_RUN_PATH
14775 shlibpath_overrides_runpath=no
14776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14782 if test -d /usr/nec ;then
14784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14785 soname_spec='$libname${shared_ext}.$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14791 version_type=freebsd-elf
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 hardcode_into_libs=yes
14798 if test "$with_gnu_ld" = yes; then
14799 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14800 shlibpath_overrides_runpath=no
14802 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14803 shlibpath_overrides_runpath=yes
14806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14810 sys_lib_dlsearch_path_spec='/usr/lib'
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14824 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14825 echo "${ECHO_T}$dynamic_linker" >&6; }
14826 test "$dynamic_linker" = no && can_build_shared=no
14828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14829 if test "$GCC" = yes; then
14830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14833 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14835 hardcode_action_CXX=
14836 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14837 test -n "$runpath_var_CXX" || \
14838 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14840 # We can hardcode non-existant directories.
14841 if test "$hardcode_direct_CXX" != no &&
14842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14843 # have to relink, otherwise we might link with an installed library
14844 # when we should be linking with a yet-to-be-installed one
14845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14846 test "$hardcode_minus_L_CXX" != no; then
14847 # Linking always hardcodes the temporary library directory.
14848 hardcode_action_CXX=relink
14850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14851 hardcode_action_CXX=immediate
14854 # We cannot hardcode anything, or else we can only hardcode existing
14856 hardcode_action_CXX=unsupported
14858 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14859 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14861 if test "$hardcode_action_CXX" = relink; then
14862 # Fast installation is not supported
14863 enable_fast_install=no
14864 elif test "$shlibpath_overrides_runpath" = yes ||
14865 test "$enable_shared" = no; then
14866 # Fast installation is not necessary
14867 enable_fast_install=needless
14871 # The else clause should only fire when bootstrapping the
14872 # libtool distribution, otherwise you forgot to ship ltmain.sh
14873 # with your package, and you will get complaints that there are
14874 # no rules to generate ltmain.sh.
14875 if test -f "$ltmain"; then
14876 # See if we are running on zsh, and set the options which allow our commands through
14877 # without removal of \ escapes.
14878 if test -n "${ZSH_VERSION+set}" ; then
14879 setopt NO_GLOB_SUBST
14881 # Now quote all the things that may contain metacharacters while being
14882 # careful not to overquote the AC_SUBSTed values. We take copies of the
14883 # variables and quote the copies for generation of the libtool script.
14884 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14886 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14887 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14888 deplibs_check_method reload_flag reload_cmds need_locks \
14889 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14890 lt_cv_sys_global_symbol_to_c_name_address \
14891 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14892 old_postinstall_cmds old_postuninstall_cmds \
14896 lt_prog_compiler_wl_CXX \
14897 lt_prog_compiler_pic_CXX \
14898 lt_prog_compiler_static_CXX \
14899 lt_prog_compiler_no_builtin_flag_CXX \
14900 export_dynamic_flag_spec_CXX \
14901 thread_safe_flag_spec_CXX \
14902 whole_archive_flag_spec_CXX \
14903 enable_shared_with_static_runtimes_CXX \
14904 old_archive_cmds_CXX \
14905 old_archive_from_new_cmds_CXX \
14906 predep_objects_CXX \
14907 postdep_objects_CXX \
14910 compiler_lib_search_path_CXX \
14912 archive_expsym_cmds_CXX \
14913 postinstall_cmds_CXX \
14914 postuninstall_cmds_CXX \
14915 old_archive_from_expsyms_cmds_CXX \
14916 allow_undefined_flag_CXX \
14917 no_undefined_flag_CXX \
14918 export_symbols_cmds_CXX \
14919 hardcode_libdir_flag_spec_CXX \
14920 hardcode_libdir_flag_spec_ld_CXX \
14921 hardcode_libdir_separator_CXX \
14922 hardcode_automatic_CXX \
14924 module_expsym_cmds_CXX \
14925 lt_cv_prog_compiler_c_o_CXX \
14926 fix_srcfile_path_CXX \
14927 exclude_expsyms_CXX \
14928 include_expsyms_CXX; do
14931 old_archive_cmds_CXX | \
14932 old_archive_from_new_cmds_CXX | \
14933 archive_cmds_CXX | \
14934 archive_expsym_cmds_CXX | \
14935 module_cmds_CXX | \
14936 module_expsym_cmds_CXX | \
14937 old_archive_from_expsyms_cmds_CXX | \
14938 export_symbols_cmds_CXX | \
14939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14940 postinstall_cmds | postuninstall_cmds | \
14941 old_postinstall_cmds | old_postuninstall_cmds | \
14942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14943 # Double-quote double-evaled strings.
14944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14953 *'\$0 --fallback-echo"')
14954 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14960 cat <<__EOF__ >> "$cfgfile"
14961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14965 # Shell to use when invoking shell scripts.
14968 # Whether or not to build shared libraries.
14969 build_libtool_libs=$enable_shared
14971 # Whether or not to build static libraries.
14972 build_old_libs=$enable_static
14974 # Whether or not to add -lc for building shared libraries.
14975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14977 # Whether or not to disallow shared libs when runtime libs are static
14978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14980 # Whether or not to optimize for fast installation.
14981 fast_install=$enable_fast_install
14984 host_alias=$host_alias
14988 # The build system.
14989 build_alias=$build_alias
14993 # An echo program that does not interpret backslashes.
14998 AR_FLAGS=$lt_AR_FLAGS
15003 # LTCC compiler flags.
15004 LTCFLAGS=$lt_LTCFLAGS
15006 # A language-specific compiler.
15007 CC=$lt_compiler_CXX
15009 # Is the compiler the GNU C compiler?
15015 # The linker used to build libraries.
15018 # Whether we need hard or soft links.
15021 # A BSD-compatible nm program.
15024 # A symbol stripping program
15027 # Used to examine libraries when file_magic_cmd begins "file"
15028 MAGIC_CMD=$MAGIC_CMD
15030 # Used on cygwin: DLL creation program.
15033 # Used on cygwin: object dumper.
15036 # Used on cygwin: assembler.
15039 # The name of the directory that contains temporary libtool files.
15042 # How to create reloadable object files.
15043 reload_flag=$lt_reload_flag
15044 reload_cmds=$lt_reload_cmds
15046 # How to pass a linker flag through the compiler.
15047 wl=$lt_lt_prog_compiler_wl_CXX
15049 # Object file suffix (normally "o").
15050 objext="$ac_objext"
15052 # Old archive suffix (normally "a").
15055 # Shared library suffix (normally ".so").
15056 shrext_cmds='$shrext_cmds'
15058 # Executable file suffix (normally "").
15061 # Additional compiler flags for building library objects.
15062 pic_flag=$lt_lt_prog_compiler_pic_CXX
15065 # What is the maximum length of a command?
15066 max_cmd_len=$lt_cv_sys_max_cmd_len
15068 # Does compiler simultaneously support -c and -o options?
15069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15071 # Must we lock files when doing compilation?
15072 need_locks=$lt_need_locks
15074 # Do we need the lib prefix for modules?
15075 need_lib_prefix=$need_lib_prefix
15077 # Do we need a version for libraries?
15078 need_version=$need_version
15080 # Whether dlopen is supported.
15081 dlopen_support=$enable_dlopen
15083 # Whether dlopen of programs is supported.
15084 dlopen_self=$enable_dlopen_self
15086 # Whether dlopen of statically linked programs is supported.
15087 dlopen_self_static=$enable_dlopen_self_static
15089 # Compiler flag to prevent dynamic linking.
15090 link_static_flag=$lt_lt_prog_compiler_static_CXX
15092 # Compiler flag to turn off builtin functions.
15093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15095 # Compiler flag to allow reflexive dlopens.
15096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15098 # Compiler flag to generate shared objects directly from archives.
15099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15101 # Compiler flag to generate thread-safe objects.
15102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15104 # Library versioning type.
15105 version_type=$version_type
15107 # Format of library name prefix.
15108 libname_spec=$lt_libname_spec
15110 # List of archive names. First name is the real one, the rest are links.
15111 # The last name is the one that the linker finds with -lNAME.
15112 library_names_spec=$lt_library_names_spec
15114 # The coded name of the library, if different from the real name.
15115 soname_spec=$lt_soname_spec
15117 # Commands used to build and install an old-style archive.
15119 old_archive_cmds=$lt_old_archive_cmds_CXX
15120 old_postinstall_cmds=$lt_old_postinstall_cmds
15121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15123 # Create an old-style archive from a shared archive.
15124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15126 # Create a temporary old-style archive to link instead of a shared archive.
15127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15129 # Commands used to build and install a shared archive.
15130 archive_cmds=$lt_archive_cmds_CXX
15131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15132 postinstall_cmds=$lt_postinstall_cmds
15133 postuninstall_cmds=$lt_postuninstall_cmds
15135 # Commands used to build a loadable module (assumed same as above if empty)
15136 module_cmds=$lt_module_cmds_CXX
15137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15139 # Commands to strip libraries.
15140 old_striplib=$lt_old_striplib
15141 striplib=$lt_striplib
15143 # Dependencies to place before the objects being linked to create a
15145 predep_objects=$lt_predep_objects_CXX
15147 # Dependencies to place after the objects being linked to create a
15149 postdep_objects=$lt_postdep_objects_CXX
15151 # Dependencies to place before the objects being linked to create a
15153 predeps=$lt_predeps_CXX
15155 # Dependencies to place after the objects being linked to create a
15157 postdeps=$lt_postdeps_CXX
15159 # The library search path used internally by the compiler when linking
15160 # a shared library.
15161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15163 # Method to check whether dependent libraries are shared objects.
15164 deplibs_check_method=$lt_deplibs_check_method
15166 # Command to use when deplibs_check_method == file_magic.
15167 file_magic_cmd=$lt_file_magic_cmd
15169 # Flag that allows shared libraries with undefined symbols to be built.
15170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15172 # Flag that forces no undefined symbols.
15173 no_undefined_flag=$lt_no_undefined_flag_CXX
15175 # Commands used to finish a libtool library installation in a directory.
15176 finish_cmds=$lt_finish_cmds
15178 # Same as above, but a single script fragment to be evaled but not shown.
15179 finish_eval=$lt_finish_eval
15181 # Take the output of nm and produce a listing of raw symbols and C names.
15182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15184 # Transform the output of nm in a proper C declaration
15185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15187 # Transform the output of nm in a C name address pair
15188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15190 # This is the shared library runtime path variable.
15191 runpath_var=$runpath_var
15193 # This is the shared library path variable.
15194 shlibpath_var=$shlibpath_var
15196 # Is shlibpath searched before the hard-coded library search path?
15197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15199 # How to hardcode a shared library path into an executable.
15200 hardcode_action=$hardcode_action_CXX
15202 # Whether we should hardcode library paths into libraries.
15203 hardcode_into_libs=$hardcode_into_libs
15205 # Flag to hardcode \$libdir into a binary during linking.
15206 # This must work even if \$libdir does not exist.
15207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15209 # If ld is used when linking, flag to hardcode \$libdir into
15210 # a binary during linking. This must work even if \$libdir does
15212 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15214 # Whether we need a single -rpath flag with a separated argument.
15215 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15217 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15218 # resulting binary.
15219 hardcode_direct=$hardcode_direct_CXX
15221 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15222 # resulting binary.
15223 hardcode_minus_L=$hardcode_minus_L_CXX
15225 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15226 # the resulting binary.
15227 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15229 # Set to yes if building a shared library automatically hardcodes DIR into the library
15230 # and all subsequent libraries and executables linked against it.
15231 hardcode_automatic=$hardcode_automatic_CXX
15233 # Variables whose values should be saved in libtool wrapper scripts and
15234 # restored at relink time.
15235 variables_saved_for_relink="$variables_saved_for_relink"
15237 # Whether libtool must link a program against all its dependency libraries.
15238 link_all_deplibs=$link_all_deplibs_CXX
15240 # Compile-time system search path for libraries
15241 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15243 # Run-time system search path for libraries
15244 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15246 # Fix the shell variable \$srcfile for the compiler.
15247 fix_srcfile_path=$lt_fix_srcfile_path
15249 # Set to yes if exported symbols are required.
15250 always_export_symbols=$always_export_symbols_CXX
15252 # The commands to list exported symbols.
15253 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15255 # The commands to extract the exported symbol list from a shared archive.
15256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15258 # Symbols that should not be listed in the preloaded symbols.
15259 exclude_expsyms=$lt_exclude_expsyms_CXX
15261 # Symbols that must always be exported.
15262 include_expsyms=$lt_include_expsyms_CXX
15264 # ### END LIBTOOL TAG CONFIG: $tagname
15270 # If there is no Makefile yet, we rely on a make rule to execute
15271 # `config.status --recheck' to rerun these tests and create the
15272 # libtool script then.
15273 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15274 if test -f "$ltmain_in"; then
15275 test -f Makefile && make "$ltmain"
15281 ac_cpp='$CPP $CPPFLAGS'
15282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290 with_gnu_ldcxx=$with_gnu_ld
15291 with_gnu_ld=$lt_save_with_gnu_ld
15292 lt_cv_path_LDCXX=$lt_cv_path_LD
15293 lt_cv_path_LD=$lt_save_path_LD
15294 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15295 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15303 if test -n "$F77" && test "X$F77" != "Xno"; then
15306 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15307 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15311 archive_cmds_need_lc_F77=no
15312 allow_undefined_flag_F77=
15313 always_export_symbols_F77=no
15314 archive_expsym_cmds_F77=
15315 export_dynamic_flag_spec_F77=
15316 hardcode_direct_F77=no
15317 hardcode_libdir_flag_spec_F77=
15318 hardcode_libdir_flag_spec_ld_F77=
15319 hardcode_libdir_separator_F77=
15320 hardcode_minus_L_F77=no
15321 hardcode_automatic_F77=no
15323 module_expsym_cmds_F77=
15324 link_all_deplibs_F77=unknown
15325 old_archive_cmds_F77=$old_archive_cmds
15326 no_undefined_flag_F77=
15327 whole_archive_flag_spec_F77=
15328 enable_shared_with_static_runtimes_F77=no
15330 # Source file extension for f77 test sources.
15333 # Object file extension for compiled f77 test sources.
15337 # Code to be used in simple compile tests
15338 lt_simple_compile_test_code="\
15344 # Code to be used in simple link tests
15345 lt_simple_link_test_code="\
15350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15352 # If no C compiler was specified, use CC.
15355 # If no C compiler flags were specified, use CFLAGS.
15356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15358 # Allow CC to be a program name with arguments.
15362 # save warnings/boilerplate of simple test code
15363 ac_outfile=conftest.$ac_objext
15364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15366 _lt_compiler_boilerplate=`cat conftest.err`
15369 ac_outfile=conftest.$ac_objext
15370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15372 _lt_linker_boilerplate=`cat conftest.err`
15376 # Allow CC to be a program name with arguments.
15381 for cc_temp in $compiler""; do
15383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15392 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15393 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15394 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15395 echo "${ECHO_T}$can_build_shared" >&6; }
15397 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15398 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15399 test "$can_build_shared" = "no" && enable_shared=no
15401 # On AIX, shared libraries and static libraries use the same namespace, and
15402 # are all built from PIC.
15405 test "$enable_shared" = yes && enable_static=no
15406 if test -n "$RANLIB"; then
15407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15408 postinstall_cmds='$RANLIB $lib'
15412 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15413 test "$enable_shared" = yes && enable_static=no
15417 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15418 echo "${ECHO_T}$enable_shared" >&6; }
15420 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15421 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15422 # Make sure either enable_shared or enable_static is yes.
15423 test "$enable_shared" = yes || enable_static=yes
15424 { echo "$as_me:$LINENO: result: $enable_static" >&5
15425 echo "${ECHO_T}$enable_static" >&6; }
15430 lt_prog_compiler_wl_F77=
15431 lt_prog_compiler_pic_F77=
15432 lt_prog_compiler_static_F77=
15434 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15435 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15437 if test "$GCC" = yes; then
15438 lt_prog_compiler_wl_F77='-Wl,'
15439 lt_prog_compiler_static_F77='-static'
15443 # All AIX code is PIC.
15444 if test "$host_cpu" = ia64; then
15445 # AIX 5 now supports IA64 processor
15446 lt_prog_compiler_static_F77='-Bstatic'
15451 # FIXME: we need at least 68020 code to build shared libraries, but
15452 # adding the `-m68020' flag to GCC prevents building anything better,
15454 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15458 # PIC is the default for these OSes.
15461 mingw* | cygwin* | pw32* | os2*)
15462 # This hack is so that the source file can tell whether it is being
15463 # built for inclusion in a dll (and should export symbols for example).
15464 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15465 # (--disable-auto-import) libraries
15466 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15469 darwin* | rhapsody*)
15470 # PIC is the default on this platform
15471 # Common symbols not allowed in MH_DYLIB files
15472 lt_prog_compiler_pic_F77='-fno-common'
15476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15477 # Instead, we relocate shared libraries at runtime.
15481 # Just because we use GCC doesn't mean we suddenly get shared libraries
15482 # on systems that don't support them.
15483 lt_prog_compiler_can_build_shared_F77=no
15488 if test -d /usr/nec; then
15489 lt_prog_compiler_pic_F77=-Kconform_pic
15494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15495 # not for PA HP-UX.
15501 lt_prog_compiler_pic_F77='-fPIC'
15507 lt_prog_compiler_pic_F77='-fPIC'
15511 # PORTME Check for flag to pass linker flags through the system compiler.
15514 lt_prog_compiler_wl_F77='-Wl,'
15515 if test "$host_cpu" = ia64; then
15516 # AIX 5 now supports IA64 processor
15517 lt_prog_compiler_static_F77='-Bstatic'
15519 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15523 # PIC is the default on this platform
15524 # Common symbols not allowed in MH_DYLIB files
15525 case $cc_basename in
15527 lt_prog_compiler_pic_F77='-qnocommon'
15528 lt_prog_compiler_wl_F77='-Wl,'
15533 mingw* | cygwin* | pw32* | os2*)
15534 # This hack is so that the source file can tell whether it is being
15535 # built for inclusion in a dll (and should export symbols for example).
15536 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15539 hpux9* | hpux10* | hpux11*)
15540 lt_prog_compiler_wl_F77='-Wl,'
15541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15542 # not for PA HP-UX.
15548 lt_prog_compiler_pic_F77='+Z'
15551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15552 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15555 irix5* | irix6* | nonstopux*)
15556 lt_prog_compiler_wl_F77='-Wl,'
15557 # PIC (with -KPIC) is the default.
15558 lt_prog_compiler_static_F77='-non_shared'
15562 lt_prog_compiler_pic_F77='-KPIC'
15563 lt_prog_compiler_static_F77='-Bstatic'
15566 linux* | k*bsd*-gnu)
15567 case $cc_basename in
15569 lt_prog_compiler_wl_F77='-Wl,'
15570 lt_prog_compiler_pic_F77='-KPIC'
15571 lt_prog_compiler_static_F77='-static'
15573 pgcc* | pgf77* | pgf90* | pgf95*)
15574 # Portland Group compilers (*not* the Pentium gcc compiler,
15575 # which looks to be a dead project)
15576 lt_prog_compiler_wl_F77='-Wl,'
15577 lt_prog_compiler_pic_F77='-fpic'
15578 lt_prog_compiler_static_F77='-Bstatic'
15581 lt_prog_compiler_wl_F77='-Wl,'
15582 # All Alpha code is PIC.
15583 lt_prog_compiler_static_F77='-non_shared'
15586 case `$CC -V 2>&1 | sed 5q` in
15589 lt_prog_compiler_pic_F77='-KPIC'
15590 lt_prog_compiler_static_F77='-Bstatic'
15591 lt_prog_compiler_wl_F77='-Wl,'
15594 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15595 lt_prog_compiler_pic_F77='-KPIC'
15596 lt_prog_compiler_static_F77='-Bstatic'
15597 lt_prog_compiler_wl_F77=''
15604 osf3* | osf4* | osf5*)
15605 lt_prog_compiler_wl_F77='-Wl,'
15606 # All OSF/1 code is PIC.
15607 lt_prog_compiler_static_F77='-non_shared'
15611 lt_prog_compiler_static_F77='-non_shared'
15615 lt_prog_compiler_pic_F77='-KPIC'
15616 lt_prog_compiler_static_F77='-Bstatic'
15617 case $cc_basename in
15618 f77* | f90* | f95*)
15619 lt_prog_compiler_wl_F77='-Qoption ld ';;
15621 lt_prog_compiler_wl_F77='-Wl,';;
15626 lt_prog_compiler_wl_F77='-Qoption ld '
15627 lt_prog_compiler_pic_F77='-PIC'
15628 lt_prog_compiler_static_F77='-Bstatic'
15631 sysv4 | sysv4.2uw2* | sysv4.3*)
15632 lt_prog_compiler_wl_F77='-Wl,'
15633 lt_prog_compiler_pic_F77='-KPIC'
15634 lt_prog_compiler_static_F77='-Bstatic'
15638 if test -d /usr/nec ;then
15639 lt_prog_compiler_pic_F77='-Kconform_pic'
15640 lt_prog_compiler_static_F77='-Bstatic'
15644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15645 lt_prog_compiler_wl_F77='-Wl,'
15646 lt_prog_compiler_pic_F77='-KPIC'
15647 lt_prog_compiler_static_F77='-Bstatic'
15651 lt_prog_compiler_wl_F77='-Wl,'
15652 lt_prog_compiler_can_build_shared_F77=no
15656 lt_prog_compiler_pic_F77='-pic'
15657 lt_prog_compiler_static_F77='-Bstatic'
15661 lt_prog_compiler_can_build_shared_F77=no
15666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15670 # Check to make sure the PIC flag actually works.
15672 if test -n "$lt_prog_compiler_pic_F77"; then
15674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 lt_prog_compiler_pic_works_F77=no
15680 ac_outfile=conftest.$ac_objext
15681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15682 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15683 # Insert the option either (1) after the last *FLAGS variable, or
15684 # (2) before a word containing "conftest.", or (3) at the end.
15685 # Note that $ac_compile itself does not contain backslashes and begins
15686 # with a dollar sign (not a hyphen), so the echo should work correctly.
15687 # The option is referenced via a variable to avoid confusing sed.
15688 lt_compile=`echo "$ac_compile" | $SED \
15689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15691 -e 's:$: $lt_compiler_flag:'`
15692 (eval echo "\"\$as_me:15692: $lt_compile\"" >&5)
15693 (eval "$lt_compile" 2>conftest.err)
15695 cat conftest.err >&5
15696 echo "$as_me:15696: \$? = $ac_status" >&5
15697 if (exit $ac_status) && test -s "$ac_outfile"; then
15698 # The compiler can only warn and ignore the option if not recognized
15699 # So say no if there are warnings other than the usual output.
15700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15703 lt_prog_compiler_pic_works_F77=yes
15709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15712 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15713 case $lt_prog_compiler_pic_F77 in
15715 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15718 lt_prog_compiler_pic_F77=
15719 lt_prog_compiler_can_build_shared_F77=no
15724 # For platforms which do not support PIC, -DPIC is meaningless:
15726 lt_prog_compiler_pic_F77=
15729 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15734 # Check to make sure the static flag actually works.
15736 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15739 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 lt_prog_compiler_static_works_F77=no
15743 save_LDFLAGS="$LDFLAGS"
15744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15747 # The linker can only warn and ignore the option if not recognized
15748 # So say no if there are warnings
15749 if test -s conftest.err; then
15750 # Append any errors to the config.log.
15751 cat conftest.err 1>&5
15752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754 if diff conftest.exp conftest.er2 >/dev/null; then
15755 lt_prog_compiler_static_works_F77=yes
15758 lt_prog_compiler_static_works_F77=yes
15762 LDFLAGS="$save_LDFLAGS"
15765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15766 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15768 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15771 lt_prog_compiler_static_F77=
15775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15777 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 lt_cv_prog_compiler_c_o_F77=no
15781 $rm -r conftest 2>/dev/null
15785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15787 lt_compiler_flag="-o out/conftest2.$ac_objext"
15788 # Insert the option either (1) after the last *FLAGS variable, or
15789 # (2) before a word containing "conftest.", or (3) at the end.
15790 # Note that $ac_compile itself does not contain backslashes and begins
15791 # with a dollar sign (not a hyphen), so the echo should work correctly.
15792 lt_compile=`echo "$ac_compile" | $SED \
15793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15795 -e 's:$: $lt_compiler_flag:'`
15796 (eval echo "\"\$as_me:15796: $lt_compile\"" >&5)
15797 (eval "$lt_compile" 2>out/conftest.err)
15799 cat out/conftest.err >&5
15800 echo "$as_me:15800: \$? = $ac_status" >&5
15801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15803 # The compiler can only warn and ignore the option if not recognized
15804 # So say no if there are warnings
15805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15808 lt_cv_prog_compiler_c_o_F77=yes
15813 # SGI C++ compiler will create directory out/ii_files/ for
15814 # template instantiation
15815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15816 $rm out/* && rmdir out
15822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15826 hard_links="nottested"
15827 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15828 # do not overwrite the value of need_locks provided by the user
15829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835 ln conftest.a conftest.b 2>&5 || hard_links=no
15836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15837 { echo "$as_me:$LINENO: result: $hard_links" >&5
15838 echo "${ECHO_T}$hard_links" >&6; }
15839 if test "$hard_links" = no; then
15840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15852 allow_undefined_flag_F77=
15853 enable_shared_with_static_runtimes_F77=no
15855 archive_expsym_cmds_F77=
15856 old_archive_From_new_cmds_F77=
15857 old_archive_from_expsyms_cmds_F77=
15858 export_dynamic_flag_spec_F77=
15859 whole_archive_flag_spec_F77=
15860 thread_safe_flag_spec_F77=
15861 hardcode_libdir_flag_spec_F77=
15862 hardcode_libdir_flag_spec_ld_F77=
15863 hardcode_libdir_separator_F77=
15864 hardcode_direct_F77=no
15865 hardcode_minus_L_F77=no
15866 hardcode_shlibpath_var_F77=unsupported
15867 link_all_deplibs_F77=unknown
15868 hardcode_automatic_F77=no
15870 module_expsym_cmds_F77=
15871 always_export_symbols_F77=no
15872 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15873 # include_expsyms should be a list of space-separated symbols to be *always*
15874 # included in the symbol list
15875 include_expsyms_F77=
15876 # exclude_expsyms can be an extended regexp of symbols to exclude
15877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15879 # as well as any symbol that contains `d'.
15880 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15882 # platforms (ab)use it in PIC code, but their linkers get confused if
15883 # the symbol is explicitly referenced. Since portable code cannot
15884 # rely on this symbol name, it's probably fine to never include it in
15885 # preloaded symbol tables.
15886 extract_expsyms_cmds=
15887 # Just being paranoid about ensuring that cc_basename is set.
15888 for cc_temp in $compiler""; do
15890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15899 cygwin* | mingw* | pw32*)
15900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15901 # When not using gcc, we currently assume that we are using
15902 # Microsoft Visual C++.
15903 if test "$GCC" != yes; then
15908 # we just hope/assume this is gcc and not c89 (= MSVC++)
15917 if test "$with_gnu_ld" = yes; then
15918 # If archive_cmds runs LD, not CC, wlarc should be empty
15921 # Set some defaults for GNU ld with shared library support. These
15922 # are reset later if shared libraries are not supported. Putting them
15923 # here allows them to be overridden if necessary.
15924 runpath_var=LD_RUN_PATH
15925 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15926 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15927 # ancient GNU ld didn't support --whole-archive et. al.
15928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15929 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15931 whole_archive_flag_spec_F77=
15933 supports_anon_versioning=no
15934 case `$LD -v 2>/dev/null` in
15935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15938 *\ 2.11.*) ;; # other 2.11 versions
15939 *) supports_anon_versioning=yes ;;
15942 # See if GNU ld supports shared libraries.
15944 aix3* | aix4* | aix5*)
15945 # On AIX/PPC, the GNU linker is very broken
15946 if test "$host_cpu" != ia64; then
15950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15951 *** to be unable to reliably create shared libraries on AIX.
15952 *** Therefore, libtool is disabling shared libraries support. If you
15953 *** really care for shared libraries, you may want to modify your PATH
15954 *** so that a non-GNU linker is found, and then restart.
15961 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)'
15962 hardcode_libdir_flag_spec_F77='-L$libdir'
15963 hardcode_minus_L_F77=yes
15965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15966 # that the semantics of dynamic libraries on AmigaOS, at least up
15967 # to version 4, is to share data among multiple programs linked
15968 # with the same dynamic library. Since this doesn't match the
15969 # behavior of shared libraries on other platforms, we can't use
15975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15976 allow_undefined_flag_F77=unsupported
15977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15978 # support --undefined. This deserves some investigation. FIXME
15979 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985 cygwin* | mingw* | pw32*)
15986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15987 # as there is no search path for DLLs.
15988 hardcode_libdir_flag_spec_F77='-L$libdir'
15989 allow_undefined_flag_F77=unsupported
15990 always_export_symbols_F77=no
15991 enable_shared_with_static_runtimes_F77=yes
15992 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15994 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15996 # If the export-symbols file already is a .def file (1st line
15997 # is EXPORTS), use it as is; otherwise, prepend...
15998 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15999 cp $export_symbols $output_objdir/$soname.def;
16001 echo EXPORTS > $output_objdir/$soname.def;
16002 cat $export_symbols >> $output_objdir/$soname.def;
16004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16011 hardcode_direct_F77=no
16012 hardcode_shlibpath_var_F77=no
16013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16014 export_dynamic_flag_spec_F77='${wl}-E'
16015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16016 # Instead, shared libraries are loaded at an image base (0x10000000 by
16017 # default) and relocated if they conflict, which is a slow very memory
16018 # consuming and fragmenting process. To avoid this, we pick a random,
16019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16021 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'
16022 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'
16025 gnu* | linux* | k*bsd*-gnu)
16026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16028 case $cc_basename,$host_cpu in
16029 pgcc*) # Portland Group C compiler
16030 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'
16031 tmp_addflag=' $pic_flag'
16033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16034 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'
16035 tmp_addflag=' $pic_flag -Mnomain' ;;
16036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16037 tmp_addflag=' -i_dynamic' ;;
16038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16039 tmp_addflag=' -i_dynamic -nofor_main' ;;
16040 ifc* | ifort*) # Intel Fortran compiler
16041 tmp_addflag=' -nofor_main' ;;
16043 case `$CC -V 2>&1 | sed 5q` in
16044 *Sun\ C*) # Sun C 5.9
16045 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16046 tmp_sharedflag='-G' ;;
16047 *Sun\ F*) # Sun Fortran 8.3
16048 tmp_sharedflag='-G' ;;
16050 tmp_sharedflag='-shared' ;;
16052 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 if test $supports_anon_versioning = yes; then
16055 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16057 $echo "local: *; };" >> $output_objdir/$libname.ver~
16058 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16060 link_all_deplibs_F77=no
16066 netbsd* | netbsdelf*-gnu)
16067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16071 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16072 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16077 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16081 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16082 *** create shared libraries on Solaris systems. Therefore, libtool
16083 *** is disabling shared libraries support. We urge you to upgrade GNU
16084 *** binutils to release 2.9.1 or newer. Another option is to modify
16085 *** your PATH or compiler configuration so that the native linker is
16086 *** used, and then restart.
16089 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16098 case `$LD -v 2>&1` in
16099 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16103 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16104 *** reliably create shared libraries on SCO systems. Therefore, libtool
16105 *** is disabling shared libraries support. We urge you to upgrade GNU
16106 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16107 *** your PATH or compiler configuration so that the native linker is
16108 *** used, and then restart.
16113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16114 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16115 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16116 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16125 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_direct_F77=yes
16128 hardcode_shlibpath_var_F77=no
16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16141 if test "$ld_shlibs_F77" = no; then
16143 hardcode_libdir_flag_spec_F77=
16144 export_dynamic_flag_spec_F77=
16145 whole_archive_flag_spec_F77=
16148 # PORTME fill in a description of your system's linker (not GNU ld)
16151 allow_undefined_flag_F77=unsupported
16152 always_export_symbols_F77=yes
16153 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'
16154 # Note: this linker hardcodes the directories in LIBPATH if there
16155 # are no directories specified by -L.
16156 hardcode_minus_L_F77=yes
16157 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16158 # Neither direct hardcoding nor static linking is supported with a
16160 hardcode_direct_F77=unsupported
16165 if test "$host_cpu" = ia64; then
16166 # On IA64, the linker does run time linking by default, so we don't
16167 # have to do anything special.
16168 aix_use_runtimelinking=no
16169 exp_sym_flag='-Bexport'
16172 # If we're using GNU nm, then we don't want the "-C" option.
16173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16174 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16175 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'
16177 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'
16179 aix_use_runtimelinking=no
16181 # Test if we are trying to use run time linking or normal
16182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16183 # need to do runtime linking.
16184 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16185 for ld_flag in $LDFLAGS; do
16186 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16187 aix_use_runtimelinking=yes
16194 exp_sym_flag='-bexport'
16195 no_entry_flag='-bnoentry'
16198 # When large executables or shared objects are built, AIX ld can
16199 # have problems creating the table of contents. If linking a library
16200 # or program results in "error TOC overflow" add -mminimal-toc to
16201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16204 archive_cmds_F77=''
16205 hardcode_direct_F77=yes
16206 hardcode_libdir_separator_F77=':'
16207 link_all_deplibs_F77=yes
16209 if test "$GCC" = yes; then
16210 case $host_os in aix4.[012]|aix4.[012].*)
16211 # We only want to do this on AIX 4.2 and lower, the check
16212 # below for broken collect2 doesn't work under 4.3+
16213 collect2name=`${CC} -print-prog-name=collect2`
16214 if test -f "$collect2name" && \
16215 strings "$collect2name" | grep resolve_lib_name >/dev/null
16217 # We have reworked collect2
16220 # We have old collect2
16221 hardcode_direct_F77=unsupported
16222 # It fails to find uninstalled libraries when the uninstalled
16223 # path is not listed in the libpath. Setting hardcode_minus_L
16224 # to unsupported forces relinking
16225 hardcode_minus_L_F77=yes
16226 hardcode_libdir_flag_spec_F77='-L$libdir'
16227 hardcode_libdir_separator_F77=
16231 shared_flag='-shared'
16232 if test "$aix_use_runtimelinking" = yes; then
16233 shared_flag="$shared_flag "'${wl}-G'
16237 if test "$host_cpu" = ia64; then
16238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16239 # chokes on -Wl,-G. The following line is correct:
16242 if test "$aix_use_runtimelinking" = yes; then
16243 shared_flag='${wl}-G'
16245 shared_flag='${wl}-bM:SRE'
16250 # It seems that -bexpall does not export symbols beginning with
16251 # underscore (_), so it is better to generate a list of symbols to export.
16252 always_export_symbols_F77=yes
16253 if test "$aix_use_runtimelinking" = yes; then
16254 # Warning - without using the other runtime loading flags (-brtl),
16255 # -berok will link without error, but may produce a broken library.
16256 allow_undefined_flag_F77='-berok'
16257 # Determine the default libpath from the value encoded in an empty executable.
16258 cat >conftest.$ac_ext <<_ACEOF
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (ac_try="$ac_link"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_link") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_f77_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest$ac_exeext &&
16280 $as_test_x conftest$ac_exeext; then
16282 lt_aix_libpath_sed='
16283 /Import File Strings/,/^$/ {
16289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16290 # Check for a 64-bit object if we didn't find anything.
16291 if test -z "$aix_libpath"; then
16292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16302 conftest$ac_exeext conftest.$ac_ext
16303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16305 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16306 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"
16308 if test "$host_cpu" = ia64; then
16309 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16310 allow_undefined_flag_F77="-z nodefs"
16311 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"
16313 # Determine the default libpath from the value encoded in an empty executable.
16314 cat >conftest.$ac_ext <<_ACEOF
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_link") 2>conftest.er1
16328 grep -v '^ *+' conftest.er1 >conftest.err
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_f77_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest$ac_exeext &&
16336 $as_test_x conftest$ac_exeext; then
16338 lt_aix_libpath_sed='
16339 /Import File Strings/,/^$/ {
16345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16346 # Check for a 64-bit object if we didn't find anything.
16347 if test -z "$aix_libpath"; then
16348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16358 conftest$ac_exeext conftest.$ac_ext
16359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16361 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16362 # Warning - without using the other run time loading flags,
16363 # -berok will link without error, but may produce a broken library.
16364 no_undefined_flag_F77=' ${wl}-bernotok'
16365 allow_undefined_flag_F77=' ${wl}-berok'
16366 # Exported symbols can be pulled into shared objects from archives
16367 whole_archive_flag_spec_F77='$convenience'
16368 archive_cmds_need_lc_F77=yes
16369 # This is similar to how AIX traditionally builds its shared libraries.
16370 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'
16376 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)'
16377 hardcode_libdir_flag_spec_F77='-L$libdir'
16378 hardcode_minus_L_F77=yes
16379 # see comment about different semantics on the GNU ld section
16384 export_dynamic_flag_spec_F77=-rdynamic
16387 cygwin* | mingw* | pw32*)
16388 # When not using gcc, we currently assume that we are using
16389 # Microsoft Visual C++.
16390 # hardcode_libdir_flag_spec is actually meaningless, as there is
16391 # no search path for DLLs.
16392 hardcode_libdir_flag_spec_F77=' '
16393 allow_undefined_flag_F77=unsupported
16394 # Tell ltmain to make .lib files, not .a files.
16396 # Tell ltmain to make .dll files, not .so files.
16398 # FIXME: Setting linknames here is a bad hack.
16399 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16400 # The linker will automatically build a .lib file if we build a DLL.
16401 old_archive_From_new_cmds_F77='true'
16402 # FIXME: Should let the user specify the lib program.
16403 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16404 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16405 enable_shared_with_static_runtimes_F77=yes
16408 darwin* | rhapsody*)
16410 rhapsody* | darwin1.[012])
16411 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16414 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16415 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16417 case ${MACOSX_DEPLOYMENT_TARGET} in
16419 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16422 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16428 archive_cmds_need_lc_F77=no
16429 hardcode_direct_F77=no
16430 hardcode_automatic_F77=yes
16431 hardcode_shlibpath_var_F77=unsupported
16432 whole_archive_flag_spec_F77=''
16433 link_all_deplibs_F77=yes
16434 if test "$GCC" = yes ; then
16435 output_verbose_link_cmd='echo'
16436 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16437 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16439 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}'
16440 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}'
16442 case $cc_basename in
16444 output_verbose_link_cmd='echo'
16445 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16446 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16448 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16449 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}'
16459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 hardcode_libdir_flag_spec_F77='-L$libdir'
16461 hardcode_shlibpath_var_F77=no
16468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16469 # support. Future versions do this automatically, but an explicit c++rt0.o
16470 # does not break anything, and helps significantly (at the cost of a little
16473 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16474 hardcode_libdir_flag_spec_F77='-R$libdir'
16475 hardcode_direct_F77=yes
16476 hardcode_shlibpath_var_F77=no
16479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16481 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16482 hardcode_direct_F77=yes
16483 hardcode_minus_L_F77=yes
16484 hardcode_shlibpath_var_F77=no
16487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16488 freebsd* | dragonfly*)
16489 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16490 hardcode_libdir_flag_spec_F77='-R$libdir'
16491 hardcode_direct_F77=yes
16492 hardcode_shlibpath_var_F77=no
16496 if test "$GCC" = yes; then
16497 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'
16499 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'
16501 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator_F77=:
16503 hardcode_direct_F77=yes
16505 # hardcode_minus_L: Not really in the search PATH,
16506 # but as the default location of the library.
16507 hardcode_minus_L_F77=yes
16508 export_dynamic_flag_spec_F77='${wl}-E'
16512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16513 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16515 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16517 if test "$with_gnu_ld" = no; then
16518 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16519 hardcode_libdir_separator_F77=:
16521 hardcode_direct_F77=yes
16522 export_dynamic_flag_spec_F77='${wl}-E'
16524 # hardcode_minus_L: Not really in the search PATH,
16525 # but as the default location of the library.
16526 hardcode_minus_L_F77=yes
16531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16534 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16552 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16556 if test "$with_gnu_ld" = no; then
16557 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16558 hardcode_libdir_separator_F77=:
16562 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16563 hardcode_direct_F77=no
16564 hardcode_shlibpath_var_F77=no
16567 hardcode_direct_F77=yes
16568 export_dynamic_flag_spec_F77='${wl}-E'
16570 # hardcode_minus_L: Not really in the search PATH,
16571 # but as the default location of the library.
16572 hardcode_minus_L_F77=yes
16578 irix5* | irix6* | nonstopux*)
16579 if test "$GCC" = yes; then
16580 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'
16582 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'
16583 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16585 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16586 hardcode_libdir_separator_F77=:
16587 link_all_deplibs_F77=yes
16590 netbsd* | netbsdelf*-gnu)
16591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16594 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16596 hardcode_libdir_flag_spec_F77='-R$libdir'
16597 hardcode_direct_F77=yes
16598 hardcode_shlibpath_var_F77=no
16602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_direct_F77=yes
16604 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605 hardcode_libdir_separator_F77=:
16606 hardcode_shlibpath_var_F77=no
16610 if test -f /usr/libexec/ld.so; then
16611 hardcode_direct_F77=yes
16612 hardcode_shlibpath_var_F77=no
16613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16614 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16616 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16617 export_dynamic_flag_spec_F77='${wl}-E'
16620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16621 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_libdir_flag_spec_F77='-R$libdir'
16625 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16626 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16636 hardcode_libdir_flag_spec_F77='-L$libdir'
16637 hardcode_minus_L_F77=yes
16638 allow_undefined_flag_F77=unsupported
16639 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'
16640 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16644 if test "$GCC" = yes; then
16645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16646 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'
16648 allow_undefined_flag_F77=' -expect_unresolved \*'
16649 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'
16651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16652 hardcode_libdir_separator_F77=:
16655 osf4* | osf5*) # as osf3* with the addition of -msym flag
16656 if test "$GCC" = yes; then
16657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16658 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'
16659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16661 allow_undefined_flag_F77=' -expect_unresolved \*'
16662 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'
16663 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~
16664 $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'
16666 # Both c and cxx compiler support -rpath directly
16667 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16669 hardcode_libdir_separator_F77=:
16673 no_undefined_flag_F77=' -z text'
16674 if test "$GCC" = yes; then
16676 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16681 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16685 hardcode_libdir_flag_spec_F77='-R$libdir'
16686 hardcode_shlibpath_var_F77=no
16688 solaris2.[0-5] | solaris2.[0-5].*) ;;
16690 # The compiler driver will combine and reorder linker options,
16691 # but understands `-z linker_flag'. GCC discards it without `$wl',
16692 # but is careful enough not to reorder.
16693 # Supported since Solaris 2.6 (maybe 2.5.1?)
16694 if test "$GCC" = yes; then
16695 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16697 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16701 link_all_deplibs_F77=yes
16705 if test "x$host_vendor" = xsequent; then
16706 # Use $CC to link under sequent, because it throws in some extra .o
16707 # files that make .init and .fini sections work.
16708 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_libdir_flag_spec_F77='-L$libdir'
16713 hardcode_direct_F77=yes
16714 hardcode_minus_L_F77=yes
16715 hardcode_shlibpath_var_F77=no
16719 case $host_vendor in
16721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct_F77=yes # is this really true???
16725 ## LD is ld it makes a PLAMLIB
16726 ## CC just makes a GrossModule.
16727 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16728 reload_cmds_F77='$CC -r -o $output$reload_objs'
16729 hardcode_direct_F77=no
16732 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16733 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16736 runpath_var='LD_RUN_PATH'
16737 hardcode_shlibpath_var_F77=no
16741 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_shlibpath_var_F77=no
16743 export_dynamic_flag_spec_F77='-Bexport'
16747 if test -d /usr/nec; then
16748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749 hardcode_shlibpath_var_F77=no
16750 runpath_var=LD_RUN_PATH
16751 hardcode_runpath_var=yes
16756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16757 no_undefined_flag_F77='${wl}-z,text'
16758 archive_cmds_need_lc_F77=no
16759 hardcode_shlibpath_var_F77=no
16760 runpath_var='LD_RUN_PATH'
16762 if test "$GCC" = yes; then
16763 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16764 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16766 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 sysv5* | sco3.2v5* | sco5v6*)
16772 # Note: We can NOT use -z defs as we might desire, because we do not
16773 # link with -lc, and that would cause any symbols used from libc to
16774 # always be unresolved, which means just about no library would
16775 # ever link correctly. If we're not using GNU ld we use -z text
16776 # though, which does catch some bad symbols but isn't as heavy-handed
16778 no_undefined_flag_F77='${wl}-z,text'
16779 allow_undefined_flag_F77='${wl}-z,nodefs'
16780 archive_cmds_need_lc_F77=no
16781 hardcode_shlibpath_var_F77=no
16782 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16783 hardcode_libdir_separator_F77=':'
16784 link_all_deplibs_F77=yes
16785 export_dynamic_flag_spec_F77='${wl}-Bexport'
16786 runpath_var='LD_RUN_PATH'
16788 if test "$GCC" = yes; then
16789 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_libdir_flag_spec_F77='-L$libdir'
16800 hardcode_shlibpath_var_F77=no
16809 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16810 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16811 test "$ld_shlibs_F77" = no && can_build_shared=no
16814 # Do we need to explicitly link libc?
16816 case "x$archive_cmds_need_lc_F77" in
16818 # Assume -lc should be added
16819 archive_cmds_need_lc_F77=yes
16821 if test "$enable_shared" = yes && test "$GCC" = yes; then
16822 case $archive_cmds_F77 in
16824 # FIXME: we may have to deal with multi-command sequences.
16827 # Test whether the compiler implicitly links with -lc since on some
16828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16829 # to ld, don't add -lc before -lgcc.
16830 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16836 (eval $ac_compile) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } 2>conftest.err; then
16842 libobjs=conftest.$ac_objext
16844 wl=$lt_prog_compiler_wl_F77
16845 pic_flag=$lt_prog_compiler_pic_F77
16851 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16852 allow_undefined_flag_F77=
16853 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16854 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }
16859 archive_cmds_need_lc_F77=no
16861 archive_cmds_need_lc_F77=yes
16863 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16865 cat conftest.err 1>&5
16868 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16869 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16876 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16878 library_names_spec=
16879 libname_spec='lib$name'
16883 postuninstall_cmds=
16887 shlibpath_overrides_runpath=unknown
16889 dynamic_linker="$host_os ld.so"
16890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16892 need_lib_prefix=unknown
16893 hardcode_into_libs=no
16895 # when you set need_version to no, make sure it does not cause -set_version
16896 # flags to be left without arguments
16897 need_version=unknown
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16903 shlibpath_var=LIBPATH
16905 # AIX 3 has no versioning support, so we append a major version to the name.
16906 soname_spec='${libname}${release}${shared_ext}$major'
16913 hardcode_into_libs=yes
16914 if test "$host_cpu" = ia64; then
16915 # AIX 5 supports IA64
16916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16917 shlibpath_var=LD_LIBRARY_PATH
16919 # With GCC up to 2.95.x, collect2 would create an import file
16920 # for dependence libraries. The import file would start with
16921 # the line `#! .'. This would cause the generated library to
16922 # depend on `.', always an invalid library. This was fixed in
16923 # development snapshots of GCC prior to 3.0.
16925 aix4 | aix4.[01] | aix4.[01].*)
16926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16931 can_build_shared=no
16935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16936 # soname into executable. Probably we can add versioning support to
16937 # collect2, so additional links can be useful in future.
16938 if test "$aix_use_runtimelinking" = yes; then
16939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16940 # instead of lib<name>.a to let people know that these are not
16941 # typical AIX shared libraries.
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 # We preserve .a as extension for shared libraries through AIX4.2
16945 # and later when we are not doing run time linking.
16946 library_names_spec='${libname}${release}.a $libname.a'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LIBPATH
16954 library_names_spec='$libname.ixlibrary $libname.a'
16955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16956 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'
16960 library_names_spec='${libname}${shared_ext}'
16961 dynamic_linker="$host_os ld.so"
16962 shlibpath_var=LIBRARY_PATH
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16974 # the default ld.so.conf also contains /usr/contrib/lib and
16975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16976 # libtool to hard-code these into programs
16979 cygwin* | mingw* | pw32*)
16980 version_type=windows
16985 case $GCC,$host_os in
16986 yes,cygwin* | yes,mingw* | yes,pw32*)
16987 library_names_spec='$libname.dll.a'
16988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16989 postinstall_cmds='base_file=`basename \${file}`~
16990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16991 dldir=$destdir/`dirname \$dlpath`~
16992 test -d \$dldir || mkdir -p \$dldir~
16993 $install_prog $dir/$dlname \$dldir/$dlname~
16994 chmod a+x \$dldir/$dlname'
16995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16996 dlpath=$dir/\$dldll~
16998 shlibpath_overrides_runpath=yes
17002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17007 # MinGW DLLs use traditional 'lib' prefix
17008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17011 # It is most probably a Windows format PATH printed by
17012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17013 # path with ; separators, and with drive letters. We can handle the
17014 # drive letters (cygwin fileutils understands them), so leave them,
17015 # especially as we might pass files found there to a mingw objdump,
17016 # which wouldn't understand a cygwinified path. Ahh.
17017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17023 # pw32 DLLs use 'pw' prefix rather than 'lib'
17024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17033 dynamic_linker='Win32 ld.exe'
17034 # FIXME: first we should search . and the directory the executable is in
17038 darwin* | rhapsody*)
17039 dynamic_linker="$host_os dyld"
17040 version_type=darwin
17043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17044 soname_spec='${libname}${release}${major}$shared_ext'
17045 shlibpath_overrides_runpath=yes
17046 shlibpath_var=DYLD_LIBRARY_PATH
17047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17065 freebsd* | dragonfly*)
17066 # DragonFly does not have aout. When/if they implement a new
17067 # versioning mechanism, adjust this.
17068 if test -x /usr/bin/objformat; then
17069 objformat=`/usr/bin/objformat`
17072 freebsd[123]*) objformat=aout ;;
17073 *) objformat=elf ;;
17076 version_type=freebsd-$objformat
17077 case $version_type in
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17088 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes
17093 freebsd3.[01]* | freebsdelf3.[01]*)
17094 shlibpath_overrides_runpath=yes
17095 hardcode_into_libs=yes
17097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17099 shlibpath_overrides_runpath=no
17100 hardcode_into_libs=yes
17102 *) # from 4.6 on, and DragonFly
17103 shlibpath_overrides_runpath=yes
17104 hardcode_into_libs=yes
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 hardcode_into_libs=yes
17119 hpux9* | hpux10* | hpux11*)
17120 # Give a soname corresponding to the major version so that dld.sl refuses to
17121 # link against other versions.
17128 hardcode_into_libs=yes
17129 dynamic_linker="$host_os dld.so"
17130 shlibpath_var=LD_LIBRARY_PATH
17131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 if test "X$HPUX_IA64_MODE" = X32; then
17135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17143 hardcode_into_libs=yes
17144 dynamic_linker="$host_os dld.sl"
17145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154 dynamic_linker="$host_os dld.sl"
17155 shlibpath_var=SHLIB_PATH
17156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17162 postinstall_cmds='chmod 555 $lib'
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17177 irix5* | irix6* | nonstopux*)
17179 nonstopux*) version_type=nonstopux ;;
17181 if test "$lt_cv_prog_gnu_ld" = yes; then
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17192 irix5* | nonstopux*)
17193 libsuff= shlibsuff=
17196 case $LD in # libtool.m4 will add one of these switches to LD
17197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17198 libsuff= shlibsuff= libmagic=32-bit;;
17199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17200 libsuff=32 shlibsuff=N32 libmagic=N32;;
17201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17203 *) libsuff= shlibsuff= libmagic=never-match;;
17207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17208 shlibpath_overrides_runpath=no
17209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17211 hardcode_into_libs=yes
17214 # No shared lib support for Linux oldld, aout, or coff.
17215 linux*oldld* | linux*aout* | linux*coff*)
17219 # This must be Linux ELF.
17220 linux* | k*bsd*-gnu)
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath=no
17229 # This implies no fast_install, which is unacceptable.
17230 # Some rework will be needed to allow for fast_install
17231 # before this can be enabled.
17232 hardcode_into_libs=yes
17234 # Append ld.so.conf contents to the search path
17235 if test -f /etc/ld.so.conf; then
17236 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17240 # We used to test for /lib/ld.so.1 and disable shared libraries on
17241 # powerpc, because MkLinux only supported shared libraries with the
17242 # GNU dynamic linker. Since this was broken with cross compilers,
17243 # most powerpc-linux boxes support dynamic linking these days and
17244 # people can always --disable-shared, the test was removed, and we
17245 # assume the GNU/Linux dynamic linker is in use.
17246 dynamic_linker='GNU/Linux ld.so'
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=no
17257 hardcode_into_libs=yes
17258 dynamic_linker='NetBSD ld.elf_so'
17265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17268 dynamic_linker='NetBSD (a.out) ld.so'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 dynamic_linker='NetBSD ld.elf_so'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
17276 hardcode_into_libs=yes
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=yes
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17298 sys_lib_dlsearch_path_spec="/usr/lib"
17300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17303 *) need_version=no ;;
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17310 openbsd2.[89] | openbsd2.[89].*)
17311 shlibpath_overrides_runpath=no
17314 shlibpath_overrides_runpath=yes
17318 shlibpath_overrides_runpath=yes
17323 libname_spec='$name'
17326 library_names_spec='$libname${shared_ext} $libname.a'
17327 dynamic_linker='OS/2 ld.exe'
17328 shlibpath_var=LIBPATH
17331 osf3* | osf4* | osf5*)
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 shlibpath_overrides_runpath=yes
17354 hardcode_into_libs=yes
17355 # ldd complains unless libraries are executable
17356 postinstall_cmds='chmod +x $lib'
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 shlibpath_overrides_runpath=yes
17365 if test "$with_gnu_ld" = yes; then
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 case $host_vendor in
17378 shlibpath_overrides_runpath=no
17380 export_dynamic_flag_spec='${wl}-Blargedynsym'
17381 runpath_var=LD_RUN_PATH
17389 shlibpath_overrides_runpath=no
17390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17396 if test -d /usr/nec ;then
17398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17399 soname_spec='$libname${shared_ext}.$major'
17400 shlibpath_var=LD_LIBRARY_PATH
17404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17405 version_type=freebsd-elf
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 hardcode_into_libs=yes
17412 if test "$with_gnu_ld" = yes; then
17413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17414 shlibpath_overrides_runpath=no
17416 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17417 shlibpath_overrides_runpath=yes
17420 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17424 sys_lib_dlsearch_path_spec='/usr/lib'
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17438 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439 echo "${ECHO_T}$dynamic_linker" >&6; }
17440 test "$dynamic_linker" = no && can_build_shared=no
17442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17443 if test "$GCC" = yes; then
17444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17447 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17449 hardcode_action_F77=
17450 if test -n "$hardcode_libdir_flag_spec_F77" || \
17451 test -n "$runpath_var_F77" || \
17452 test "X$hardcode_automatic_F77" = "Xyes" ; then
17454 # We can hardcode non-existant directories.
17455 if test "$hardcode_direct_F77" != no &&
17456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17457 # have to relink, otherwise we might link with an installed library
17458 # when we should be linking with a yet-to-be-installed one
17459 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17460 test "$hardcode_minus_L_F77" != no; then
17461 # Linking always hardcodes the temporary library directory.
17462 hardcode_action_F77=relink
17464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17465 hardcode_action_F77=immediate
17468 # We cannot hardcode anything, or else we can only hardcode existing
17470 hardcode_action_F77=unsupported
17472 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17473 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17475 if test "$hardcode_action_F77" = relink; then
17476 # Fast installation is not supported
17477 enable_fast_install=no
17478 elif test "$shlibpath_overrides_runpath" = yes ||
17479 test "$enable_shared" = no; then
17480 # Fast installation is not necessary
17481 enable_fast_install=needless
17485 # The else clause should only fire when bootstrapping the
17486 # libtool distribution, otherwise you forgot to ship ltmain.sh
17487 # with your package, and you will get complaints that there are
17488 # no rules to generate ltmain.sh.
17489 if test -f "$ltmain"; then
17490 # See if we are running on zsh, and set the options which allow our commands through
17491 # without removal of \ escapes.
17492 if test -n "${ZSH_VERSION+set}" ; then
17493 setopt NO_GLOB_SUBST
17495 # Now quote all the things that may contain metacharacters while being
17496 # careful not to overquote the AC_SUBSTed values. We take copies of the
17497 # variables and quote the copies for generation of the libtool script.
17498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17500 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17501 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17502 deplibs_check_method reload_flag reload_cmds need_locks \
17503 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17504 lt_cv_sys_global_symbol_to_c_name_address \
17505 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17506 old_postinstall_cmds old_postuninstall_cmds \
17510 lt_prog_compiler_wl_F77 \
17511 lt_prog_compiler_pic_F77 \
17512 lt_prog_compiler_static_F77 \
17513 lt_prog_compiler_no_builtin_flag_F77 \
17514 export_dynamic_flag_spec_F77 \
17515 thread_safe_flag_spec_F77 \
17516 whole_archive_flag_spec_F77 \
17517 enable_shared_with_static_runtimes_F77 \
17518 old_archive_cmds_F77 \
17519 old_archive_from_new_cmds_F77 \
17520 predep_objects_F77 \
17521 postdep_objects_F77 \
17524 compiler_lib_search_path_F77 \
17526 archive_expsym_cmds_F77 \
17527 postinstall_cmds_F77 \
17528 postuninstall_cmds_F77 \
17529 old_archive_from_expsyms_cmds_F77 \
17530 allow_undefined_flag_F77 \
17531 no_undefined_flag_F77 \
17532 export_symbols_cmds_F77 \
17533 hardcode_libdir_flag_spec_F77 \
17534 hardcode_libdir_flag_spec_ld_F77 \
17535 hardcode_libdir_separator_F77 \
17536 hardcode_automatic_F77 \
17538 module_expsym_cmds_F77 \
17539 lt_cv_prog_compiler_c_o_F77 \
17540 fix_srcfile_path_F77 \
17541 exclude_expsyms_F77 \
17542 include_expsyms_F77; do
17545 old_archive_cmds_F77 | \
17546 old_archive_from_new_cmds_F77 | \
17547 archive_cmds_F77 | \
17548 archive_expsym_cmds_F77 | \
17549 module_cmds_F77 | \
17550 module_expsym_cmds_F77 | \
17551 old_archive_from_expsyms_cmds_F77 | \
17552 export_symbols_cmds_F77 | \
17553 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17554 postinstall_cmds | postuninstall_cmds | \
17555 old_postinstall_cmds | old_postuninstall_cmds | \
17556 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17557 # Double-quote double-evaled strings.
17558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17567 *'\$0 --fallback-echo"')
17568 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17574 cat <<__EOF__ >> "$cfgfile"
17575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17579 # Shell to use when invoking shell scripts.
17582 # Whether or not to build shared libraries.
17583 build_libtool_libs=$enable_shared
17585 # Whether or not to build static libraries.
17586 build_old_libs=$enable_static
17588 # Whether or not to add -lc for building shared libraries.
17589 build_libtool_need_lc=$archive_cmds_need_lc_F77
17591 # Whether or not to disallow shared libs when runtime libs are static
17592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17594 # Whether or not to optimize for fast installation.
17595 fast_install=$enable_fast_install
17598 host_alias=$host_alias
17602 # The build system.
17603 build_alias=$build_alias
17607 # An echo program that does not interpret backslashes.
17612 AR_FLAGS=$lt_AR_FLAGS
17617 # LTCC compiler flags.
17618 LTCFLAGS=$lt_LTCFLAGS
17620 # A language-specific compiler.
17621 CC=$lt_compiler_F77
17623 # Is the compiler the GNU C compiler?
17629 # The linker used to build libraries.
17632 # Whether we need hard or soft links.
17635 # A BSD-compatible nm program.
17638 # A symbol stripping program
17641 # Used to examine libraries when file_magic_cmd begins "file"
17642 MAGIC_CMD=$MAGIC_CMD
17644 # Used on cygwin: DLL creation program.
17647 # Used on cygwin: object dumper.
17650 # Used on cygwin: assembler.
17653 # The name of the directory that contains temporary libtool files.
17656 # How to create reloadable object files.
17657 reload_flag=$lt_reload_flag
17658 reload_cmds=$lt_reload_cmds
17660 # How to pass a linker flag through the compiler.
17661 wl=$lt_lt_prog_compiler_wl_F77
17663 # Object file suffix (normally "o").
17664 objext="$ac_objext"
17666 # Old archive suffix (normally "a").
17669 # Shared library suffix (normally ".so").
17670 shrext_cmds='$shrext_cmds'
17672 # Executable file suffix (normally "").
17675 # Additional compiler flags for building library objects.
17676 pic_flag=$lt_lt_prog_compiler_pic_F77
17679 # What is the maximum length of a command?
17680 max_cmd_len=$lt_cv_sys_max_cmd_len
17682 # Does compiler simultaneously support -c and -o options?
17683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17685 # Must we lock files when doing compilation?
17686 need_locks=$lt_need_locks
17688 # Do we need the lib prefix for modules?
17689 need_lib_prefix=$need_lib_prefix
17691 # Do we need a version for libraries?
17692 need_version=$need_version
17694 # Whether dlopen is supported.
17695 dlopen_support=$enable_dlopen
17697 # Whether dlopen of programs is supported.
17698 dlopen_self=$enable_dlopen_self
17700 # Whether dlopen of statically linked programs is supported.
17701 dlopen_self_static=$enable_dlopen_self_static
17703 # Compiler flag to prevent dynamic linking.
17704 link_static_flag=$lt_lt_prog_compiler_static_F77
17706 # Compiler flag to turn off builtin functions.
17707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17709 # Compiler flag to allow reflexive dlopens.
17710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17712 # Compiler flag to generate shared objects directly from archives.
17713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17715 # Compiler flag to generate thread-safe objects.
17716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17718 # Library versioning type.
17719 version_type=$version_type
17721 # Format of library name prefix.
17722 libname_spec=$lt_libname_spec
17724 # List of archive names. First name is the real one, the rest are links.
17725 # The last name is the one that the linker finds with -lNAME.
17726 library_names_spec=$lt_library_names_spec
17728 # The coded name of the library, if different from the real name.
17729 soname_spec=$lt_soname_spec
17731 # Commands used to build and install an old-style archive.
17733 old_archive_cmds=$lt_old_archive_cmds_F77
17734 old_postinstall_cmds=$lt_old_postinstall_cmds
17735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17737 # Create an old-style archive from a shared archive.
17738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17740 # Create a temporary old-style archive to link instead of a shared archive.
17741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17743 # Commands used to build and install a shared archive.
17744 archive_cmds=$lt_archive_cmds_F77
17745 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17746 postinstall_cmds=$lt_postinstall_cmds
17747 postuninstall_cmds=$lt_postuninstall_cmds
17749 # Commands used to build a loadable module (assumed same as above if empty)
17750 module_cmds=$lt_module_cmds_F77
17751 module_expsym_cmds=$lt_module_expsym_cmds_F77
17753 # Commands to strip libraries.
17754 old_striplib=$lt_old_striplib
17755 striplib=$lt_striplib
17757 # Dependencies to place before the objects being linked to create a
17759 predep_objects=$lt_predep_objects_F77
17761 # Dependencies to place after the objects being linked to create a
17763 postdep_objects=$lt_postdep_objects_F77
17765 # Dependencies to place before the objects being linked to create a
17767 predeps=$lt_predeps_F77
17769 # Dependencies to place after the objects being linked to create a
17771 postdeps=$lt_postdeps_F77
17773 # The library search path used internally by the compiler when linking
17774 # a shared library.
17775 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17777 # Method to check whether dependent libraries are shared objects.
17778 deplibs_check_method=$lt_deplibs_check_method
17780 # Command to use when deplibs_check_method == file_magic.
17781 file_magic_cmd=$lt_file_magic_cmd
17783 # Flag that allows shared libraries with undefined symbols to be built.
17784 allow_undefined_flag=$lt_allow_undefined_flag_F77
17786 # Flag that forces no undefined symbols.
17787 no_undefined_flag=$lt_no_undefined_flag_F77
17789 # Commands used to finish a libtool library installation in a directory.
17790 finish_cmds=$lt_finish_cmds
17792 # Same as above, but a single script fragment to be evaled but not shown.
17793 finish_eval=$lt_finish_eval
17795 # Take the output of nm and produce a listing of raw symbols and C names.
17796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17798 # Transform the output of nm in a proper C declaration
17799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17801 # Transform the output of nm in a C name address pair
17802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17804 # This is the shared library runtime path variable.
17805 runpath_var=$runpath_var
17807 # This is the shared library path variable.
17808 shlibpath_var=$shlibpath_var
17810 # Is shlibpath searched before the hard-coded library search path?
17811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17813 # How to hardcode a shared library path into an executable.
17814 hardcode_action=$hardcode_action_F77
17816 # Whether we should hardcode library paths into libraries.
17817 hardcode_into_libs=$hardcode_into_libs
17819 # Flag to hardcode \$libdir into a binary during linking.
17820 # This must work even if \$libdir does not exist.
17821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17823 # If ld is used when linking, flag to hardcode \$libdir into
17824 # a binary during linking. This must work even if \$libdir does
17826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17828 # Whether we need a single -rpath flag with a separated argument.
17829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17832 # resulting binary.
17833 hardcode_direct=$hardcode_direct_F77
17835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17836 # resulting binary.
17837 hardcode_minus_L=$hardcode_minus_L_F77
17839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17840 # the resulting binary.
17841 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17843 # Set to yes if building a shared library automatically hardcodes DIR into the library
17844 # and all subsequent libraries and executables linked against it.
17845 hardcode_automatic=$hardcode_automatic_F77
17847 # Variables whose values should be saved in libtool wrapper scripts and
17848 # restored at relink time.
17849 variables_saved_for_relink="$variables_saved_for_relink"
17851 # Whether libtool must link a program against all its dependency libraries.
17852 link_all_deplibs=$link_all_deplibs_F77
17854 # Compile-time system search path for libraries
17855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17857 # Run-time system search path for libraries
17858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17860 # Fix the shell variable \$srcfile for the compiler.
17861 fix_srcfile_path=$lt_fix_srcfile_path
17863 # Set to yes if exported symbols are required.
17864 always_export_symbols=$always_export_symbols_F77
17866 # The commands to list exported symbols.
17867 export_symbols_cmds=$lt_export_symbols_cmds_F77
17869 # The commands to extract the exported symbol list from a shared archive.
17870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17872 # Symbols that should not be listed in the preloaded symbols.
17873 exclude_expsyms=$lt_exclude_expsyms_F77
17875 # Symbols that must always be exported.
17876 include_expsyms=$lt_include_expsyms_F77
17878 # ### END LIBTOOL TAG CONFIG: $tagname
17884 # If there is no Makefile yet, we rely on a make rule to execute
17885 # `config.status --recheck' to rerun these tests and create the
17886 # libtool script then.
17887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17888 if test -f "$ltmain_in"; then
17889 test -f Makefile && make "$ltmain"
17895 ac_cpp='$CPP $CPPFLAGS'
17896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17908 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17911 # Source file extension for Java test sources.
17914 # Object file extension for compiled Java test sources.
17918 # Code to be used in simple compile tests
17919 lt_simple_compile_test_code="class foo {}"
17921 # Code to be used in simple link tests
17922 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17926 # If no C compiler was specified, use CC.
17929 # If no C compiler flags were specified, use CFLAGS.
17930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17932 # Allow CC to be a program name with arguments.
17936 # save warnings/boilerplate of simple test code
17937 ac_outfile=conftest.$ac_objext
17938 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17939 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17940 _lt_compiler_boilerplate=`cat conftest.err`
17943 ac_outfile=conftest.$ac_objext
17944 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17945 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17946 _lt_linker_boilerplate=`cat conftest.err`
17950 # Allow CC to be a program name with arguments.
17955 for cc_temp in $compiler""; do
17957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17963 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17966 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17967 archive_cmds_need_lc_GCJ=no
17969 old_archive_cmds_GCJ=$old_archive_cmds
17972 lt_prog_compiler_no_builtin_flag_GCJ=
17974 if test "$GCC" = yes; then
17975 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17978 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17980 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 lt_cv_prog_compiler_rtti_exceptions=no
17984 ac_outfile=conftest.$ac_objext
17985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17986 lt_compiler_flag="-fno-rtti -fno-exceptions"
17987 # Insert the option either (1) after the last *FLAGS variable, or
17988 # (2) before a word containing "conftest.", or (3) at the end.
17989 # Note that $ac_compile itself does not contain backslashes and begins
17990 # with a dollar sign (not a hyphen), so the echo should work correctly.
17991 # The option is referenced via a variable to avoid confusing sed.
17992 lt_compile=`echo "$ac_compile" | $SED \
17993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17995 -e 's:$: $lt_compiler_flag:'`
17996 (eval echo "\"\$as_me:17996: $lt_compile\"" >&5)
17997 (eval "$lt_compile" 2>conftest.err)
17999 cat conftest.err >&5
18000 echo "$as_me:18000: \$? = $ac_status" >&5
18001 if (exit $ac_status) && test -s "$ac_outfile"; then
18002 # The compiler can only warn and ignore the option if not recognized
18003 # So say no if there are warnings other than the usual output.
18004 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18006 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18007 lt_cv_prog_compiler_rtti_exceptions=yes
18013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18014 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18016 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18017 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18024 lt_prog_compiler_wl_GCJ=
18025 lt_prog_compiler_pic_GCJ=
18026 lt_prog_compiler_static_GCJ=
18028 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18031 if test "$GCC" = yes; then
18032 lt_prog_compiler_wl_GCJ='-Wl,'
18033 lt_prog_compiler_static_GCJ='-static'
18037 # All AIX code is PIC.
18038 if test "$host_cpu" = ia64; then
18039 # AIX 5 now supports IA64 processor
18040 lt_prog_compiler_static_GCJ='-Bstatic'
18045 # FIXME: we need at least 68020 code to build shared libraries, but
18046 # adding the `-m68020' flag to GCC prevents building anything better,
18048 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18052 # PIC is the default for these OSes.
18055 mingw* | cygwin* | pw32* | os2*)
18056 # This hack is so that the source file can tell whether it is being
18057 # built for inclusion in a dll (and should export symbols for example).
18058 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18059 # (--disable-auto-import) libraries
18060 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18063 darwin* | rhapsody*)
18064 # PIC is the default on this platform
18065 # Common symbols not allowed in MH_DYLIB files
18066 lt_prog_compiler_pic_GCJ='-fno-common'
18070 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18071 # Instead, we relocate shared libraries at runtime.
18075 # Just because we use GCC doesn't mean we suddenly get shared libraries
18076 # on systems that don't support them.
18077 lt_prog_compiler_can_build_shared_GCJ=no
18082 if test -d /usr/nec; then
18083 lt_prog_compiler_pic_GCJ=-Kconform_pic
18088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18089 # not for PA HP-UX.
18095 lt_prog_compiler_pic_GCJ='-fPIC'
18101 lt_prog_compiler_pic_GCJ='-fPIC'
18105 # PORTME Check for flag to pass linker flags through the system compiler.
18108 lt_prog_compiler_wl_GCJ='-Wl,'
18109 if test "$host_cpu" = ia64; then
18110 # AIX 5 now supports IA64 processor
18111 lt_prog_compiler_static_GCJ='-Bstatic'
18113 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18117 # PIC is the default on this platform
18118 # Common symbols not allowed in MH_DYLIB files
18119 case $cc_basename in
18121 lt_prog_compiler_pic_GCJ='-qnocommon'
18122 lt_prog_compiler_wl_GCJ='-Wl,'
18127 mingw* | cygwin* | pw32* | os2*)
18128 # This hack is so that the source file can tell whether it is being
18129 # built for inclusion in a dll (and should export symbols for example).
18130 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18133 hpux9* | hpux10* | hpux11*)
18134 lt_prog_compiler_wl_GCJ='-Wl,'
18135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18136 # not for PA HP-UX.
18142 lt_prog_compiler_pic_GCJ='+Z'
18145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18146 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18149 irix5* | irix6* | nonstopux*)
18150 lt_prog_compiler_wl_GCJ='-Wl,'
18151 # PIC (with -KPIC) is the default.
18152 lt_prog_compiler_static_GCJ='-non_shared'
18156 lt_prog_compiler_pic_GCJ='-KPIC'
18157 lt_prog_compiler_static_GCJ='-Bstatic'
18160 linux* | k*bsd*-gnu)
18161 case $cc_basename in
18163 lt_prog_compiler_wl_GCJ='-Wl,'
18164 lt_prog_compiler_pic_GCJ='-KPIC'
18165 lt_prog_compiler_static_GCJ='-static'
18167 pgcc* | pgf77* | pgf90* | pgf95*)
18168 # Portland Group compilers (*not* the Pentium gcc compiler,
18169 # which looks to be a dead project)
18170 lt_prog_compiler_wl_GCJ='-Wl,'
18171 lt_prog_compiler_pic_GCJ='-fpic'
18172 lt_prog_compiler_static_GCJ='-Bstatic'
18175 lt_prog_compiler_wl_GCJ='-Wl,'
18176 # All Alpha code is PIC.
18177 lt_prog_compiler_static_GCJ='-non_shared'
18180 case `$CC -V 2>&1 | sed 5q` in
18183 lt_prog_compiler_pic_GCJ='-KPIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 lt_prog_compiler_wl_GCJ='-Wl,'
18188 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18189 lt_prog_compiler_pic_GCJ='-KPIC'
18190 lt_prog_compiler_static_GCJ='-Bstatic'
18191 lt_prog_compiler_wl_GCJ=''
18198 osf3* | osf4* | osf5*)
18199 lt_prog_compiler_wl_GCJ='-Wl,'
18200 # All OSF/1 code is PIC.
18201 lt_prog_compiler_static_GCJ='-non_shared'
18205 lt_prog_compiler_static_GCJ='-non_shared'
18209 lt_prog_compiler_pic_GCJ='-KPIC'
18210 lt_prog_compiler_static_GCJ='-Bstatic'
18211 case $cc_basename in
18212 f77* | f90* | f95*)
18213 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18215 lt_prog_compiler_wl_GCJ='-Wl,';;
18220 lt_prog_compiler_wl_GCJ='-Qoption ld '
18221 lt_prog_compiler_pic_GCJ='-PIC'
18222 lt_prog_compiler_static_GCJ='-Bstatic'
18225 sysv4 | sysv4.2uw2* | sysv4.3*)
18226 lt_prog_compiler_wl_GCJ='-Wl,'
18227 lt_prog_compiler_pic_GCJ='-KPIC'
18228 lt_prog_compiler_static_GCJ='-Bstatic'
18232 if test -d /usr/nec ;then
18233 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18234 lt_prog_compiler_static_GCJ='-Bstatic'
18238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18239 lt_prog_compiler_wl_GCJ='-Wl,'
18240 lt_prog_compiler_pic_GCJ='-KPIC'
18241 lt_prog_compiler_static_GCJ='-Bstatic'
18245 lt_prog_compiler_wl_GCJ='-Wl,'
18246 lt_prog_compiler_can_build_shared_GCJ=no
18250 lt_prog_compiler_pic_GCJ='-pic'
18251 lt_prog_compiler_static_GCJ='-Bstatic'
18255 lt_prog_compiler_can_build_shared_GCJ=no
18260 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18261 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18264 # Check to make sure the PIC flag actually works.
18266 if test -n "$lt_prog_compiler_pic_GCJ"; then
18268 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18269 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18270 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 lt_prog_compiler_pic_works_GCJ=no
18274 ac_outfile=conftest.$ac_objext
18275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18276 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18277 # Insert the option either (1) after the last *FLAGS variable, or
18278 # (2) before a word containing "conftest.", or (3) at the end.
18279 # Note that $ac_compile itself does not contain backslashes and begins
18280 # with a dollar sign (not a hyphen), so the echo should work correctly.
18281 # The option is referenced via a variable to avoid confusing sed.
18282 lt_compile=`echo "$ac_compile" | $SED \
18283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18285 -e 's:$: $lt_compiler_flag:'`
18286 (eval echo "\"\$as_me:18286: $lt_compile\"" >&5)
18287 (eval "$lt_compile" 2>conftest.err)
18289 cat conftest.err >&5
18290 echo "$as_me:18290: \$? = $ac_status" >&5
18291 if (exit $ac_status) && test -s "$ac_outfile"; then
18292 # The compiler can only warn and ignore the option if not recognized
18293 # So say no if there are warnings other than the usual output.
18294 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18297 lt_prog_compiler_pic_works_GCJ=yes
18303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18304 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18306 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18307 case $lt_prog_compiler_pic_GCJ in
18309 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18312 lt_prog_compiler_pic_GCJ=
18313 lt_prog_compiler_can_build_shared_GCJ=no
18318 # For platforms which do not support PIC, -DPIC is meaningless:
18320 lt_prog_compiler_pic_GCJ=
18323 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18328 # Check to make sure the static flag actually works.
18330 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18331 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18332 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18333 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 lt_prog_compiler_static_works_GCJ=no
18337 save_LDFLAGS="$LDFLAGS"
18338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18341 # The linker can only warn and ignore the option if not recognized
18342 # So say no if there are warnings
18343 if test -s conftest.err; then
18344 # Append any errors to the config.log.
18345 cat conftest.err 1>&5
18346 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18348 if diff conftest.exp conftest.er2 >/dev/null; then
18349 lt_prog_compiler_static_works_GCJ=yes
18352 lt_prog_compiler_static_works_GCJ=yes
18356 LDFLAGS="$save_LDFLAGS"
18359 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18360 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18362 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18365 lt_prog_compiler_static_GCJ=
18369 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18370 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18371 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 lt_cv_prog_compiler_c_o_GCJ=no
18375 $rm -r conftest 2>/dev/null
18379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18381 lt_compiler_flag="-o out/conftest2.$ac_objext"
18382 # Insert the option either (1) after the last *FLAGS variable, or
18383 # (2) before a word containing "conftest.", or (3) at the end.
18384 # Note that $ac_compile itself does not contain backslashes and begins
18385 # with a dollar sign (not a hyphen), so the echo should work correctly.
18386 lt_compile=`echo "$ac_compile" | $SED \
18387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18389 -e 's:$: $lt_compiler_flag:'`
18390 (eval echo "\"\$as_me:18390: $lt_compile\"" >&5)
18391 (eval "$lt_compile" 2>out/conftest.err)
18393 cat out/conftest.err >&5
18394 echo "$as_me:18394: \$? = $ac_status" >&5
18395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18397 # The compiler can only warn and ignore the option if not recognized
18398 # So say no if there are warnings
18399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18402 lt_cv_prog_compiler_c_o_GCJ=yes
18407 # SGI C++ compiler will create directory out/ii_files/ for
18408 # template instantiation
18409 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18410 $rm out/* && rmdir out
18416 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18417 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18420 hard_links="nottested"
18421 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18422 # do not overwrite the value of need_locks provided by the user
18423 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18424 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18429 ln conftest.a conftest.b 2>&5 || hard_links=no
18430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18431 { echo "$as_me:$LINENO: result: $hard_links" >&5
18432 echo "${ECHO_T}$hard_links" >&6; }
18433 if test "$hard_links" = no; then
18434 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18435 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18442 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18443 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18446 allow_undefined_flag_GCJ=
18447 enable_shared_with_static_runtimes_GCJ=no
18449 archive_expsym_cmds_GCJ=
18450 old_archive_From_new_cmds_GCJ=
18451 old_archive_from_expsyms_cmds_GCJ=
18452 export_dynamic_flag_spec_GCJ=
18453 whole_archive_flag_spec_GCJ=
18454 thread_safe_flag_spec_GCJ=
18455 hardcode_libdir_flag_spec_GCJ=
18456 hardcode_libdir_flag_spec_ld_GCJ=
18457 hardcode_libdir_separator_GCJ=
18458 hardcode_direct_GCJ=no
18459 hardcode_minus_L_GCJ=no
18460 hardcode_shlibpath_var_GCJ=unsupported
18461 link_all_deplibs_GCJ=unknown
18462 hardcode_automatic_GCJ=no
18464 module_expsym_cmds_GCJ=
18465 always_export_symbols_GCJ=no
18466 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18467 # include_expsyms should be a list of space-separated symbols to be *always*
18468 # included in the symbol list
18469 include_expsyms_GCJ=
18470 # exclude_expsyms can be an extended regexp of symbols to exclude
18471 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18472 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18473 # as well as any symbol that contains `d'.
18474 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18475 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18476 # platforms (ab)use it in PIC code, but their linkers get confused if
18477 # the symbol is explicitly referenced. Since portable code cannot
18478 # rely on this symbol name, it's probably fine to never include it in
18479 # preloaded symbol tables.
18480 extract_expsyms_cmds=
18481 # Just being paranoid about ensuring that cc_basename is set.
18482 for cc_temp in $compiler""; do
18484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18490 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18493 cygwin* | mingw* | pw32*)
18494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18495 # When not using gcc, we currently assume that we are using
18496 # Microsoft Visual C++.
18497 if test "$GCC" != yes; then
18502 # we just hope/assume this is gcc and not c89 (= MSVC++)
18511 if test "$with_gnu_ld" = yes; then
18512 # If archive_cmds runs LD, not CC, wlarc should be empty
18515 # Set some defaults for GNU ld with shared library support. These
18516 # are reset later if shared libraries are not supported. Putting them
18517 # here allows them to be overridden if necessary.
18518 runpath_var=LD_RUN_PATH
18519 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18520 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18521 # ancient GNU ld didn't support --whole-archive et. al.
18522 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18523 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18525 whole_archive_flag_spec_GCJ=
18527 supports_anon_versioning=no
18528 case `$LD -v 2>/dev/null` in
18529 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18532 *\ 2.11.*) ;; # other 2.11 versions
18533 *) supports_anon_versioning=yes ;;
18536 # See if GNU ld supports shared libraries.
18538 aix3* | aix4* | aix5*)
18539 # On AIX/PPC, the GNU linker is very broken
18540 if test "$host_cpu" != ia64; then
18544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18545 *** to be unable to reliably create shared libraries on AIX.
18546 *** Therefore, libtool is disabling shared libraries support. If you
18547 *** really care for shared libraries, you may want to modify your PATH
18548 *** so that a non-GNU linker is found, and then restart.
18555 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)'
18556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557 hardcode_minus_L_GCJ=yes
18559 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18560 # that the semantics of dynamic libraries on AmigaOS, at least up
18561 # to version 4, is to share data among multiple programs linked
18562 # with the same dynamic library. Since this doesn't match the
18563 # behavior of shared libraries on other platforms, we can't use
18569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18570 allow_undefined_flag_GCJ=unsupported
18571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18572 # support --undefined. This deserves some investigation. FIXME
18573 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18579 cygwin* | mingw* | pw32*)
18580 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18581 # as there is no search path for DLLs.
18582 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18583 allow_undefined_flag_GCJ=unsupported
18584 always_export_symbols_GCJ=no
18585 enable_shared_with_static_runtimes_GCJ=yes
18586 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18588 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18589 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18590 # If the export-symbols file already is a .def file (1st line
18591 # is EXPORTS), use it as is; otherwise, prepend...
18592 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18593 cp $export_symbols $output_objdir/$soname.def;
18595 echo EXPORTS > $output_objdir/$soname.def;
18596 cat $export_symbols >> $output_objdir/$soname.def;
18598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18605 hardcode_direct_GCJ=no
18606 hardcode_shlibpath_var_GCJ=no
18607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18608 export_dynamic_flag_spec_GCJ='${wl}-E'
18609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18610 # Instead, shared libraries are loaded at an image base (0x10000000 by
18611 # default) and relocated if they conflict, which is a slow very memory
18612 # consuming and fragmenting process. To avoid this, we pick a random,
18613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18615 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'
18616 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'
18619 gnu* | linux* | k*bsd*-gnu)
18620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18622 case $cc_basename,$host_cpu in
18623 pgcc*) # Portland Group C compiler
18624 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'
18625 tmp_addflag=' $pic_flag'
18627 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18628 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'
18629 tmp_addflag=' $pic_flag -Mnomain' ;;
18630 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18631 tmp_addflag=' -i_dynamic' ;;
18632 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18633 tmp_addflag=' -i_dynamic -nofor_main' ;;
18634 ifc* | ifort*) # Intel Fortran compiler
18635 tmp_addflag=' -nofor_main' ;;
18637 case `$CC -V 2>&1 | sed 5q` in
18638 *Sun\ C*) # Sun C 5.9
18639 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18640 tmp_sharedflag='-G' ;;
18641 *Sun\ F*) # Sun Fortran 8.3
18642 tmp_sharedflag='-G' ;;
18644 tmp_sharedflag='-shared' ;;
18646 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18648 if test $supports_anon_versioning = yes; then
18649 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18651 $echo "local: *; };" >> $output_objdir/$libname.ver~
18652 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18654 link_all_deplibs_GCJ=no
18660 netbsd* | netbsdelf*-gnu)
18661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18662 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18665 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18666 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18671 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18676 *** create shared libraries on Solaris systems. Therefore, libtool
18677 *** is disabling shared libraries support. We urge you to upgrade GNU
18678 *** binutils to release 2.9.1 or newer. Another option is to modify
18679 *** your PATH or compiler configuration so that the native linker is
18680 *** used, and then restart.
18683 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18684 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18685 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18692 case `$LD -v 2>&1` in
18693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18698 *** reliably create shared libraries on SCO systems. Therefore, libtool
18699 *** is disabling shared libraries support. We urge you to upgrade GNU
18700 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18701 *** your PATH or compiler configuration so that the native linker is
18702 *** used, and then restart.
18707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18708 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18709 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18710 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18719 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18721 hardcode_direct_GCJ=yes
18722 hardcode_shlibpath_var_GCJ=no
18726 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18727 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18728 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18735 if test "$ld_shlibs_GCJ" = no; then
18737 hardcode_libdir_flag_spec_GCJ=
18738 export_dynamic_flag_spec_GCJ=
18739 whole_archive_flag_spec_GCJ=
18742 # PORTME fill in a description of your system's linker (not GNU ld)
18745 allow_undefined_flag_GCJ=unsupported
18746 always_export_symbols_GCJ=yes
18747 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'
18748 # Note: this linker hardcodes the directories in LIBPATH if there
18749 # are no directories specified by -L.
18750 hardcode_minus_L_GCJ=yes
18751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18752 # Neither direct hardcoding nor static linking is supported with a
18754 hardcode_direct_GCJ=unsupported
18759 if test "$host_cpu" = ia64; then
18760 # On IA64, the linker does run time linking by default, so we don't
18761 # have to do anything special.
18762 aix_use_runtimelinking=no
18763 exp_sym_flag='-Bexport'
18766 # If we're using GNU nm, then we don't want the "-C" option.
18767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18769 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'
18771 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'
18773 aix_use_runtimelinking=no
18775 # Test if we are trying to use run time linking or normal
18776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18777 # need to do runtime linking.
18778 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18779 for ld_flag in $LDFLAGS; do
18780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18781 aix_use_runtimelinking=yes
18788 exp_sym_flag='-bexport'
18789 no_entry_flag='-bnoentry'
18792 # When large executables or shared objects are built, AIX ld can
18793 # have problems creating the table of contents. If linking a library
18794 # or program results in "error TOC overflow" add -mminimal-toc to
18795 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18796 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18798 archive_cmds_GCJ=''
18799 hardcode_direct_GCJ=yes
18800 hardcode_libdir_separator_GCJ=':'
18801 link_all_deplibs_GCJ=yes
18803 if test "$GCC" = yes; then
18804 case $host_os in aix4.[012]|aix4.[012].*)
18805 # We only want to do this on AIX 4.2 and lower, the check
18806 # below for broken collect2 doesn't work under 4.3+
18807 collect2name=`${CC} -print-prog-name=collect2`
18808 if test -f "$collect2name" && \
18809 strings "$collect2name" | grep resolve_lib_name >/dev/null
18811 # We have reworked collect2
18814 # We have old collect2
18815 hardcode_direct_GCJ=unsupported
18816 # It fails to find uninstalled libraries when the uninstalled
18817 # path is not listed in the libpath. Setting hardcode_minus_L
18818 # to unsupported forces relinking
18819 hardcode_minus_L_GCJ=yes
18820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18821 hardcode_libdir_separator_GCJ=
18825 shared_flag='-shared'
18826 if test "$aix_use_runtimelinking" = yes; then
18827 shared_flag="$shared_flag "'${wl}-G'
18831 if test "$host_cpu" = ia64; then
18832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18833 # chokes on -Wl,-G. The following line is correct:
18836 if test "$aix_use_runtimelinking" = yes; then
18837 shared_flag='${wl}-G'
18839 shared_flag='${wl}-bM:SRE'
18844 # It seems that -bexpall does not export symbols beginning with
18845 # underscore (_), so it is better to generate a list of symbols to export.
18846 always_export_symbols_GCJ=yes
18847 if test "$aix_use_runtimelinking" = yes; then
18848 # Warning - without using the other runtime loading flags (-brtl),
18849 # -berok will link without error, but may produce a broken library.
18850 allow_undefined_flag_GCJ='-berok'
18851 # Determine the default libpath from the value encoded in an empty executable.
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } && {
18881 test -z "$ac_c_werror_flag" ||
18882 test ! -s conftest.err
18883 } && test -s conftest$ac_exeext &&
18884 $as_test_x conftest$ac_exeext; then
18886 lt_aix_libpath_sed='
18887 /Import File Strings/,/^$/ {
18893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18894 # Check for a 64-bit object if we didn't find anything.
18895 if test -z "$aix_libpath"; then
18896 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18906 conftest$ac_exeext conftest.$ac_ext
18907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18909 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18910 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"
18912 if test "$host_cpu" = ia64; then
18913 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18914 allow_undefined_flag_GCJ="-z nodefs"
18915 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"
18917 # Determine the default libpath from the value encoded in an empty executable.
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest$ac_exeext &&
18950 $as_test_x conftest$ac_exeext; then
18952 lt_aix_libpath_sed='
18953 /Import File Strings/,/^$/ {
18959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18960 # Check for a 64-bit object if we didn't find anything.
18961 if test -z "$aix_libpath"; then
18962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18975 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18976 # Warning - without using the other run time loading flags,
18977 # -berok will link without error, but may produce a broken library.
18978 no_undefined_flag_GCJ=' ${wl}-bernotok'
18979 allow_undefined_flag_GCJ=' ${wl}-berok'
18980 # Exported symbols can be pulled into shared objects from archives
18981 whole_archive_flag_spec_GCJ='$convenience'
18982 archive_cmds_need_lc_GCJ=yes
18983 # This is similar to how AIX traditionally builds its shared libraries.
18984 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'
18990 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)'
18991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18992 hardcode_minus_L_GCJ=yes
18993 # see comment about different semantics on the GNU ld section
18998 export_dynamic_flag_spec_GCJ=-rdynamic
19001 cygwin* | mingw* | pw32*)
19002 # When not using gcc, we currently assume that we are using
19003 # Microsoft Visual C++.
19004 # hardcode_libdir_flag_spec is actually meaningless, as there is
19005 # no search path for DLLs.
19006 hardcode_libdir_flag_spec_GCJ=' '
19007 allow_undefined_flag_GCJ=unsupported
19008 # Tell ltmain to make .lib files, not .a files.
19010 # Tell ltmain to make .dll files, not .so files.
19012 # FIXME: Setting linknames here is a bad hack.
19013 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19014 # The linker will automatically build a .lib file if we build a DLL.
19015 old_archive_From_new_cmds_GCJ='true'
19016 # FIXME: Should let the user specify the lib program.
19017 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19018 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19019 enable_shared_with_static_runtimes_GCJ=yes
19022 darwin* | rhapsody*)
19024 rhapsody* | darwin1.[012])
19025 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19028 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19029 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031 case ${MACOSX_DEPLOYMENT_TARGET} in
19033 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19036 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19042 archive_cmds_need_lc_GCJ=no
19043 hardcode_direct_GCJ=no
19044 hardcode_automatic_GCJ=yes
19045 hardcode_shlibpath_var_GCJ=unsupported
19046 whole_archive_flag_spec_GCJ=''
19047 link_all_deplibs_GCJ=yes
19048 if test "$GCC" = yes ; then
19049 output_verbose_link_cmd='echo'
19050 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19051 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19053 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}'
19054 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}'
19056 case $cc_basename in
19058 output_verbose_link_cmd='echo'
19059 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19060 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19062 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19063 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}'
19073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19075 hardcode_shlibpath_var_GCJ=no
19082 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19083 # support. Future versions do this automatically, but an explicit c++rt0.o
19084 # does not break anything, and helps significantly (at the cost of a little
19087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19089 hardcode_direct_GCJ=yes
19090 hardcode_shlibpath_var_GCJ=no
19093 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19095 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19096 hardcode_direct_GCJ=yes
19097 hardcode_minus_L_GCJ=yes
19098 hardcode_shlibpath_var_GCJ=no
19101 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19102 freebsd* | dragonfly*)
19103 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19105 hardcode_direct_GCJ=yes
19106 hardcode_shlibpath_var_GCJ=no
19110 if test "$GCC" = yes; then
19111 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'
19113 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'
19115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19116 hardcode_libdir_separator_GCJ=:
19117 hardcode_direct_GCJ=yes
19119 # hardcode_minus_L: Not really in the search PATH,
19120 # but as the default location of the library.
19121 hardcode_minus_L_GCJ=yes
19122 export_dynamic_flag_spec_GCJ='${wl}-E'
19126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19127 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19129 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19131 if test "$with_gnu_ld" = no; then
19132 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19133 hardcode_libdir_separator_GCJ=:
19135 hardcode_direct_GCJ=yes
19136 export_dynamic_flag_spec_GCJ='${wl}-E'
19138 # hardcode_minus_L: Not really in the search PATH,
19139 # but as the default location of the library.
19140 hardcode_minus_L_GCJ=yes
19145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19148 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19151 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19160 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19163 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19166 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19170 if test "$with_gnu_ld" = no; then
19171 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19172 hardcode_libdir_separator_GCJ=:
19176 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19177 hardcode_direct_GCJ=no
19178 hardcode_shlibpath_var_GCJ=no
19181 hardcode_direct_GCJ=yes
19182 export_dynamic_flag_spec_GCJ='${wl}-E'
19184 # hardcode_minus_L: Not really in the search PATH,
19185 # but as the default location of the library.
19186 hardcode_minus_L_GCJ=yes
19192 irix5* | irix6* | nonstopux*)
19193 if test "$GCC" = yes; then
19194 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'
19196 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'
19197 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19200 hardcode_libdir_separator_GCJ=:
19201 link_all_deplibs_GCJ=yes
19204 netbsd* | netbsdelf*-gnu)
19205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19206 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19208 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19211 hardcode_direct_GCJ=yes
19212 hardcode_shlibpath_var_GCJ=no
19216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19217 hardcode_direct_GCJ=yes
19218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19219 hardcode_libdir_separator_GCJ=:
19220 hardcode_shlibpath_var_GCJ=no
19224 if test -f /usr/libexec/ld.so; then
19225 hardcode_direct_GCJ=yes
19226 hardcode_shlibpath_var_GCJ=no
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19229 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19231 export_dynamic_flag_spec_GCJ='${wl}-E'
19234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19239 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19250 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19251 hardcode_minus_L_GCJ=yes
19252 allow_undefined_flag_GCJ=unsupported
19253 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'
19254 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19258 if test "$GCC" = yes; then
19259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19260 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'
19262 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19263 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'
19265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19266 hardcode_libdir_separator_GCJ=:
19269 osf4* | osf5*) # as osf3* with the addition of -msym flag
19270 if test "$GCC" = yes; then
19271 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19272 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'
19273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19275 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19276 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'
19277 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~
19278 $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'
19280 # Both c and cxx compiler support -rpath directly
19281 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19283 hardcode_libdir_separator_GCJ=:
19287 no_undefined_flag_GCJ=' -z text'
19288 if test "$GCC" = yes; then
19290 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19295 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19296 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19299 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19300 hardcode_shlibpath_var_GCJ=no
19302 solaris2.[0-5] | solaris2.[0-5].*) ;;
19304 # The compiler driver will combine and reorder linker options,
19305 # but understands `-z linker_flag'. GCC discards it without `$wl',
19306 # but is careful enough not to reorder.
19307 # Supported since Solaris 2.6 (maybe 2.5.1?)
19308 if test "$GCC" = yes; then
19309 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19311 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19315 link_all_deplibs_GCJ=yes
19319 if test "x$host_vendor" = xsequent; then
19320 # Use $CC to link under sequent, because it throws in some extra .o
19321 # files that make .init and .fini sections work.
19322 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19327 hardcode_direct_GCJ=yes
19328 hardcode_minus_L_GCJ=yes
19329 hardcode_shlibpath_var_GCJ=no
19333 case $host_vendor in
19335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19336 hardcode_direct_GCJ=yes # is this really true???
19339 ## LD is ld it makes a PLAMLIB
19340 ## CC just makes a GrossModule.
19341 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19342 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19343 hardcode_direct_GCJ=no
19346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19347 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19350 runpath_var='LD_RUN_PATH'
19351 hardcode_shlibpath_var_GCJ=no
19355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356 hardcode_shlibpath_var_GCJ=no
19357 export_dynamic_flag_spec_GCJ='-Bexport'
19361 if test -d /usr/nec; then
19362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19363 hardcode_shlibpath_var_GCJ=no
19364 runpath_var=LD_RUN_PATH
19365 hardcode_runpath_var=yes
19370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19371 no_undefined_flag_GCJ='${wl}-z,text'
19372 archive_cmds_need_lc_GCJ=no
19373 hardcode_shlibpath_var_GCJ=no
19374 runpath_var='LD_RUN_PATH'
19376 if test "$GCC" = yes; then
19377 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19380 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19385 sysv5* | sco3.2v5* | sco5v6*)
19386 # Note: We can NOT use -z defs as we might desire, because we do not
19387 # link with -lc, and that would cause any symbols used from libc to
19388 # always be unresolved, which means just about no library would
19389 # ever link correctly. If we're not using GNU ld we use -z text
19390 # though, which does catch some bad symbols but isn't as heavy-handed
19392 no_undefined_flag_GCJ='${wl}-z,text'
19393 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19394 archive_cmds_need_lc_GCJ=no
19395 hardcode_shlibpath_var_GCJ=no
19396 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19397 hardcode_libdir_separator_GCJ=':'
19398 link_all_deplibs_GCJ=yes
19399 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19400 runpath_var='LD_RUN_PATH'
19402 if test "$GCC" = yes; then
19403 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19404 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19406 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19407 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19413 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19414 hardcode_shlibpath_var_GCJ=no
19423 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19424 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19425 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19428 # Do we need to explicitly link libc?
19430 case "x$archive_cmds_need_lc_GCJ" in
19432 # Assume -lc should be added
19433 archive_cmds_need_lc_GCJ=yes
19435 if test "$enable_shared" = yes && test "$GCC" = yes; then
19436 case $archive_cmds_GCJ in
19438 # FIXME: we may have to deal with multi-command sequences.
19441 # Test whether the compiler implicitly links with -lc since on some
19442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19443 # to ld, don't add -lc before -lgcc.
19444 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19445 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450 (eval $ac_compile) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } 2>conftest.err; then
19456 libobjs=conftest.$ac_objext
19458 wl=$lt_prog_compiler_wl_GCJ
19459 pic_flag=$lt_prog_compiler_pic_GCJ
19465 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19466 allow_undefined_flag_GCJ=
19467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19468 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }
19473 archive_cmds_need_lc_GCJ=no
19475 archive_cmds_need_lc_GCJ=yes
19477 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19479 cat conftest.err 1>&5
19482 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19483 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19490 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19491 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19492 library_names_spec=
19493 libname_spec='lib$name'
19497 postuninstall_cmds=
19501 shlibpath_overrides_runpath=unknown
19503 dynamic_linker="$host_os ld.so"
19504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19506 need_lib_prefix=unknown
19507 hardcode_into_libs=no
19509 # when you set need_version to no, make sure it does not cause -set_version
19510 # flags to be left without arguments
19511 need_version=unknown
19516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19517 shlibpath_var=LIBPATH
19519 # AIX 3 has no versioning support, so we append a major version to the name.
19520 soname_spec='${libname}${release}${shared_ext}$major'
19527 hardcode_into_libs=yes
19528 if test "$host_cpu" = ia64; then
19529 # AIX 5 supports IA64
19530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19531 shlibpath_var=LD_LIBRARY_PATH
19533 # With GCC up to 2.95.x, collect2 would create an import file
19534 # for dependence libraries. The import file would start with
19535 # the line `#! .'. This would cause the generated library to
19536 # depend on `.', always an invalid library. This was fixed in
19537 # development snapshots of GCC prior to 3.0.
19539 aix4 | aix4.[01] | aix4.[01].*)
19540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19545 can_build_shared=no
19549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19550 # soname into executable. Probably we can add versioning support to
19551 # collect2, so additional links can be useful in future.
19552 if test "$aix_use_runtimelinking" = yes; then
19553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19554 # instead of lib<name>.a to let people know that these are not
19555 # typical AIX shared libraries.
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19558 # We preserve .a as extension for shared libraries through AIX4.2
19559 # and later when we are not doing run time linking.
19560 library_names_spec='${libname}${release}.a $libname.a'
19561 soname_spec='${libname}${release}${shared_ext}$major'
19563 shlibpath_var=LIBPATH
19568 library_names_spec='$libname.ixlibrary $libname.a'
19569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19570 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'
19574 library_names_spec='${libname}${shared_ext}'
19575 dynamic_linker="$host_os ld.so"
19576 shlibpath_var=LIBRARY_PATH
19582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19583 soname_spec='${libname}${release}${shared_ext}$major'
19584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19585 shlibpath_var=LD_LIBRARY_PATH
19586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19588 # the default ld.so.conf also contains /usr/contrib/lib and
19589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19590 # libtool to hard-code these into programs
19593 cygwin* | mingw* | pw32*)
19594 version_type=windows
19599 case $GCC,$host_os in
19600 yes,cygwin* | yes,mingw* | yes,pw32*)
19601 library_names_spec='$libname.dll.a'
19602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19603 postinstall_cmds='base_file=`basename \${file}`~
19604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19605 dldir=$destdir/`dirname \$dlpath`~
19606 test -d \$dldir || mkdir -p \$dldir~
19607 $install_prog $dir/$dlname \$dldir/$dlname~
19608 chmod a+x \$dldir/$dlname'
19609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19610 dlpath=$dir/\$dldll~
19612 shlibpath_overrides_runpath=yes
19616 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19621 # MinGW DLLs use traditional 'lib' prefix
19622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19624 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19625 # It is most probably a Windows format PATH printed by
19626 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19627 # path with ; separators, and with drive letters. We can handle the
19628 # drive letters (cygwin fileutils understands them), so leave them,
19629 # especially as we might pass files found there to a mingw objdump,
19630 # which wouldn't understand a cygwinified path. Ahh.
19631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19637 # pw32 DLLs use 'pw' prefix rather than 'lib'
19638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19647 dynamic_linker='Win32 ld.exe'
19648 # FIXME: first we should search . and the directory the executable is in
19652 darwin* | rhapsody*)
19653 dynamic_linker="$host_os dyld"
19654 version_type=darwin
19657 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19658 soname_spec='${libname}${release}${major}$shared_ext'
19659 shlibpath_overrides_runpath=yes
19660 shlibpath_var=DYLD_LIBRARY_PATH
19661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19671 soname_spec='${libname}${release}${shared_ext}$major'
19672 shlibpath_var=LD_LIBRARY_PATH
19679 freebsd* | dragonfly*)
19680 # DragonFly does not have aout. When/if they implement a new
19681 # versioning mechanism, adjust this.
19682 if test -x /usr/bin/objformat; then
19683 objformat=`/usr/bin/objformat`
19686 freebsd[123]*) objformat=aout ;;
19687 *) objformat=elf ;;
19690 version_type=freebsd-$objformat
19691 case $version_type in
19693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19702 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=yes
19707 freebsd3.[01]* | freebsdelf3.[01]*)
19708 shlibpath_overrides_runpath=yes
19709 hardcode_into_libs=yes
19711 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19712 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19713 shlibpath_overrides_runpath=no
19714 hardcode_into_libs=yes
19716 *) # from 4.6 on, and DragonFly
19717 shlibpath_overrides_runpath=yes
19718 hardcode_into_libs=yes
19727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19728 soname_spec='${libname}${release}${shared_ext}$major'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 hardcode_into_libs=yes
19733 hpux9* | hpux10* | hpux11*)
19734 # Give a soname corresponding to the major version so that dld.sl refuses to
19735 # link against other versions.
19742 hardcode_into_libs=yes
19743 dynamic_linker="$host_os dld.so"
19744 shlibpath_var=LD_LIBRARY_PATH
19745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747 soname_spec='${libname}${release}${shared_ext}$major'
19748 if test "X$HPUX_IA64_MODE" = X32; then
19749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19757 hardcode_into_libs=yes
19758 dynamic_linker="$host_os dld.sl"
19759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19762 soname_spec='${libname}${release}${shared_ext}$major'
19763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19768 dynamic_linker="$host_os dld.sl"
19769 shlibpath_var=SHLIB_PATH
19770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19772 soname_spec='${libname}${release}${shared_ext}$major'
19775 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19776 postinstall_cmds='chmod 555 $lib'
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19784 soname_spec='${libname}${release}${shared_ext}$major'
19785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19786 shlibpath_var=LD_LIBRARY_PATH
19787 shlibpath_overrides_runpath=no
19788 hardcode_into_libs=yes
19791 irix5* | irix6* | nonstopux*)
19793 nonstopux*) version_type=nonstopux ;;
19795 if test "$lt_cv_prog_gnu_ld" = yes; then
19803 soname_spec='${libname}${release}${shared_ext}$major'
19804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19806 irix5* | nonstopux*)
19807 libsuff= shlibsuff=
19810 case $LD in # libtool.m4 will add one of these switches to LD
19811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19812 libsuff= shlibsuff= libmagic=32-bit;;
19813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19814 libsuff=32 shlibsuff=N32 libmagic=N32;;
19815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19817 *) libsuff= shlibsuff= libmagic=never-match;;
19821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19822 shlibpath_overrides_runpath=no
19823 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19824 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19825 hardcode_into_libs=yes
19828 # No shared lib support for Linux oldld, aout, or coff.
19829 linux*oldld* | linux*aout* | linux*coff*)
19833 # This must be Linux ELF.
19834 linux* | k*bsd*-gnu)
19838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839 soname_spec='${libname}${release}${shared_ext}$major'
19840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19841 shlibpath_var=LD_LIBRARY_PATH
19842 shlibpath_overrides_runpath=no
19843 # This implies no fast_install, which is unacceptable.
19844 # Some rework will be needed to allow for fast_install
19845 # before this can be enabled.
19846 hardcode_into_libs=yes
19848 # Append ld.so.conf contents to the search path
19849 if test -f /etc/ld.so.conf; then
19850 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19854 # We used to test for /lib/ld.so.1 and disable shared libraries on
19855 # powerpc, because MkLinux only supported shared libraries with the
19856 # GNU dynamic linker. Since this was broken with cross compilers,
19857 # most powerpc-linux boxes support dynamic linking these days and
19858 # people can always --disable-shared, the test was removed, and we
19859 # assume the GNU/Linux dynamic linker is in use.
19860 dynamic_linker='GNU/Linux ld.so'
19867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19868 soname_spec='${libname}${release}${shared_ext}$major'
19869 shlibpath_var=LD_LIBRARY_PATH
19870 shlibpath_overrides_runpath=no
19871 hardcode_into_libs=yes
19872 dynamic_linker='NetBSD ld.elf_so'
19879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19882 dynamic_linker='NetBSD (a.out) ld.so'
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 dynamic_linker='NetBSD ld.elf_so'
19888 shlibpath_var=LD_LIBRARY_PATH
19889 shlibpath_overrides_runpath=yes
19890 hardcode_into_libs=yes
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896 shlibpath_var=LD_LIBRARY_PATH
19897 shlibpath_overrides_runpath=yes
19904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19905 soname_spec='${libname}${release}${shared_ext}$major'
19906 shlibpath_var=LD_LIBRARY_PATH
19907 shlibpath_overrides_runpath=yes
19912 sys_lib_dlsearch_path_spec="/usr/lib"
19914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19917 *) need_version=no ;;
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19924 openbsd2.[89] | openbsd2.[89].*)
19925 shlibpath_overrides_runpath=no
19928 shlibpath_overrides_runpath=yes
19932 shlibpath_overrides_runpath=yes
19937 libname_spec='$name'
19940 library_names_spec='$libname${shared_ext} $libname.a'
19941 dynamic_linker='OS/2 ld.exe'
19942 shlibpath_var=LIBPATH
19945 osf3* | osf4* | osf5*)
19949 soname_spec='${libname}${release}${shared_ext}$major'
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19965 soname_spec='${libname}${release}${shared_ext}$major'
19966 shlibpath_var=LD_LIBRARY_PATH
19967 shlibpath_overrides_runpath=yes
19968 hardcode_into_libs=yes
19969 # ldd complains unless libraries are executable
19970 postinstall_cmds='chmod +x $lib'
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19977 shlibpath_var=LD_LIBRARY_PATH
19978 shlibpath_overrides_runpath=yes
19979 if test "$with_gnu_ld" = yes; then
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 shlibpath_var=LD_LIBRARY_PATH
19990 case $host_vendor in
19992 shlibpath_overrides_runpath=no
19994 export_dynamic_flag_spec='${wl}-Blargedynsym'
19995 runpath_var=LD_RUN_PATH
20003 shlibpath_overrides_runpath=no
20004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20010 if test -d /usr/nec ;then
20012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20013 soname_spec='$libname${shared_ext}.$major'
20014 shlibpath_var=LD_LIBRARY_PATH
20018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20019 version_type=freebsd-elf
20022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20023 soname_spec='${libname}${release}${shared_ext}$major'
20024 shlibpath_var=LD_LIBRARY_PATH
20025 hardcode_into_libs=yes
20026 if test "$with_gnu_ld" = yes; then
20027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20028 shlibpath_overrides_runpath=no
20030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20031 shlibpath_overrides_runpath=yes
20034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20038 sys_lib_dlsearch_path_spec='/usr/lib'
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044 soname_spec='${libname}${release}${shared_ext}$major'
20045 shlibpath_var=LD_LIBRARY_PATH
20052 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20053 echo "${ECHO_T}$dynamic_linker" >&6; }
20054 test "$dynamic_linker" = no && can_build_shared=no
20056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20057 if test "$GCC" = yes; then
20058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20061 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20063 hardcode_action_GCJ=
20064 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20065 test -n "$runpath_var_GCJ" || \
20066 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20068 # We can hardcode non-existant directories.
20069 if test "$hardcode_direct_GCJ" != no &&
20070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20071 # have to relink, otherwise we might link with an installed library
20072 # when we should be linking with a yet-to-be-installed one
20073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20074 test "$hardcode_minus_L_GCJ" != no; then
20075 # Linking always hardcodes the temporary library directory.
20076 hardcode_action_GCJ=relink
20078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20079 hardcode_action_GCJ=immediate
20082 # We cannot hardcode anything, or else we can only hardcode existing
20084 hardcode_action_GCJ=unsupported
20086 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20087 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20089 if test "$hardcode_action_GCJ" = relink; then
20090 # Fast installation is not supported
20091 enable_fast_install=no
20092 elif test "$shlibpath_overrides_runpath" = yes ||
20093 test "$enable_shared" = no; then
20094 # Fast installation is not necessary
20095 enable_fast_install=needless
20099 # The else clause should only fire when bootstrapping the
20100 # libtool distribution, otherwise you forgot to ship ltmain.sh
20101 # with your package, and you will get complaints that there are
20102 # no rules to generate ltmain.sh.
20103 if test -f "$ltmain"; then
20104 # See if we are running on zsh, and set the options which allow our commands through
20105 # without removal of \ escapes.
20106 if test -n "${ZSH_VERSION+set}" ; then
20107 setopt NO_GLOB_SUBST
20109 # Now quote all the things that may contain metacharacters while being
20110 # careful not to overquote the AC_SUBSTed values. We take copies of the
20111 # variables and quote the copies for generation of the libtool script.
20112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20116 deplibs_check_method reload_flag reload_cmds need_locks \
20117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20118 lt_cv_sys_global_symbol_to_c_name_address \
20119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20120 old_postinstall_cmds old_postuninstall_cmds \
20124 lt_prog_compiler_wl_GCJ \
20125 lt_prog_compiler_pic_GCJ \
20126 lt_prog_compiler_static_GCJ \
20127 lt_prog_compiler_no_builtin_flag_GCJ \
20128 export_dynamic_flag_spec_GCJ \
20129 thread_safe_flag_spec_GCJ \
20130 whole_archive_flag_spec_GCJ \
20131 enable_shared_with_static_runtimes_GCJ \
20132 old_archive_cmds_GCJ \
20133 old_archive_from_new_cmds_GCJ \
20134 predep_objects_GCJ \
20135 postdep_objects_GCJ \
20138 compiler_lib_search_path_GCJ \
20140 archive_expsym_cmds_GCJ \
20141 postinstall_cmds_GCJ \
20142 postuninstall_cmds_GCJ \
20143 old_archive_from_expsyms_cmds_GCJ \
20144 allow_undefined_flag_GCJ \
20145 no_undefined_flag_GCJ \
20146 export_symbols_cmds_GCJ \
20147 hardcode_libdir_flag_spec_GCJ \
20148 hardcode_libdir_flag_spec_ld_GCJ \
20149 hardcode_libdir_separator_GCJ \
20150 hardcode_automatic_GCJ \
20152 module_expsym_cmds_GCJ \
20153 lt_cv_prog_compiler_c_o_GCJ \
20154 fix_srcfile_path_GCJ \
20155 exclude_expsyms_GCJ \
20156 include_expsyms_GCJ; do
20159 old_archive_cmds_GCJ | \
20160 old_archive_from_new_cmds_GCJ | \
20161 archive_cmds_GCJ | \
20162 archive_expsym_cmds_GCJ | \
20163 module_cmds_GCJ | \
20164 module_expsym_cmds_GCJ | \
20165 old_archive_from_expsyms_cmds_GCJ | \
20166 export_symbols_cmds_GCJ | \
20167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20168 postinstall_cmds | postuninstall_cmds | \
20169 old_postinstall_cmds | old_postuninstall_cmds | \
20170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20171 # Double-quote double-evaled strings.
20172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20181 *'\$0 --fallback-echo"')
20182 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20188 cat <<__EOF__ >> "$cfgfile"
20189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20193 # Shell to use when invoking shell scripts.
20196 # Whether or not to build shared libraries.
20197 build_libtool_libs=$enable_shared
20199 # Whether or not to build static libraries.
20200 build_old_libs=$enable_static
20202 # Whether or not to add -lc for building shared libraries.
20203 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20205 # Whether or not to disallow shared libs when runtime libs are static
20206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20208 # Whether or not to optimize for fast installation.
20209 fast_install=$enable_fast_install
20212 host_alias=$host_alias
20216 # The build system.
20217 build_alias=$build_alias
20221 # An echo program that does not interpret backslashes.
20226 AR_FLAGS=$lt_AR_FLAGS
20231 # LTCC compiler flags.
20232 LTCFLAGS=$lt_LTCFLAGS
20234 # A language-specific compiler.
20235 CC=$lt_compiler_GCJ
20237 # Is the compiler the GNU C compiler?
20243 # The linker used to build libraries.
20246 # Whether we need hard or soft links.
20249 # A BSD-compatible nm program.
20252 # A symbol stripping program
20255 # Used to examine libraries when file_magic_cmd begins "file"
20256 MAGIC_CMD=$MAGIC_CMD
20258 # Used on cygwin: DLL creation program.
20261 # Used on cygwin: object dumper.
20264 # Used on cygwin: assembler.
20267 # The name of the directory that contains temporary libtool files.
20270 # How to create reloadable object files.
20271 reload_flag=$lt_reload_flag
20272 reload_cmds=$lt_reload_cmds
20274 # How to pass a linker flag through the compiler.
20275 wl=$lt_lt_prog_compiler_wl_GCJ
20277 # Object file suffix (normally "o").
20278 objext="$ac_objext"
20280 # Old archive suffix (normally "a").
20283 # Shared library suffix (normally ".so").
20284 shrext_cmds='$shrext_cmds'
20286 # Executable file suffix (normally "").
20289 # Additional compiler flags for building library objects.
20290 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20293 # What is the maximum length of a command?
20294 max_cmd_len=$lt_cv_sys_max_cmd_len
20296 # Does compiler simultaneously support -c and -o options?
20297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20299 # Must we lock files when doing compilation?
20300 need_locks=$lt_need_locks
20302 # Do we need the lib prefix for modules?
20303 need_lib_prefix=$need_lib_prefix
20305 # Do we need a version for libraries?
20306 need_version=$need_version
20308 # Whether dlopen is supported.
20309 dlopen_support=$enable_dlopen
20311 # Whether dlopen of programs is supported.
20312 dlopen_self=$enable_dlopen_self
20314 # Whether dlopen of statically linked programs is supported.
20315 dlopen_self_static=$enable_dlopen_self_static
20317 # Compiler flag to prevent dynamic linking.
20318 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20320 # Compiler flag to turn off builtin functions.
20321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20323 # Compiler flag to allow reflexive dlopens.
20324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20326 # Compiler flag to generate shared objects directly from archives.
20327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20329 # Compiler flag to generate thread-safe objects.
20330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20332 # Library versioning type.
20333 version_type=$version_type
20335 # Format of library name prefix.
20336 libname_spec=$lt_libname_spec
20338 # List of archive names. First name is the real one, the rest are links.
20339 # The last name is the one that the linker finds with -lNAME.
20340 library_names_spec=$lt_library_names_spec
20342 # The coded name of the library, if different from the real name.
20343 soname_spec=$lt_soname_spec
20345 # Commands used to build and install an old-style archive.
20347 old_archive_cmds=$lt_old_archive_cmds_GCJ
20348 old_postinstall_cmds=$lt_old_postinstall_cmds
20349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20351 # Create an old-style archive from a shared archive.
20352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20354 # Create a temporary old-style archive to link instead of a shared archive.
20355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20357 # Commands used to build and install a shared archive.
20358 archive_cmds=$lt_archive_cmds_GCJ
20359 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20360 postinstall_cmds=$lt_postinstall_cmds
20361 postuninstall_cmds=$lt_postuninstall_cmds
20363 # Commands used to build a loadable module (assumed same as above if empty)
20364 module_cmds=$lt_module_cmds_GCJ
20365 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20367 # Commands to strip libraries.
20368 old_striplib=$lt_old_striplib
20369 striplib=$lt_striplib
20371 # Dependencies to place before the objects being linked to create a
20373 predep_objects=$lt_predep_objects_GCJ
20375 # Dependencies to place after the objects being linked to create a
20377 postdep_objects=$lt_postdep_objects_GCJ
20379 # Dependencies to place before the objects being linked to create a
20381 predeps=$lt_predeps_GCJ
20383 # Dependencies to place after the objects being linked to create a
20385 postdeps=$lt_postdeps_GCJ
20387 # The library search path used internally by the compiler when linking
20388 # a shared library.
20389 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20391 # Method to check whether dependent libraries are shared objects.
20392 deplibs_check_method=$lt_deplibs_check_method
20394 # Command to use when deplibs_check_method == file_magic.
20395 file_magic_cmd=$lt_file_magic_cmd
20397 # Flag that allows shared libraries with undefined symbols to be built.
20398 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20400 # Flag that forces no undefined symbols.
20401 no_undefined_flag=$lt_no_undefined_flag_GCJ
20403 # Commands used to finish a libtool library installation in a directory.
20404 finish_cmds=$lt_finish_cmds
20406 # Same as above, but a single script fragment to be evaled but not shown.
20407 finish_eval=$lt_finish_eval
20409 # Take the output of nm and produce a listing of raw symbols and C names.
20410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20412 # Transform the output of nm in a proper C declaration
20413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20415 # Transform the output of nm in a C name address pair
20416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20418 # This is the shared library runtime path variable.
20419 runpath_var=$runpath_var
20421 # This is the shared library path variable.
20422 shlibpath_var=$shlibpath_var
20424 # Is shlibpath searched before the hard-coded library search path?
20425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20427 # How to hardcode a shared library path into an executable.
20428 hardcode_action=$hardcode_action_GCJ
20430 # Whether we should hardcode library paths into libraries.
20431 hardcode_into_libs=$hardcode_into_libs
20433 # Flag to hardcode \$libdir into a binary during linking.
20434 # This must work even if \$libdir does not exist.
20435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20437 # If ld is used when linking, flag to hardcode \$libdir into
20438 # a binary during linking. This must work even if \$libdir does
20440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20442 # Whether we need a single -rpath flag with a separated argument.
20443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20446 # resulting binary.
20447 hardcode_direct=$hardcode_direct_GCJ
20449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20450 # resulting binary.
20451 hardcode_minus_L=$hardcode_minus_L_GCJ
20453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20454 # the resulting binary.
20455 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20457 # Set to yes if building a shared library automatically hardcodes DIR into the library
20458 # and all subsequent libraries and executables linked against it.
20459 hardcode_automatic=$hardcode_automatic_GCJ
20461 # Variables whose values should be saved in libtool wrapper scripts and
20462 # restored at relink time.
20463 variables_saved_for_relink="$variables_saved_for_relink"
20465 # Whether libtool must link a program against all its dependency libraries.
20466 link_all_deplibs=$link_all_deplibs_GCJ
20468 # Compile-time system search path for libraries
20469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20471 # Run-time system search path for libraries
20472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20474 # Fix the shell variable \$srcfile for the compiler.
20475 fix_srcfile_path=$lt_fix_srcfile_path
20477 # Set to yes if exported symbols are required.
20478 always_export_symbols=$always_export_symbols_GCJ
20480 # The commands to list exported symbols.
20481 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20483 # The commands to extract the exported symbol list from a shared archive.
20484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20486 # Symbols that should not be listed in the preloaded symbols.
20487 exclude_expsyms=$lt_exclude_expsyms_GCJ
20489 # Symbols that must always be exported.
20490 include_expsyms=$lt_include_expsyms_GCJ
20492 # ### END LIBTOOL TAG CONFIG: $tagname
20498 # If there is no Makefile yet, we rely on a make rule to execute
20499 # `config.status --recheck' to rerun these tests and create the
20500 # libtool script then.
20501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20502 if test -f "$ltmain_in"; then
20503 test -f Makefile && make "$ltmain"
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20524 # Source file extension for RC test sources.
20527 # Object file extension for compiled RC test sources.
20531 # Code to be used in simple compile tests
20532 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20534 # Code to be used in simple link tests
20535 lt_simple_link_test_code="$lt_simple_compile_test_code"
20537 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20539 # If no C compiler was specified, use CC.
20542 # If no C compiler flags were specified, use CFLAGS.
20543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20545 # Allow CC to be a program name with arguments.
20549 # save warnings/boilerplate of simple test code
20550 ac_outfile=conftest.$ac_objext
20551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_compiler_boilerplate=`cat conftest.err`
20556 ac_outfile=conftest.$ac_objext
20557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20559 _lt_linker_boilerplate=`cat conftest.err`
20563 # Allow CC to be a program name with arguments.
20568 for cc_temp in $compiler""; do
20570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20578 lt_cv_prog_compiler_c_o_RC=yes
20580 # The else clause should only fire when bootstrapping the
20581 # libtool distribution, otherwise you forgot to ship ltmain.sh
20582 # with your package, and you will get complaints that there are
20583 # no rules to generate ltmain.sh.
20584 if test -f "$ltmain"; then
20585 # See if we are running on zsh, and set the options which allow our commands through
20586 # without removal of \ escapes.
20587 if test -n "${ZSH_VERSION+set}" ; then
20588 setopt NO_GLOB_SUBST
20590 # Now quote all the things that may contain metacharacters while being
20591 # careful not to overquote the AC_SUBSTed values. We take copies of the
20592 # variables and quote the copies for generation of the libtool script.
20593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20597 deplibs_check_method reload_flag reload_cmds need_locks \
20598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20599 lt_cv_sys_global_symbol_to_c_name_address \
20600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20601 old_postinstall_cmds old_postuninstall_cmds \
20605 lt_prog_compiler_wl_RC \
20606 lt_prog_compiler_pic_RC \
20607 lt_prog_compiler_static_RC \
20608 lt_prog_compiler_no_builtin_flag_RC \
20609 export_dynamic_flag_spec_RC \
20610 thread_safe_flag_spec_RC \
20611 whole_archive_flag_spec_RC \
20612 enable_shared_with_static_runtimes_RC \
20613 old_archive_cmds_RC \
20614 old_archive_from_new_cmds_RC \
20615 predep_objects_RC \
20616 postdep_objects_RC \
20619 compiler_lib_search_path_RC \
20621 archive_expsym_cmds_RC \
20622 postinstall_cmds_RC \
20623 postuninstall_cmds_RC \
20624 old_archive_from_expsyms_cmds_RC \
20625 allow_undefined_flag_RC \
20626 no_undefined_flag_RC \
20627 export_symbols_cmds_RC \
20628 hardcode_libdir_flag_spec_RC \
20629 hardcode_libdir_flag_spec_ld_RC \
20630 hardcode_libdir_separator_RC \
20631 hardcode_automatic_RC \
20633 module_expsym_cmds_RC \
20634 lt_cv_prog_compiler_c_o_RC \
20635 fix_srcfile_path_RC \
20636 exclude_expsyms_RC \
20637 include_expsyms_RC; do
20640 old_archive_cmds_RC | \
20641 old_archive_from_new_cmds_RC | \
20642 archive_cmds_RC | \
20643 archive_expsym_cmds_RC | \
20645 module_expsym_cmds_RC | \
20646 old_archive_from_expsyms_cmds_RC | \
20647 export_symbols_cmds_RC | \
20648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20649 postinstall_cmds | postuninstall_cmds | \
20650 old_postinstall_cmds | old_postuninstall_cmds | \
20651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20652 # Double-quote double-evaled strings.
20653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20662 *'\$0 --fallback-echo"')
20663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20669 cat <<__EOF__ >> "$cfgfile"
20670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20674 # Shell to use when invoking shell scripts.
20677 # Whether or not to build shared libraries.
20678 build_libtool_libs=$enable_shared
20680 # Whether or not to build static libraries.
20681 build_old_libs=$enable_static
20683 # Whether or not to add -lc for building shared libraries.
20684 build_libtool_need_lc=$archive_cmds_need_lc_RC
20686 # Whether or not to disallow shared libs when runtime libs are static
20687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20689 # Whether or not to optimize for fast installation.
20690 fast_install=$enable_fast_install
20693 host_alias=$host_alias
20697 # The build system.
20698 build_alias=$build_alias
20702 # An echo program that does not interpret backslashes.
20707 AR_FLAGS=$lt_AR_FLAGS
20712 # LTCC compiler flags.
20713 LTCFLAGS=$lt_LTCFLAGS
20715 # A language-specific compiler.
20718 # Is the compiler the GNU C compiler?
20724 # The linker used to build libraries.
20727 # Whether we need hard or soft links.
20730 # A BSD-compatible nm program.
20733 # A symbol stripping program
20736 # Used to examine libraries when file_magic_cmd begins "file"
20737 MAGIC_CMD=$MAGIC_CMD
20739 # Used on cygwin: DLL creation program.
20742 # Used on cygwin: object dumper.
20745 # Used on cygwin: assembler.
20748 # The name of the directory that contains temporary libtool files.
20751 # How to create reloadable object files.
20752 reload_flag=$lt_reload_flag
20753 reload_cmds=$lt_reload_cmds
20755 # How to pass a linker flag through the compiler.
20756 wl=$lt_lt_prog_compiler_wl_RC
20758 # Object file suffix (normally "o").
20759 objext="$ac_objext"
20761 # Old archive suffix (normally "a").
20764 # Shared library suffix (normally ".so").
20765 shrext_cmds='$shrext_cmds'
20767 # Executable file suffix (normally "").
20770 # Additional compiler flags for building library objects.
20771 pic_flag=$lt_lt_prog_compiler_pic_RC
20774 # What is the maximum length of a command?
20775 max_cmd_len=$lt_cv_sys_max_cmd_len
20777 # Does compiler simultaneously support -c and -o options?
20778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20780 # Must we lock files when doing compilation?
20781 need_locks=$lt_need_locks
20783 # Do we need the lib prefix for modules?
20784 need_lib_prefix=$need_lib_prefix
20786 # Do we need a version for libraries?
20787 need_version=$need_version
20789 # Whether dlopen is supported.
20790 dlopen_support=$enable_dlopen
20792 # Whether dlopen of programs is supported.
20793 dlopen_self=$enable_dlopen_self
20795 # Whether dlopen of statically linked programs is supported.
20796 dlopen_self_static=$enable_dlopen_self_static
20798 # Compiler flag to prevent dynamic linking.
20799 link_static_flag=$lt_lt_prog_compiler_static_RC
20801 # Compiler flag to turn off builtin functions.
20802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20804 # Compiler flag to allow reflexive dlopens.
20805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20807 # Compiler flag to generate shared objects directly from archives.
20808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20810 # Compiler flag to generate thread-safe objects.
20811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20813 # Library versioning type.
20814 version_type=$version_type
20816 # Format of library name prefix.
20817 libname_spec=$lt_libname_spec
20819 # List of archive names. First name is the real one, the rest are links.
20820 # The last name is the one that the linker finds with -lNAME.
20821 library_names_spec=$lt_library_names_spec
20823 # The coded name of the library, if different from the real name.
20824 soname_spec=$lt_soname_spec
20826 # Commands used to build and install an old-style archive.
20828 old_archive_cmds=$lt_old_archive_cmds_RC
20829 old_postinstall_cmds=$lt_old_postinstall_cmds
20830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20832 # Create an old-style archive from a shared archive.
20833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20835 # Create a temporary old-style archive to link instead of a shared archive.
20836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20838 # Commands used to build and install a shared archive.
20839 archive_cmds=$lt_archive_cmds_RC
20840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20841 postinstall_cmds=$lt_postinstall_cmds
20842 postuninstall_cmds=$lt_postuninstall_cmds
20844 # Commands used to build a loadable module (assumed same as above if empty)
20845 module_cmds=$lt_module_cmds_RC
20846 module_expsym_cmds=$lt_module_expsym_cmds_RC
20848 # Commands to strip libraries.
20849 old_striplib=$lt_old_striplib
20850 striplib=$lt_striplib
20852 # Dependencies to place before the objects being linked to create a
20854 predep_objects=$lt_predep_objects_RC
20856 # Dependencies to place after the objects being linked to create a
20858 postdep_objects=$lt_postdep_objects_RC
20860 # Dependencies to place before the objects being linked to create a
20862 predeps=$lt_predeps_RC
20864 # Dependencies to place after the objects being linked to create a
20866 postdeps=$lt_postdeps_RC
20868 # The library search path used internally by the compiler when linking
20869 # a shared library.
20870 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20872 # Method to check whether dependent libraries are shared objects.
20873 deplibs_check_method=$lt_deplibs_check_method
20875 # Command to use when deplibs_check_method == file_magic.
20876 file_magic_cmd=$lt_file_magic_cmd
20878 # Flag that allows shared libraries with undefined symbols to be built.
20879 allow_undefined_flag=$lt_allow_undefined_flag_RC
20881 # Flag that forces no undefined symbols.
20882 no_undefined_flag=$lt_no_undefined_flag_RC
20884 # Commands used to finish a libtool library installation in a directory.
20885 finish_cmds=$lt_finish_cmds
20887 # Same as above, but a single script fragment to be evaled but not shown.
20888 finish_eval=$lt_finish_eval
20890 # Take the output of nm and produce a listing of raw symbols and C names.
20891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20893 # Transform the output of nm in a proper C declaration
20894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20896 # Transform the output of nm in a C name address pair
20897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20899 # This is the shared library runtime path variable.
20900 runpath_var=$runpath_var
20902 # This is the shared library path variable.
20903 shlibpath_var=$shlibpath_var
20905 # Is shlibpath searched before the hard-coded library search path?
20906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20908 # How to hardcode a shared library path into an executable.
20909 hardcode_action=$hardcode_action_RC
20911 # Whether we should hardcode library paths into libraries.
20912 hardcode_into_libs=$hardcode_into_libs
20914 # Flag to hardcode \$libdir into a binary during linking.
20915 # This must work even if \$libdir does not exist.
20916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20918 # If ld is used when linking, flag to hardcode \$libdir into
20919 # a binary during linking. This must work even if \$libdir does
20921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20923 # Whether we need a single -rpath flag with a separated argument.
20924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20927 # resulting binary.
20928 hardcode_direct=$hardcode_direct_RC
20930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20931 # resulting binary.
20932 hardcode_minus_L=$hardcode_minus_L_RC
20934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20935 # the resulting binary.
20936 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20938 # Set to yes if building a shared library automatically hardcodes DIR into the library
20939 # and all subsequent libraries and executables linked against it.
20940 hardcode_automatic=$hardcode_automatic_RC
20942 # Variables whose values should be saved in libtool wrapper scripts and
20943 # restored at relink time.
20944 variables_saved_for_relink="$variables_saved_for_relink"
20946 # Whether libtool must link a program against all its dependency libraries.
20947 link_all_deplibs=$link_all_deplibs_RC
20949 # Compile-time system search path for libraries
20950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20952 # Run-time system search path for libraries
20953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20955 # Fix the shell variable \$srcfile for the compiler.
20956 fix_srcfile_path=$lt_fix_srcfile_path
20958 # Set to yes if exported symbols are required.
20959 always_export_symbols=$always_export_symbols_RC
20961 # The commands to list exported symbols.
20962 export_symbols_cmds=$lt_export_symbols_cmds_RC
20964 # The commands to extract the exported symbol list from a shared archive.
20965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20967 # Symbols that should not be listed in the preloaded symbols.
20968 exclude_expsyms=$lt_exclude_expsyms_RC
20970 # Symbols that must always be exported.
20971 include_expsyms=$lt_include_expsyms_RC
20973 # ### END LIBTOOL TAG CONFIG: $tagname
20979 # If there is no Makefile yet, we rely on a make rule to execute
20980 # `config.status --recheck' to rerun these tests and create the
20981 # libtool script then.
20982 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20983 if test -f "$ltmain_in"; then
20984 test -f Makefile && make "$ltmain"
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21000 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21001 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21002 { (exit 1); exit 1; }; }
21006 # Append the new tag name to the list of available tags.
21007 if test -n "$tagname" ; then
21008 available_tags="$available_tags $tagname"
21014 # Now substitute the updated list of available tags.
21015 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21016 mv "${ofile}T" "$ofile"
21020 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21021 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21022 { (exit 1); exit 1; }; }
21028 # This can be used to rebuild libtool when needed
21029 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21031 # Always use our own libtool.
21032 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21034 # Prevent multiple expansion
21055 if test "x$CC" != xcc; then
21056 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21057 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21059 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21060 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21062 set dummy $CC; ac_cc=`echo $2 |
21063 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21064 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 cat >conftest.$ac_ext <<_ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21082 # Make sure it works both with $CC and with simple cc.
21083 # We do the test twice because some compilers refuse to overwrite an
21084 # existing .o file with -o, though they will create one.
21085 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21087 if { (case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_try") 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); };
21106 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21107 if test "x$CC" != xcc; then
21108 # Test first that cc exists at all.
21109 if { ac_try='cc -c conftest.$ac_ext >&5'
21110 { (case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_try") 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21121 if { (case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_try") 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); };
21143 # cc exists but doesn't like -o.
21144 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21149 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21151 rm -f core conftest*
21154 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21155 { echo "$as_me:$LINENO: result: yes" >&5
21156 echo "${ECHO_T}yes" >&6; }
21158 { echo "$as_me:$LINENO: result: no" >&5
21159 echo "${ECHO_T}no" >&6; }
21161 cat >>confdefs.h <<\_ACEOF
21162 #define NO_MINUS_C_MINUS_O 1
21167 # FIXME: we rely on the cache variable name because
21168 # there is no other way.
21170 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21171 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21172 # Losing compiler, so override with the script.
21173 # FIXME: It is wrong to rewrite CC.
21174 # But if we don't then we get into trouble of one sort or another.
21175 # A longer-term fix would be to have automake use am__CC in this case,
21176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21177 CC="$am_aux_dir/compile $CC"
21182 if test "x$cross_compiling" = "xno"; then
21183 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21185 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21190 if test -n "$ac_tool_prefix"; then
21191 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21192 set dummy ${ac_tool_prefix}ar; ac_word=$2
21193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21195 if test "${ac_cv_prog_AR+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 if test -n "$AR"; then
21199 ac_cv_prog_AR="$AR" # Let the user override the test.
21201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202 for as_dir in $PATH
21205 test -z "$as_dir" && as_dir=.
21206 for ac_exec_ext in '' $ac_executable_extensions; do
21207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21208 ac_cv_prog_AR="${ac_tool_prefix}ar"
21209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21219 if test -n "$AR"; then
21220 { echo "$as_me:$LINENO: result: $AR" >&5
21221 echo "${ECHO_T}$AR" >&6; }
21223 { echo "$as_me:$LINENO: result: no" >&5
21224 echo "${ECHO_T}no" >&6; }
21229 if test -z "$ac_cv_prog_AR"; then
21231 # Extract the first word of "ar", so it can be a program name with args.
21232 set dummy ar; ac_word=$2
21233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21235 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 if test -n "$ac_ct_AR"; then
21239 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21242 for as_dir in $PATH
21245 test -z "$as_dir" && as_dir=.
21246 for ac_exec_ext in '' $ac_executable_extensions; do
21247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21248 ac_cv_prog_ac_ct_AR="ar"
21249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21259 if test -n "$ac_ct_AR"; then
21260 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21261 echo "${ECHO_T}$ac_ct_AR" >&6; }
21263 { echo "$as_me:$LINENO: result: no" >&5
21264 echo "${ECHO_T}no" >&6; }
21267 if test "x$ac_ct_AR" = x; then
21270 case $cross_compiling:$ac_tool_warned in
21272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21273 whose name does not start with the host triplet. If you think this
21274 configuration is useful to you, please write to autoconf@gnu.org." >&5
21275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21276 whose name does not start with the host triplet. If you think this
21277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21278 ac_tool_warned=yes ;;
21283 AR="$ac_cv_prog_AR"
21286 if test -n "$ac_tool_prefix"; then
21287 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21288 set dummy ${ac_tool_prefix}ld; ac_word=$2
21289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21291 if test "${ac_cv_prog_LD+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 if test -n "$LD"; then
21295 ac_cv_prog_LD="$LD" # Let the user override the test.
21297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21298 for as_dir in $PATH
21301 test -z "$as_dir" && as_dir=.
21302 for ac_exec_ext in '' $ac_executable_extensions; do
21303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21304 ac_cv_prog_LD="${ac_tool_prefix}ld"
21305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21315 if test -n "$LD"; then
21316 { echo "$as_me:$LINENO: result: $LD" >&5
21317 echo "${ECHO_T}$LD" >&6; }
21319 { echo "$as_me:$LINENO: result: no" >&5
21320 echo "${ECHO_T}no" >&6; }
21325 if test -z "$ac_cv_prog_LD"; then
21327 # Extract the first word of "ld", so it can be a program name with args.
21328 set dummy ld; ac_word=$2
21329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21331 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 if test -n "$ac_ct_LD"; then
21335 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21338 for as_dir in $PATH
21341 test -z "$as_dir" && as_dir=.
21342 for ac_exec_ext in '' $ac_executable_extensions; do
21343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21344 ac_cv_prog_ac_ct_LD="ld"
21345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21354 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21355 if test -n "$ac_ct_LD"; then
21356 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21357 echo "${ECHO_T}$ac_ct_LD" >&6; }
21359 { echo "$as_me:$LINENO: result: no" >&5
21360 echo "${ECHO_T}no" >&6; }
21363 if test "x$ac_ct_LD" = x; then
21366 case $cross_compiling:$ac_tool_warned in
21368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21369 whose name does not start with the host triplet. If you think this
21370 configuration is useful to you, please write to autoconf@gnu.org." >&5
21371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21372 whose name does not start with the host triplet. If you think this
21373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21374 ac_tool_warned=yes ;;
21379 LD="$ac_cv_prog_LD"
21383 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21385 if test "${ac_cv_header_stdc+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 #include <stdlib.h>
21395 #include <stdarg.h>
21396 #include <string.h>
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_cv_header_stdc=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_cv_header_stdc=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 if test $ac_cv_header_stdc = yes; then
21435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <string.h>
21445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21446 $EGREP "memchr" >/dev/null 2>&1; then
21449 ac_cv_header_stdc=no
21455 if test $ac_cv_header_stdc = yes; then
21456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21457 cat >conftest.$ac_ext <<_ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 #include <stdlib.h>
21466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21467 $EGREP "free" >/dev/null 2>&1; then
21470 ac_cv_header_stdc=no
21476 if test $ac_cv_header_stdc = yes; then
21477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21478 if test "$cross_compiling" = yes; then
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 #include <stdlib.h>
21489 #if ((' ' & 0x0FF) == 0x020)
21490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21493 # define ISLOWER(c) \
21494 (('a' <= (c) && (c) <= 'i') \
21495 || ('j' <= (c) && (c) <= 'r') \
21496 || ('s' <= (c) && (c) <= 'z'))
21497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21505 for (i = 0; i < 256; i++)
21506 if (XOR (islower (i), ISLOWER (i))
21507 || toupper (i) != TOUPPER (i))
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_link") 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_try") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21534 echo "$as_me: program exited with status $ac_status" >&5
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 ( exit $ac_status )
21539 ac_cv_header_stdc=no
21541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21549 if test $ac_cv_header_stdc = yes; then
21551 cat >>confdefs.h <<\_ACEOF
21552 #define STDC_HEADERS 1
21558 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21559 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21560 if test "${knfsd_cv_glibc2+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21570 #include <features.h>
21571 #if !defined(__GLIBC__)
21576 if { (ac_try="$ac_cpp conftest.$ac_ext"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } >/dev/null && {
21589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21590 test ! -s conftest.err
21592 knfsd_cv_glibc2=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21600 rm -f conftest.err conftest.$ac_ext
21603 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21604 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21605 if test $knfsd_cv_glibc2 = yes; then
21606 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21607 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21611 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21612 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21613 if test "${knfsd_cv_bsd_signals+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 if test "$cross_compiling" = yes; then
21619 *linux*) knfsd_cv_bsd_signals=no;;
21620 *bsd*) knfsd_cv_bsd_signals=yes;;
21621 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21622 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21623 { (exit 1); exit 1; }; };;
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21634 #include <signal.h>
21635 #include <unistd.h>
21636 #include <sys/wait.h>
21638 static int counter = 0;
21639 static RETSIGTYPE handler(int num) { counter++; }
21644 if ((s = fork()) < 0) return 1;
21646 if (wait(&s) < 0) return 1;
21647 return WIFSIGNALED(s)? 1 : 0;
21650 signal(SIGHUP, handler);
21651 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21652 return (counter == 2)? 0 : 1;
21656 rm -f conftest$ac_exeext
21657 if { (ac_try="$ac_link"
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_link") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667 { (case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_try") 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 knfsd_cv_bsd_signals=yes
21678 echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ( exit $ac_status )
21683 knfsd_cv_bsd_signals=no
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21690 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21691 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21692 test $knfsd_cv_bsd_signals = yes &&
21693 cat >>confdefs.h <<\_ACEOF
21694 #define HAVE_BSD_SIGNALS 1
21699 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21700 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21701 if test "${ac_cv_func_gethostbyname+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21712 #define gethostbyname innocuous_gethostbyname
21714 /* System header to define __stub macros and hopefully few prototypes,
21715 which can conflict with char gethostbyname (); below.
21716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21717 <limits.h> exists even on freestanding compilers. */
21720 # include <limits.h>
21722 # include <assert.h>
21725 #undef gethostbyname
21727 /* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21733 char gethostbyname ();
21734 /* The GNU C library defines this for functions which it implements
21735 to always fail with ENOSYS. Some functions are actually named
21736 something starting with __ and the normal name is an alias. */
21737 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21744 return gethostbyname ();
21749 rm -f conftest.$ac_objext conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_link") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest$ac_exeext &&
21766 $as_test_x conftest$ac_exeext; then
21767 ac_cv_func_gethostbyname=yes
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ac_cv_func_gethostbyname=no
21775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21776 conftest$ac_exeext conftest.$ac_ext
21778 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21780 if test $ac_cv_func_gethostbyname = yes; then
21783 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21784 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21785 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 ac_check_lib_save_LIBS=$LIBS
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21797 /* Override any GCC internal prototype to avoid an error.
21798 Use char because int might match the return type of a GCC
21799 builtin and then its argument prototype would still apply. */
21803 char gethostbyname ();
21807 return gethostbyname ();
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21819 (eval "$ac_link") 2>conftest.er1
21821 grep -v '^ *+' conftest.er1 >conftest.err
21823 cat conftest.err >&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } && {
21826 test -z "$ac_c_werror_flag" ||
21827 test ! -s conftest.err
21828 } && test -s conftest$ac_exeext &&
21829 $as_test_x conftest$ac_exeext; then
21830 ac_cv_lib_nsl_gethostbyname=yes
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_lib_nsl_gethostbyname=no
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839 conftest$ac_exeext conftest.$ac_ext
21840 LIBS=$ac_check_lib_save_LIBS
21842 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21843 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21844 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21852 { echo "$as_me:$LINENO: checking for connect" >&5
21853 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21854 if test "${ac_cv_func_connect+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21865 #define connect innocuous_connect
21867 /* System header to define __stub macros and hopefully few prototypes,
21868 which can conflict with char connect (); below.
21869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21870 <limits.h> exists even on freestanding compilers. */
21873 # include <limits.h>
21875 # include <assert.h>
21880 /* Override any GCC internal prototype to avoid an error.
21881 Use char because int might match the return type of a GCC
21882 builtin and then its argument prototype would still apply. */
21887 /* The GNU C library defines this for functions which it implements
21888 to always fail with ENOSYS. Some functions are actually named
21889 something starting with __ and the normal name is an alias. */
21890 #if defined __stub_connect || defined __stub___connect
21902 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (ac_try="$ac_link"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_link") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest$ac_exeext &&
21919 $as_test_x conftest$ac_exeext; then
21920 ac_cv_func_connect=yes
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_func_connect=no
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929 conftest$ac_exeext conftest.$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21932 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21933 if test $ac_cv_func_connect = yes; then
21936 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21937 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21938 if test "${ac_cv_lib_socket_connect+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lsocket $LIBNSL $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_link") 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest$ac_exeext &&
21982 $as_test_x conftest$ac_exeext; then
21983 ac_cv_lib_socket_connect=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_cv_lib_socket_connect=no
21991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21992 conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21995 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21996 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21997 if test $ac_cv_lib_socket_connect = yes; then
21998 LIBSOCKET="-lsocket"
22000 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22001 echo "$as_me: error: Function 'socket' not found." >&2;}
22002 { (exit 1); exit 1; }; }
22008 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22009 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22010 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22011 echo $ECHO_N "(cached) $ECHO_C" >&6
22013 ac_check_lib_save_LIBS=$LIBS
22014 LIBS="-lcrypt $LIBS"
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 /* Override any GCC internal prototype to avoid an error.
22023 Use char because int might match the return type of a GCC
22024 builtin and then its argument prototype would still apply. */
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_link") 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && {
22051 test -z "$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22053 } && test -s conftest$ac_exeext &&
22054 $as_test_x conftest$ac_exeext; then
22055 ac_cv_lib_crypt_crypt=yes
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_cv_lib_crypt_crypt=no
22063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22064 conftest$ac_exeext conftest.$ac_ext
22065 LIBS=$ac_check_lib_save_LIBS
22067 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22068 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22069 if test $ac_cv_lib_crypt_crypt = yes; then
22073 if test "$enable_nfsv4" = yes; then
22074 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22075 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22076 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 ac_check_lib_save_LIBS=$LIBS
22080 LIBS="-levent $LIBS"
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22088 /* Override any GCC internal prototype to avoid an error.
22089 Use char because int might match the return type of a GCC
22090 builtin and then its argument prototype would still apply. */
22094 char event_dispatch ();
22098 return event_dispatch ();
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
22112 grep -v '^ *+' conftest.er1 >conftest.err
22114 cat conftest.err >&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } && {
22117 test -z "$ac_c_werror_flag" ||
22118 test ! -s conftest.err
22119 } && test -s conftest$ac_exeext &&
22120 $as_test_x conftest$ac_exeext; then
22121 ac_cv_lib_event_event_dispatch=yes
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22126 ac_cv_lib_event_event_dispatch=no
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130 conftest$ac_exeext conftest.$ac_ext
22131 LIBS=$ac_check_lib_save_LIBS
22133 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22134 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22135 if test $ac_cv_lib_event_event_dispatch = yes; then
22138 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22139 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22140 { (exit 1); exit 1; }; }
22143 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22144 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22145 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 ac_check_lib_save_LIBS=$LIBS
22149 LIBS="-lnfsidmap $LIBS"
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22157 /* Override any GCC internal prototype to avoid an error.
22158 Use char because int might match the return type of a GCC
22159 builtin and then its argument prototype would still apply. */
22163 char nfs4_init_name_mapping ();
22167 return nfs4_init_name_mapping ();
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (ac_try="$ac_link"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_link") 2>conftest.er1
22181 grep -v '^ *+' conftest.er1 >conftest.err
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest$ac_exeext &&
22189 $as_test_x conftest$ac_exeext; then
22190 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22199 conftest$ac_exeext conftest.$ac_ext
22200 LIBS=$ac_check_lib_save_LIBS
22202 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22203 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22204 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22207 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22208 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22209 { (exit 1); exit 1; }; }
22213 for ac_header in event.h
22215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 ac_res=`eval echo '${'$as_ac_Header'}'`
22223 { echo "$as_me:$LINENO: result: $ac_res" >&5
22224 echo "${ECHO_T}$ac_res" >&6; }
22226 # Is the header compilable?
22227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235 $ac_includes_default
22236 #include <$ac_header>
22238 rm -f conftest.$ac_objext
22239 if { (ac_try="$ac_compile"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_compile") 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } && {
22252 test -z "$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22254 } && test -s conftest.$ac_objext; then
22255 ac_header_compiler=yes
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_header_compiler=no
22263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22265 echo "${ECHO_T}$ac_header_compiler" >&6; }
22267 # Is the header present?
22268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 #include <$ac_header>
22278 if { (ac_try="$ac_cpp conftest.$ac_ext"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } >/dev/null && {
22291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22294 ac_header_preproc=yes
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 ac_header_preproc=no
22302 rm -f conftest.err conftest.$ac_ext
22303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22304 echo "${ECHO_T}$ac_header_preproc" >&6; }
22306 # So? What about this header?
22307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22313 ac_header_preproc=yes
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22329 ## ------------------------------- ##
22330 ## Report this to nfs@lists.sf.net ##
22331 ## ------------------------------- ##
22333 ) | sed "s/^/$as_me: WARNING: /" >&2
22336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 eval "$as_ac_Header=\$ac_header_preproc"
22343 ac_res=`eval echo '${'$as_ac_Header'}'`
22344 { echo "$as_me:$LINENO: result: $ac_res" >&5
22345 echo "${ECHO_T}$ac_res" >&6; }
22348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22349 cat >>confdefs.h <<_ACEOF
22350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22354 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22355 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22356 { (exit 1); exit 1; }; }
22362 for ac_header in nfsidmap.h
22364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 ac_res=`eval echo '${'$as_ac_Header'}'`
22372 { echo "$as_me:$LINENO: result: $ac_res" >&5
22373 echo "${ECHO_T}$ac_res" >&6; }
22375 # Is the header compilable?
22376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 $ac_includes_default
22385 #include <$ac_header>
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_compile") 2>conftest.er1
22396 grep -v '^ *+' conftest.er1 >conftest.err
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
22404 ac_header_compiler=yes
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_header_compiler=no
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22414 echo "${ECHO_T}$ac_header_compiler" >&6; }
22416 # Is the header present?
22417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22425 #include <$ac_header>
22427 if { (ac_try="$ac_cpp conftest.$ac_ext"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } >/dev/null && {
22440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22443 ac_header_preproc=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_header_preproc=no
22451 rm -f conftest.err conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6; }
22455 # So? What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22462 ac_header_preproc=yes
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22478 ## ------------------------------- ##
22479 ## Report this to nfs@lists.sf.net ##
22480 ## ------------------------------- ##
22482 ) | sed "s/^/$as_me: WARNING: /" >&2
22485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 eval "$as_ac_Header=\$ac_header_preproc"
22492 ac_res=`eval echo '${'$as_ac_Header'}'`
22493 { echo "$as_me:$LINENO: result: $ac_res" >&5
22494 echo "${ECHO_T}$ac_res" >&6; }
22497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22498 cat >>confdefs.h <<_ACEOF
22499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22503 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22504 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22505 { (exit 1); exit 1; }; }
22510 if test "$enable_gss" = yes; then
22513 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22514 if test -n "$ac_tool_prefix"; then
22515 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 case $PKG_CONFIG in
22524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22528 for as_dir in $PATH
22531 test -z "$as_dir" && as_dir=.
22532 for ac_exec_ext in '' $ac_executable_extensions; do
22533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22546 if test -n "$PKG_CONFIG"; then
22547 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22548 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22550 { echo "$as_me:$LINENO: result: no" >&5
22551 echo "${ECHO_T}no" >&6; }
22556 if test -z "$ac_cv_path_PKG_CONFIG"; then
22557 ac_pt_PKG_CONFIG=$PKG_CONFIG
22558 # Extract the first word of "pkg-config", so it can be a program name with args.
22559 set dummy pkg-config; ac_word=$2
22560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22562 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 case $ac_pt_PKG_CONFIG in
22567 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in $PATH
22574 test -z "$as_dir" && as_dir=.
22575 for ac_exec_ext in '' $ac_executable_extensions; do
22576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22577 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22588 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22589 if test -n "$ac_pt_PKG_CONFIG"; then
22590 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22591 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22593 { echo "$as_me:$LINENO: result: no" >&5
22594 echo "${ECHO_T}no" >&6; }
22597 if test "x$ac_pt_PKG_CONFIG" = x; then
22600 case $cross_compiling:$ac_tool_warned in
22602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22603 whose name does not start with the host triplet. If you think this
22604 configuration is useful to you, please write to autoconf@gnu.org." >&5
22605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22606 whose name does not start with the host triplet. If you think this
22607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22608 ac_tool_warned=yes ;;
22610 PKG_CONFIG=$ac_pt_PKG_CONFIG
22613 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22617 if test -n "$PKG_CONFIG"; then
22618 _pkg_min_version=0.9.0
22619 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22620 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22621 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22622 { echo "$as_me:$LINENO: result: yes" >&5
22623 echo "${ECHO_T}yes" >&6; }
22625 { echo "$as_me:$LINENO: result: no" >&5
22626 echo "${ECHO_T}no" >&6; }
22633 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22634 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22636 if test -n "$PKG_CONFIG"; then
22637 if test -n "$RPCSECGSS_CFLAGS"; then
22638 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22640 if test -n "$PKG_CONFIG" && \
22641 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22642 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; then
22646 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22654 if test -n "$PKG_CONFIG"; then
22655 if test -n "$RPCSECGSS_LIBS"; then
22656 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22658 if test -n "$PKG_CONFIG" && \
22659 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22660 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; then
22664 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22675 if test $pkg_failed = yes; then
22677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22678 _pkg_short_errors_supported=yes
22680 _pkg_short_errors_supported=no
22682 if test $_pkg_short_errors_supported = yes; then
22683 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22685 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22687 # Put the nasty error message in config.log where it belongs
22688 echo "$RPCSECGSS_PKG_ERRORS" >&5
22690 { echo "$as_me:$LINENO: result: no" >&5
22691 echo "${ECHO_T}no" >&6; }
22692 { { 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
22693 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;}
22694 { (exit 1); exit 1; }; }
22697 elif test $pkg_failed = untried; then
22698 { { 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
22699 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;}
22700 { (exit 1); exit 1; }; }
22704 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22705 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22706 { echo "$as_me:$LINENO: result: yes" >&5
22707 echo "${ECHO_T}yes" >&6; }
22712 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22713 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22715 if test -n "$PKG_CONFIG"; then
22716 if test -n "$GSSGLUE_CFLAGS"; then
22717 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22719 if test -n "$PKG_CONFIG" && \
22720 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22721 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; then
22725 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22733 if test -n "$PKG_CONFIG"; then
22734 if test -n "$GSSGLUE_LIBS"; then
22735 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22737 if test -n "$PKG_CONFIG" && \
22738 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22739 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; then
22743 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22754 if test $pkg_failed = yes; then
22756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22757 _pkg_short_errors_supported=yes
22759 _pkg_short_errors_supported=no
22761 if test $_pkg_short_errors_supported = yes; then
22762 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22764 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22766 # Put the nasty error message in config.log where it belongs
22767 echo "$GSSGLUE_PKG_ERRORS" >&5
22769 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22771 $GSSGLUE_PKG_ERRORS
22773 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22774 installed software in a non-standard prefix.
22776 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22777 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22778 See the pkg-config man page for more details.
22780 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22782 $GSSGLUE_PKG_ERRORS
22784 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22785 installed software in a non-standard prefix.
22787 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22788 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22789 See the pkg-config man page for more details.
22791 { (exit 1); exit 1; }; }
22792 elif test $pkg_failed = untried; then
22793 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22794 is in your PATH or set the PKG_CONFIG environment variable to the full
22795 path to pkg-config.
22797 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22798 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22799 See the pkg-config man page for more details.
22801 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22802 See \`config.log' for more details." >&5
22803 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22804 is in your PATH or set the PKG_CONFIG environment variable to the full
22805 path to pkg-config.
22807 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22808 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22809 See the pkg-config man page for more details.
22811 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22812 See \`config.log' for more details." >&2;}
22813 { (exit 1); exit 1; }; }
22815 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22816 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22817 { echo "$as_me:$LINENO: result: yes" >&5
22818 echo "${ECHO_T}yes" >&6; }
22824 if test "$knfsd_cv_glibc2" = no; then
22825 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22826 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22827 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 ac_check_lib_save_LIBS=$LIBS
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest$ac_exeext &&
22871 $as_test_x conftest$ac_exeext; then
22872 ac_cv_lib_bsd_daemon=yes
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_cv_lib_bsd_daemon=no
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22882 LIBS=$ac_check_lib_save_LIBS
22884 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22885 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22886 if test $ac_cv_lib_bsd_daemon = yes; then
22892 if test "$choose_blkid" != no; then
22893 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22894 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22895 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 ac_check_lib_save_LIBS=$LIBS
22899 LIBS="-lblkid $LIBS"
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22907 /* Override any GCC internal prototype to avoid an error.
22908 Use char because int might match the return type of a GCC
22909 builtin and then its argument prototype would still apply. */
22913 char blkid_get_library_version ();
22917 return blkid_get_library_version ();
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (ac_try="$ac_link"
22924 case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_link") 2>conftest.er1
22931 grep -v '^ *+' conftest.er1 >conftest.err
22933 cat conftest.err >&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } && {
22936 test -z "$ac_c_werror_flag" ||
22937 test ! -s conftest.err
22938 } && test -s conftest$ac_exeext &&
22939 $as_test_x conftest$ac_exeext; then
22940 ac_cv_lib_blkid_blkid_get_library_version=yes
22942 echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22945 ac_cv_lib_blkid_blkid_get_library_version=no
22948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22949 conftest$ac_exeext conftest.$ac_ext
22950 LIBS=$ac_check_lib_save_LIBS
22952 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22953 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22954 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22957 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22958 echo "$as_me: error: libblkid needed" >&2;}
22959 { (exit 1); exit 1; }; }
22962 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22963 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22964 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22965 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22969 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22971 # Is the header compilable?
22972 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22973 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 $ac_includes_default
22981 #include <blkid/blkid.h>
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 ac_header_compiler=yes
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_header_compiler=no
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23010 echo "${ECHO_T}$ac_header_compiler" >&6; }
23012 # Is the header present?
23013 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23014 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 #include <blkid/blkid.h>
23023 if { (ac_try="$ac_cpp conftest.$ac_ext"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23031 grep -v '^ *+' conftest.er1 >conftest.err
23033 cat conftest.err >&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } >/dev/null && {
23036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23037 test ! -s conftest.err
23039 ac_header_preproc=yes
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23044 ac_header_preproc=no
23047 rm -f conftest.err conftest.$ac_ext
23048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23049 echo "${ECHO_T}$ac_header_preproc" >&6; }
23051 # So? What about this header?
23052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23054 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23055 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23057 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23058 ac_header_preproc=yes
23061 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23064 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23065 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23066 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23067 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23068 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23070 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23072 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23074 ## ------------------------------- ##
23075 ## Report this to nfs@lists.sf.net ##
23076 ## ------------------------------- ##
23078 ) | sed "s/^/$as_me: WARNING: /" >&2
23081 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23082 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23083 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23088 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23089 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23092 if test $ac_cv_header_blkid_blkid_h = yes; then
23095 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23096 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23097 { (exit 1); exit 1; }; }
23102 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23103 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23104 if test "${libblkid_is_recent+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 if test "$cross_compiling" = yes; then
23111 libblkid_is_recent=unknown
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23120 #include <blkid/blkid.h>
23123 int vers = blkid_get_library_version(0, 0);
23124 return vers >= 140 ? 0 : 1;
23128 rm -f conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_link") 2>&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23139 { (case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_try") 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 libblkid_is_recent=yes
23150 echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ( exit $ac_status )
23155 libblkid_is_recent=no
23157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23165 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23167 if test $choose_blkid = yes; then
23169 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23170 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23172 if test $libblkid_is_recent = yes
23175 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23176 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23180 cat >>confdefs.h <<_ACEOF
23181 #define USE_BLKID $use_blkid
23190 if test "$enable_gss" = yes; then
23192 for ac_header in nfsidmap.h
23194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 ac_res=`eval echo '${'$as_ac_Header'}'`
23202 { echo "$as_me:$LINENO: result: $ac_res" >&5
23203 echo "${ECHO_T}$ac_res" >&6; }
23205 # Is the header compilable?
23206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 $ac_includes_default
23215 #include <$ac_header>
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_header_compiler=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_header_compiler=no
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23244 echo "${ECHO_T}$ac_header_compiler" >&6; }
23246 # Is the header present?
23247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include <$ac_header>
23257 if { (ac_try="$ac_cpp conftest.$ac_ext"
23258 case "(($ac_try" in
23259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260 *) ac_try_echo=$ac_try;;
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23265 grep -v '^ *+' conftest.er1 >conftest.err
23267 cat conftest.err >&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } >/dev/null && {
23270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23271 test ! -s conftest.err
23273 ac_header_preproc=yes
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23278 ac_header_preproc=no
23281 rm -f conftest.err conftest.$ac_ext
23282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23283 echo "${ECHO_T}$ac_header_preproc" >&6; }
23285 # So? What about this header?
23286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23292 ac_header_preproc=yes
23295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23308 ## ------------------------------- ##
23309 ## Report this to nfs@lists.sf.net ##
23310 ## ------------------------------- ##
23312 ) | sed "s/^/$as_me: WARNING: /" >&2
23315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 eval "$as_ac_Header=\$ac_header_preproc"
23322 ac_res=`eval echo '${'$as_ac_Header'}'`
23323 { echo "$as_me:$LINENO: result: $ac_res" >&5
23324 echo "${ECHO_T}$ac_res" >&6; }
23327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23328 cat >>confdefs.h <<_ACEOF
23329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23333 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23334 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23335 { (exit 1); exit 1; }; }
23341 for ac_header in spkm3.h
23343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 ac_res=`eval echo '${'$as_ac_Header'}'`
23351 { echo "$as_me:$LINENO: result: $ac_res" >&5
23352 echo "${ECHO_T}$ac_res" >&6; }
23354 # Is the header compilable?
23355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23357 cat >conftest.$ac_ext <<_ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 $ac_includes_default
23364 #include <$ac_header>
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_compile") 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest.$ac_objext; then
23383 ac_header_compiler=yes
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 ac_header_compiler=no
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23393 echo "${ECHO_T}$ac_header_compiler" >&6; }
23395 # Is the header present?
23396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 #include <$ac_header>
23406 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
23419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23422 ac_header_preproc=yes
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_header_preproc=no
23430 rm -f conftest.err conftest.$ac_ext
23431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23432 echo "${ECHO_T}$ac_header_preproc" >&6; }
23434 # So? What about this header?
23435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23441 ac_header_preproc=yes
23444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23457 ## ------------------------------- ##
23458 ## Report this to nfs@lists.sf.net ##
23459 ## ------------------------------- ##
23461 ) | sed "s/^/$as_me: WARNING: /" >&2
23464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 eval "$as_ac_Header=\$ac_header_preproc"
23471 ac_res=`eval echo '${'$as_ac_Header'}'`
23472 { echo "$as_me:$LINENO: result: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23477 cat >>confdefs.h <<_ACEOF
23478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23482 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23483 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23488 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23489 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23490 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 ac_check_lib_save_LIBS=$LIBS
23494 LIBS="-lnfsidmap $LIBS"
23495 cat >conftest.$ac_ext <<_ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23502 /* Override any GCC internal prototype to avoid an error.
23503 Use char because int might match the return type of a GCC
23504 builtin and then its argument prototype would still apply. */
23508 char nfs4_set_debug ();
23512 return nfs4_set_debug ();
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_link") 2>conftest.er1
23526 grep -v '^ *+' conftest.er1 >conftest.err
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest$ac_exeext &&
23534 $as_test_x conftest$ac_exeext; then
23535 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23545 LIBS=$ac_check_lib_save_LIBS
23547 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23548 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23549 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_NFS4_SET_DEBUG 1
23559 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23560 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23562 # Check whether --with-krb5 was given.
23563 if test "${with_krb5+set}" = set; then
23564 withval=$with_krb5; case "$withval" in
23569 krb5_with="$withval"
23576 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23577 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23579 if test -f $dir/bin/krb5-config; then
23580 K5CONFIG=$dir/bin/krb5-config
23581 elif test -f "/usr/kerberos/bin/krb5-config"; then
23582 K5CONFIG="/usr/kerberos/bin/krb5-config"
23583 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23584 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23586 if test "$K5CONFIG" != ""; then
23587 KRBCFLAGS=`$K5CONFIG --cflags`
23588 KRBLIBS=`$K5CONFIG --libs gssapi`
23589 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23591 cat >>confdefs.h <<_ACEOF
23592 #define KRB5_VERSION $K5VERS
23595 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23596 \( -f $dir/lib/libgssapi_krb5.a -o \
23597 -f $dir/lib64/libgssapi_krb5.a -o \
23598 -f $dir/lib64/libgssapi_krb5.so -o \
23599 -f $dir/lib/libgssapi_krb5.so \) ; then
23601 cat >>confdefs.h <<\_ACEOF
23602 #define HAVE_KRB5 1
23606 if test $K5VERS -le 131; then
23608 cat >>confdefs.h <<\_ACEOF
23609 #define USE_GSS_KRB5_CCACHE_NAME 1
23613 gssapi_lib=gssapi_krb5
23615 elif test \( -f $dir/include/heim_err.h -o\
23616 -f $dir/include/heimdal/heim_err.h \) -a \
23617 -f $dir/lib/libroken.a; then
23619 cat >>confdefs.h <<\_ACEOF
23620 #define HAVE_HEIMDAL 1
23629 if test "x$KRBDIR" = "x"; then
23630 if test "x$krb5_with" = "x"; then
23631 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23632 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23633 { (exit 1); exit 1; }; }
23635 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23636 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23637 { (exit 1); exit 1; }; }
23640 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23641 echo "${ECHO_T}$KRBDIR" >&6; }
23643 echo "The current KRBDIR is $KRBDIR"
23644 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23645 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23647 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23650 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23653 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23654 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23655 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23656 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 ac_check_lib_save_LIBS=$LIBS
23660 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23668 /* Override any GCC internal prototype to avoid an error.
23669 Use char because int might match the return type of a GCC
23670 builtin and then its argument prototype would still apply. */
23674 char gss_krb5_export_lucid_sec_context ();
23678 return gss_krb5_export_lucid_sec_context ();
23683 rm -f conftest.$ac_objext conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_link") 2>conftest.er1
23692 grep -v '^ *+' conftest.er1 >conftest.err
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest$ac_exeext &&
23700 $as_test_x conftest$ac_exeext; then
23701 eval "$as_ac_Lib=yes"
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23706 eval "$as_ac_Lib=no"
23709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23710 conftest$ac_exeext conftest.$ac_ext
23711 LIBS=$ac_check_lib_save_LIBS
23713 ac_res=`eval echo '${'$as_ac_Lib'}'`
23714 { echo "$as_me:$LINENO: result: $ac_res" >&5
23715 echo "${ECHO_T}$ac_res" >&6; }
23716 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23718 cat >>confdefs.h <<\_ACEOF
23719 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23724 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23725 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23726 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23727 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 ac_check_lib_save_LIBS=$LIBS
23731 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23739 /* Override any GCC internal prototype to avoid an error.
23740 Use char because int might match the return type of a GCC
23741 builtin and then its argument prototype would still apply. */
23745 char gss_krb5_set_allowable_enctypes ();
23749 return gss_krb5_set_allowable_enctypes ();
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_link") 2>conftest.er1
23763 grep -v '^ *+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest$ac_exeext &&
23771 $as_test_x conftest$ac_exeext; then
23772 eval "$as_ac_Lib=yes"
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 eval "$as_ac_Lib=no"
23780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23781 conftest$ac_exeext conftest.$ac_ext
23782 LIBS=$ac_check_lib_save_LIBS
23784 ac_res=`eval echo '${'$as_ac_Lib'}'`
23785 { echo "$as_me:$LINENO: result: $ac_res" >&5
23786 echo "${ECHO_T}$ac_res" >&6; }
23787 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23795 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23796 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23797 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 ac_check_lib_save_LIBS=$LIBS
23802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23810 /* Override any GCC internal prototype to avoid an error.
23811 Use char because int might match the return type of a GCC
23812 builtin and then its argument prototype would still apply. */
23816 char gss_krb5_ccache_name ();
23820 return gss_krb5_ccache_name ();
23825 rm -f conftest.$ac_objext conftest$ac_exeext
23826 if { (ac_try="$ac_link"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_link") 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } && {
23839 test -z "$ac_c_werror_flag" ||
23840 test ! -s conftest.err
23841 } && test -s conftest$ac_exeext &&
23842 $as_test_x conftest$ac_exeext; then
23843 eval "$as_ac_Lib=yes"
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 eval "$as_ac_Lib=no"
23851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23852 conftest$ac_exeext conftest.$ac_ext
23853 LIBS=$ac_check_lib_save_LIBS
23855 ac_res=`eval echo '${'$as_ac_Lib'}'`
23856 { echo "$as_me:$LINENO: result: $ac_res" >&5
23857 echo "${ECHO_T}$ac_res" >&6; }
23858 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23867 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23868 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23869 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23870 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 ac_check_lib_save_LIBS=$LIBS
23874 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23875 cat >conftest.$ac_ext <<_ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23882 /* Override any GCC internal prototype to avoid an error.
23883 Use char because int might match the return type of a GCC
23884 builtin and then its argument prototype would still apply. */
23888 char krb5_get_error_message ();
23892 return krb5_get_error_message ();
23897 rm -f conftest.$ac_objext conftest$ac_exeext
23898 if { (ac_try="$ac_link"
23899 case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904 (eval "$ac_link") 2>conftest.er1
23906 grep -v '^ *+' conftest.er1 >conftest.err
23908 cat conftest.err >&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } && {
23911 test -z "$ac_c_werror_flag" ||
23912 test ! -s conftest.err
23913 } && test -s conftest$ac_exeext &&
23914 $as_test_x conftest$ac_exeext; then
23915 eval "$as_ac_Lib=yes"
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 eval "$as_ac_Lib=no"
23923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23924 conftest$ac_exeext conftest.$ac_ext
23925 LIBS=$ac_check_lib_save_LIBS
23927 ac_res=`eval echo '${'$as_ac_Lib'}'`
23928 { echo "$as_me:$LINENO: result: $ac_res" >&5
23929 echo "${ECHO_T}$ac_res" >&6; }
23930 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23939 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23940 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23941 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23942 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 ac_check_lib_save_LIBS=$LIBS
23946 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23947 cat >conftest.$ac_ext <<_ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h. */
23954 /* Override any GCC internal prototype to avoid an error.
23955 Use char because int might match the return type of a GCC
23956 builtin and then its argument prototype would still apply. */
23960 char krb5_get_init_creds_opt_set_addressless ();
23964 return krb5_get_init_creds_opt_set_addressless ();
23969 rm -f conftest.$ac_objext conftest$ac_exeext
23970 if { (ac_try="$ac_link"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976 (eval "$ac_link") 2>conftest.er1
23978 grep -v '^ *+' conftest.er1 >conftest.err
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } && {
23983 test -z "$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 } && test -s conftest$ac_exeext &&
23986 $as_test_x conftest$ac_exeext; then
23987 eval "$as_ac_Lib=yes"
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 eval "$as_ac_Lib=no"
23995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23996 conftest$ac_exeext conftest.$ac_ext
23997 LIBS=$ac_check_lib_save_LIBS
23999 ac_res=`eval echo '${'$as_ac_Lib'}'`
24000 { echo "$as_me:$LINENO: result: $ac_res" >&5
24001 echo "${ECHO_T}$ac_res" >&6; }
24002 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24004 cat >>confdefs.h <<\_ACEOF
24005 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24011 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24012 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24013 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24024 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24025 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24026 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24031 cat >conftest.$ac_ext <<_ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24038 /* Override any GCC internal prototype to avoid an error.
24039 Use char because int might match the return type of a GCC
24040 builtin and then its argument prototype would still apply. */
24044 char authgss_create_default ();
24048 return authgss_create_default ();
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_link") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest$ac_exeext &&
24070 $as_test_x conftest$ac_exeext; then
24071 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_cv_lib_rpcsecgss_authgss_create_default=no
24079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24080 conftest$ac_exeext conftest.$ac_ext
24081 LIBS=$ac_check_lib_save_LIBS
24083 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24084 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24085 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24088 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24089 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24090 { (exit 1); exit 1; }; }
24093 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24094 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24095 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24098 ac_check_lib_save_LIBS=$LIBS
24099 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24107 /* Override any GCC internal prototype to avoid an error.
24108 Use char because int might match the return type of a GCC
24109 builtin and then its argument prototype would still apply. */
24113 char authgss_set_debug_level ();
24117 return authgss_set_debug_level ();
24122 rm -f conftest.$ac_objext conftest$ac_exeext
24123 if { (ac_try="$ac_link"
24124 case "(($ac_try" in
24125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126 *) ac_try_echo=$ac_try;;
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129 (eval "$ac_link") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest$ac_exeext &&
24139 $as_test_x conftest$ac_exeext; then
24140 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24149 conftest$ac_exeext conftest.$ac_ext
24150 LIBS=$ac_check_lib_save_LIBS
24152 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24153 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24154 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24156 cat >>confdefs.h <<\_ACEOF
24157 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24188 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24189 malloc.h memory.h netdb.h netinet/in.h paths.h \
24190 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24191 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24192 syslog.h unistd.h com_err.h et/com_err.h \
24195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 ac_res=`eval echo '${'$as_ac_Header'}'`
24203 { echo "$as_me:$LINENO: result: $ac_res" >&5
24204 echo "${ECHO_T}$ac_res" >&6; }
24206 # Is the header compilable?
24207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24209 cat >conftest.$ac_ext <<_ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 $ac_includes_default
24216 #include <$ac_header>
24218 rm -f conftest.$ac_objext
24219 if { (ac_try="$ac_compile"
24220 case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225 (eval "$ac_compile") 2>conftest.er1
24227 grep -v '^ *+' conftest.er1 >conftest.err
24229 cat conftest.err >&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); } && {
24232 test -z "$ac_c_werror_flag" ||
24233 test ! -s conftest.err
24234 } && test -s conftest.$ac_objext; then
24235 ac_header_compiler=yes
24237 echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24240 ac_header_compiler=no
24243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24245 echo "${ECHO_T}$ac_header_compiler" >&6; }
24247 # Is the header present?
24248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24250 cat >conftest.$ac_ext <<_ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h. */
24256 #include <$ac_header>
24258 if { (ac_try="$ac_cpp conftest.$ac_ext"
24259 case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24266 grep -v '^ *+' conftest.er1 >conftest.err
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } >/dev/null && {
24271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24274 ac_header_preproc=yes
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_header_preproc=no
24282 rm -f conftest.err conftest.$ac_ext
24283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24284 echo "${ECHO_T}$ac_header_preproc" >&6; }
24286 # So? What about this header?
24287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24293 ac_header_preproc=yes
24296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24309 ## ------------------------------- ##
24310 ## Report this to nfs@lists.sf.net ##
24311 ## ------------------------------- ##
24313 ) | sed "s/^/$as_me: WARNING: /" >&2
24316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24321 eval "$as_ac_Header=\$ac_header_preproc"
24323 ac_res=`eval echo '${'$as_ac_Header'}'`
24324 { echo "$as_me:$LINENO: result: $ac_res" >&5
24325 echo "${ECHO_T}$ac_res" >&6; }
24328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24329 cat >>confdefs.h <<_ACEOF
24330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24338 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24339 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24340 if test "${ac_cv_c_const+set}" = set; then
24341 echo $ECHO_N "(cached) $ECHO_C" >&6
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24353 /* FIXME: Include the comments suggested by Paul. */
24354 #ifndef __cplusplus
24355 /* Ultrix mips cc rejects this. */
24356 typedef int charset[2];
24358 /* SunOS 4.1.1 cc rejects this. */
24359 char const *const *pcpcc;
24361 /* NEC SVR4.0.2 mips cc rejects this. */
24362 struct point {int x, y;};
24363 static struct point const zero = {0,0};
24364 /* AIX XL C 1.02.0.0 rejects this.
24365 It does not let you subtract one const X* pointer from another in
24366 an arm of an if-expression whose if-part is not a constant
24368 const char *g = "string";
24369 pcpcc = &g + (g ? g-g : 0);
24370 /* HPUX 7.0 cc rejects these. */
24372 ppc = (char**) pcpcc;
24373 pcpcc = (char const *const *) ppc;
24374 { /* SCO 3.2v4 cc rejects this. */
24376 char const *s = 0 ? (char *) 0 : (char const *) 0;
24381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24382 int x[] = {25, 17};
24383 const int *foo = &x[0];
24386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24387 typedef const int *iptr;
24391 { /* AIX XL C 1.02.0.0 rejects this saying
24392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24393 struct s { int j; const int *ap[3]; };
24394 struct s *b; b->j = 5;
24396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24397 const int foo = 10;
24398 if (!foo) return 0;
24400 return !cs[0] && !zero.x;
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24416 grep -v '^ *+' conftest.er1 >conftest.err
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24435 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24436 if test $ac_cv_c_const = no; then
24438 cat >>confdefs.h <<\_ACEOF
24444 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24445 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_type_uid_t+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 #include <sys/types.h>
24458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24459 $EGREP "uid_t" >/dev/null 2>&1; then
24460 ac_cv_type_uid_t=yes
24462 ac_cv_type_uid_t=no
24467 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24468 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24469 if test $ac_cv_type_uid_t = no; then
24471 cat >>confdefs.h <<\_ACEOF
24476 cat >>confdefs.h <<\_ACEOF
24482 { echo "$as_me:$LINENO: checking for inline" >&5
24483 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24484 if test "${ac_cv_c_inline+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 for ac_kw in inline __inline__ __inline; do
24489 cat >conftest.$ac_ext <<_ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24495 #ifndef __cplusplus
24497 static $ac_kw foo_t static_foo () {return 0; }
24498 $ac_kw foo_t foo () {return 0; }
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest.$ac_objext; then
24519 ac_cv_c_inline=$ac_kw
24521 echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528 test "$ac_cv_c_inline" != no && break
24532 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24533 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24536 case $ac_cv_c_inline in
24539 case $ac_cv_c_inline in
24541 *) ac_val=$ac_cv_c_inline;;
24543 cat >>confdefs.h <<_ACEOF
24544 #ifndef __cplusplus
24545 #define inline $ac_val
24551 { echo "$as_me:$LINENO: checking for off_t" >&5
24552 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24553 if test "${ac_cv_type_off_t+set}" = set; then
24554 echo $ECHO_N "(cached) $ECHO_C" >&6
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 $ac_includes_default
24563 typedef off_t ac__type_new_;
24567 if ((ac__type_new_ *) 0)
24569 if (sizeof (ac__type_new_))
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_compile") 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest.$ac_objext; then
24592 ac_cv_type_off_t=yes
24594 echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24597 ac_cv_type_off_t=no
24600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24602 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24603 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24604 if test $ac_cv_type_off_t = yes; then
24608 cat >>confdefs.h <<_ACEOF
24609 #define off_t long int
24614 { echo "$as_me:$LINENO: checking for pid_t" >&5
24615 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24616 if test "${ac_cv_type_pid_t+set}" = set; then
24617 echo $ECHO_N "(cached) $ECHO_C" >&6
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 $ac_includes_default
24626 typedef pid_t ac__type_new_;
24630 if ((ac__type_new_ *) 0)
24632 if (sizeof (ac__type_new_))
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_compile") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest.$ac_objext; then
24655 ac_cv_type_pid_t=yes
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_cv_type_pid_t=no
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24666 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24667 if test $ac_cv_type_pid_t = yes; then
24671 cat >>confdefs.h <<_ACEOF
24677 { echo "$as_me:$LINENO: checking for size_t" >&5
24678 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24679 if test "${ac_cv_type_size_t+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 cat >conftest.$ac_ext <<_ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 typedef size_t ac__type_new_;
24693 if ((ac__type_new_ *) 0)
24695 if (sizeof (ac__type_new_))
24701 rm -f conftest.$ac_objext
24702 if { (ac_try="$ac_compile"
24703 case "(($ac_try" in
24704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705 *) ac_try_echo=$ac_try;;
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708 (eval "$ac_compile") 2>conftest.er1
24710 grep -v '^ *+' conftest.er1 >conftest.err
24712 cat conftest.err >&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } && {
24715 test -z "$ac_c_werror_flag" ||
24716 test ! -s conftest.err
24717 } && test -s conftest.$ac_objext; then
24718 ac_cv_type_size_t=yes
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ac_cv_type_size_t=no
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24729 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24730 if test $ac_cv_type_size_t = yes; then
24734 cat >>confdefs.h <<_ACEOF
24735 #define size_t unsigned int
24740 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24741 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24742 if test "${ac_cv_header_time+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24745 cat >conftest.$ac_ext <<_ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24751 #include <sys/types.h>
24752 #include <sys/time.h>
24758 if ((struct tm *) 0)
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_compile") 2>conftest.er1
24773 grep -v '^ *+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } && {
24778 test -z "$ac_c_werror_flag" ||
24779 test ! -s conftest.err
24780 } && test -s conftest.$ac_objext; then
24781 ac_cv_header_time=yes
24783 echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ac_cv_header_time=no
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24791 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24792 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24793 if test $ac_cv_header_time = yes; then
24795 cat >>confdefs.h <<\_ACEOF
24796 #define TIME_WITH_SYS_TIME 1
24801 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24802 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24803 if test "${ac_cv_struct_tm+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24806 cat >conftest.$ac_ext <<_ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 #include <sys/types.h>
24819 int *p = &tm.tm_sec;
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832 (eval "$ac_compile") 2>conftest.er1
24834 grep -v '^ *+' conftest.er1 >conftest.err
24836 cat conftest.err >&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } && {
24839 test -z "$ac_c_werror_flag" ||
24840 test ! -s conftest.err
24841 } && test -s conftest.$ac_objext; then
24842 ac_cv_struct_tm=time.h
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24847 ac_cv_struct_tm=sys/time.h
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24853 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24854 if test $ac_cv_struct_tm = sys/time.h; then
24856 cat >>confdefs.h <<\_ACEOF
24857 #define TM_IN_SYS_TIME 1
24863 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24864 # for constant arguments. Useless!
24865 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24866 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24867 if test "${ac_cv_working_alloca_h+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 cat >conftest.$ac_ext <<_ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 #include <alloca.h>
24880 char *p = (char *) alloca (2 * sizeof (int));
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_link") 2>conftest.er1
24895 grep -v '^ *+' conftest.er1 >conftest.err
24897 cat conftest.err >&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest$ac_exeext &&
24903 $as_test_x conftest$ac_exeext; then
24904 ac_cv_working_alloca_h=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_cv_working_alloca_h=no
24912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24913 conftest$ac_exeext conftest.$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24916 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24917 if test $ac_cv_working_alloca_h = yes; then
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_ALLOCA_H 1
24925 { echo "$as_me:$LINENO: checking for alloca" >&5
24926 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24927 if test "${ac_cv_func_alloca_works+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24930 cat >conftest.$ac_ext <<_ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24937 # define alloca __builtin_alloca
24940 # include <malloc.h>
24941 # define alloca _alloca
24943 # ifdef HAVE_ALLOCA_H
24944 # include <alloca.h>
24949 # ifndef alloca /* predefined by HP cc +Olibcalls */
24960 char *p = (char *) alloca (1);
24966 rm -f conftest.$ac_objext conftest$ac_exeext
24967 if { (ac_try="$ac_link"
24968 case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973 (eval "$ac_link") 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } && {
24980 test -z "$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 } && test -s conftest$ac_exeext &&
24983 $as_test_x conftest$ac_exeext; then
24984 ac_cv_func_alloca_works=yes
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24989 ac_cv_func_alloca_works=no
24992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24993 conftest$ac_exeext conftest.$ac_ext
24995 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24998 if test $ac_cv_func_alloca_works = yes; then
25000 cat >>confdefs.h <<\_ACEOF
25001 #define HAVE_ALLOCA 1
25005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25006 # that cause trouble. Some versions do not even contain alloca or
25007 # contain a buggy version. If you still want to use their alloca,
25008 # use ar to extract alloca.o from them instead of compiling alloca.c.
25010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25012 cat >>confdefs.h <<\_ACEOF
25017 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25019 if test "${ac_cv_os_cray+set}" = set; then
25020 echo $ECHO_N "(cached) $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #if defined CRAY && ! defined CRAY2
25035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25036 $EGREP "webecray" >/dev/null 2>&1; then
25044 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25045 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25046 if test $ac_cv_os_cray = yes; then
25047 for ac_func in _getb67 GETB67 getb67; do
25048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25062 #define $ac_func innocuous_$ac_func
25064 /* System header to define __stub macros and hopefully few prototypes,
25065 which can conflict with char $ac_func (); below.
25066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25067 <limits.h> exists even on freestanding compilers. */
25070 # include <limits.h>
25072 # include <assert.h>
25077 /* Override any GCC internal prototype to avoid an error.
25078 Use char because int might match the return type of a GCC
25079 builtin and then its argument prototype would still apply. */
25084 /* The GNU C library defines this for functions which it implements
25085 to always fail with ENOSYS. Some functions are actually named
25086 something starting with __ and the normal name is an alias. */
25087 #if defined __stub_$ac_func || defined __stub___$ac_func
25094 return $ac_func ();
25099 rm -f conftest.$ac_objext conftest$ac_exeext
25100 if { (ac_try="$ac_link"
25101 case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_link") 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest$ac_exeext &&
25116 $as_test_x conftest$ac_exeext; then
25117 eval "$as_ac_var=yes"
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 eval "$as_ac_var=no"
25125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25126 conftest$ac_exeext conftest.$ac_ext
25128 ac_res=`eval echo '${'$as_ac_var'}'`
25129 { echo "$as_me:$LINENO: result: $ac_res" >&5
25130 echo "${ECHO_T}$ac_res" >&6; }
25131 if test `eval echo '${'$as_ac_var'}'` = yes; then
25133 cat >>confdefs.h <<_ACEOF
25134 #define CRAY_STACKSEG_END $ac_func
25143 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25144 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25145 if test "${ac_cv_c_stack_direction+set}" = set; then
25146 echo $ECHO_N "(cached) $ECHO_C" >&6
25148 if test "$cross_compiling" = yes; then
25149 ac_cv_c_stack_direction=0
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25159 find_stack_direction ()
25161 static char *addr = 0;
25166 return find_stack_direction ();
25169 return (&dummy > addr) ? 1 : -1;
25175 return find_stack_direction () < 0;
25178 rm -f conftest$ac_exeext
25179 if { (ac_try="$ac_link"
25180 case "(($ac_try" in
25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182 *) ac_try_echo=$ac_try;;
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185 (eval "$ac_link") 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25189 { (case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_try") 2>&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 ac_cv_c_stack_direction=1
25200 echo "$as_me: program exited with status $ac_status" >&5
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25204 ( exit $ac_status )
25205 ac_cv_c_stack_direction=-1
25207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25212 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25213 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25215 cat >>confdefs.h <<_ACEOF
25216 #define STACK_DIRECTION $ac_cv_c_stack_direction
25227 ac_header_dirent=no
25228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25229 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25230 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25231 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 cat >conftest.$ac_ext <<_ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25241 #include <sys/types.h>
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260 (eval "$ac_compile") 2>conftest.er1
25262 grep -v '^ *+' conftest.er1 >conftest.err
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } && {
25267 test -z "$ac_c_werror_flag" ||
25268 test ! -s conftest.err
25269 } && test -s conftest.$ac_objext; then
25270 eval "$as_ac_Header=yes"
25272 echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25275 eval "$as_ac_Header=no"
25278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 ac_res=`eval echo '${'$as_ac_Header'}'`
25281 { echo "$as_me:$LINENO: result: $ac_res" >&5
25282 echo "${ECHO_T}$ac_res" >&6; }
25283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25284 cat >>confdefs.h <<_ACEOF
25285 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25288 ac_header_dirent=$ac_hdr; break
25292 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25293 if test $ac_header_dirent = dirent.h; then
25294 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25295 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25296 if test "${ac_cv_search_opendir+set}" = set; then
25297 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 ac_func_search_save_LIBS=$LIBS
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25322 for ac_lib in '' dir; do
25323 if test -z "$ac_lib"; then
25324 ac_res="none required"
25327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_link") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && {
25343 test -z "$ac_c_werror_flag" ||
25344 test ! -s conftest.err
25345 } && test -s conftest$ac_exeext &&
25346 $as_test_x conftest$ac_exeext; then
25347 ac_cv_search_opendir=$ac_res
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25357 if test "${ac_cv_search_opendir+set}" = set; then
25361 if test "${ac_cv_search_opendir+set}" = set; then
25364 ac_cv_search_opendir=no
25366 rm conftest.$ac_ext
25367 LIBS=$ac_func_search_save_LIBS
25369 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25370 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25371 ac_res=$ac_cv_search_opendir
25372 if test "$ac_res" != no; then
25373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25378 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25379 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25380 if test "${ac_cv_search_opendir+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 ac_func_search_save_LIBS=$LIBS
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25391 /* Override any GCC internal prototype to avoid an error.
25392 Use char because int might match the return type of a GCC
25393 builtin and then its argument prototype would still apply. */
25406 for ac_lib in '' x; do
25407 if test -z "$ac_lib"; then
25408 ac_res="none required"
25411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25413 rm -f conftest.$ac_objext conftest$ac_exeext
25414 if { (ac_try="$ac_link"
25415 case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_link") 2>conftest.er1
25422 grep -v '^ *+' conftest.er1 >conftest.err
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && {
25427 test -z "$ac_c_werror_flag" ||
25428 test ! -s conftest.err
25429 } && test -s conftest$ac_exeext &&
25430 $as_test_x conftest$ac_exeext; then
25431 ac_cv_search_opendir=$ac_res
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25441 if test "${ac_cv_search_opendir+set}" = set; then
25445 if test "${ac_cv_search_opendir+set}" = set; then
25448 ac_cv_search_opendir=no
25450 rm conftest.$ac_ext
25451 LIBS=$ac_func_search_save_LIBS
25453 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25454 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25455 ac_res=$ac_cv_search_opendir
25456 if test "$ac_res" != no; then
25457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25463 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25464 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25465 if test "${ac_cv_func_closedir_void+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 if test "$cross_compiling" = yes; then
25469 ac_cv_func_closedir_void=yes
25471 cat >conftest.$ac_ext <<_ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h. */
25477 $ac_includes_default
25478 #include <$ac_header_dirent>
25479 #ifndef __cplusplus
25486 return closedir (opendir (".")) != 0;
25491 rm -f conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_link") 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502 { (case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_try") 2>&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 ac_cv_func_closedir_void=no
25513 echo "$as_me: program exited with status $ac_status" >&5
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 ( exit $ac_status )
25518 ac_cv_func_closedir_void=yes
25520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25525 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25526 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25527 if test $ac_cv_func_closedir_void = yes; then
25529 cat >>confdefs.h <<\_ACEOF
25530 #define CLOSEDIR_VOID 1
25535 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25536 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25537 if test "${ac_cv_lib_error_at_line+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25550 error_at_line (0, 0, "", 0, "an error occurred");
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (ac_try="$ac_link"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_link") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest$ac_exeext &&
25572 $as_test_x conftest$ac_exeext; then
25573 ac_cv_lib_error_at_line=yes
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ac_cv_lib_error_at_line=no
25581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25582 conftest$ac_exeext conftest.$ac_ext
25584 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25585 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25586 if test $ac_cv_lib_error_at_line = no; then
25587 case " $LIBOBJS " in
25588 *" error.$ac_objext "* ) ;;
25589 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25596 for ac_header in vfork.h
25598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25605 ac_res=`eval echo '${'$as_ac_Header'}'`
25606 { echo "$as_me:$LINENO: result: $ac_res" >&5
25607 echo "${ECHO_T}$ac_res" >&6; }
25609 # Is the header compilable?
25610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 $ac_includes_default
25619 #include <$ac_header>
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_compile") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && {
25635 test -z "$ac_c_werror_flag" ||
25636 test ! -s conftest.err
25637 } && test -s conftest.$ac_objext; then
25638 ac_header_compiler=yes
25640 echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_header_compiler=no
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648 echo "${ECHO_T}$ac_header_compiler" >&6; }
25650 # Is the header present?
25651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 #include <$ac_header>
25661 if { (ac_try="$ac_cpp conftest.$ac_ext"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25669 grep -v '^ *+' conftest.er1 >conftest.err
25671 cat conftest.err >&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } >/dev/null && {
25674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25675 test ! -s conftest.err
25677 ac_header_preproc=yes
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25682 ac_header_preproc=no
25685 rm -f conftest.err conftest.$ac_ext
25686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25687 echo "${ECHO_T}$ac_header_preproc" >&6; }
25689 # So? What about this header?
25690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25696 ac_header_preproc=yes
25699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25712 ## ------------------------------- ##
25713 ## Report this to nfs@lists.sf.net ##
25714 ## ------------------------------- ##
25716 ) | sed "s/^/$as_me: WARNING: /" >&2
25719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25722 echo $ECHO_N "(cached) $ECHO_C" >&6
25724 eval "$as_ac_Header=\$ac_header_preproc"
25726 ac_res=`eval echo '${'$as_ac_Header'}'`
25727 { echo "$as_me:$LINENO: result: $ac_res" >&5
25728 echo "${ECHO_T}$ac_res" >&6; }
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732 cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25742 for ac_func in fork vfork
25744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25758 #define $ac_func innocuous_$ac_func
25760 /* System header to define __stub macros and hopefully few prototypes,
25761 which can conflict with char $ac_func (); below.
25762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25763 <limits.h> exists even on freestanding compilers. */
25766 # include <limits.h>
25768 # include <assert.h>
25773 /* Override any GCC internal prototype to avoid an error.
25774 Use char because int might match the return type of a GCC
25775 builtin and then its argument prototype would still apply. */
25780 /* The GNU C library defines this for functions which it implements
25781 to always fail with ENOSYS. Some functions are actually named
25782 something starting with __ and the normal name is an alias. */
25783 #if defined __stub_$ac_func || defined __stub___$ac_func
25790 return $ac_func ();
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (ac_try="$ac_link"
25797 case "(($ac_try" in
25798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799 *) ac_try_echo=$ac_try;;
25801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25802 (eval "$ac_link") 2>conftest.er1
25804 grep -v '^ *+' conftest.er1 >conftest.err
25806 cat conftest.err >&5
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); } && {
25809 test -z "$ac_c_werror_flag" ||
25810 test ! -s conftest.err
25811 } && test -s conftest$ac_exeext &&
25812 $as_test_x conftest$ac_exeext; then
25813 eval "$as_ac_var=yes"
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 eval "$as_ac_var=no"
25821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25822 conftest$ac_exeext conftest.$ac_ext
25824 ac_res=`eval echo '${'$as_ac_var'}'`
25825 { echo "$as_me:$LINENO: result: $ac_res" >&5
25826 echo "${ECHO_T}$ac_res" >&6; }
25827 if test `eval echo '${'$as_ac_var'}'` = yes; then
25828 cat >>confdefs.h <<_ACEOF
25829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25835 if test "x$ac_cv_func_fork" = xyes; then
25836 { echo "$as_me:$LINENO: checking for working fork" >&5
25837 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25838 if test "${ac_cv_func_fork_works+set}" = set; then
25839 echo $ECHO_N "(cached) $ECHO_C" >&6
25841 if test "$cross_compiling" = yes; then
25842 ac_cv_func_fork_works=cross
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25855 /* By Ruediger Kuhlmann. */
25856 return fork () < 0;
25862 rm -f conftest$ac_exeext
25863 if { (ac_try="$ac_link"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_link") 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25873 { (case "(($ac_try" in
25874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875 *) ac_try_echo=$ac_try;;
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878 (eval "$ac_try") 2>&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ac_cv_func_fork_works=yes
25884 echo "$as_me: program exited with status $ac_status" >&5
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 ( exit $ac_status )
25889 ac_cv_func_fork_works=no
25891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25896 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25897 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25900 ac_cv_func_fork_works=$ac_cv_func_fork
25902 if test "x$ac_cv_func_fork_works" = xcross; then
25904 *-*-amigaos* | *-*-msdosdjgpp*)
25905 # Override, as these systems have only a dummy fork() stub
25906 ac_cv_func_fork_works=no
25909 ac_cv_func_fork_works=yes
25912 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25913 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25915 ac_cv_func_vfork_works=$ac_cv_func_vfork
25916 if test "x$ac_cv_func_vfork" = xyes; then
25917 { echo "$as_me:$LINENO: checking for working vfork" >&5
25918 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25919 if test "${ac_cv_func_vfork_works+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 if test "$cross_compiling" = yes; then
25923 ac_cv_func_vfork_works=cross
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 /* Thanks to Paul Eggert for this test. */
25932 $ac_includes_default
25933 #include <sys/wait.h>
25934 #ifdef HAVE_VFORK_H
25935 # include <vfork.h>
25937 /* On some sparc systems, changes by the child to local and incoming
25938 argument registers are propagated back to the parent. The compiler
25939 is told about this with #include <vfork.h>, but some compilers
25940 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25941 static variable whose address is put into a register that is
25942 clobbered by the vfork. */
25945 sparc_address_test (int arg)
25947 sparc_address_test (arg) int arg;
25950 static pid_t child;
25968 pid_t parent = getpid ();
25971 sparc_address_test (0);
25976 /* Here is another test for sparc vfork register problems. This
25977 test uses lots of local variables, at least as many local
25978 variables as main has allocated so far including compiler
25979 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25980 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25981 reuse the register of parent for one of the local variables,
25982 since it will think that parent can't possibly be used any more
25983 in this routine. Assigning to the local variable will thus
25984 munge parent in the parent process. */
25986 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25987 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25988 /* Convince the compiler that p..p7 are live; otherwise, it might
25989 use the same hardware register for all 8 local variables. */
25990 if (p != p1 || p != p2 || p != p3 || p != p4
25991 || p != p5 || p != p6 || p != p7)
25994 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25995 from child file descriptors. If the child closes a descriptor
25996 before it execs or exits, this munges the parent's descriptor
25997 as well. Test for this by closing stdout in the child. */
25998 _exit(close(fileno(stdout)) != 0);
26003 while (wait(&status) != child)
26006 /* Was there some problem with vforking? */
26009 /* Did the child fail? (This shouldn't happen.) */
26012 /* Did the vfork/compiler bug occur? */
26013 || parent != getpid()
26015 /* Did the file descriptor bug occur? */
26016 || fstat(fileno(stdout), &st) != 0
26021 rm -f conftest$ac_exeext
26022 if { (ac_try="$ac_link"
26023 case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_link") 2>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26032 { (case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_try") 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 ac_cv_func_vfork_works=yes
26043 echo "$as_me: program exited with status $ac_status" >&5
26044 echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26047 ( exit $ac_status )
26048 ac_cv_func_vfork_works=no
26050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26055 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26056 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26059 if test "x$ac_cv_func_fork_works" = xcross; then
26060 ac_cv_func_vfork_works=$ac_cv_func_vfork
26061 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26062 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26065 if test "x$ac_cv_func_vfork_works" = xyes; then
26067 cat >>confdefs.h <<\_ACEOF
26068 #define HAVE_WORKING_VFORK 1
26073 cat >>confdefs.h <<\_ACEOF
26078 if test "x$ac_cv_func_fork_works" = xyes; then
26080 cat >>confdefs.h <<\_ACEOF
26081 #define HAVE_WORKING_FORK 1
26086 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26087 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26088 if test "${ac_cv_type_getgroups+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 if test "$cross_compiling" = yes; then
26092 ac_cv_type_getgroups=cross
26094 cat >conftest.$ac_ext <<_ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h. */
26100 /* Thanks to Mike Rendell for this test. */
26101 $ac_includes_default
26104 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26109 gid_t gidset[NGID];
26111 union { gid_t gval; long int lval; } val;
26114 for (i = 0; i < NGID; i++)
26115 gidset[i] = val.gval;
26116 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26118 /* Exit non-zero if getgroups seems to require an array of ints. This
26119 happens when gid_t is short int but getgroups modifies an array
26121 return n > 0 && gidset[n] != val.gval;
26124 rm -f conftest$ac_exeext
26125 if { (ac_try="$ac_link"
26126 case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_link") 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26135 { (case "(($ac_try" in
26136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137 *) ac_try_echo=$ac_try;;
26139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140 (eval "$ac_try") 2>&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; }; then
26144 ac_cv_type_getgroups=gid_t
26146 echo "$as_me: program exited with status $ac_status" >&5
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26150 ( exit $ac_status )
26151 ac_cv_type_getgroups=int
26153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26157 if test $ac_cv_type_getgroups = cross; then
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 #include <unistd.h>
26167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26168 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26169 ac_cv_type_getgroups=gid_t
26171 ac_cv_type_getgroups=int
26177 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26178 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26180 cat >>confdefs.h <<_ACEOF
26181 #define GETGROUPS_T $ac_cv_type_getgroups
26185 { echo "$as_me:$LINENO: checking for getgroups" >&5
26186 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26187 if test "${ac_cv_func_getgroups+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26198 #define getgroups innocuous_getgroups
26200 /* System header to define __stub macros and hopefully few prototypes,
26201 which can conflict with char getgroups (); below.
26202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26203 <limits.h> exists even on freestanding compilers. */
26206 # include <limits.h>
26208 # include <assert.h>
26213 /* Override any GCC internal prototype to avoid an error.
26214 Use char because int might match the return type of a GCC
26215 builtin and then its argument prototype would still apply. */
26220 /* The GNU C library defines this for functions which it implements
26221 to always fail with ENOSYS. Some functions are actually named
26222 something starting with __ and the normal name is an alias. */
26223 #if defined __stub_getgroups || defined __stub___getgroups
26230 return getgroups ();
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (ac_try="$ac_link"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_link") 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest$ac_exeext &&
26252 $as_test_x conftest$ac_exeext; then
26253 ac_cv_func_getgroups=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_cv_func_getgroups=no
26261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26262 conftest$ac_exeext conftest.$ac_ext
26264 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26265 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26268 # If we don't yet have getgroups, see if it's in -lbsd.
26269 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26271 if test $ac_cv_func_getgroups = no; then
26272 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26273 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26274 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 ac_check_lib_save_LIBS=$LIBS
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26286 /* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26296 return getgroups ();
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_link") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest$ac_exeext &&
26318 $as_test_x conftest$ac_exeext; then
26319 ac_cv_lib_bsd_getgroups=yes
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ac_cv_lib_bsd_getgroups=no
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26328 conftest$ac_exeext conftest.$ac_ext
26329 LIBS=$ac_check_lib_save_LIBS
26331 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26332 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26333 if test $ac_cv_lib_bsd_getgroups = yes; then
26334 GETGROUPS_LIB=-lbsd
26339 # Run the program to test the functionality of the system-supplied
26340 # getgroups function only if there is such a function.
26341 if test $ac_cv_func_getgroups = yes; then
26342 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26343 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26344 if test "${ac_cv_func_getgroups_works+set}" = set; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
26347 if test "$cross_compiling" = yes; then
26348 ac_cv_func_getgroups_works=no
26350 cat >conftest.$ac_ext <<_ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26356 $ac_includes_default
26360 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26361 return getgroups (0, 0) == -1;
26366 rm -f conftest$ac_exeext
26367 if { (ac_try="$ac_link"
26368 case "(($ac_try" in
26369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26370 *) ac_try_echo=$ac_try;;
26372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26373 (eval "$ac_link") 2>&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26377 { (case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382 (eval "$ac_try") 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; }; then
26386 ac_cv_func_getgroups_works=yes
26388 echo "$as_me: program exited with status $ac_status" >&5
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 ( exit $ac_status )
26393 ac_cv_func_getgroups_works=no
26395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26401 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26402 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26403 if test $ac_cv_func_getgroups_works = yes; then
26405 cat >>confdefs.h <<\_ACEOF
26406 #define HAVE_GETGROUPS 1
26413 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26414 # -lseq on Dynix/PTX, -lgen on Unixware.
26415 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26416 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26417 if test "${ac_cv_search_getmntent+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 ac_func_search_save_LIBS=$LIBS
26421 cat >conftest.$ac_ext <<_ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h. */
26428 /* Override any GCC internal prototype to avoid an error.
26429 Use char because int might match the return type of a GCC
26430 builtin and then its argument prototype would still apply. */
26438 return getmntent ();
26443 for ac_lib in '' sun seq gen; do
26444 if test -z "$ac_lib"; then
26445 ac_res="none required"
26448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_link") 2>conftest.er1
26459 grep -v '^ *+' conftest.er1 >conftest.err
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest$ac_exeext &&
26467 $as_test_x conftest$ac_exeext; then
26468 ac_cv_search_getmntent=$ac_res
26470 echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26478 if test "${ac_cv_search_getmntent+set}" = set; then
26482 if test "${ac_cv_search_getmntent+set}" = set; then
26485 ac_cv_search_getmntent=no
26487 rm conftest.$ac_ext
26488 LIBS=$ac_func_search_save_LIBS
26490 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26491 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26492 ac_res=$ac_cv_search_getmntent
26493 if test "$ac_res" != no; then
26494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26495 ac_cv_func_getmntent=yes
26497 cat >>confdefs.h <<\_ACEOF
26498 #define HAVE_GETMNTENT 1
26502 ac_cv_func_getmntent=no
26506 if test $ac_cv_c_compiler_gnu = yes; then
26507 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26508 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26509 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26510 echo $ECHO_N "(cached) $ECHO_C" >&6
26512 ac_pattern="Autoconf.*'x'"
26513 cat >conftest.$ac_ext <<_ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h. */
26522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26523 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26524 ac_cv_prog_gcc_traditional=yes
26526 ac_cv_prog_gcc_traditional=no
26531 if test $ac_cv_prog_gcc_traditional = no; then
26532 cat >conftest.$ac_ext <<_ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26538 #include <termio.h>
26541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26542 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26543 ac_cv_prog_gcc_traditional=yes
26549 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26550 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26551 if test $ac_cv_prog_gcc_traditional = yes; then
26552 CC="$CC -traditional"
26556 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26557 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26558 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26561 rm -f conftest.sym conftest.file
26562 echo >conftest.file
26563 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26564 if test "$cross_compiling" = yes; then
26565 ac_cv_func_lstat_dereferences_slashed_symlink=no
26567 cat >conftest.$ac_ext <<_ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26573 $ac_includes_default
26578 /* Linux will dereference the symlink and fail.
26579 That is better in the sense that it means we will not
26580 have to compile and use the lstat wrapper. */
26581 return lstat ("conftest.sym/", &sbuf) == 0;
26586 rm -f conftest$ac_exeext
26587 if { (ac_try="$ac_link"
26588 case "(($ac_try" in
26589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590 *) ac_try_echo=$ac_try;;
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593 (eval "$ac_link") 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26597 { (case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_try") 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26608 echo "$as_me: program exited with status $ac_status" >&5
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26612 ( exit $ac_status )
26613 ac_cv_func_lstat_dereferences_slashed_symlink=no
26615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26620 # If the `ln -s' command failed, then we probably don't even
26621 # have an lstat function.
26622 ac_cv_func_lstat_dereferences_slashed_symlink=no
26624 rm -f conftest.sym conftest.file
26627 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26628 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26630 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26632 cat >>confdefs.h <<_ACEOF
26633 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26637 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26638 case " $LIBOBJS " in
26639 *" lstat.$ac_objext "* ) ;;
26640 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26646 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26647 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26648 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26651 if test "$cross_compiling" = yes; then
26652 ac_cv_func_lstat_empty_string_bug=yes
26654 cat >conftest.$ac_ext <<_ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26660 $ac_includes_default
26665 return lstat ("", &sbuf) == 0;
26670 rm -f conftest$ac_exeext
26671 if { (ac_try="$ac_link"
26672 case "(($ac_try" in
26673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674 *) ac_try_echo=$ac_try;;
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677 (eval "$ac_link") 2>&5
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26681 { (case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_try") 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_func_lstat_empty_string_bug=no
26692 echo "$as_me: program exited with status $ac_status" >&5
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ( exit $ac_status )
26697 ac_cv_func_lstat_empty_string_bug=yes
26699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26704 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26705 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26706 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26707 case " $LIBOBJS " in
26708 *" lstat.$ac_objext "* ) ;;
26709 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26714 cat >>confdefs.h <<_ACEOF
26715 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26720 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26721 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26722 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26723 echo $ECHO_N "(cached) $ECHO_C" >&6
26725 rm -f conftest.sym conftest.file
26726 echo >conftest.file
26727 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26728 if test "$cross_compiling" = yes; then
26729 ac_cv_func_lstat_dereferences_slashed_symlink=no
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 $ac_includes_default
26742 /* Linux will dereference the symlink and fail.
26743 That is better in the sense that it means we will not
26744 have to compile and use the lstat wrapper. */
26745 return lstat ("conftest.sym/", &sbuf) == 0;
26750 rm -f conftest$ac_exeext
26751 if { (ac_try="$ac_link"
26752 case "(($ac_try" in
26753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754 *) ac_try_echo=$ac_try;;
26756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757 (eval "$ac_link") 2>&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26761 { (case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 (eval "$ac_try") 2>&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); }; }; then
26770 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26772 echo "$as_me: program exited with status $ac_status" >&5
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26776 ( exit $ac_status )
26777 ac_cv_func_lstat_dereferences_slashed_symlink=no
26779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26784 # If the `ln -s' command failed, then we probably don't even
26785 # have an lstat function.
26786 ac_cv_func_lstat_dereferences_slashed_symlink=no
26788 rm -f conftest.sym conftest.file
26791 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26792 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26794 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26796 cat >>confdefs.h <<_ACEOF
26797 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26801 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26802 case " $LIBOBJS " in
26803 *" lstat.$ac_objext "* ) ;;
26804 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26810 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26811 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26812 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26821 #include <sys/types.h>
26825 return makedev(0, 0);
26830 rm -f conftest.$ac_objext conftest$ac_exeext
26831 if { (ac_try="$ac_link"
26832 case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837 (eval "$ac_link") 2>conftest.er1
26839 grep -v '^ *+' conftest.er1 >conftest.err
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } && {
26844 test -z "$ac_c_werror_flag" ||
26845 test ! -s conftest.err
26846 } && test -s conftest$ac_exeext &&
26847 $as_test_x conftest$ac_exeext; then
26848 ac_cv_header_sys_types_h_makedev=yes
26850 echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 ac_cv_header_sys_types_h_makedev=no
26856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26857 conftest$ac_exeext conftest.$ac_ext
26860 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26861 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26863 if test $ac_cv_header_sys_types_h_makedev = no; then
26864 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26865 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26866 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26867 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26873 # Is the header compilable?
26874 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26875 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26876 cat >conftest.$ac_ext <<_ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882 $ac_includes_default
26883 #include <sys/mkdev.h>
26885 rm -f conftest.$ac_objext
26886 if { (ac_try="$ac_compile"
26887 case "(($ac_try" in
26888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892 (eval "$ac_compile") 2>conftest.er1
26894 grep -v '^ *+' conftest.er1 >conftest.err
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } && {
26899 test -z "$ac_c_werror_flag" ||
26900 test ! -s conftest.err
26901 } && test -s conftest.$ac_objext; then
26902 ac_header_compiler=yes
26904 echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26907 ac_header_compiler=no
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26912 echo "${ECHO_T}$ac_header_compiler" >&6; }
26914 # Is the header present?
26915 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26916 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26923 #include <sys/mkdev.h>
26925 if { (ac_try="$ac_cpp conftest.$ac_ext"
26926 case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26933 grep -v '^ *+' conftest.er1 >conftest.err
26935 cat conftest.err >&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } >/dev/null && {
26938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26939 test ! -s conftest.err
26941 ac_header_preproc=yes
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ac_header_preproc=no
26949 rm -f conftest.err conftest.$ac_ext
26950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951 echo "${ECHO_T}$ac_header_preproc" >&6; }
26953 # So? What about this header?
26954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26960 ac_header_preproc=yes
26963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26976 ## ------------------------------- ##
26977 ## Report this to nfs@lists.sf.net ##
26978 ## ------------------------------- ##
26980 ) | sed "s/^/$as_me: WARNING: /" >&2
26983 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26984 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26985 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26988 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26994 if test $ac_cv_header_sys_mkdev_h = yes; then
26996 cat >>confdefs.h <<\_ACEOF
26997 #define MAJOR_IN_MKDEV 1
27004 if test $ac_cv_header_sys_mkdev_h = no; then
27005 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27006 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27007 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27008 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27012 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27014 # Is the header compilable?
27015 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27016 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 $ac_includes_default
27024 #include <sys/sysmacros.h>
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_compile") 2>conftest.er1
27035 grep -v '^ *+' conftest.er1 >conftest.err
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } && {
27040 test -z "$ac_c_werror_flag" ||
27041 test ! -s conftest.err
27042 } && test -s conftest.$ac_objext; then
27043 ac_header_compiler=yes
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ac_header_compiler=no
27051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27053 echo "${ECHO_T}$ac_header_compiler" >&6; }
27055 # Is the header present?
27056 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27057 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27064 #include <sys/sysmacros.h>
27066 if { (ac_try="$ac_cpp conftest.$ac_ext"
27067 case "(($ac_try" in
27068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069 *) ac_try_echo=$ac_try;;
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27074 grep -v '^ *+' conftest.er1 >conftest.err
27076 cat conftest.err >&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } >/dev/null && {
27079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27080 test ! -s conftest.err
27082 ac_header_preproc=yes
27084 echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27087 ac_header_preproc=no
27090 rm -f conftest.err conftest.$ac_ext
27091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27092 echo "${ECHO_T}$ac_header_preproc" >&6; }
27094 # So? What about this header?
27095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27097 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27098 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27099 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27100 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27101 ac_header_preproc=yes
27104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27107 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27109 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27111 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27113 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27115 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27117 ## ------------------------------- ##
27118 ## Report this to nfs@lists.sf.net ##
27119 ## ------------------------------- ##
27121 ) | sed "s/^/$as_me: WARNING: /" >&2
27124 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27125 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27126 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27127 echo $ECHO_N "(cached) $ECHO_C" >&6
27129 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27135 if test $ac_cv_header_sys_sysmacros_h = yes; then
27137 cat >>confdefs.h <<\_ACEOF
27138 #define MAJOR_IN_SYSMACROS 1
27148 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27149 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27150 if test "${ac_cv_func_memcmp_working+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 if test "$cross_compiling" = yes; then
27154 ac_cv_func_memcmp_working=no
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27162 $ac_includes_default
27167 /* Some versions of memcmp are not 8-bit clean. */
27168 char c0 = '\100', c1 = '\200', c2 = '\201';
27169 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27172 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27173 or more and with at least one buffer not starting on a 4-byte boundary.
27174 William Lewis provided this test program. */
27179 for (i = 0; i < 4; i++)
27183 strcpy (a, "--------01111111");
27184 strcpy (b, "--------10000000");
27185 if (memcmp (a, b, 16) >= 0)
27195 rm -f conftest$ac_exeext
27196 if { (ac_try="$ac_link"
27197 case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_link") 2>&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 ac_cv_func_memcmp_working=yes
27217 echo "$as_me: program exited with status $ac_status" >&5
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 ( exit $ac_status )
27222 ac_cv_func_memcmp_working=no
27224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27229 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27230 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27231 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27232 *" memcmp.$ac_objext "* ) ;;
27233 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27241 for ac_header in sys/select.h sys/socket.h
27243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 ac_res=`eval echo '${'$as_ac_Header'}'`
27251 { echo "$as_me:$LINENO: result: $ac_res" >&5
27252 echo "${ECHO_T}$ac_res" >&6; }
27254 # Is the header compilable?
27255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27257 cat >conftest.$ac_ext <<_ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263 $ac_includes_default
27264 #include <$ac_header>
27266 rm -f conftest.$ac_objext
27267 if { (ac_try="$ac_compile"
27268 case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_compile") 2>conftest.er1
27275 grep -v '^ *+' conftest.er1 >conftest.err
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } && {
27280 test -z "$ac_c_werror_flag" ||
27281 test ! -s conftest.err
27282 } && test -s conftest.$ac_objext; then
27283 ac_header_compiler=yes
27285 echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27288 ac_header_compiler=no
27291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27293 echo "${ECHO_T}$ac_header_compiler" >&6; }
27295 # Is the header present?
27296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27298 cat >conftest.$ac_ext <<_ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h. */
27304 #include <$ac_header>
27306 if { (ac_try="$ac_cpp conftest.$ac_ext"
27307 case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } >/dev/null && {
27319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27320 test ! -s conftest.err
27322 ac_header_preproc=yes
27324 echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27327 ac_header_preproc=no
27330 rm -f conftest.err conftest.$ac_ext
27331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27332 echo "${ECHO_T}$ac_header_preproc" >&6; }
27334 # So? What about this header?
27335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27341 ac_header_preproc=yes
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27357 ## ------------------------------- ##
27358 ## Report this to nfs@lists.sf.net ##
27359 ## ------------------------------- ##
27361 ) | sed "s/^/$as_me: WARNING: /" >&2
27364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 eval "$as_ac_Header=\$ac_header_preproc"
27371 ac_res=`eval echo '${'$as_ac_Header'}'`
27372 { echo "$as_me:$LINENO: result: $ac_res" >&5
27373 echo "${ECHO_T}$ac_res" >&6; }
27376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27377 cat >>confdefs.h <<_ACEOF
27378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27385 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27386 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27387 if test "${ac_cv_func_select_args+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27391 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27392 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27393 cat >conftest.$ac_ext <<_ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27399 $ac_includes_default
27400 #ifdef HAVE_SYS_SELECT_H
27401 # include <sys/select.h>
27403 #ifdef HAVE_SYS_SOCKET_H
27404 # include <sys/socket.h>
27410 extern int select ($ac_arg1,
27411 $ac_arg234, $ac_arg234, $ac_arg234,
27417 rm -f conftest.$ac_objext
27418 if { (ac_try="$ac_compile"
27419 case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_compile") 2>conftest.er1
27426 grep -v '^ *+' conftest.er1 >conftest.err
27428 cat conftest.err >&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } && {
27431 test -z "$ac_c_werror_flag" ||
27432 test ! -s conftest.err
27433 } && test -s conftest.$ac_objext; then
27434 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27436 echo "$as_me: failed program was:" >&5
27437 sed 's/^/| /' conftest.$ac_ext >&5
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27446 # Provide a safe default value.
27447 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27450 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27451 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27452 ac_save_IFS=$IFS; IFS=','
27453 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27457 cat >>confdefs.h <<_ACEOF
27458 #define SELECT_TYPE_ARG1 $1
27462 cat >>confdefs.h <<_ACEOF
27463 #define SELECT_TYPE_ARG234 ($2)
27467 cat >>confdefs.h <<_ACEOF
27468 #define SELECT_TYPE_ARG5 ($3)
27473 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27474 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27475 if test "${ac_cv_type_signal+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27478 cat >conftest.$ac_ext <<_ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h. */
27484 #include <sys/types.h>
27485 #include <signal.h>
27490 return *(signal (0, 0)) (0) == 1;
27495 rm -f conftest.$ac_objext
27496 if { (ac_try="$ac_compile"
27497 case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_compile") 2>conftest.er1
27504 grep -v '^ *+' conftest.er1 >conftest.err
27506 cat conftest.err >&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } && {
27509 test -z "$ac_c_werror_flag" ||
27510 test ! -s conftest.err
27511 } && test -s conftest.$ac_objext; then
27512 ac_cv_type_signal=int
27514 echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27517 ac_cv_type_signal=void
27520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27523 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27525 cat >>confdefs.h <<_ACEOF
27526 #define RETSIGTYPE $ac_cv_type_signal
27530 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27531 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27532 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 if test "$cross_compiling" = yes; then
27536 ac_cv_func_stat_empty_string_bug=yes
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27544 $ac_includes_default
27549 return stat ("", &sbuf) == 0;
27554 rm -f conftest$ac_exeext
27555 if { (ac_try="$ac_link"
27556 case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_link") 2>&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27565 { (case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_try") 2>&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; }; then
27574 ac_cv_func_stat_empty_string_bug=no
27576 echo "$as_me: program exited with status $ac_status" >&5
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 ( exit $ac_status )
27581 ac_cv_func_stat_empty_string_bug=yes
27583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27588 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27589 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27590 if test $ac_cv_func_stat_empty_string_bug = yes; then
27591 case " $LIBOBJS " in
27592 *" stat.$ac_objext "* ) ;;
27593 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_STAT_EMPTY_STRING_BUG 1
27605 for ac_func in vprintf
27607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27613 cat >conftest.$ac_ext <<_ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27621 #define $ac_func innocuous_$ac_func
27623 /* System header to define __stub macros and hopefully few prototypes,
27624 which can conflict with char $ac_func (); below.
27625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27626 <limits.h> exists even on freestanding compilers. */
27629 # include <limits.h>
27631 # include <assert.h>
27636 /* Override any GCC internal prototype to avoid an error.
27637 Use char because int might match the return type of a GCC
27638 builtin and then its argument prototype would still apply. */
27643 /* The GNU C library defines this for functions which it implements
27644 to always fail with ENOSYS. Some functions are actually named
27645 something starting with __ and the normal name is an alias. */
27646 #if defined __stub_$ac_func || defined __stub___$ac_func
27653 return $ac_func ();
27658 rm -f conftest.$ac_objext conftest$ac_exeext
27659 if { (ac_try="$ac_link"
27660 case "(($ac_try" in
27661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662 *) ac_try_echo=$ac_try;;
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665 (eval "$ac_link") 2>conftest.er1
27667 grep -v '^ *+' conftest.er1 >conftest.err
27669 cat conftest.err >&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } && {
27672 test -z "$ac_c_werror_flag" ||
27673 test ! -s conftest.err
27674 } && test -s conftest$ac_exeext &&
27675 $as_test_x conftest$ac_exeext; then
27676 eval "$as_ac_var=yes"
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27681 eval "$as_ac_var=no"
27684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27685 conftest$ac_exeext conftest.$ac_ext
27687 ac_res=`eval echo '${'$as_ac_var'}'`
27688 { echo "$as_me:$LINENO: result: $ac_res" >&5
27689 echo "${ECHO_T}$ac_res" >&6; }
27690 if test `eval echo '${'$as_ac_var'}'` = yes; then
27691 cat >>confdefs.h <<_ACEOF
27692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27695 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27697 if test "${ac_cv_func__doprnt+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27700 cat >conftest.$ac_ext <<_ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h. */
27706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27708 #define _doprnt innocuous__doprnt
27710 /* System header to define __stub macros and hopefully few prototypes,
27711 which can conflict with char _doprnt (); below.
27712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27713 <limits.h> exists even on freestanding compilers. */
27716 # include <limits.h>
27718 # include <assert.h>
27723 /* Override any GCC internal prototype to avoid an error.
27724 Use char because int might match the return type of a GCC
27725 builtin and then its argument prototype would still apply. */
27730 /* The GNU C library defines this for functions which it implements
27731 to always fail with ENOSYS. Some functions are actually named
27732 something starting with __ and the normal name is an alias. */
27733 #if defined __stub__doprnt || defined __stub____doprnt
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (ac_try="$ac_link"
27747 case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_link") 2>conftest.er1
27754 grep -v '^ *+' conftest.er1 >conftest.err
27756 cat conftest.err >&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); } && {
27759 test -z "$ac_c_werror_flag" ||
27760 test ! -s conftest.err
27761 } && test -s conftest$ac_exeext &&
27762 $as_test_x conftest$ac_exeext; then
27763 ac_cv_func__doprnt=yes
27765 echo "$as_me: failed program was:" >&5
27766 sed 's/^/| /' conftest.$ac_ext >&5
27768 ac_cv_func__doprnt=no
27771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27772 conftest$ac_exeext conftest.$ac_ext
27774 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27775 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27776 if test $ac_cv_func__doprnt = yes; then
27778 cat >>confdefs.h <<\_ACEOF
27779 #define HAVE_DOPRNT 1
27817 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27818 gethostbyaddr gethostbyname gethostname getmntent \
27819 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27820 realpath rmdir select socket strcasecmp strchr strdup \
27821 strerror strrchr strtol strtoul sigprocmask
27823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27829 cat >conftest.$ac_ext <<_ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27837 #define $ac_func innocuous_$ac_func
27839 /* System header to define __stub macros and hopefully few prototypes,
27840 which can conflict with char $ac_func (); below.
27841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27842 <limits.h> exists even on freestanding compilers. */
27845 # include <limits.h>
27847 # include <assert.h>
27852 /* Override any GCC internal prototype to avoid an error.
27853 Use char because int might match the return type of a GCC
27854 builtin and then its argument prototype would still apply. */
27859 /* The GNU C library defines this for functions which it implements
27860 to always fail with ENOSYS. Some functions are actually named
27861 something starting with __ and the normal name is an alias. */
27862 #if defined __stub_$ac_func || defined __stub___$ac_func
27869 return $ac_func ();
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (ac_try="$ac_link"
27876 case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_link") 2>conftest.er1
27883 grep -v '^ *+' conftest.er1 >conftest.err
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && {
27888 test -z "$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27890 } && test -s conftest$ac_exeext &&
27891 $as_test_x conftest$ac_exeext; then
27892 eval "$as_ac_var=yes"
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27897 eval "$as_ac_var=no"
27900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27901 conftest$ac_exeext conftest.$ac_ext
27903 ac_res=`eval echo '${'$as_ac_var'}'`
27904 { echo "$as_me:$LINENO: result: $ac_res" >&5
27905 echo "${ECHO_T}$ac_res" >&6; }
27906 if test `eval echo '${'$as_ac_var'}'` = yes; then
27907 cat >>confdefs.h <<_ACEOF
27908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27916 { echo "$as_me:$LINENO: checking for short" >&5
27917 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27918 if test "${ac_cv_type_short+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27927 $ac_includes_default
27928 typedef short ac__type_new_;
27932 if ((ac__type_new_ *) 0)
27934 if (sizeof (ac__type_new_))
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_compile") 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } && {
27954 test -z "$ac_c_werror_flag" ||
27955 test ! -s conftest.err
27956 } && test -s conftest.$ac_objext; then
27957 ac_cv_type_short=yes
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 ac_cv_type_short=no
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27967 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27968 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27970 # The cast to long int works around a bug in the HP C Compiler
27971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27973 # This bug is HP SR number 8606223364.
27974 { echo "$as_me:$LINENO: checking size of short" >&5
27975 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27976 if test "${ac_cv_sizeof_short+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 if test "$cross_compiling" = yes; then
27980 # Depending upon the size, compute the lo and hi bounds.
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 short ac__type_sizeof_;
27992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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 cat >conftest.$ac_ext <<_ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h. */
28024 $ac_includes_default
28025 typedef short ac__type_sizeof_;
28029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28036 rm -f conftest.$ac_objext
28037 if { (ac_try="$ac_compile"
28038 case "(($ac_try" in
28039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040 *) ac_try_echo=$ac_try;;
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043 (eval "$ac_compile") 2>conftest.er1
28045 grep -v '^ *+' conftest.er1 >conftest.err
28047 cat conftest.err >&5
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } && {
28050 test -z "$ac_c_werror_flag" ||
28051 test ! -s conftest.err
28052 } && test -s conftest.$ac_objext; then
28053 ac_hi=$ac_mid; break
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28058 ac_lo=`expr $ac_mid + 1`
28059 if test $ac_lo -le $ac_mid; then
28063 ac_mid=`expr 2 '*' $ac_mid + 1`
28066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28072 cat >conftest.$ac_ext <<_ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h. */
28078 $ac_includes_default
28079 typedef short ac__type_sizeof_;
28083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
28092 case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 (eval "$ac_compile") 2>conftest.er1
28099 grep -v '^ *+' conftest.er1 >conftest.err
28101 cat conftest.err >&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } && {
28104 test -z "$ac_c_werror_flag" ||
28105 test ! -s conftest.err
28106 } && test -s conftest.$ac_objext; then
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28115 $ac_includes_default
28116 typedef short ac__type_sizeof_;
28120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28127 rm -f conftest.$ac_objext
28128 if { (ac_try="$ac_compile"
28129 case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_compile") 2>conftest.er1
28136 grep -v '^ *+' conftest.er1 >conftest.err
28138 cat conftest.err >&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); } && {
28141 test -z "$ac_c_werror_flag" ||
28142 test ! -s conftest.err
28143 } && test -s conftest.$ac_objext; then
28144 ac_lo=$ac_mid; break
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 ac_hi=`expr '(' $ac_mid ')' - 1`
28150 if test $ac_mid -le $ac_hi; then
28154 ac_mid=`expr 2 '*' $ac_mid`
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160 echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170 # Binary search between lo and hi bounds.
28171 while test "x$ac_lo" != "x$ac_hi"; do
28172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28173 cat >conftest.$ac_ext <<_ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28179 $ac_includes_default
28180 typedef short ac__type_sizeof_;
28184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28191 rm -f conftest.$ac_objext
28192 if { (ac_try="$ac_compile"
28193 case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198 (eval "$ac_compile") 2>conftest.er1
28200 grep -v '^ *+' conftest.er1 >conftest.err
28202 cat conftest.err >&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } && {
28205 test -z "$ac_c_werror_flag" ||
28206 test ! -s conftest.err
28207 } && test -s conftest.$ac_objext; then
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28213 ac_lo=`expr '(' $ac_mid ')' + 1`
28216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28219 ?*) ac_cv_sizeof_short=$ac_lo;;
28220 '') if test "$ac_cv_type_short" = yes; then
28221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28222 See \`config.log' for more details." >&5
28223 echo "$as_me: error: cannot compute sizeof (short)
28224 See \`config.log' for more details." >&2;}
28225 { (exit 77); exit 77; }; }
28227 ac_cv_sizeof_short=0
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 short ac__type_sizeof_;
28239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28242 #include <stdlib.h>
28247 FILE *f = fopen ("conftest.val", "w");
28250 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28252 long int i = longval ();
28253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28255 fprintf (f, "%ld\n", i);
28259 unsigned long int i = ulongval ();
28260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28262 fprintf (f, "%lu\n", i);
28264 return ferror (f) || fclose (f) != 0;
28270 rm -f conftest$ac_exeext
28271 if { (ac_try="$ac_link"
28272 case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_link") 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28281 { (case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_try") 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_sizeof_short=`cat conftest.val`
28292 echo "$as_me: program exited with status $ac_status" >&5
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ( exit $ac_status )
28297 if test "$ac_cv_type_short" = yes; then
28298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28299 See \`config.log' for more details." >&5
28300 echo "$as_me: error: cannot compute sizeof (short)
28301 See \`config.log' for more details." >&2;}
28302 { (exit 77); exit 77; }; }
28304 ac_cv_sizeof_short=0
28307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28312 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28316 cat >>confdefs.h <<_ACEOF
28317 #define SIZEOF_SHORT $ac_cv_sizeof_short
28321 { echo "$as_me:$LINENO: checking for int" >&5
28322 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28323 if test "${ac_cv_type_int+set}" = set; then
28324 echo $ECHO_N "(cached) $ECHO_C" >&6
28326 cat >conftest.$ac_ext <<_ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h. */
28332 $ac_includes_default
28333 typedef int ac__type_new_;
28337 if ((ac__type_new_ *) 0)
28339 if (sizeof (ac__type_new_))
28345 rm -f conftest.$ac_objext
28346 if { (ac_try="$ac_compile"
28347 case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_compile") 2>conftest.er1
28354 grep -v '^ *+' conftest.er1 >conftest.err
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } && {
28359 test -z "$ac_c_werror_flag" ||
28360 test ! -s conftest.err
28361 } && test -s conftest.$ac_objext; then
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28372 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28373 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28375 # The cast to long int works around a bug in the HP C Compiler
28376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28378 # This bug is HP SR number 8606223364.
28379 { echo "$as_me:$LINENO: checking size of int" >&5
28380 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28381 if test "${ac_cv_sizeof_int+set}" = set; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28384 if test "$cross_compiling" = yes; then
28385 # Depending upon the size, compute the lo and hi bounds.
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 int ac__type_sizeof_;
28397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28429 $ac_includes_default
28430 typedef int ac__type_sizeof_;
28434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28441 rm -f conftest.$ac_objext
28442 if { (ac_try="$ac_compile"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_compile") 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } && {
28455 test -z "$ac_c_werror_flag" ||
28456 test ! -s conftest.err
28457 } && test -s conftest.$ac_objext; then
28458 ac_hi=$ac_mid; break
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_lo=`expr $ac_mid + 1`
28464 if test $ac_lo -le $ac_mid; then
28468 ac_mid=`expr 2 '*' $ac_mid + 1`
28471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 cat >conftest.$ac_ext <<_ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h. */
28483 $ac_includes_default
28484 typedef int ac__type_sizeof_;
28488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_compile") 2>conftest.er1
28504 grep -v '^ *+' conftest.er1 >conftest.err
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && {
28509 test -z "$ac_c_werror_flag" ||
28510 test ! -s conftest.err
28511 } && test -s conftest.$ac_objext; then
28514 cat >conftest.$ac_ext <<_ACEOF
28517 cat confdefs.h >>conftest.$ac_ext
28518 cat >>conftest.$ac_ext <<_ACEOF
28519 /* end confdefs.h. */
28520 $ac_includes_default
28521 typedef int ac__type_sizeof_;
28525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28532 rm -f conftest.$ac_objext
28533 if { (ac_try="$ac_compile"
28534 case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_compile") 2>conftest.er1
28541 grep -v '^ *+' conftest.er1 >conftest.err
28543 cat conftest.err >&5
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } && {
28546 test -z "$ac_c_werror_flag" ||
28547 test ! -s conftest.err
28548 } && test -s conftest.$ac_objext; then
28549 ac_lo=$ac_mid; break
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28554 ac_hi=`expr '(' $ac_mid ')' - 1`
28555 if test $ac_mid -le $ac_hi; then
28559 ac_mid=`expr 2 '*' $ac_mid`
28562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28575 # Binary search between lo and hi bounds.
28576 while test "x$ac_lo" != "x$ac_hi"; do
28577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 $ac_includes_default
28585 typedef int ac__type_sizeof_;
28589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
28605 grep -v '^ *+' conftest.er1 >conftest.err
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && {
28610 test -z "$ac_c_werror_flag" ||
28611 test ! -s conftest.err
28612 } && test -s conftest.$ac_objext; then
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28618 ac_lo=`expr '(' $ac_mid ')' + 1`
28621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624 ?*) ac_cv_sizeof_int=$ac_lo;;
28625 '') if test "$ac_cv_type_int" = yes; then
28626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28627 See \`config.log' for more details." >&5
28628 echo "$as_me: error: cannot compute sizeof (int)
28629 See \`config.log' for more details." >&2;}
28630 { (exit 77); exit 77; }; }
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 int ac__type_sizeof_;
28644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28647 #include <stdlib.h>
28652 FILE *f = fopen ("conftest.val", "w");
28655 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28657 long int i = longval ();
28658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28660 fprintf (f, "%ld\n", i);
28664 unsigned long int i = ulongval ();
28665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28667 fprintf (f, "%lu\n", i);
28669 return ferror (f) || fclose (f) != 0;
28675 rm -f conftest$ac_exeext
28676 if { (ac_try="$ac_link"
28677 case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_link") 2>&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28686 { (case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_try") 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_cv_sizeof_int=`cat conftest.val`
28697 echo "$as_me: program exited with status $ac_status" >&5
28698 echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28701 ( exit $ac_status )
28702 if test "$ac_cv_type_int" = yes; then
28703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28704 See \`config.log' for more details." >&5
28705 echo "$as_me: error: cannot compute sizeof (int)
28706 See \`config.log' for more details." >&2;}
28707 { (exit 77); exit 77; }; }
28712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28717 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28721 cat >>confdefs.h <<_ACEOF
28722 #define SIZEOF_INT $ac_cv_sizeof_int
28726 { echo "$as_me:$LINENO: checking for long" >&5
28727 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28728 if test "${ac_cv_type_long+set}" = set; then
28729 echo $ECHO_N "(cached) $ECHO_C" >&6
28731 cat >conftest.$ac_ext <<_ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28737 $ac_includes_default
28738 typedef long ac__type_new_;
28742 if ((ac__type_new_ *) 0)
28744 if (sizeof (ac__type_new_))
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28759 grep -v '^ *+' conftest.er1 >conftest.err
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } && {
28764 test -z "$ac_c_werror_flag" ||
28765 test ! -s conftest.err
28766 } && test -s conftest.$ac_objext; then
28767 ac_cv_type_long=yes
28769 echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28777 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28778 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28780 # The cast to long int works around a bug in the HP C Compiler
28781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28783 # This bug is HP SR number 8606223364.
28784 { echo "$as_me:$LINENO: checking size of long" >&5
28785 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28786 if test "${ac_cv_sizeof_long+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 if test "$cross_compiling" = yes; then
28790 # Depending upon the size, compute the lo and hi bounds.
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 long ac__type_sizeof_;
28802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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 cat >conftest.$ac_ext <<_ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28834 $ac_includes_default
28835 typedef long ac__type_sizeof_;
28839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28846 rm -f conftest.$ac_objext
28847 if { (ac_try="$ac_compile"
28848 case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_compile") 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && {
28860 test -z "$ac_c_werror_flag" ||
28861 test ! -s conftest.err
28862 } && test -s conftest.$ac_objext; then
28863 ac_hi=$ac_mid; break
28865 echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28868 ac_lo=`expr $ac_mid + 1`
28869 if test $ac_lo -le $ac_mid; then
28873 ac_mid=`expr 2 '*' $ac_mid + 1`
28876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 cat >conftest.$ac_ext <<_ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28888 $ac_includes_default
28889 typedef long ac__type_sizeof_;
28893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28900 rm -f conftest.$ac_objext
28901 if { (ac_try="$ac_compile"
28902 case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_compile") 2>conftest.er1
28909 grep -v '^ *+' conftest.er1 >conftest.err
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } && {
28914 test -z "$ac_c_werror_flag" ||
28915 test ! -s conftest.err
28916 } && test -s conftest.$ac_objext; then
28919 cat >conftest.$ac_ext <<_ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h. */
28925 $ac_includes_default
28926 typedef long ac__type_sizeof_;
28930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28937 rm -f conftest.$ac_objext
28938 if { (ac_try="$ac_compile"
28939 case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_compile") 2>conftest.er1
28946 grep -v '^ *+' conftest.er1 >conftest.err
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } && {
28951 test -z "$ac_c_werror_flag" ||
28952 test ! -s conftest.err
28953 } && test -s conftest.$ac_objext; then
28954 ac_lo=$ac_mid; break
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_hi=`expr '(' $ac_mid ')' - 1`
28960 if test $ac_mid -le $ac_hi; then
28964 ac_mid=`expr 2 '*' $ac_mid`
28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28980 # Binary search between lo and hi bounds.
28981 while test "x$ac_lo" != "x$ac_hi"; do
28982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28989 $ac_includes_default
28990 typedef long ac__type_sizeof_;
28994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_compile") 2>conftest.er1
29010 grep -v '^ *+' conftest.er1 >conftest.err
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } && {
29015 test -z "$ac_c_werror_flag" ||
29016 test ! -s conftest.err
29017 } && test -s conftest.$ac_objext; then
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ac_lo=`expr '(' $ac_mid ')' + 1`
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029 ?*) ac_cv_sizeof_long=$ac_lo;;
29030 '') if test "$ac_cv_type_long" = yes; then
29031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29032 See \`config.log' for more details." >&5
29033 echo "$as_me: error: cannot compute sizeof (long)
29034 See \`config.log' for more details." >&2;}
29035 { (exit 77); exit 77; }; }
29037 ac_cv_sizeof_long=0
29041 cat >conftest.$ac_ext <<_ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h. */
29047 $ac_includes_default
29048 typedef long ac__type_sizeof_;
29049 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29050 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29052 #include <stdlib.h>
29057 FILE *f = fopen ("conftest.val", "w");
29060 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29062 long int i = longval ();
29063 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29065 fprintf (f, "%ld\n", i);
29069 unsigned long int i = ulongval ();
29070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29072 fprintf (f, "%lu\n", i);
29074 return ferror (f) || fclose (f) != 0;
29080 rm -f conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_link") 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29091 { (case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_try") 2>&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 ac_cv_sizeof_long=`cat conftest.val`
29102 echo "$as_me: program exited with status $ac_status" >&5
29103 echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29106 ( exit $ac_status )
29107 if test "$ac_cv_type_long" = yes; then
29108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29109 See \`config.log' for more details." >&5
29110 echo "$as_me: error: cannot compute sizeof (long)
29111 See \`config.log' for more details." >&2;}
29112 { (exit 77); exit 77; }; }
29114 ac_cv_sizeof_long=0
29117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29122 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29126 cat >>confdefs.h <<_ACEOF
29127 #define SIZEOF_LONG $ac_cv_sizeof_long
29131 { echo "$as_me:$LINENO: checking for size_t" >&5
29132 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29133 if test "${ac_cv_type_size_t+set}" = set; then
29134 echo $ECHO_N "(cached) $ECHO_C" >&6
29136 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29142 $ac_includes_default
29143 typedef size_t ac__type_new_;
29147 if ((ac__type_new_ *) 0)
29149 if (sizeof (ac__type_new_))
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_compile") 2>conftest.er1
29164 grep -v '^ *+' conftest.er1 >conftest.err
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } && {
29169 test -z "$ac_c_werror_flag" ||
29170 test ! -s conftest.err
29171 } && test -s conftest.$ac_objext; then
29172 ac_cv_type_size_t=yes
29174 echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29177 ac_cv_type_size_t=no
29180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29182 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29183 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29185 # The cast to long int works around a bug in the HP C Compiler
29186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29188 # This bug is HP SR number 8606223364.
29189 { echo "$as_me:$LINENO: checking size of size_t" >&5
29190 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29191 if test "${ac_cv_sizeof_size_t+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 if test "$cross_compiling" = yes; then
29195 # Depending upon the size, compute the lo and hi bounds.
29196 cat >conftest.$ac_ext <<_ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h. */
29202 $ac_includes_default
29203 typedef size_t ac__type_sizeof_;
29207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29214 rm -f conftest.$ac_objext
29215 if { (ac_try="$ac_compile"
29216 case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_compile") 2>conftest.er1
29223 grep -v '^ *+' conftest.er1 >conftest.err
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } && {
29228 test -z "$ac_c_werror_flag" ||
29229 test ! -s conftest.err
29230 } && test -s conftest.$ac_objext; then
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29239 $ac_includes_default
29240 typedef size_t ac__type_sizeof_;
29244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29251 rm -f conftest.$ac_objext
29252 if { (ac_try="$ac_compile"
29253 case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_compile") 2>conftest.er1
29260 grep -v '^ *+' conftest.er1 >conftest.err
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } && {
29265 test -z "$ac_c_werror_flag" ||
29266 test ! -s conftest.err
29267 } && test -s conftest.$ac_objext; then
29268 ac_hi=$ac_mid; break
29270 echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29273 ac_lo=`expr $ac_mid + 1`
29274 if test $ac_lo -le $ac_mid; then
29278 ac_mid=`expr 2 '*' $ac_mid + 1`
29281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 cat >conftest.$ac_ext <<_ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29293 $ac_includes_default
29294 typedef size_t ac__type_sizeof_;
29298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_compile") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest.$ac_objext; then
29324 cat >conftest.$ac_ext <<_ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h. */
29330 $ac_includes_default
29331 typedef size_t ac__type_sizeof_;
29335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29342 rm -f conftest.$ac_objext
29343 if { (ac_try="$ac_compile"
29344 case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_compile") 2>conftest.er1
29351 grep -v '^ *+' conftest.er1 >conftest.err
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } && {
29356 test -z "$ac_c_werror_flag" ||
29357 test ! -s conftest.err
29358 } && test -s conftest.$ac_objext; then
29359 ac_lo=$ac_mid; break
29361 echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29364 ac_hi=`expr '(' $ac_mid ')' - 1`
29365 if test $ac_mid -le $ac_hi; then
29369 ac_mid=`expr 2 '*' $ac_mid`
29372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29375 echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385 # Binary search between lo and hi bounds.
29386 while test "x$ac_lo" != "x$ac_hi"; do
29387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29388 cat >conftest.$ac_ext <<_ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h. */
29394 $ac_includes_default
29395 typedef size_t ac__type_sizeof_;
29399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_compile") 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } && {
29420 test -z "$ac_c_werror_flag" ||
29421 test ! -s conftest.err
29422 } && test -s conftest.$ac_objext; then
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29428 ac_lo=`expr '(' $ac_mid ')' + 1`
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29435 '') if test "$ac_cv_type_size_t" = yes; then
29436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29437 See \`config.log' for more details." >&5
29438 echo "$as_me: error: cannot compute sizeof (size_t)
29439 See \`config.log' for more details." >&2;}
29440 { (exit 77); exit 77; }; }
29442 ac_cv_sizeof_size_t=0
29446 cat >conftest.$ac_ext <<_ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29452 $ac_includes_default
29453 typedef size_t ac__type_sizeof_;
29454 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29455 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29457 #include <stdlib.h>
29462 FILE *f = fopen ("conftest.val", "w");
29465 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29467 long int i = longval ();
29468 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29470 fprintf (f, "%ld\n", i);
29474 unsigned long int i = ulongval ();
29475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29477 fprintf (f, "%lu\n", i);
29479 return ferror (f) || fclose (f) != 0;
29485 rm -f conftest$ac_exeext
29486 if { (ac_try="$ac_link"
29487 case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_link") 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29496 { (case "(($ac_try" in
29497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501 (eval "$ac_try") 2>&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); }; }; then
29505 ac_cv_sizeof_size_t=`cat conftest.val`
29507 echo "$as_me: program exited with status $ac_status" >&5
29508 echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29511 ( exit $ac_status )
29512 if test "$ac_cv_type_size_t" = yes; then
29513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29514 See \`config.log' for more details." >&5
29515 echo "$as_me: error: cannot compute sizeof (size_t)
29516 See \`config.log' for more details." >&2;}
29517 { (exit 77); exit 77; }; }
29519 ac_cv_sizeof_size_t=0
29522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29526 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29527 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29531 cat >>confdefs.h <<_ACEOF
29532 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29536 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29537 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29538 if test "${ac_cv_type_socklen_t+set}" = set; then
29539 echo $ECHO_N "(cached) $ECHO_C" >&6
29541 cat >conftest.$ac_ext <<_ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h. */
29547 $ac_includes_default
29548 typedef socklen_t ac__type_new_;
29552 if ((ac__type_new_ *) 0)
29554 if (sizeof (ac__type_new_))
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_compile") 2>conftest.er1
29569 grep -v '^ *+' conftest.er1 >conftest.err
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } && {
29574 test -z "$ac_c_werror_flag" ||
29575 test ! -s conftest.err
29576 } && test -s conftest.$ac_objext; then
29577 ac_cv_type_socklen_t=yes
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 ac_cv_type_socklen_t=no
29585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29587 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29588 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29590 # The cast to long int works around a bug in the HP C Compiler
29591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29593 # This bug is HP SR number 8606223364.
29594 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29595 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29596 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29599 if test "$cross_compiling" = yes; then
29600 # Depending upon the size, compute the lo and hi bounds.
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607 $ac_includes_default
29608 typedef socklen_t ac__type_sizeof_;
29612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29619 rm -f conftest.$ac_objext
29620 if { (ac_try="$ac_compile"
29621 case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_compile") 2>conftest.er1
29628 grep -v '^ *+' conftest.er1 >conftest.err
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } && {
29633 test -z "$ac_c_werror_flag" ||
29634 test ! -s conftest.err
29635 } && test -s conftest.$ac_objext; then
29638 cat >conftest.$ac_ext <<_ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h. */
29644 $ac_includes_default
29645 typedef socklen_t ac__type_sizeof_;
29649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29656 rm -f conftest.$ac_objext
29657 if { (ac_try="$ac_compile"
29658 case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_compile") 2>conftest.er1
29665 grep -v '^ *+' conftest.er1 >conftest.err
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } && {
29670 test -z "$ac_c_werror_flag" ||
29671 test ! -s conftest.err
29672 } && test -s conftest.$ac_objext; then
29673 ac_hi=$ac_mid; break
29675 echo "$as_me: failed program was:" >&5
29676 sed 's/^/| /' conftest.$ac_ext >&5
29678 ac_lo=`expr $ac_mid + 1`
29679 if test $ac_lo -le $ac_mid; then
29683 ac_mid=`expr 2 '*' $ac_mid + 1`
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29692 cat >conftest.$ac_ext <<_ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h. */
29698 $ac_includes_default
29699 typedef socklen_t ac__type_sizeof_;
29703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714 *) ac_try_echo=$ac_try;;
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717 (eval "$ac_compile") 2>conftest.er1
29719 grep -v '^ *+' conftest.er1 >conftest.err
29721 cat conftest.err >&5
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); } && {
29724 test -z "$ac_c_werror_flag" ||
29725 test ! -s conftest.err
29726 } && test -s conftest.$ac_objext; then
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29735 $ac_includes_default
29736 typedef socklen_t ac__type_sizeof_;
29740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29747 rm -f conftest.$ac_objext
29748 if { (ac_try="$ac_compile"
29749 case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_compile") 2>conftest.er1
29756 grep -v '^ *+' conftest.er1 >conftest.err
29758 cat conftest.err >&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } && {
29761 test -z "$ac_c_werror_flag" ||
29762 test ! -s conftest.err
29763 } && test -s conftest.$ac_objext; then
29764 ac_lo=$ac_mid; break
29766 echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29769 ac_hi=`expr '(' $ac_mid ')' - 1`
29770 if test $ac_mid -le $ac_hi; then
29774 ac_mid=`expr 2 '*' $ac_mid`
29777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29780 echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29790 # Binary search between lo and hi bounds.
29791 while test "x$ac_lo" != "x$ac_hi"; do
29792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29799 $ac_includes_default
29800 typedef socklen_t ac__type_sizeof_;
29804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_compile") 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } && {
29825 test -z "$ac_c_werror_flag" ||
29826 test ! -s conftest.err
29827 } && test -s conftest.$ac_objext; then
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ac_lo=`expr '(' $ac_mid ')' + 1`
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29840 '') if test "$ac_cv_type_socklen_t" = yes; then
29841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29842 See \`config.log' for more details." >&5
29843 echo "$as_me: error: cannot compute sizeof (socklen_t)
29844 See \`config.log' for more details." >&2;}
29845 { (exit 77); exit 77; }; }
29847 ac_cv_sizeof_socklen_t=0
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
29857 $ac_includes_default
29858 typedef socklen_t ac__type_sizeof_;
29859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29862 #include <stdlib.h>
29867 FILE *f = fopen ("conftest.val", "w");
29870 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29872 long int i = longval ();
29873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29875 fprintf (f, "%ld\n", i);
29879 unsigned long int i = ulongval ();
29880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29882 fprintf (f, "%lu\n", i);
29884 return ferror (f) || fclose (f) != 0;
29890 rm -f conftest$ac_exeext
29891 if { (ac_try="$ac_link"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_link") 2>&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29901 { (case "(($ac_try" in
29902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29903 *) ac_try_echo=$ac_try;;
29905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29906 (eval "$ac_try") 2>&5
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); }; }; then
29910 ac_cv_sizeof_socklen_t=`cat conftest.val`
29912 echo "$as_me: program exited with status $ac_status" >&5
29913 echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29916 ( exit $ac_status )
29917 if test "$ac_cv_type_socklen_t" = yes; then
29918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29919 See \`config.log' for more details." >&5
29920 echo "$as_me: error: cannot compute sizeof (socklen_t)
29921 See \`config.log' for more details." >&2;}
29922 { (exit 77); exit 77; }; }
29924 ac_cv_sizeof_socklen_t=0
29927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29932 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29936 cat >>confdefs.h <<_ACEOF
29937 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29944 cat >>confdefs.h <<_ACEOF
29945 #define NFS_STATEDIR "$statedir"
29949 if test "x$cross_compiling" = "xno"; then
29950 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29951 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29952 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29953 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29955 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29956 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29957 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29958 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29976 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29978 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29980 AM_CFLAGS="$my_am_cflags"
29983 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29984 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29987 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/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29989 cat >confcache <<\_ACEOF
29990 # This file is a shell script that caches the results of configure
29991 # tests run on this system so they can be shared between configure
29992 # scripts and configure runs, see configure's option --config-cache.
29993 # It is not useful on other systems. If it contains results you don't
29994 # want to keep, you may remove or edit it.
29996 # config.status only pays attention to the cache file if you give it
29997 # the --recheck option to rerun configure.
29999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30001 # following values.
30005 # The following way of writing the cache mishandles newlines in values,
30006 # but we know of no workaround that is simple, portable, and efficient.
30007 # So, we kill variables containing newlines.
30008 # Ultrix sh set writes to stderr and can't be redirected directly,
30009 # and sets the high bit in the cache file unless we assign to the vars.
30011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30012 eval ac_val=\$$ac_var
30016 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30020 _ | IFS | as_nl) ;; #(
30021 *) $as_unset $ac_var ;;
30027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30028 *${as_nl}ac_space=\ *)
30029 # `set' does not quote correctly, so add quotes (double-quote
30030 # substitution turns \\\\ into \\, and sed turns \\ into \).
30033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30036 # `set' quotes correctly as required by POSIX, so do not add quotes.
30037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30051 if test -w "$cache_file"; then
30052 test "x$cache_file" != "x/dev/null" &&
30053 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30054 echo "$as_me: updating cache $cache_file" >&6;}
30055 cat confcache >$cache_file
30057 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30064 # Let make expand exec_prefix.
30065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30067 DEFS=-DHAVE_CONFIG_H
30071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30072 # 1. Remove the extension, and $U if already installed.
30073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30074 ac_i=`echo "$ac_i" | sed "$ac_script"`
30075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30076 # will be set to the directory where LIBOBJS objects are built.
30077 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30078 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30080 LIBOBJS=$ac_libobjs
30082 LTLIBOBJS=$ac_ltlibobjs
30085 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30086 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30087 Usually this means the macro was only invoked conditionally." >&5
30088 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30089 Usually this means the macro was only invoked conditionally." >&2;}
30090 { (exit 1); exit 1; }; }
30092 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30093 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097 { (exit 1); exit 1; }; }
30099 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30100 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104 { (exit 1); exit 1; }; }
30106 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30107 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111 { (exit 1); exit 1; }; }
30113 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30114 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118 { (exit 1); exit 1; }; }
30120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30121 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125 { (exit 1); exit 1; }; }
30127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132 { (exit 1); exit 1; }; }
30134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139 { (exit 1); exit 1; }; }
30141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30142 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30143 Usually this means the macro was only invoked conditionally." >&5
30144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30145 Usually this means the macro was only invoked conditionally." >&2;}
30146 { (exit 1); exit 1; }; }
30149 : ${CONFIG_STATUS=./config.status}
30150 ac_clean_files_save=$ac_clean_files
30151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30152 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30153 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30154 cat >$CONFIG_STATUS <<_ACEOF
30156 # Generated by $as_me.
30157 # Run this file to recreate the current configuration.
30158 # Compiler output produced by configure, useful for debugging
30159 # configure, is in config.log if it exists.
30162 ac_cs_recheck=false
30164 SHELL=\${CONFIG_SHELL-$SHELL}
30167 cat >>$CONFIG_STATUS <<\_ACEOF
30168 ## --------------------- ##
30169 ## M4sh Initialization. ##
30170 ## --------------------- ##
30172 # Be more Bourne compatible
30173 DUALCASE=1; export DUALCASE # for MKS sh
30174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30178 # is contrary to our usage. Disable this feature.
30179 alias -g '${1+"$@"}'='"$@"'
30180 setopt NO_GLOB_SUBST
30182 case `(set -o) 2>/dev/null` in
30183 *posix*) set -o posix ;;
30192 # Avoid depending upon Character Ranges.
30193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30196 as_cr_digits='0123456789'
30197 as_cr_alnum=$as_cr_Letters$as_cr_digits
30199 # The user is always right.
30200 if test "${PATH_SEPARATOR+set}" != set; then
30201 echo "#! /bin/sh" >conf$$.sh
30202 echo "exit 0" >>conf$$.sh
30204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30212 # Support unset when possible.
30213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30221 # We need space, tab and new line, in precisely that order. Quoting is
30222 # there to prevent editors from complaining about space-tab.
30223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30224 # splitting by setting IFS to empty value.)
30229 # Find who we are. Look in the path if we contain no directory separator.
30231 *[\\/]* ) as_myself=$0 ;;
30232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30233 for as_dir in $PATH
30236 test -z "$as_dir" && as_dir=.
30237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30243 # We did not find ourselves, most probably we were run as `sh COMMAND'
30244 # in which case we are not to be found in the path.
30245 if test "x$as_myself" = x; then
30248 if test ! -f "$as_myself"; then
30249 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30250 { (exit 1); exit 1; }
30253 # Work around bugs in pre-3.0 UWIN ksh.
30254 for as_var in ENV MAIL MAILPATH
30255 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30265 LC_TELEPHONE LC_TIME
30267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30268 eval $as_var=C; export $as_var
30270 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30274 # Required to use basename.
30275 if expr a : '\(a\)' >/dev/null 2>&1 &&
30276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30283 as_basename=basename
30289 # Name of the executable.
30290 as_me=`$as_basename -- "$0" ||
30291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30292 X"$0" : 'X\(//\)$' \| \
30293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30295 sed '/^.*\/\([^/][^/]*\)\/*$/{
30314 as_lineno_1=$LINENO
30315 as_lineno_2=$LINENO
30316 test "x$as_lineno_1" != "x$as_lineno_2" &&
30317 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30320 # uniformly replaced by the line number. The first 'sed' inserts a
30321 # line-number line after each line using $LINENO; the second 'sed'
30322 # does the real work. The second script uses 'N' to pair each
30323 # line-number line with the line containing $LINENO, and appends
30324 # trailing '-' during substitution so that $LINENO is not a special
30325 # case at line end.
30326 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30327 # scripts with optimization help from Paolo Bonzini. Blame Lee
30328 # E. McMahon (1931-1989) for sed's syntax. :-)
30340 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30343 ' >$as_me.lineno &&
30344 chmod +x "$as_me.lineno" ||
30345 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30346 { (exit 1); exit 1; }; }
30348 # Don't try to exec as it changes $[0], causing all sort of problems
30349 # (the dirname of $[0] is not the place where we might find the
30350 # original and so on. Autoconf is especially sensitive to this).
30351 . "./$as_me.lineno"
30352 # Exit status is that of the last command.
30357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30363 ECHO_C= ECHO_N= ECHO_T=
30364 case `echo -n x` in
30366 case `echo 'x\c'` in
30367 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30374 if expr a : '\(a\)' >/dev/null 2>&1 &&
30375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30381 rm -f conf$$ conf$$.exe conf$$.file
30382 if test -d conf$$.dir; then
30383 rm -f conf$$.dir/conf$$.file
30389 if ln -s conf$$.file conf$$ 2>/dev/null; then
30391 # ... but there are two gotchas:
30392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30394 # In both cases, we have to default to `cp -p'.
30395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30397 elif ln conf$$.file conf$$ 2>/dev/null; then
30402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30403 rmdir conf$$.dir 2>/dev/null
30405 if mkdir -p . 2>/dev/null; then
30408 test -d ./-p && rmdir ./-p
30412 if test -x / >/dev/null 2>&1; then
30413 as_test_x='test -x'
30415 if ls -dL / >/dev/null 2>&1; then
30422 if test -d "$1"; then
30428 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30429 ???[sx]*):;;*)false;;esac;fi
30433 as_executable_p=$as_test_x
30435 # Sed expression to map a string onto a valid CPP name.
30436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30438 # Sed expression to map a string onto a valid variable name.
30439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30444 # Save the log message, to keep $[0] and so on meaningful, and to
30445 # report actual input values of CONFIG_FILES etc. instead of their
30446 # values after options handling.
30448 This file was extended by linux nfs-utils $as_me 1.1.1, which was
30449 generated by GNU Autoconf 2.61. Invocation command line was
30451 CONFIG_FILES = $CONFIG_FILES
30452 CONFIG_HEADERS = $CONFIG_HEADERS
30453 CONFIG_LINKS = $CONFIG_LINKS
30454 CONFIG_COMMANDS = $CONFIG_COMMANDS
30457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30462 cat >>$CONFIG_STATUS <<_ACEOF
30463 # Files that config.status was made for.
30464 config_files="$ac_config_files"
30465 config_headers="$ac_config_headers"
30466 config_commands="$ac_config_commands"
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30472 \`$as_me' instantiates files from templates according to the
30473 current configuration.
30475 Usage: $0 [OPTIONS] [FILE]...
30477 -h, --help print this help, then exit
30478 -V, --version print version number and configuration settings, then exit
30479 -q, --quiet do not print progress messages
30480 -d, --debug don't remove temporary files
30481 --recheck update $as_me by reconfiguring in the same conditions
30482 --file=FILE[:TEMPLATE]
30483 instantiate the configuration file FILE
30484 --header=FILE[:TEMPLATE]
30485 instantiate the configuration header FILE
30487 Configuration files:
30490 Configuration headers:
30493 Configuration commands:
30496 Report bugs to <bug-autoconf@gnu.org>."
30499 cat >>$CONFIG_STATUS <<_ACEOF
30501 linux nfs-utils config.status 1.1.1
30502 configured by $0, generated by GNU Autoconf 2.61,
30503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30505 Copyright (C) 2006 Free Software Foundation, Inc.
30506 This config.status script is free software; the Free Software Foundation
30507 gives unlimited permission to copy, distribute and modify it."
30515 cat >>$CONFIG_STATUS <<\_ACEOF
30516 # If no file are specified by the user, then we need to provide default
30517 # value. By we need to know if files were specified by the user.
30523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30535 # Handling of the options.
30536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30539 echo "$ac_cs_version"; exit ;;
30540 --debug | --debu | --deb | --de | --d | -d )
30542 --file | --fil | --fi | --f )
30544 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30545 ac_need_defaults=false;;
30546 --header | --heade | --head | --hea )
30548 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30549 ac_need_defaults=false;;
30551 # Conflict between --help and --header
30552 { echo "$as_me: error: ambiguous option: $1
30553 Try \`$0 --help' for more information." >&2
30554 { (exit 1); exit 1; }; };;
30555 --help | --hel | -h )
30556 echo "$ac_cs_usage"; exit ;;
30557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30561 # This is an error.
30562 -*) { echo "$as_me: error: unrecognized option: $1
30563 Try \`$0 --help' for more information." >&2
30564 { (exit 1); exit 1; }; } ;;
30566 *) ac_config_targets="$ac_config_targets $1"
30567 ac_need_defaults=false ;;
30573 ac_configure_extra_args=
30575 if $ac_cs_silent; then
30577 ac_configure_extra_args="$ac_configure_extra_args --silent"
30581 cat >>$CONFIG_STATUS <<_ACEOF
30582 if \$ac_cs_recheck; then
30583 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30584 CONFIG_SHELL=$SHELL
30585 export CONFIG_SHELL
30586 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30590 cat >>$CONFIG_STATUS <<\_ACEOF
30594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30595 ## Running $as_me. ##
30601 cat >>$CONFIG_STATUS <<_ACEOF
30605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30609 cat >>$CONFIG_STATUS <<\_ACEOF
30611 # Handling of arguments.
30612 for ac_config_target in $ac_config_targets
30614 case $ac_config_target in
30615 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30616 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30618 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30619 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30620 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30621 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30622 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30623 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30624 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30625 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30626 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30627 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30628 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30629 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30630 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30631 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30632 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30633 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30634 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30635 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30636 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30637 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30638 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30639 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30640 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30641 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30642 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30646 { (exit 1); exit 1; }; };;
30651 # If the user did not use the arguments to specify the items to instantiate,
30652 # then the envvar interface is used. Set only those that are not.
30653 # We use the long form for the default assignment because of an extremely
30654 # bizarre bug on SunOS 4.1.3.
30655 if $ac_need_defaults; then
30656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30661 # Have a temporary directory for convenience. Make it in the build tree
30662 # simply because there is no reason against having it here, and in addition,
30663 # creating and moving files from /tmp can sometimes cause problems.
30664 # Hook for its removal unless debugging.
30665 # Note that there is a small window in which the directory will not be cleaned:
30666 # after its creation but before its name has been assigned to `$tmp'.
30670 trap 'exit_status=$?
30671 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30673 trap '{ (exit 1); exit 1; }' 1 2 13 15
30675 # Create a (secure) tmp directory for tmp files.
30678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30679 test -n "$tmp" && test -d "$tmp"
30682 tmp=./conf$$-$RANDOM
30683 (umask 077 && mkdir "$tmp")
30686 echo "$me: cannot create a temporary directory in ." >&2
30687 { (exit 1); exit 1; }
30691 # Set up the sed scripts for CONFIG_FILES section.
30694 # No need to generate the scripts if there are no CONFIG_FILES.
30695 # This happens for instance when ./config.status config.h
30696 if test -n "$CONFIG_FILES"; then
30703 for ac_last_try in false false false false false :; do
30704 cat >conf$$subs.sed <<_ACEOF
30705 SHELL!$SHELL$ac_delim
30706 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30707 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30708 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30709 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30710 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30711 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30712 exec_prefix!$exec_prefix$ac_delim
30713 prefix!$prefix$ac_delim
30714 program_transform_name!$program_transform_name$ac_delim
30715 bindir!$bindir$ac_delim
30716 sbindir!$sbindir$ac_delim
30717 libexecdir!$libexecdir$ac_delim
30718 datarootdir!$datarootdir$ac_delim
30719 datadir!$datadir$ac_delim
30720 sysconfdir!$sysconfdir$ac_delim
30721 sharedstatedir!$sharedstatedir$ac_delim
30722 localstatedir!$localstatedir$ac_delim
30723 includedir!$includedir$ac_delim
30724 oldincludedir!$oldincludedir$ac_delim
30725 docdir!$docdir$ac_delim
30726 infodir!$infodir$ac_delim
30727 htmldir!$htmldir$ac_delim
30728 dvidir!$dvidir$ac_delim
30729 pdfdir!$pdfdir$ac_delim
30730 psdir!$psdir$ac_delim
30731 libdir!$libdir$ac_delim
30732 localedir!$localedir$ac_delim
30733 mandir!$mandir$ac_delim
30734 DEFS!$DEFS$ac_delim
30735 ECHO_C!$ECHO_C$ac_delim
30736 ECHO_N!$ECHO_N$ac_delim
30737 ECHO_T!$ECHO_T$ac_delim
30738 LIBS!$LIBS$ac_delim
30739 build_alias!$build_alias$ac_delim
30740 host_alias!$host_alias$ac_delim
30741 target_alias!$target_alias$ac_delim
30742 build!$build$ac_delim
30743 build_cpu!$build_cpu$ac_delim
30744 build_vendor!$build_vendor$ac_delim
30745 build_os!$build_os$ac_delim
30746 host!$host$ac_delim
30747 host_cpu!$host_cpu$ac_delim
30748 host_vendor!$host_vendor$ac_delim
30749 host_os!$host_os$ac_delim
30750 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30751 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30752 INSTALL_DATA!$INSTALL_DATA$ac_delim
30753 am__isrc!$am__isrc$ac_delim
30754 CYGPATH_W!$CYGPATH_W$ac_delim
30755 PACKAGE!$PACKAGE$ac_delim
30756 VERSION!$VERSION$ac_delim
30757 ACLOCAL!$ACLOCAL$ac_delim
30758 AUTOCONF!$AUTOCONF$ac_delim
30759 AUTOMAKE!$AUTOMAKE$ac_delim
30760 AUTOHEADER!$AUTOHEADER$ac_delim
30761 MAKEINFO!$MAKEINFO$ac_delim
30762 install_sh!$install_sh$ac_delim
30763 STRIP!$STRIP$ac_delim
30764 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30765 mkdir_p!$mkdir_p$ac_delim
30767 SET_MAKE!$SET_MAKE$ac_delim
30768 am__leading_dot!$am__leading_dot$ac_delim
30769 AMTAR!$AMTAR$ac_delim
30770 am__tar!$am__tar$ac_delim
30771 am__untar!$am__untar$ac_delim
30772 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30773 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30774 MAINT!$MAINT$ac_delim
30775 RELEASE!$RELEASE$ac_delim
30776 statedir!$statedir$ac_delim
30777 statduser!$statduser$ac_delim
30778 startstatd!$startstatd$ac_delim
30779 enable_nfsv3!$enable_nfsv3$ac_delim
30780 IDMAPD!$IDMAPD$ac_delim
30781 enable_nfsv4!$enable_nfsv4$ac_delim
30782 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30783 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30784 GSSD!$GSSD$ac_delim
30785 SVCGSSD!$SVCGSSD$ac_delim
30786 enable_gss!$enable_gss$ac_delim
30787 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30788 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30789 kprefix!$kprefix$ac_delim
30790 secure_statd!$secure_statd$ac_delim
30791 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30792 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30793 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30794 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30795 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30797 CFLAGS!$CFLAGS$ac_delim
30798 LDFLAGS!$LDFLAGS$ac_delim
30799 CPPFLAGS!$CPPFLAGS$ac_delim
30800 ac_ct_CC!$ac_ct_CC$ac_delim
30801 EXEEXT!$EXEEXT$ac_delim
30804 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30806 elif $ac_last_try; then
30807 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30808 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30809 { (exit 1); exit 1; }; }
30811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30815 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30816 if test -n "$ac_eof"; then
30817 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30818 ac_eof=`expr $ac_eof + 1`
30821 cat >>$CONFIG_STATUS <<_ACEOF
30822 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30826 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30827 s/^/s,@/; s/!/@,|#_!!_#|/
30830 s/'"$ac_delim"'$/,g/; t
30832 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30833 ' >>$CONFIG_STATUS <conf$$subs.sed
30834 rm -f conf$$subs.sed
30835 cat >>$CONFIG_STATUS <<_ACEOF
30841 for ac_last_try in false false false false false :; do
30842 cat >conf$$subs.sed <<_ACEOF
30843 OBJEXT!$OBJEXT$ac_delim
30844 DEPDIR!$DEPDIR$ac_delim
30845 am__include!$am__include$ac_delim
30846 am__quote!$am__quote$ac_delim
30847 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30848 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30849 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30850 CCDEPMODE!$CCDEPMODE$ac_delim
30851 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30852 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30853 LIBWRAP!$LIBWRAP$ac_delim
30854 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30855 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30857 CXXFLAGS!$CXXFLAGS$ac_delim
30858 ac_ct_CXX!$ac_ct_CXX$ac_delim
30859 CXXDEPMODE!$CXXDEPMODE$ac_delim
30860 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30861 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30863 LN_S!$LN_S$ac_delim
30865 GREP!$GREP$ac_delim
30866 EGREP!$EGREP$ac_delim
30867 ECHO!$ECHO$ac_delim
30869 RANLIB!$RANLIB$ac_delim
30870 CXXCPP!$CXXCPP$ac_delim
30872 FFLAGS!$FFLAGS$ac_delim
30873 ac_ct_F77!$ac_ct_F77$ac_delim
30874 LIBTOOL!$LIBTOOL$ac_delim
30875 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30877 LIBNSL!$LIBNSL$ac_delim
30878 PKG_CONFIG!$PKG_CONFIG$ac_delim
30879 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30880 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30881 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30882 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30883 LIBSOCKET!$LIBSOCKET$ac_delim
30884 LIBCRYPT!$LIBCRYPT$ac_delim
30885 LIBBSD!$LIBBSD$ac_delim
30886 LIBBLKID!$LIBBLKID$ac_delim
30887 KRBDIR!$KRBDIR$ac_delim
30888 KRBLIBS!$KRBLIBS$ac_delim
30889 KRBCFLAGS!$KRBCFLAGS$ac_delim
30890 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30891 K5VERS!$K5VERS$ac_delim
30892 ALLOCA!$ALLOCA$ac_delim
30893 LIBOBJS!$LIBOBJS$ac_delim
30894 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30895 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30896 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30897 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30898 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30899 AM_CFLAGS!$AM_CFLAGS$ac_delim
30900 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30901 LTLIBOBJS!$LTLIBOBJS$ac_delim
30904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
30906 elif $ac_last_try; then
30907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30909 { (exit 1); exit 1; }; }
30911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30916 if test -n "$ac_eof"; then
30917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30918 ac_eof=`expr $ac_eof + 1`
30921 cat >>$CONFIG_STATUS <<_ACEOF
30922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30927 s/^/s,@/; s/!/@,|#_!!_#|/
30930 s/'"$ac_delim"'$/,g/; t
30932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30933 ' >>$CONFIG_STATUS <conf$$subs.sed
30934 rm -f conf$$subs.sed
30935 cat >>$CONFIG_STATUS <<_ACEOF
30942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30944 # trailing colons and then remove the whole line if VPATH becomes empty
30945 # (actually we leave an empty line to preserve line numbers).
30946 if test "x$srcdir" = x.; then
30947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30948 s/:*\$(srcdir):*/:/
30949 s/:*\${srcdir}:*/:/
30951 s/^\([^=]*=[ ]*\):*/\1/
30957 cat >>$CONFIG_STATUS <<\_ACEOF
30958 fi # test -n "$CONFIG_FILES"
30961 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30964 :[FHLC]) ac_mode=$ac_tag; continue;;
30966 case $ac_mode$ac_tag in
30968 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30970 { (exit 1); exit 1; }; };;
30971 :[FH]-) ac_tag=-:-;;
30972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30989 -) ac_f="$tmp/stdin";;
30990 *) # Look for the file first in the build tree, then in the source tree
30991 # (if the path is not absolute). The absolute path cannot be DOS-style,
30992 # because $ac_f cannot contain `:'.
30996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30998 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31000 { (exit 1); exit 1; }; };;
31002 ac_file_inputs="$ac_file_inputs $ac_f"
31005 # Let's still pretend it is `configure' which instantiates (i.e., don't
31006 # use $as_me), people would be surprised to read:
31007 # /* config.h. Generated by config.status. */
31008 configure_input="Generated from "`IFS=:
31009 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31010 if test x"$ac_file" != x-; then
31011 configure_input="$ac_file. $configure_input"
31012 { echo "$as_me:$LINENO: creating $ac_file" >&5
31013 echo "$as_me: creating $ac_file" >&6;}
31017 *:-:* | *:-) cat >"$tmp/stdin";;
31022 ac_dir=`$as_dirname -- "$ac_file" ||
31023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31024 X"$ac_file" : 'X\(//\)[^/]' \| \
31025 X"$ac_file" : 'X\(//\)$' \| \
31026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31032 /^X\(\/\/\)[^/].*/{
31047 -*) as_dir=./$as_dir;;
31049 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31053 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31054 *) as_qdir=$as_dir;;
31056 as_dirs="'$as_qdir' $as_dirs"
31057 as_dir=`$as_dirname -- "$as_dir" ||
31058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31059 X"$as_dir" : 'X\(//\)[^/]' \| \
31060 X"$as_dir" : 'X\(//\)$' \| \
31061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31067 /^X\(\/\/\)[^/].*/{
31080 test -d "$as_dir" && break
31082 test -z "$as_dirs" || eval "mkdir $as_dirs"
31083 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31085 { (exit 1); exit 1; }; }; }
31089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31092 # A ".." for each directory in $ac_dir_suffix.
31093 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31094 case $ac_top_builddir_sub in
31095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31099 ac_abs_top_builddir=$ac_pwd
31100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31101 # for backward compatibility:
31102 ac_top_builddir=$ac_top_build_prefix
31105 .) # We are building in place.
31107 ac_top_srcdir=$ac_top_builddir_sub
31108 ac_abs_top_srcdir=$ac_pwd ;;
31109 [\\/]* | ?:[\\/]* ) # Absolute name.
31110 ac_srcdir=$srcdir$ac_dir_suffix;
31111 ac_top_srcdir=$srcdir
31112 ac_abs_top_srcdir=$srcdir ;;
31113 *) # Relative name.
31114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31115 ac_top_srcdir=$ac_top_build_prefix$srcdir
31116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31131 ac_MKDIR_P=$MKDIR_P
31133 [\\/$]* | ?:[\\/]* ) ;;
31134 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31138 cat >>$CONFIG_STATUS <<\_ACEOF
31139 # If the template does not know about datarootdir, expand it.
31140 # FIXME: This hack should be removed a few years after 2.60.
31141 ac_datarootdir_hack=; ac_datarootdir_seen=
31143 case `sed -n '/datarootdir/ {
31152 ' $ac_file_inputs` in
31153 *datarootdir*) ac_datarootdir_seen=yes;;
31154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31155 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31158 cat >>$CONFIG_STATUS <<_ACEOF
31159 ac_datarootdir_hack='
31160 s&@datadir@&$datadir&g
31161 s&@docdir@&$docdir&g
31162 s&@infodir@&$infodir&g
31163 s&@localedir@&$localedir&g
31164 s&@mandir@&$mandir&g
31165 s&\\\${datarootdir}&$datarootdir&g' ;;
31169 # Neutralize VPATH when `$srcdir' = `.'.
31170 # Shell code in configure.ac might set extrasub.
31171 # FIXME: do we really want to maintain this feature?
31172 cat >>$CONFIG_STATUS <<_ACEOF
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31179 s&@configure_input@&$configure_input&;t t
31180 s&@top_builddir@&$ac_top_builddir_sub&;t t
31181 s&@srcdir@&$ac_srcdir&;t t
31182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31183 s&@top_srcdir@&$ac_top_srcdir&;t t
31184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31185 s&@builddir@&$ac_builddir&;t t
31186 s&@abs_builddir@&$ac_abs_builddir&;t t
31187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31188 s&@INSTALL@&$ac_INSTALL&;t t
31189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31190 $ac_datarootdir_hack
31191 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31194 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31196 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined. Please make sure it is defined." >&5
31198 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31199 which seems to be undefined. Please make sure it is defined." >&2;}
31203 -) cat "$tmp/out"; rm -f "$tmp/out";;
31204 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31213 # Transform confdefs.h into a sed script `conftest.defines', that
31214 # substitutes the proper values into config.h.in to produce config.h.
31215 rm -f conftest.defines conftest.tail
31216 # First, append a space to every undef/define line, to ease matching.
31217 echo 's/$/ /' >conftest.defines
31218 # Then, protect against being on the right side of a sed subst, or in
31219 # an unquoted here document, in config.status. If some macros were
31220 # called several times there might be several #defines for the same
31221 # symbol, which is useless. But do not sort them, since the last
31222 # AC_DEFINE must be honored.
31223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31224 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31225 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31226 # PARAMS is the parameter list in the macro definition--in most cases, it's
31227 # just an empty string.
31228 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31229 ac_dB='\\)[ (].*,\\1define\\2'
31237 s/^[ ]*#[ ]*define[ ][ ]*//
31242 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31243 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31244 ' >>conftest.defines
31246 # Remove the space that was appended to ease matching.
31247 # Then replace #undef with comments. This is necessary, for
31248 # example, in the case of _POSIX_SOURCE, which is predefined and required
31249 # on some systems where configure will not decide to define it.
31250 # (The regexp can be short, since the line contains either #define or #undef.)
31252 s,^[ #]*u.*,/* & */,' >>conftest.defines
31254 # Break up conftest.defines:
31255 ac_max_sed_lines=50
31257 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31258 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31259 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31261 ac_in='$ac_file_inputs'
31262 ac_out='"$tmp/out1"'
31263 ac_nxt='"$tmp/out2"'
31267 # Write a here document:
31268 cat >>$CONFIG_STATUS <<_ACEOF
31269 # First, check the format of the line:
31270 cat >"\$tmp/defines.sed" <<\\CEOF
31271 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31272 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31276 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31278 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31279 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31280 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31281 grep . conftest.tail >/dev/null || break
31282 rm -f conftest.defines
31283 mv conftest.tail conftest.defines
31285 rm -f conftest.defines conftest.tail
31287 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31288 cat >>$CONFIG_STATUS <<\_ACEOF
31289 if test x"$ac_file" != x-; then
31290 echo "/* $configure_input */" >"$tmp/config.h"
31291 cat "$ac_result" >>"$tmp/config.h"
31292 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31293 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31294 echo "$as_me: $ac_file is unchanged" >&6;}
31297 mv "$tmp/config.h" $ac_file
31300 echo "/* $configure_input */"
31304 # Compute $ac_file's index in $config_headers.
31306 for _am_header in $config_headers :; do
31307 case $_am_header in
31308 $ac_file | $ac_file:* )
31311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31314 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31315 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31316 X$ac_file : 'X\(//\)[^/]' \| \
31317 X$ac_file : 'X\(//\)$' \| \
31318 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31324 /^X\(\/\/\)[^/].*/{
31336 s/.*/./; q'`/stamp-h$_am_stamp_count
31339 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31340 echo "$as_me: executing $ac_file commands" >&6;}
31345 case $ac_file$ac_mode in
31346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31347 # Strip MF so we end up with the name of the file.
31348 mf=`echo "$mf" | sed -e 's/:.*$//'`
31349 # Check whether this is an Automake generated Makefile or not.
31350 # We used to match only the files named `Makefile.in', but
31351 # some people rename them; so instead we look at the file content.
31352 # Grep'ing the first line is not enough: some people post-process
31353 # each Makefile.in and add a new line on top of each file to say so.
31354 # Grep'ing the whole file is not good either: AIX grep has a line
31355 # limit of 2048, but all sed's we know have understand at least 4000.
31356 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31357 dirpart=`$as_dirname -- "$mf" ||
31358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31359 X"$mf" : 'X\(//\)[^/]' \| \
31360 X"$mf" : 'X\(//\)$' \| \
31361 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31367 /^X\(\/\/\)[^/].*/{
31383 # Extract the definition of DEPDIR, am__include, and am__quote
31384 # from the Makefile without running `make'.
31385 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31386 test -z "$DEPDIR" && continue
31387 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31388 test -z "am__include" && continue
31389 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31390 # When using ansi2knr, U may be empty or an underscore; expand it
31391 U=`sed -n 's/^U = //p' < "$mf"`
31392 # Find all dependency output files, they are included files with
31393 # $(DEPDIR) in their names. We invoke sed twice because it is the
31394 # simplest approach to changing $(DEPDIR) to its actual value in the
31396 for file in `sed -n "
31397 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31398 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31399 # Make sure the directory exists.
31400 test -f "$dirpart/$file" && continue
31401 fdir=`$as_dirname -- "$file" ||
31402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31403 X"$file" : 'X\(//\)[^/]' \| \
31404 X"$file" : 'X\(//\)$' \| \
31405 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31411 /^X\(\/\/\)[^/].*/{
31424 { as_dir=$dirpart/$fdir
31426 -*) as_dir=./$as_dir;;
31428 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31432 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31433 *) as_qdir=$as_dir;;
31435 as_dirs="'$as_qdir' $as_dirs"
31436 as_dir=`$as_dirname -- "$as_dir" ||
31437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31438 X"$as_dir" : 'X\(//\)[^/]' \| \
31439 X"$as_dir" : 'X\(//\)$' \| \
31440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31446 /^X\(\/\/\)[^/].*/{
31459 test -d "$as_dir" && break
31461 test -z "$as_dirs" || eval "mkdir $as_dirs"
31462 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31464 { (exit 1); exit 1; }; }; }
31465 # echo "creating $dirpart/$file"
31466 echo '# dummy' > "$dirpart/$file"
31475 { (exit 0); exit 0; }
31477 chmod +x $CONFIG_STATUS
31478 ac_clean_files=$ac_clean_files_save
31481 # configure is writing to config.log, and then calls config.status.
31482 # config.status does its own redirection, appending to config.log.
31483 # Unfortunately, on DOS this fails, as config.log is still kept open
31484 # by configure, so config.status won't be able to write to it; its
31485 # output is simply discarded. So we exec the FD to /dev/null,
31486 # effectively closing config.log, so it can be properly (re)opened and
31487 # appended to by config.status. When coming back to configure, we
31488 # need to make the FD available again.
31489 if test "$no_create" != yes; then
31491 ac_config_status_args=
31492 test "$silent" = yes &&
31493 ac_config_status_args="$ac_config_status_args --quiet"
31495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31498 # would make configure fail if this is the last instruction.
31499 $ac_cs_success || { (exit 1); exit 1; }