2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
887 DEFAULT_SHARED_OBJECT_TYPE
888 LIBTOOL_INSTALL_TARGET
889 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
957 TRAY_MONITOR_CPPFLAGS
1048 ac_subst_files='MCOMMON'
1049 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1079 program_transform_name=s,x,x,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174 eval enable_$ac_feature=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193 eval enable_$ac_feature=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1357 -site=* | --site=* | --sit=*)
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1384 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 { echo "$as_me: error: invalid package name: $ac_package" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390 eval with_$ac_package=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=no ;;
1402 # Obsolete; use --with-x.
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1419 -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 { echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 # Be sure to have absolute directory names.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462 { (exit 1); exit 1; }; }
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 { echo "$as_me: error: Working directory cannot be determined" >&2
1493 { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 { echo "$as_me: error: pwd does not report name of working directory" >&2
1496 { (exit 1); exit 1; }; }
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$0" : 'X\(//\)[^/]' \| \
1506 X"$0" : 'X\(//\)$' \| \
1507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536 { (exit 1); exit 1; }; }
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541 { (exit 1); exit 1; }; }
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=no]
1670 --disable-largefile omit support for large files
1671 --disable-acl disable acl support [default=auto]
1672 --disable-xattr disable xattr support [default=auto]
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1684 --without-libintl-prefix don't search for libintl in includedir and libdir
1685 --with-included-gettext use the GNU gettext library included here
1686 --with-readline[=DIR] specify readline library directory
1687 --with-python[=DIR] Include Python support. DIR is the Python base
1688 install directory, default is to search through a
1689 number of common places for the Python files.
1690 --with-tcp-wrappers[=DIR]
1691 enable tcpwrappers support
1692 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1693 --with-working-dir=PATH specify path of Bacula working directory
1694 --with-archivedir=PATH specify path of SD archive directory
1695 --with-basename=RESNAME specify base resource name for daemons
1696 --with-hostname=RESNAME specify host name for daemons
1697 --with-scriptdir=PATH specify path of Bacula scripts directory
1698 --with-bsrdir=PATH specify path of Bacula bsrs directory
1699 --with-logdir=PATH specify path of Bacula logs directory
1700 --with-plugindir=PATH specify path of Bacula plugins directory
1701 --with-dump-email=EMAIL dump email address
1702 --with-job-email=EMAIL job output email address
1703 --with-smtp-host=HOST SMTP mail host address
1704 --with-pid-dir=PATH specify location of Bacula pid files
1705 --with-subsys-dir=PATH specify location of Bacula subsys file
1706 --with-baseport=PORT specify base port address for daemons
1707 --with-dir-password=PASSWORD
1708 specify Director's password
1709 --with-fd-password=PASSWORD
1710 specify Client's password
1711 --with-sd-password=PASSWORD
1712 specify Storage daemon's password
1713 --with-mon-dir-password=PASSWORD
1714 specify Director's password used by the monitor
1715 --with-mon-fd-password=PASSWORD
1716 specify Client's password used by the monitor
1717 --with-mon-sd-password=PASSWORD
1718 specify Storage daemon's password used by the
1720 --with-db-name=DBNAME specify database name [default=bacula]
1721 --with-db-user=UNAME specify database user [default=bacula]
1722 --with-db-password=PWD specify database password [default=*none*]
1723 --with-db-port=DBPORT specify a database port [default=null]
1724 --with-dir-user=USER specify user for Director daemon
1725 --with-dir-group=GROUP specify group for Director daemon
1726 --with-sd-user=USER specify user for Storage daemon
1727 --with-sd-group=GROUP specify group for Storage daemon
1728 --with-fd-user=USER specify user for File daemon
1729 --with-fd-group=GROUP specify group for File daemon
1730 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1731 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1732 base install directory, [default=/usr/local/pgsql]
1733 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1734 directory, default is to search through a number of
1735 common places for the MySQL files.
1736 --with-embedded-mysql[=DIR]
1737 Include MySQL support. DIR is the MySQL base install
1738 directory, default is to search through a number of
1739 common places for the MySQL files.
1740 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1741 install directory, default is to search through a
1742 number of common places for the Ingres files.
1743 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1744 install directory, default is to search through a
1745 number of common places for the SQLite3 files.
1746 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1747 directory, default is to search through a number of
1748 common places for the DBI files.
1749 --with-dbi-driver[=DRIVER]
1750 Suport for DBI driver. DRIVER is the one DBI driver
1751 like Mysql, Postgresql, others. Default is to not
1752 configure any driver.
1753 --with-x use the X Window System
1755 Some influential environment variables:
1756 CC C compiler command
1757 CFLAGS C compiler flags
1758 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1759 nonstandard directory <lib dir>
1760 LIBS libraries to pass to the linker, e.g. -l<library>
1761 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1762 you have headers in a nonstandard directory <include dir>
1763 CXX C++ compiler command
1764 CXXFLAGS C++ compiler flags
1766 WXCONFIG wx-config command. On some systems, you must set it to
1767 wx-config-2.6 to use wxWidgets 2.6.
1768 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1769 CXXCPP C++ preprocessor
1770 XMKMF Path to xmkmf, Makefile generator for X Window System
1772 Use these variables to override the choices made by `configure' or to help
1773 it to find libraries and programs with nonstandard names/locations.
1779 if test "$ac_init_help" = "recursive"; then
1780 # If there are subdirs, report their specific --help.
1781 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1782 test -d "$ac_dir" || continue
1786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1789 # A ".." for each directory in $ac_dir_suffix.
1790 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1791 case $ac_top_builddir_sub in
1792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1796 ac_abs_top_builddir=$ac_pwd
1797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1798 # for backward compatibility:
1799 ac_top_builddir=$ac_top_build_prefix
1802 .) # We are building in place.
1804 ac_top_srcdir=$ac_top_builddir_sub
1805 ac_abs_top_srcdir=$ac_pwd ;;
1806 [\\/]* | ?:[\\/]* ) # Absolute name.
1807 ac_srcdir=$srcdir$ac_dir_suffix;
1808 ac_top_srcdir=$srcdir
1809 ac_abs_top_srcdir=$srcdir ;;
1811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1812 ac_top_srcdir=$ac_top_build_prefix$srcdir
1813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817 cd "$ac_dir" || { ac_status=$?; continue; }
1818 # Check for guested configure.
1819 if test -f "$ac_srcdir/configure.gnu"; then
1821 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1822 elif test -f "$ac_srcdir/configure"; then
1824 $SHELL "$ac_srcdir/configure" --help=recursive
1826 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828 cd "$ac_pwd" || { ac_status=$?; break; }
1832 test -n "$ac_init_help" && exit $ac_status
1833 if $ac_init_version; then
1836 generated by GNU Autoconf 2.61
1838 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1839 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1849 It was created by $as_me, which was
1850 generated by GNU Autoconf 2.61. Invocation command line was
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 echo "PATH: $as_dir"
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1910 ac_must_keep_next=false
1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918 | -silent | --silent | --silen | --sile | --sil)
1921 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1926 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1927 if test $ac_must_keep_next = true; then
1928 ac_must_keep_next=false # Got value, back to normal.
1931 *=* | --config-cache | -C | -disable-* | --disable-* \
1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934 | -with-* | --with-* | -without-* | --without-* | --x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 -* ) ac_must_keep_next=true ;;
1942 ac_configure_args="$ac_configure_args '$ac_arg'"
1947 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1948 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Save into config.log some information that might help in debugging.
1961 ## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##
1966 # The following way of writing the cache mishandles newlines in values,
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1973 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1977 _ | IFS | as_nl) ;; #(
1978 *) $as_unset $ac_var ;;
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##
2003 for ac_var in $ac_subst_vars
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 echo "$ac_var='\''$ac_val'\''"
2013 if test -n "$ac_subst_files"; then
2015 ## ------------------- ##
2016 ## File substitutions. ##
2017 ## ------------------- ##
2020 for ac_var in $ac_subst_files
2022 eval ac_val=\$$ac_var
2024 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 echo "$ac_var='\''$ac_val'\''"
2031 if test -s confdefs.h; then
2041 test "$ac_signal" != 0 &&
2042 echo "$as_me: caught signal $ac_signal"
2043 echo "$as_me: exit $exit_status"
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2057 # Predefined preprocessor variables.
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer explicitly selected file to automatically selected ones.
2086 if test -n "$CONFIG_SITE"; then
2087 set x "$CONFIG_SITE"
2088 elif test "x$prefix" != xNONE; then
2089 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2091 set x "$ac_default_prefix/share/config.site" \
2092 "$ac_default_prefix/etc/config.site"
2097 if test -r "$ac_site_file"; then
2098 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2099 echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special
2107 # files actually), so we avoid doing that.
2108 if test -f "$cache_file"; then
2109 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2110 echo "$as_me: loading cache $cache_file" >&6;}
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2117 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2118 echo "$as_me: creating cache $cache_file" >&6;}
2122 # Check that the precious variables saved in the cache have kept the same
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127 eval ac_new_set=\$ac_env_${ac_var}_set
2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129 eval ac_new_val=\$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2132 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2136 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2143 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2145 echo "$as_me: former value: $ac_old_val" >&2;}
2146 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2147 echo "$as_me: current value: $ac_new_val" >&2;}
2148 ac_cache_corrupted=:
2151 # Pass precious variables to config.status.
2152 if test "$ac_new_set" = set; then
2154 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 *) ac_arg=$ac_var=$ac_new_val ;;
2157 case " $ac_configure_args " in
2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2159 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2163 if $ac_cache_corrupted; then
2164 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2165 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2167 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2168 { (exit 1); exit 1; }; }
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2202 if test -f "$ac_dir/install-sh"; then
2204 ac_install_sh="$ac_aux_dir/install-sh -c"
2206 elif test -f "$ac_dir/install.sh"; then
2208 ac_install_sh="$ac_aux_dir/install.sh -c"
2210 elif test -f "$ac_dir/shtool"; then
2212 ac_install_sh="$ac_aux_dir/shtool install -c"
2216 if test -z "$ac_aux_dir"; then
2217 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2218 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2219 { (exit 1); exit 1; }; }
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2227 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2228 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2234 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2235 WIN32MAINDIR=${BUILD_DIR}
2236 WIN32TOPDIR=${TOP_DIR}
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 TRUEPRG=$ac_cv_path_TRUEPRG
2274 if test -n "$TRUEPRG"; then
2275 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2276 echo "${ECHO_T}$TRUEPRG" >&6; }
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2283 test -n "$TRUEPRG" && break
2285 test -n "$TRUEPRG" || TRUEPRG=":"
2287 for ac_prog in false
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 FALSEPRG=$ac_cv_path_FALSEPRG
2320 if test -n "$FALSEPRG"; then
2321 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2322 echo "${ECHO_T}$FALSEPRG" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2329 test -n "$FALSEPRG" && break
2331 test -n "$FALSEPRG" || FALSEPRG=":"
2336 if test "x$BACULA" != x; then
2337 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2339 BACULA=${BACULA:-Bacula}
2340 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2341 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 echo "configuring for ${BACULA} $VERSION ($DATE)"
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 if test -n "$CC"; then
2381 { echo "$as_me:$LINENO: result: $CC" >&5
2382 echo "${ECHO_T}$CC" >&6; }
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2390 if test -z "$ac_cv_prog_CC"; then
2392 # Extract the first word of "gcc", so it can be a program name with args.
2393 set dummy gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$ac_ct_CC"; then
2400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_ac_ct_CC="gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420 if test -n "$ac_ct_CC"; then
2421 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2422 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2428 if test "x$ac_ct_CC" = x; then
2431 case $cross_compiling:$ac_tool_warned in
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2447 if test -z "$CC"; then
2448 if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_CC="${ac_tool_prefix}cc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CC"; then
2478 { echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6; }
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2488 if test -z "$CC"; then
2489 # Extract the first word of "cc", so it can be a program name with args.
2490 set dummy cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2508 ac_prog_rejected=yes
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 if test $ac_prog_rejected = yes; then
2520 # We found a bogon in the path, so make sure we never use it.
2521 set dummy $ac_cv_prog_CC
2523 if test $# != 0; then
2524 # We chose a different compiler from the bogus one.
2525 # However, it has the same basename, so the bogon will be chosen
2526 # first if we set CC to just the basename; use the full file name.
2528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534 if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2544 if test -z "$CC"; then
2545 if test -n "$ac_tool_prefix"; then
2546 for ac_prog in cl.exe
2548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test -n "$CC"; then
2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2585 test -n "$CC" && break
2588 if test -z "$CC"; then
2590 for ac_prog in cl.exe
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_ac_ct_CC="$ac_prog"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2629 test -n "$ac_ct_CC" && break
2632 if test "x$ac_ct_CC" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&5
2640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2641 whose name does not start with the host triplet. If you think this
2642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2643 ac_tool_warned=yes ;;
2652 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2658 # Provide some information about the compiler.
2659 echo "$as_me:$LINENO: checking for C compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (ac_try="$ac_compiler --version >&5"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compiler --version >&5") 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (ac_try="$ac_compiler -v >&5"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler -v >&5") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -V >&5"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -V >&5") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 ac_clean_files_save=$ac_clean_files
2708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2709 # Try to create an executable without -o first, disregard a.out.
2710 # It will help us diagnose broken compilers, and finding out an intuition
2712 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 # List of possible output files, starting from the most likely.
2717 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2718 # only as a last resort. b.out is created by i960 compilers.
2719 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 # The IRIX 6 linker writes into existing files which may not be
2722 # executable, retaining their permissions. Remove them first so a
2723 # subsequent execution test works.
2725 for ac_file in $ac_files
2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2729 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734 if { (ac_try="$ac_link_default"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_link_default") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; then
2744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2747 # so that the user can short-circuit this test for compilers unknown to
2749 for ac_file in $ac_files ''
2751 test -f "$ac_file" || continue
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2756 # We found the default executable, but exeext='' is most
2760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764 # We set ac_cv_exeext here because the later test for it is not
2765 # safe: cross compilers may not add the suffix if given an `-o'
2766 # argument, so we may need to know it at that point already.
2767 # Even if this section looks crufty: it has the advantage of
2774 test "$ac_cv_exeext" = no && ac_cv_exeext=
2780 { echo "$as_me:$LINENO: result: $ac_file" >&5
2781 echo "${ECHO_T}$ac_file" >&6; }
2782 if test -z "$ac_file"; then
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }
2793 ac_exeext=$ac_cv_exeext
2795 # Check that the compiler produces executables we can run. If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2798 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2799 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2800 # If not cross compiling, check that we can run a simple program.
2801 if test "$cross_compiling" != yes; then
2802 if { ac_try='./$ac_file'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 if test "$cross_compiling" = maybe; then
2817 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." >&2;}
2823 { (exit 1); exit 1; }; }
2827 { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2830 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2831 ac_clean_files=$ac_clean_files_save
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2835 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2836 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2837 echo "${ECHO_T}$cross_compiling" >&6; }
2839 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2840 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2841 if { (ac_try="$ac_link"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_link") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2853 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 for ac_file in conftest.exe conftest conftest.*; do
2856 test -f "$ac_file" || continue
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }
2872 rm -f conftest$ac_cv_exeext
2873 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2874 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2876 rm -f conftest.$ac_ext
2877 EXEEXT=$ac_cv_exeext
2879 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2880 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2881 if test "${ac_cv_objext+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2899 rm -f conftest.o conftest.obj
2900 if { (ac_try="$ac_compile"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 for ac_file in conftest.o conftest.obj conftest.*; do
2911 test -f "$ac_file" || continue;
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2929 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2932 echo "${ECHO_T}$ac_cv_objext" >&6; }
2933 OBJEXT=$ac_cv_objext
2935 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2936 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2937 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2989 GCC=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CFLAGS=${CFLAGS+set}
2991 ac_save_CFLAGS=$CFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cc_g+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 ac_save_c_werror_flag=$ac_c_werror_flag
2998 ac_c_werror_flag=yes
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 ac_c_werror_flag=$ac_save_c_werror_flag
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3129 if test "$ac_test_CFLAGS" = set; then
3130 CFLAGS=$ac_save_CFLAGS
3131 elif test $ac_cv_prog_cc_g = yes; then
3132 if test "$GCC" = yes; then
3138 if test "$GCC" = yes; then
3144 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3145 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_cc_c89+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 ac_cv_prog_cc_c89=no
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3175 s = g (p, va_arg (v,int));
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3181 function prototypes and stuff, but not '\xHH' hex character constants.
3182 These don't provoke an error unfortunately, instead are silently treated
3183 as 'x'. The following induces an error, until -std is added to get
3184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3185 array size at least. It's necessary to write '\x00'==0 to get something
3186 that's true only with -std. */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190 inside strings and character constants. */
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 CC="$ac_save_CC $ac_arg"
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3221 grep -v '^ *+' conftest.er1 >conftest.err
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3229 ac_cv_prog_cc_c89=$ac_arg
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3237 rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 rm -f conftest.$ac_ext
3245 case "x$ac_cv_prog_cc_c89" in
3247 { echo "$as_me:$LINENO: result: none needed" >&5
3248 echo "${ECHO_T}none needed" >&6; } ;;
3250 { echo "$as_me:$LINENO: result: unsupported" >&5
3251 echo "${ECHO_T}unsupported" >&6; } ;;
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 ac_cpp='$CXXCPP $CPPFLAGS'
3267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270 if test -z "$CXX"; then
3271 if test -n "$CCC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3317 if test -z "$CXX"; then
3319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$ac_ct_CXX"; then
3329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_ac_ct_CXX="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349 if test -n "$ac_ct_CXX"; then
3350 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3353 { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3358 test -n "$ac_ct_CXX" && break
3361 if test "x$ac_ct_CXX" = x; then
3364 case $cross_compiling:$ac_tool_warned in
3366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3367 whose name does not start with the host triplet. If you think this
3368 configuration is useful to you, please write to autoconf@gnu.org." >&5
3369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3370 whose name does not start with the host triplet. If you think this
3371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3372 ac_tool_warned=yes ;;
3380 # Provide some information about the compiler.
3381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (ac_try="$ac_compiler --version >&5"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compiler --version >&5") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }
3393 { (ac_try="$ac_compiler -v >&5"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compiler -v >&5") 2>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403 { (ac_try="$ac_compiler -V >&5"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compiler -V >&5") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }
3414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_cxx_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3468 GXX=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CXXFLAGS=${CXXFLAGS+set}
3470 ac_save_CXXFLAGS=$CXXFLAGS
3471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cxx_g+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3477 ac_cxx_werror_flag=yes
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_cxx_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_prog_cxx_g=yes
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_compile") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && {
3547 test -z "$ac_cxx_werror_flag" ||
3548 test ! -s conftest.err
3549 } && test -s conftest.$ac_objext; then
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3589 ac_cv_prog_cxx_g=yes
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3608 if test "$ac_test_CXXFLAGS" = set; then
3609 CXXFLAGS=$ac_save_CXXFLAGS
3610 elif test $ac_cv_prog_cxx_g = yes; then
3611 if test "$GXX" = yes; then
3617 if test "$GXX" = yes; then
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 if test "x$CC" != xcc; then
3630 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3631 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3633 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3634 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3636 set dummy $CC; ac_cc=`echo $2 |
3637 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 # Make sure it works both with $CC and with simple cc.
3657 # We do the test twice because some compilers refuse to overwrite an
3658 # existing .o file with -o, though they will create one.
3659 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3661 if { (case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_try") 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); };
3680 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3681 if test "x$CC" != xcc; then
3682 # Test first that cc exists at all.
3683 if { ac_try='cc -c conftest.$ac_ext >&5'
3684 { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3695 if { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); };
3717 # cc exists but doesn't like -o.
3718 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 rm -f core conftest*
3728 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3729 { echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6; }
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3735 cat >>confdefs.h <<\_ACEOF
3736 #define NO_MINUS_C_MINUS_O 1
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 # include <limits.h>
3777 # include <assert.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 # Broken: fails on valid input.
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3834 # Broken: success on invalid input.
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3845 rm -f conftest.err conftest.$ac_ext
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Broken: fails on valid input.
3911 rm -f conftest.err conftest.$ac_ext
3913 # OK, works on sane cases. Now check whether nonexistent headers
3914 # can be detected and how.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3939 # Broken: success on invalid input.
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3950 rm -f conftest.err conftest.$ac_ext
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962 { (exit 1); exit 1; }; }
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 $ac_path_GREP_found && break 3
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4041 ac_cv_path_GREP=$GREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4059 # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 ac_count=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 $ac_path_EGREP_found && break 3
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4123 ac_cv_path_EGREP=$EGREP
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4134 if test $ac_cv_c_compiler_gnu = yes; then
4135 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4136 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4137 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 ac_pattern="Autoconf.*'x'"
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4152 ac_cv_prog_gcc_traditional=yes
4154 ac_cv_prog_gcc_traditional=no
4159 if test $ac_cv_prog_gcc_traditional = no; then
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4171 ac_cv_prog_gcc_traditional=yes
4177 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4179 if test $ac_cv_prog_gcc_traditional = yes; then
4180 CC="$CC -traditional"
4184 BASECC=`basename $CC`
4186 if test "x$BASECC" = xgcc; then
4187 cat >>confdefs.h <<\_ACEOF
4193 # Extract the first word of "$CXX", so it can be a program name with args.
4194 set dummy $CXX; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_CXX+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225 if test -n "$CXX"; then
4226 { echo "$as_me:$LINENO: result: $CXX" >&5
4227 echo "${ECHO_T}$CXX" >&6; }
4229 { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4234 if test ! -e $CXX; then
4235 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4236 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4237 { (exit 1); exit 1; }; }
4240 # Find a good install program. We prefer a C program (faster),
4241 # so one script is as good as another. But avoid the broken or
4242 # incompatible versions:
4243 # SysV /etc/install, /usr/sbin/install
4244 # SunOS /usr/etc/install
4245 # IRIX /sbin/install
4247 # AmigaOS /C/install, which installs bootblocks on floppy discs
4248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4251 # OS/2's system install, which has a completely different semantic
4252 # ./install, which can be erroneously created by make from ./install.sh.
4253 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4255 if test -z "$INSTALL"; then
4256 if test "${ac_cv_path_install+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 # Account for people who put trailing slashes in PATH elements.
4266 ./ | .// | /cC/* | \
4267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4271 # OSF1 and SCO ODT 3.0 have their own names for install.
4272 # Don't use installbsd from OSF since it installs stuff as root
4274 for ac_prog in ginstall scoinst install; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4277 if test $ac_prog = install &&
4278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279 # AIX install. It has an incompatible calling convention.
4281 elif test $ac_prog = install &&
4282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # program-specific install script used by HP pwplus--don't use.
4286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4299 if test "${ac_cv_path_install+set}" = set; then
4300 INSTALL=$ac_cv_path_install
4302 # As a last resort, use the slow shell script. Don't cache a
4303 # value for INSTALL within a source directory, because that will
4304 # break other packages using the cache if that directory is
4305 # removed, or if the value is a relative name.
4306 INSTALL=$ac_install_sh
4309 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4310 echo "${ECHO_T}$INSTALL" >&6; }
4312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4313 # It thinks the first close brace ends the variable substitution.
4314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4320 # Extract the first word of "mv", so it can be a program name with args.
4321 set dummy mv; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_MV+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352 if test -n "$MV"; then
4353 { echo "$as_me:$LINENO: result: $MV" >&5
4354 echo "${ECHO_T}$MV" >&6; }
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4361 # Extract the first word of "rm", so it can be a program name with args.
4362 set dummy rm; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_REMOVE+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4392 REMOVE=$ac_cv_path_REMOVE
4393 if test -n "$REMOVE"; then
4394 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4395 echo "${ECHO_T}$REMOVE" >&6; }
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4402 # Extract the first word of "cp", so it can be a program name with args.
4403 set dummy cp; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_CP+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434 if test -n "$CP"; then
4435 { echo "$as_me:$LINENO: result: $CP" >&5
4436 echo "${ECHO_T}$CP" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 # Extract the first word of "sed", so it can be a program name with args.
4444 set dummy sed; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_SED+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475 if test -n "$SED"; then
4476 { echo "$as_me:$LINENO: result: $SED" >&5
4477 echo "${ECHO_T}$SED" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4484 # Extract the first word of "echo", so it can be a program name with args.
4485 set dummy echo; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_ECHO+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4515 ECHO=$ac_cv_path_ECHO
4516 if test -n "$ECHO"; then
4517 { echo "$as_me:$LINENO: result: $ECHO" >&5
4518 echo "${ECHO_T}$ECHO" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557 if test -n "$CMP"; then
4558 { echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4566 # Extract the first word of "tbl", so it can be a program name with args.
4567 set dummy tbl; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_TBL+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598 if test -n "$TBL"; then
4599 { echo "$as_me:$LINENO: result: $TBL" >&5
4600 echo "${ECHO_T}$TBL" >&6; }
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4607 # Extract the first word of "ar", so it can be a program name with args.
4608 set dummy ar; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_AR+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639 if test -n "$AR"; then
4640 { echo "$as_me:$LINENO: result: $AR" >&5
4641 echo "${ECHO_T}$AR" >&6; }
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4648 # Extract the first word of "openssl", so it can be a program name with args.
4649 set dummy openssl; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_OPENSSL+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4679 OPENSSL=$ac_cv_path_OPENSSL
4680 if test -n "$OPENSSL"; then
4681 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4682 echo "${ECHO_T}$OPENSSL" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 # Extract the first word of "mtx", so it can be a program name with args.
4690 set dummy mtx; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_MTX+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721 if test -n "$MTX"; then
4722 { echo "$as_me:$LINENO: result: $MTX" >&5
4723 echo "${ECHO_T}$MTX" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 # Extract the first word of "dd", so it can be a program name with args.
4731 set dummy dd; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_DD+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762 if test -n "$DD"; then
4763 { echo "$as_me:$LINENO: result: $DD" >&5
4764 echo "${ECHO_T}$DD" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 # Extract the first word of "mkisofs", so it can be a program name with args.
4772 set dummy mkisofs; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_MKISOFS+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4802 MKISOFS=$ac_cv_path_MKISOFS
4803 if test -n "$MKISOFS"; then
4804 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4805 echo "${ECHO_T}$MKISOFS" >&6; }
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4812 # Extract the first word of "python", so it can be a program name with args.
4813 set dummy python; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_PYTHON+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4843 PYTHON=$ac_cv_path_PYTHON
4844 if test -n "$PYTHON"; then
4845 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4846 echo "${ECHO_T}$PYTHON" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 # Extract the first word of "growisofs", so it can be a program name with args.
4854 set dummy growisofs; 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_path_GROWISOFS+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4884 GROWISOFS=$ac_cv_path_GROWISOFS
4885 if test -n "$GROWISOFS"; then
4886 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4887 echo "${ECHO_T}$GROWISOFS" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4895 set dummy dvd+rw-mediainfo; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 case $DVDRWMEDIAINFO in
4903 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4925 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4926 if test -n "$DVDRWMEDIAINFO"; then
4927 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4930 { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4935 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4936 set dummy dvd+rw-format; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 case $DVDRWFORMAT in
4944 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4966 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4967 if test -n "$DVDRWFORMAT"; then
4968 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4969 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5007 PKGCONFIG=$ac_cv_path_PKGCONFIG
5008 if test -n "$PKGCONFIG"; then
5009 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5010 echo "${ECHO_T}$PKGCONFIG" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5017 # Extract the first word of "qmake", so it can be a program name with args.
5018 set dummy qmake; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_QMAKE+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5048 QMAKE=$ac_cv_path_QMAKE
5049 if test -n "$QMAKE"; then
5050 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5051 echo "${ECHO_T}$QMAKE" >&6; }
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5058 # Extract the first word of "gmake", so it can be a program name with args.
5059 set dummy gmake; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_GMAKE+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5089 GMAKE=$ac_cv_path_GMAKE
5090 if test -n "$GMAKE"; then
5091 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5092 echo "${ECHO_T}$GMAKE" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5100 if test "x$WXCONFIG" = x; then
5103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5104 set dummy ${WXCONFIG}; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5134 WXCONFIG=$ac_cv_path_WXCONFIG
5135 if test -n "$WXCONFIG"; then
5136 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5137 echo "${ECHO_T}$WXCONFIG" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "cdrecord", so it can be a program name with args.
5146 set dummy cdrecord; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_CDRECORD+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5176 CDRECORD=$ac_cv_path_CDRECORD
5177 if test -n "$CDRECORD"; then
5178 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5179 echo "${ECHO_T}$CDRECORD" >&6; }
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 # Extract the first word of "pidof", so it can be a program name with args.
5187 set dummy pidof; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_PIDOF+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5217 PIDOF=$ac_cv_path_PIDOF
5218 if test -n "$PIDOF"; then
5219 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5220 echo "${ECHO_T}$PIDOF" >&6; }
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 for ac_prog in gawk mawk nawk awk
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_AWK+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -n "$AWK"; then
5237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_AWK="$ac_prog"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 if test -n "$AWK"; then
5258 { echo "$as_me:$LINENO: result: $AWK" >&5
5259 echo "${ECHO_T}$AWK" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 test -n "$AWK" && break
5269 # Some AWK programs fail, so test it and warn the user
5270 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5271 { if ((prog == $2) || (("(" prog ")") == $2) ||
5272 (("" prog "") == $2) ||
5273 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5275 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5276 The regex engine of $AWK is too broken to be used you
5277 might want to install GNU AWK.
5278 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5279 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5280 The regex engine of $AWK is too broken to be used you
5281 might want to install GNU AWK.
5282 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5283 { (exit 1); exit 1; }; }
5286 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5287 set dummy $THE_AWK; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_path_AWK+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5318 if test -n "$AWK"; then
5319 { echo "$as_me:$LINENO: result: $AWK" >&5
5320 echo "${ECHO_T}$AWK" >&6; }
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5329 test -n "$ARFLAG" || ARFLAGS="cr"
5341 # Check whether --enable-libtool was given.
5342 if test "${enable_libtool+set}" = set; then
5343 enableval=$enable_libtool;
5344 if test x$enableval = xno; then
5353 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5354 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5359 macro_version='2.2.6'
5360 macro_revision='1.3012'
5374 ltmain="$ac_aux_dir/ltmain.sh"
5376 # Make sure we can run config.sub.
5377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5378 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5379 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5380 { (exit 1); exit 1; }; }
5382 { echo "$as_me:$LINENO: checking build system type" >&5
5383 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5384 if test "${ac_cv_build+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_build_alias=$build_alias
5388 test "x$ac_build_alias" = x &&
5389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5390 test "x$ac_build_alias" = x &&
5391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5393 { (exit 1); exit 1; }; }
5394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5395 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5396 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5397 { (exit 1); exit 1; }; }
5400 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5401 echo "${ECHO_T}$ac_cv_build" >&6; }
5402 case $ac_cv_build in
5404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5405 echo "$as_me: error: invalid value of canonical build" >&2;}
5406 { (exit 1); exit 1; }; };;
5409 ac_save_IFS=$IFS; IFS='-'
5415 # Remember, the first character of IFS is used to create $*,
5416 # except with old shells:
5419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5422 { echo "$as_me:$LINENO: checking host system type" >&5
5423 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5424 if test "${ac_cv_host+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 if test "x$host_alias" = x; then
5428 ac_cv_host=$ac_cv_build
5430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5433 { (exit 1); exit 1; }; }
5437 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5438 echo "${ECHO_T}$ac_cv_host" >&6; }
5441 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5442 echo "$as_me: error: invalid value of canonical host" >&2;}
5443 { (exit 1); exit 1; }; };;
5446 ac_save_IFS=$IFS; IFS='-'
5452 # Remember, the first character of IFS is used to create $*,
5453 # except with old shells:
5456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5459 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5460 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5461 if test "${ac_cv_path_SED+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5465 for ac_i in 1 2 3 4 5 6 7; do
5466 ac_script="$ac_script$as_nl$ac_script"
5468 echo "$ac_script" | sed 99q >conftest.sed
5469 $as_unset ac_script || ac_script=
5470 # Extract the first word of "sed gsed" to use in msg output
5471 if test -z "$SED"; then
5472 set dummy sed gsed; ac_prog_name=$2
5473 if test "${ac_cv_path_SED+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_path_SED_found=false
5477 # Loop through the user's path and test for each of PROGNAME-LIST
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir=.
5483 for ac_prog in sed gsed; do
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5486 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5487 # Check for GNU ac_path_SED and select it if it is found.
5488 # Check for GNU $ac_path_SED
5489 case `"$ac_path_SED" --version 2>&1` in
5491 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5494 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5497 cat "conftest.in" "conftest.in" >"conftest.tmp"
5498 mv "conftest.tmp" "conftest.in"
5499 cp "conftest.in" "conftest.nl"
5500 echo '' >> "conftest.nl"
5501 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5503 ac_count=`expr $ac_count + 1`
5504 if test $ac_count -gt ${ac_path_SED_max-0}; then
5505 # Best one so far, save it but keep looking for a better one
5506 ac_cv_path_SED="$ac_path_SED"
5507 ac_path_SED_max=$ac_count
5509 # 10*(2^10) chars as input seems more than enough
5510 test $ac_count -gt 10 && break
5512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 $ac_path_SED_found && break 3
5526 SED="$ac_cv_path_SED"
5527 if test -z "$SED"; then
5528 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5529 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5530 { (exit 1); exit 1; }; }
5538 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5539 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5540 SED="$ac_cv_path_SED"
5543 test -z "$SED" && SED=sed
5544 Xsed="$SED -e 1s/^X//"
5556 { echo "$as_me:$LINENO: checking for fgrep" >&5
5557 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5558 if test "${ac_cv_path_FGREP+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5562 then ac_cv_path_FGREP="$GREP -F"
5564 # Extract the first word of "fgrep" to use in msg output
5565 if test -z "$FGREP"; then
5566 set dummy fgrep; ac_prog_name=$2
5567 if test "${ac_cv_path_FGREP+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_path_FGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in fgrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5580 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5581 # Check for GNU ac_path_FGREP and select it if it is found.
5582 # Check for GNU $ac_path_FGREP
5583 case `"$ac_path_FGREP" --version 2>&1` in
5585 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5588 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 echo 'FGREP' >> "conftest.nl"
5595 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 ac_count=`expr $ac_count + 1`
5598 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_FGREP="$ac_path_FGREP"
5601 ac_path_FGREP_max=$ac_count
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5610 $ac_path_FGREP_found && break 3
5620 FGREP="$ac_cv_path_FGREP"
5621 if test -z "$FGREP"; then
5622 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5624 { (exit 1); exit 1; }; }
5628 ac_cv_path_FGREP=$FGREP
5634 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5635 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5636 FGREP="$ac_cv_path_FGREP"
5639 test -z "$GREP" && GREP=grep
5659 # Check whether --with-gnu-ld was given.
5660 if test "${with_gnu_ld+set}" = set; then
5661 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5667 if test "$GCC" = yes; then
5668 # Check if gcc -print-prog-name=ld gives a path.
5669 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5670 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5673 # gcc leaves a trailing carriage return which upsets mingw
5674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5679 # Accept absolute paths.
5681 re_direlt='/[^/][^/]*/\.\./'
5682 # Canonicalize the pathname of ld
5683 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5684 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5685 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5687 test -z "$LD" && LD="$ac_prog"
5690 # If it fails, then pretend we aren't using GCC.
5694 # If it is relative, then search for the first ld in PATH.
5698 elif test "$with_gnu_ld" = yes; then
5699 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5702 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5705 if test "${lt_cv_path_LD+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 if test -z "$LD"; then
5709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710 for ac_dir in $PATH; do
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5714 lt_cv_path_LD="$ac_dir/$ac_prog"
5715 # Check to see if the program is GNU ld. I'd rather use --version,
5716 # but apparently some variants of GNU ld only accept -v.
5717 # Break only if it was the GNU/non-GNU ld that we prefer.
5718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5719 *GNU* | *'with BFD'*)
5720 test "$with_gnu_ld" != no && break
5723 test "$with_gnu_ld" != yes && break
5730 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5735 if test -n "$LD"; then
5736 { echo "$as_me:$LINENO: result: $LD" >&5
5737 echo "${ECHO_T}$LD" >&6; }
5739 { echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6; }
5742 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5743 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5744 { (exit 1); exit 1; }; }
5745 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5746 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5747 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5751 case `$LD -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753 lt_cv_prog_gnu_ld=yes
5756 lt_cv_prog_gnu_ld=no
5760 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5761 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5762 with_gnu_ld=$lt_cv_prog_gnu_ld
5772 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5773 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5774 if test "${lt_cv_path_NM+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 if test -n "$NM"; then
5778 # Let the user override the test.
5781 lt_nm_to_check="${ac_tool_prefix}nm"
5782 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5783 lt_nm_to_check="$lt_nm_to_check nm"
5785 for lt_tmp_nm in $lt_nm_to_check; do
5786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5787 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5789 test -z "$ac_dir" && ac_dir=.
5790 tmp_nm="$ac_dir/$lt_tmp_nm"
5791 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5792 # Check to see if the nm accepts a BSD-compat flag.
5793 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5794 # nm: unknown option "B" ignored
5795 # Tru64's nm complains that /dev/null is an invalid object file
5796 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5797 */dev/null* | *'Invalid file or object type'*)
5798 lt_cv_path_NM="$tmp_nm -B"
5802 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5804 lt_cv_path_NM="$tmp_nm -p"
5808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5809 continue # so that we can try to find one that supports BSD flags
5818 : ${lt_cv_path_NM=no}
5821 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5822 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5823 if test "$lt_cv_path_NM" != "no"; then
5826 # Didn't find any BSD compatible name lister, look for dumpbin.
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 if test -n "$DUMPBIN"; then
5838 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 DUMPBIN=$ac_cv_prog_DUMPBIN
5858 if test -n "$DUMPBIN"; then
5859 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5860 echo "${ECHO_T}$DUMPBIN" >&6; }
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5867 test -n "$DUMPBIN" && break
5870 if test -z "$DUMPBIN"; then
5871 ac_ct_DUMPBIN=$DUMPBIN
5872 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$ac_ct_DUMPBIN"; then
5882 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5902 if test -n "$ac_ct_DUMPBIN"; then
5903 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5904 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5911 test -n "$ac_ct_DUMPBIN" && break
5914 if test "x$ac_ct_DUMPBIN" = x; then
5917 case $cross_compiling:$ac_tool_warned in
5919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5920 whose name does not start with the host triplet. If you think this
5921 configuration is useful to you, please write to autoconf@gnu.org." >&5
5922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5923 whose name does not start with the host triplet. If you think this
5924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5925 ac_tool_warned=yes ;;
5927 DUMPBIN=$ac_ct_DUMPBIN
5932 if test "$DUMPBIN" != ":"; then
5936 test -z "$NM" && NM=nm
5943 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5944 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5945 if test "${lt_cv_nm_interface+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 lt_cv_nm_interface="BSD nm"
5949 echo "int some_variable = 0;" > conftest.$ac_ext
5950 (eval echo "\"\$as_me:5950: $ac_compile\"" >&5)
5951 (eval "$ac_compile" 2>conftest.err)
5952 cat conftest.err >&5
5953 (eval echo "\"\$as_me:5953: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955 cat conftest.err >&5
5956 (eval echo "\"\$as_me:5956: output\"" >&5)
5957 cat conftest.out >&5
5958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959 lt_cv_nm_interface="MS dumpbin"
5963 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5964 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5966 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5967 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5969 if test "$LN_S" = "ln -s"; then
5970 { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5973 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5974 echo "${ECHO_T}no, using $LN_S" >&6; }
5977 # find the maximum length of command line arguments
5978 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5979 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6002 cygwin* | mingw* | cegcc*)
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6014 # On AmigaOS with pdksh, this test takes hours, literally.
6015 # So we just punt and use a minimum line length of 8192.
6016 lt_cv_sys_max_cmd_len=8192;
6019 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020 # This has been around since 386BSD, at least. Likely further.
6021 if test -x /sbin/sysctl; then
6022 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023 elif test -x /usr/sbin/sysctl; then
6024 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 # And add a safety zone
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035 lt_cv_sys_max_cmd_len=196608
6039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041 # nice to cause kernel panics so lets avoid the loop below.
6042 # First set a reasonable default.
6043 lt_cv_sys_max_cmd_len=16384
6045 if test -x /sbin/sysconfig; then
6046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 lt_cv_sys_max_cmd_len=102400
6054 sysv5* | sco5v6* | sysv4.2uw2*)
6055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056 if test -n "$kargmax"; then
6057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 lt_cv_sys_max_cmd_len=32768
6063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064 if test -n "$lt_cv_sys_max_cmd_len"; then
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 # Make teststring a little bigger before we do anything with it.
6069 # a 1K string should be a reasonable start.
6070 for i in 1 2 3 4 5 6 7 8 ; do
6071 teststring=$teststring$teststring
6073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074 # If test is not a shell built-in, we'll probably end up computing a
6075 # maximum length that is only half of the actual maximum length, but
6077 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079 test $i != 17 # 1/2 MB should be enough
6082 teststring=$teststring$teststring
6084 # Only check the string length outside the loop.
6085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 # Add a significant safety factor because C++ compilers can tack on
6088 # massive amounts of additional arguments before passing them to the
6089 # linker. It appears as though 1/2 is a usable value.
6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6099 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6101 { echo "$as_me:$LINENO: result: none" >&5
6102 echo "${ECHO_T}none" >&6; }
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6115 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6116 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6117 # Try some XSI features
6120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 && eval 'test $(( 1 + 1 )) -eq 2 \
6123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6126 echo "${ECHO_T}$xsi_shell" >&6; }
6129 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6130 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 && lt_shell_append=yes
6135 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6136 echo "${ECHO_T}$lt_shell_append" >&6; }
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151 A) # ASCII based system
6152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153 lt_SP2NL='tr \040 \012'
6154 lt_NL2SP='tr \015\012 \040\040'
6156 *) # EBCDIC based system
6157 lt_SP2NL='tr \100 \n'
6158 lt_NL2SP='tr \r\n \100\100'
6170 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6171 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 lt_cv_ld_reload_flag='-r'
6177 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6178 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6182 *) reload_flag=" $reload_flag" ;;
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test "$GCC" = yes; then
6188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if test -n "$OBJDUMP"; then
6212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6234 echo "${ECHO_T}$OBJDUMP" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243 ac_ct_OBJDUMP=$OBJDUMP
6244 # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$ac_ct_OBJDUMP"; then
6252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6274 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6280 if test "x$ac_ct_OBJDUMP" = x; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet. If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&5
6288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet. If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6291 ac_tool_warned=yes ;;
6293 OBJDUMP=$ac_ct_OBJDUMP
6296 OBJDUMP="$ac_cv_prog_OBJDUMP"
6299 test -z "$OBJDUMP" && OBJDUMP=objdump
6309 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6310 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6311 if test "${lt_cv_deplibs_check_method+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 lt_cv_file_magic_cmd='$MAGIC_CMD'
6315 lt_cv_file_magic_test_file=
6316 lt_cv_deplibs_check_method='unknown'
6317 # Need to set the preceding variable on all platforms that support
6318 # interlibrary dependencies.
6319 # 'none' -- dependencies not supported.
6320 # `unknown' -- same as none, but documents that we really don't know.
6321 # 'pass_all' -- all dependencies passed with no checks.
6322 # 'test_compile' -- check by making test program.
6323 # 'file_magic [[regex]]' -- check by looking for files in library path
6324 # which responds to the $file_magic_cmd with a given extended regex.
6325 # If you have `file' or equivalent on your system and you're not sure
6326 # whether `pass_all' will *always* work, you probably want this one.
6330 lt_cv_deplibs_check_method=pass_all
6334 lt_cv_deplibs_check_method=pass_all
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6339 lt_cv_file_magic_cmd='/usr/bin/file -L'
6340 lt_cv_file_magic_test_file=/shlib/libc.so
6344 # func_win32_libid is a shell function defined in ltmain.sh
6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346 lt_cv_file_magic_cmd='func_win32_libid'
6350 # Base MSYS/MinGW do not provide the 'file' command needed by
6351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6352 # unless we find 'file', for example because we are cross-compiling.
6353 if ( file / ) >/dev/null 2>&1; then
6354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355 lt_cv_file_magic_cmd='func_win32_libid'
6357 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6358 lt_cv_file_magic_cmd='$OBJDUMP -f'
6363 # use the weaker test based on 'objdump'. See mingw*.
6364 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6365 lt_cv_file_magic_cmd='$OBJDUMP -f'
6368 darwin* | rhapsody*)
6369 lt_cv_deplibs_check_method=pass_all
6372 freebsd* | dragonfly*)
6373 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 # Not sure whether the presence of OpenBSD here was a mistake.
6377 # Let's accept both of them until this is cleared up.
6378 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6379 lt_cv_file_magic_cmd=/usr/bin/file
6380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6384 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method=pass_all
6392 hpux10.20* | hpux11*)
6393 lt_cv_file_magic_cmd=/usr/bin/file
6396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6397 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6400 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]'
6401 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6405 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6411 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6415 irix5* | irix6* | nonstopux*)
6417 *-32|*"-32 ") libmagic=32-bit;;
6418 *-n32|*"-n32 ") libmagic=N32;;
6419 *-64|*"-64 ") libmagic=64-bit;;
6420 *) libmagic=never-match;;
6422 lt_cv_deplibs_check_method=pass_all
6425 # This must be Linux ELF.
6426 linux* | k*bsd*-gnu)
6427 lt_cv_deplibs_check_method=pass_all
6431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6440 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6445 lt_cv_deplibs_check_method=pass_all
6449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6456 osf3* | osf4* | osf5*)
6457 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6465 lt_cv_deplibs_check_method=pass_all
6468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6469 lt_cv_deplibs_check_method=pass_all
6473 case $host_vendor in
6475 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]'
6476 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6479 lt_cv_deplibs_check_method=pass_all
6482 lt_cv_file_magic_cmd='/bin/file'
6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6486 lt_cv_file_magic_cmd='/bin/file'
6487 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6488 lt_cv_file_magic_test_file=/lib/libc.so
6491 lt_cv_deplibs_check_method=pass_all
6494 lt_cv_deplibs_check_method=pass_all
6500 lt_cv_deplibs_check_method=pass_all
6505 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6506 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6507 file_magic_cmd=$lt_cv_file_magic_cmd
6508 deplibs_check_method=$lt_cv_deplibs_check_method
6509 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}ar; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_prog_AR+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 if test -n "$AR"; then
6531 ac_cv_prog_AR="$AR" # Let the user override the test.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_AR="${ac_tool_prefix}ar"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 if test -n "$AR"; then
6552 { echo "$as_me:$LINENO: result: $AR" >&5
6553 echo "${ECHO_T}$AR" >&6; }
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6561 if test -z "$ac_cv_prog_AR"; then
6563 # Extract the first word of "ar", so it can be a program name with args.
6564 set dummy ar; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 if test -n "$ac_ct_AR"; then
6571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_ac_ct_AR="ar"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6591 if test -n "$ac_ct_AR"; then
6592 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6593 echo "${ECHO_T}$ac_ct_AR" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6599 if test "x$ac_ct_AR" = x; then
6602 case $cross_compiling:$ac_tool_warned in
6604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6605 whose name does not start with the host triplet. If you think this
6606 configuration is useful to you, please write to autoconf@gnu.org." >&5
6607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet. If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6610 ac_tool_warned=yes ;;
6618 test -z "$AR" && AR=ar
6619 test -z "$AR_FLAGS" && AR_FLAGS=cru
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}strip; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_prog_STRIP+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 if test -n "$STRIP"; then
6640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 STRIP=$ac_cv_prog_STRIP
6660 if test -n "$STRIP"; then
6661 { echo "$as_me:$LINENO: result: $STRIP" >&5
6662 echo "${ECHO_T}$STRIP" >&6; }
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6670 if test -z "$ac_cv_prog_STRIP"; then
6672 # Extract the first word of "strip", so it can be a program name with args.
6673 set dummy strip; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 if test -n "$ac_ct_STRIP"; then
6680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_STRIP="strip"
6690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6700 if test -n "$ac_ct_STRIP"; then
6701 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6702 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6704 { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6708 if test "x$ac_ct_STRIP" = x; then
6711 case $cross_compiling:$ac_tool_warned in
6713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6714 whose name does not start with the host triplet. If you think this
6715 configuration is useful to you, please write to autoconf@gnu.org." >&5
6716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6717 whose name does not start with the host triplet. If you think this
6718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6719 ac_tool_warned=yes ;;
6724 STRIP="$ac_cv_prog_STRIP"
6727 test -z "$STRIP" && STRIP=:
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_RANLIB+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test -n "$RANLIB"; then
6743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 RANLIB=$ac_cv_prog_RANLIB
6763 if test -n "$RANLIB"; then
6764 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6765 echo "${ECHO_T}$RANLIB" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6773 if test -z "$ac_cv_prog_RANLIB"; then
6774 ac_ct_RANLIB=$RANLIB
6775 # Extract the first word of "ranlib", so it can be a program name with args.
6776 set dummy ranlib; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 if test -n "$ac_ct_RANLIB"; then
6783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_RANLIB="ranlib"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6803 if test -n "$ac_ct_RANLIB"; then
6804 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6805 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6811 if test "x$ac_ct_RANLIB" = x; then
6814 case $cross_compiling:$ac_tool_warned in
6816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet. If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&5
6819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet. If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6822 ac_tool_warned=yes ;;
6824 RANLIB=$ac_ct_RANLIB
6827 RANLIB="$ac_cv_prog_RANLIB"
6830 test -z "$RANLIB" && RANLIB=:
6837 # Determine commands to create old-style static archives.
6838 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6839 old_postinstall_cmds='chmod 644 $oldlib'
6840 old_postuninstall_cmds=
6842 if test -n "$RANLIB"; then
6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6851 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6887 # If no C compiler was specified, use CC.
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6893 # Allow CC to be a program name with arguments.
6897 # Check for command to grab the raw symbol name followed by C symbol from nm.
6898 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6899 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6900 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 # These are sane defaults that work on at least a few old systems.
6905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6907 # Character class describing NM global symbol codes.
6908 symcode='[BCDEGRST]'
6910 # Regexp to match symbols that can be accessed directly from C.
6911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6913 # Define system-specific variables.
6918 cygwin* | mingw* | pw32* | cegcc*)
6919 symcode='[ABCDGISTW]'
6922 if test "$host_cpu" = ia64; then
6923 symcode='[ABCDEGRST]'
6927 symcode='[BCDEGRST]'
6930 symcode='[BCDEGQRST]'
6941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6949 # If we're using GNU nm, then use its standard symbol codes.
6950 case `$NM -V 2>&1` in
6951 *GNU* | *'with BFD'*)
6952 symcode='[ABCDGIRSTW]' ;;
6955 # Transform an extracted symbol line into a proper C declaration.
6956 # Some systems (esp. on ia64) link data and code symbols differently,
6957 # so use this general approach.
6958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6960 # Transform an extracted symbol line into symbol name and symbol address
6961 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6962 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6964 # Handle CRLF in mingw tool chain
6968 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6972 # Try without a prefix underscore, then with it.
6973 for ac_symprfx in "" "_"; do
6975 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6976 symxfrm="\\1 $ac_symprfx\\2 \\2"
6978 # Write the raw and C identifiers.
6979 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6980 # Fake it for dumpbin and say T for any non-static function
6981 # and D for any global variable.
6982 # Also find C++ and __fastcall symbols from MSVC++,
6983 # which start with @ or ?.
6984 lt_cv_sys_global_symbol_pipe="$AWK '"\
6985 " {last_section=section; section=\$ 3};"\
6986 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6987 " \$ 0!~/External *\|/{next};"\
6988 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6989 " {if(hide[section]) next};"\
6990 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6991 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6992 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6993 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6994 " ' prfx=^$ac_symprfx"
6996 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6999 # Check to see that the pipe works correctly.
7003 cat > conftest.$ac_ext <<_LT_EOF
7008 void nm_test_func(void);
7009 void nm_test_func(void){}
7013 int main(){nm_test_var='a';nm_test_func();return(0);}
7016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017 (eval $ac_compile) 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; then
7021 # Now try to grab the symbols.
7023 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7024 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && test -s "$nlist"; then
7028 # Try sorting and uniquifying the output.
7029 if sort "$nlist" | uniq > "$nlist"T; then
7030 mv -f "$nlist"T "$nlist"
7035 # Make sure that we snagged all the symbols we need.
7036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7038 cat <<_LT_EOF > conftest.$ac_ext
7044 # Now generate the symbol file.
7045 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7047 cat <<_LT_EOF >> conftest.$ac_ext
7049 /* The mapping between symbol names and symbols. */
7054 lt__PROGRAM__LTX_preloaded_symbols[] =
7056 { "@PROGRAM@", (void *) 0 },
7058 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7059 cat <<\_LT_EOF >> conftest.$ac_ext
7063 /* This works around a problem in FreeBSD linker */
7064 #ifdef FREEBSD_WORKAROUND
7065 static const void *lt_preloaded_setup() {
7066 return lt__PROGRAM__LTX_preloaded_symbols;
7074 # Now try linking the two files.
7075 mv conftest.$ac_objext conftstm.$ac_objext
7076 lt_save_LIBS="$LIBS"
7077 lt_save_CFLAGS="$CFLAGS"
7078 LIBS="conftstm.$ac_objext"
7079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7087 LIBS="$lt_save_LIBS"
7088 CFLAGS="$lt_save_CFLAGS"
7090 echo "cannot find nm_test_func in $nlist" >&5
7093 echo "cannot find nm_test_var in $nlist" >&5
7096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7099 echo "$progname: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 rm -rf conftest* conftst*
7104 # Do not use the global_symbol_pipe unless it works.
7105 if test "$pipe_works" = yes; then
7108 lt_cv_sys_global_symbol_pipe=
7114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7115 lt_cv_sys_global_symbol_to_cdecl=
7117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7118 { echo "$as_me:$LINENO: result: failed" >&5
7119 echo "${ECHO_T}failed" >&6; }
7121 { echo "$as_me:$LINENO: result: ok" >&5
7122 echo "${ECHO_T}ok" >&6; }
7146 # Check whether --enable-libtool-lock was given.
7147 if test "${enable_libtool_lock+set}" = set; then
7148 enableval=$enable_libtool_lock;
7151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7153 # Some flags need to be propagated to the compiler or linker for good
7157 # Find out which ABI we are using.
7158 echo 'int i;' > conftest.$ac_ext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; then
7164 case `/usr/bin/file conftest.$ac_objext` in
7176 # Find out which ABI we are using.
7177 echo '#line 7177 "configure"' > conftest.$ac_ext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; then
7183 if test "$lt_cv_prog_gnu_ld" = yes; then
7184 case `/usr/bin/file conftest.$ac_objext` in
7186 LD="${LD-ld} -melf32bsmip"
7189 LD="${LD-ld} -melf32bmipn32"
7192 LD="${LD-ld} -melf64bmip"
7196 case `/usr/bin/file conftest.$ac_objext` in
7212 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7213 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7214 # Find out which ABI we are using.
7215 echo 'int i;' > conftest.$ac_ext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; then
7221 case `/usr/bin/file conftest.o` in
7224 x86_64-*kfreebsd*-gnu)
7225 LD="${LD-ld} -m elf_i386_fbsd"
7228 LD="${LD-ld} -m elf_i386"
7230 ppc64-*linux*|powerpc64-*linux*)
7231 LD="${LD-ld} -m elf32ppclinux"
7234 LD="${LD-ld} -m elf_s390"
7237 LD="${LD-ld} -m elf32_sparc"
7243 x86_64-*kfreebsd*-gnu)
7244 LD="${LD-ld} -m elf_x86_64_fbsd"
7247 LD="${LD-ld} -m elf_x86_64"
7249 ppc*-*linux*|powerpc*-*linux*)
7250 LD="${LD-ld} -m elf64ppc"
7252 s390*-*linux*|s390*-*tpf*)
7253 LD="${LD-ld} -m elf64_s390"
7256 LD="${LD-ld} -m elf64_sparc"
7266 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7267 SAVE_CFLAGS="$CFLAGS"
7268 CFLAGS="$CFLAGS -belf"
7269 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7270 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7271 if test "${lt_cv_cc_needs_belf+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7280 cat >conftest.$ac_ext <<_ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_link") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest$ac_exeext &&
7312 $as_test_x conftest$ac_exeext; then
7313 lt_cv_cc_needs_belf=yes
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 lt_cv_cc_needs_belf=no
7321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7322 conftest$ac_exeext conftest.$ac_ext
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7331 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7334 CFLAGS="$SAVE_CFLAGS"
7338 # Find out which ABI we are using.
7339 echo 'int i;' > conftest.$ac_ext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; then
7345 case `/usr/bin/file conftest.o` in
7347 case $lt_cv_prog_gnu_ld in
7348 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7350 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7362 need_locks="$enable_libtool_lock"
7366 rhapsody* | darwin*)
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 if test -n "$DSYMUTIL"; then
7376 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7396 if test -n "$DSYMUTIL"; then
7397 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7398 echo "${ECHO_T}$DSYMUTIL" >&6; }
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7406 if test -z "$ac_cv_prog_DSYMUTIL"; then
7407 ac_ct_DSYMUTIL=$DSYMUTIL
7408 # Extract the first word of "dsymutil", so it can be a program name with args.
7409 set dummy dsymutil; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 if test -n "$ac_ct_DSYMUTIL"; then
7416 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7436 if test -n "$ac_ct_DSYMUTIL"; then
7437 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7438 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7444 if test "x$ac_ct_DSYMUTIL" = x; then
7447 case $cross_compiling:$ac_tool_warned in
7449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7450 whose name does not start with the host triplet. If you think this
7451 configuration is useful to you, please write to autoconf@gnu.org." >&5
7452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7453 whose name does not start with the host triplet. If you think this
7454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7455 ac_tool_warned=yes ;;
7457 DSYMUTIL=$ac_ct_DSYMUTIL
7460 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 if test -n "$NMEDIT"; then
7472 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 NMEDIT=$ac_cv_prog_NMEDIT
7492 if test -n "$NMEDIT"; then
7493 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7494 echo "${ECHO_T}$NMEDIT" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7502 if test -z "$ac_cv_prog_NMEDIT"; then
7503 ac_ct_NMEDIT=$NMEDIT
7504 # Extract the first word of "nmedit", so it can be a program name with args.
7505 set dummy nmedit; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 if test -n "$ac_ct_NMEDIT"; then
7512 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7532 if test -n "$ac_ct_NMEDIT"; then
7533 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7534 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7540 if test "x$ac_ct_NMEDIT" = x; then
7543 case $cross_compiling:$ac_tool_warned in
7545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7546 whose name does not start with the host triplet. If you think this
7547 configuration is useful to you, please write to autoconf@gnu.org." >&5
7548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7549 whose name does not start with the host triplet. If you think this
7550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7551 ac_tool_warned=yes ;;
7553 NMEDIT=$ac_ct_NMEDIT
7556 NMEDIT="$ac_cv_prog_NMEDIT"
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564 if test "${ac_cv_prog_LIPO+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 if test -n "$LIPO"; then
7568 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 LIPO=$ac_cv_prog_LIPO
7588 if test -n "$LIPO"; then
7589 { echo "$as_me:$LINENO: result: $LIPO" >&5
7590 echo "${ECHO_T}$LIPO" >&6; }
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7598 if test -z "$ac_cv_prog_LIPO"; then
7600 # Extract the first word of "lipo", so it can be a program name with args.
7601 set dummy lipo; ac_word=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 if test -n "$ac_ct_LIPO"; then
7608 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_ac_ct_LIPO="lipo"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7628 if test -n "$ac_ct_LIPO"; then
7629 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7630 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7636 if test "x$ac_ct_LIPO" = x; then
7639 case $cross_compiling:$ac_tool_warned in
7641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7642 whose name does not start with the host triplet. If you think this
7643 configuration is useful to you, please write to autoconf@gnu.org." >&5
7644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7645 whose name does not start with the host triplet. If you think this
7646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7647 ac_tool_warned=yes ;;
7652 LIPO="$ac_cv_prog_LIPO"
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}otool; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_prog_OTOOL+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 if test -n "$OTOOL"; then
7664 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 OTOOL=$ac_cv_prog_OTOOL
7684 if test -n "$OTOOL"; then
7685 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7686 echo "${ECHO_T}$OTOOL" >&6; }
7688 { echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6; }
7694 if test -z "$ac_cv_prog_OTOOL"; then
7696 # Extract the first word of "otool", so it can be a program name with args.
7697 set dummy otool; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 if test -n "$ac_ct_OTOOL"; then
7704 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_ac_ct_OTOOL="otool"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7724 if test -n "$ac_ct_OTOOL"; then
7725 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7726 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7728 { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7732 if test "x$ac_ct_OTOOL" = x; then
7735 case $cross_compiling:$ac_tool_warned in
7737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7738 whose name does not start with the host triplet. If you think this
7739 configuration is useful to you, please write to autoconf@gnu.org." >&5
7740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7741 whose name does not start with the host triplet. If you think this
7742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7743 ac_tool_warned=yes ;;
7748 OTOOL="$ac_cv_prog_OTOOL"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 if test -n "$OTOOL64"; then
7760 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 OTOOL64=$ac_cv_prog_OTOOL64
7780 if test -n "$OTOOL64"; then
7781 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7782 echo "${ECHO_T}$OTOOL64" >&6; }
7784 { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7790 if test -z "$ac_cv_prog_OTOOL64"; then
7791 ac_ct_OTOOL64=$OTOOL64
7792 # Extract the first word of "otool64", so it can be a program name with args.
7793 set dummy otool64; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 if test -n "$ac_ct_OTOOL64"; then
7800 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_OTOOL64="otool64"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7820 if test -n "$ac_ct_OTOOL64"; then
7821 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7822 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7824 { echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6; }
7828 if test "x$ac_ct_OTOOL64" = x; then
7831 case $cross_compiling:$ac_tool_warned in
7833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7834 whose name does not start with the host triplet. If you think this
7835 configuration is useful to you, please write to autoconf@gnu.org." >&5
7836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7837 whose name does not start with the host triplet. If you think this
7838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7839 ac_tool_warned=yes ;;
7841 OTOOL64=$ac_ct_OTOOL64
7844 OTOOL64="$ac_cv_prog_OTOOL64"
7873 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7874 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7875 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 lt_cv_apple_cc_single_mod=no
7879 if test -z "${LT_MULTI_MODULE}"; then
7880 # By default we will add the -single_module flag. You can override
7881 # by either setting the environment variable LT_MULTI_MODULE
7882 # non-empty at configure time, or by adding -multi_module to the
7884 rm -rf libconftest.dylib*
7885 echo "int foo(void){return 1;}" > conftest.c
7886 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7887 -dynamiclib -Wl,-single_module conftest.c" >&5
7888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7891 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7892 lt_cv_apple_cc_single_mod=yes
7894 cat conftest.err >&5
7896 rm -rf libconftest.dylib*
7900 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7901 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7902 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7903 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7904 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 lt_cv_ld_exported_symbols_list=no
7908 save_LDFLAGS=$LDFLAGS
7909 echo "_main" > conftest.sym
7910 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (ac_try="$ac_link"
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_link") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest$ac_exeext &&
7943 $as_test_x conftest$ac_exeext; then
7944 lt_cv_ld_exported_symbols_list=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 lt_cv_ld_exported_symbols_list=no
7952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953 conftest$ac_exeext conftest.$ac_ext
7954 LDFLAGS="$save_LDFLAGS"
7957 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7958 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7960 rhapsody* | darwin1.[012])
7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7963 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7964 darwin*) # darwin 5.x on
7965 # if running on 10.5 or later, the deployment target defaults
7966 # to the OS version, if on x86, and 10.4, the deployment
7967 # target defaults to 10.4. Don't you love it?
7968 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7969 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7970 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7972 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7974 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7978 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7979 _lt_dar_single_mod='$single_module'
7981 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7982 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7984 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7986 if test "$DSYMUTIL" != ":"; then
7987 _lt_dsymutil='~$DSYMUTIL $lib || :'
7994 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7996 if test "${ac_cv_header_stdc+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_compile") 2>conftest.er1
8027 grep -v '^ *+' conftest.er1 >conftest.err
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } && {
8032 test -z "$ac_c_werror_flag" ||
8033 test ! -s conftest.err
8034 } && test -s conftest.$ac_objext; then
8035 ac_cv_header_stdc=yes
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 ac_cv_header_stdc=no
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 if test $ac_cv_header_stdc = yes; then
8046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8057 $EGREP "memchr" >/dev/null 2>&1; then
8060 ac_cv_header_stdc=no
8066 if test $ac_cv_header_stdc = yes; then
8067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078 $EGREP "free" >/dev/null 2>&1; then
8081 ac_cv_header_stdc=no
8087 if test $ac_cv_header_stdc = yes; then
8088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8089 if test "$cross_compiling" = yes; then
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8100 #if ((' ' & 0x0FF) == 0x020)
8101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8104 # define ISLOWER(c) \
8105 (('a' <= (c) && (c) <= 'i') \
8106 || ('j' <= (c) && (c) <= 'r') \
8107 || ('s' <= (c) && (c) <= 'z'))
8108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8116 for (i = 0; i < 256; i++)
8117 if (XOR (islower (i), ISLOWER (i))
8118 || toupper (i) != TOUPPER (i))
8123 rm -f conftest$ac_exeext
8124 if { (ac_try="$ac_link"
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_link") 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8134 { (case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_try") 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8145 echo "$as_me: program exited with status $ac_status" >&5
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_header_stdc=no
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8159 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8160 if test $ac_cv_header_stdc = yes; then
8162 cat >>confdefs.h <<\_ACEOF
8163 #define STDC_HEADERS 1
8168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8179 inttypes.h stdint.h unistd.h
8181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 $ac_includes_default
8195 #include <$ac_header>
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8214 eval "$as_ac_Header=yes"
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 eval "$as_ac_Header=no"
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 ac_res=`eval echo '${'$as_ac_Header'}'`
8225 { echo "$as_me:$LINENO: result: $ac_res" >&5
8226 echo "${ECHO_T}$ac_res" >&6; }
8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8238 for ac_header in dlfcn.h
8240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8254 #include <$ac_header>
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.$ac_objext; then
8273 eval "$as_ac_Header=yes"
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 eval "$as_ac_Header=no"
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 ac_res=`eval echo '${'$as_ac_Header'}'`
8284 { echo "$as_me:$LINENO: result: $ac_res" >&5
8285 echo "${ECHO_T}$ac_res" >&6; }
8286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8287 cat >>confdefs.h <<_ACEOF
8288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8302 if test -z "$CXX"; then
8303 if test -n "$CCC"; then
8306 if test -n "$ac_tool_prefix"; then
8307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_prog_CXX+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 if test -n "$CXX"; then
8317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 if test -n "$CXX"; then
8338 { echo "$as_me:$LINENO: result: $CXX" >&5
8339 echo "${ECHO_T}$CXX" >&6; }
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8346 test -n "$CXX" && break
8349 if test -z "$CXX"; then
8351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 if test -n "$ac_ct_CXX"; then
8361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_ac_ct_CXX="$ac_prog"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8381 if test -n "$ac_ct_CXX"; then
8382 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8383 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8385 { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8390 test -n "$ac_ct_CXX" && break
8393 if test "x$ac_ct_CXX" = x; then
8396 case $cross_compiling:$ac_tool_warned in
8398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8399 whose name does not start with the host triplet. If you think this
8400 configuration is useful to you, please write to autoconf@gnu.org." >&5
8401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8402 whose name does not start with the host triplet. If you think this
8403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8404 ac_tool_warned=yes ;;
8412 # Provide some information about the compiler.
8413 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8414 ac_compiler=`set X $ac_compile; echo $2`
8415 { (ac_try="$ac_compiler --version >&5"
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compiler --version >&5") 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }
8425 { (ac_try="$ac_compiler -v >&5"
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compiler -v >&5") 2>&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }
8435 { (ac_try="$ac_compiler -V >&5"
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compiler -V >&5") 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }
8446 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8447 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8448 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_cxx_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8498 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8499 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8500 GXX=`test $ac_compiler_gnu = yes && echo yes`
8501 ac_test_CXXFLAGS=${CXXFLAGS+set}
8502 ac_save_CXXFLAGS=$CXXFLAGS
8503 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8505 if test "${ac_cv_prog_cxx_g+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8509 ac_cxx_werror_flag=yes
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_cxx_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
8544 ac_cv_prog_cxx_g=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8565 rm -f conftest.$ac_objext
8566 if { (ac_try="$ac_compile"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_cxx_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_cxx_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8621 ac_cv_prog_cxx_g=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8639 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8640 if test "$ac_test_CXXFLAGS" = set; then
8641 CXXFLAGS=$ac_save_CXXFLAGS
8642 elif test $ac_cv_prog_cxx_g = yes; then
8643 if test "$GXX" = yes; then
8649 if test "$GXX" = yes; then
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8662 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8663 (test "X$CXX" != "Xg++"))) ; then
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8669 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8670 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8671 if test -z "$CXXCPP"; then
8672 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 # Double quotes because CXXCPP needs to be expanded
8676 for CXXCPP in "$CXX -E" "/lib/cpp"
8679 for ac_cxx_preproc_warn_flag in '' yes
8681 # Use a header file that comes with gcc, so configuring glibc
8682 # with a fresh cross-compiler works.
8683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684 # <limits.h> exists even on freestanding compilers.
8685 # On the NeXT, cc -E runs the code through the compiler's parser,
8686 # not just through cpp. "Syntax error" is here to catch this case.
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 # include <limits.h>
8696 # include <assert.h>
8700 if { (ac_try="$ac_cpp conftest.$ac_ext"
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } >/dev/null && {
8713 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8714 test ! -s conftest.err
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 # Broken: fails on valid input.
8725 rm -f conftest.err conftest.$ac_ext
8727 # OK, works on sane cases. Now check whether nonexistent headers
8728 # can be detected and how.
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <ac_nonexistent.h>
8737 if { (ac_try="$ac_cpp conftest.$ac_ext"
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } >/dev/null && {
8750 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8751 test ! -s conftest.err
8753 # Broken: success on invalid input.
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 # Passes both tests.
8764 rm -f conftest.err conftest.$ac_ext
8767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8768 rm -f conftest.err conftest.$ac_ext
8769 if $ac_preproc_ok; then
8774 ac_cv_prog_CXXCPP=$CXXCPP
8777 CXXCPP=$ac_cv_prog_CXXCPP
8779 ac_cv_prog_CXXCPP=$CXXCPP
8781 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8782 echo "${ECHO_T}$CXXCPP" >&6; }
8784 for ac_cxx_preproc_warn_flag in '' yes
8786 # Use a header file that comes with gcc, so configuring glibc
8787 # with a fresh cross-compiler works.
8788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 # <limits.h> exists even on freestanding compilers.
8790 # On the NeXT, cc -E runs the code through the compiler's parser,
8791 # not just through cpp. "Syntax error" is here to catch this case.
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 # include <limits.h>
8801 # include <assert.h>
8805 if { (ac_try="$ac_cpp conftest.$ac_ext"
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8813 grep -v '^ *+' conftest.er1 >conftest.err
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } >/dev/null && {
8818 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8819 test ! -s conftest.err
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 # Broken: fails on valid input.
8830 rm -f conftest.err conftest.$ac_ext
8832 # OK, works on sane cases. Now check whether nonexistent headers
8833 # can be detected and how.
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #include <ac_nonexistent.h>
8842 if { (ac_try="$ac_cpp conftest.$ac_ext"
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } >/dev/null && {
8855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8856 test ! -s conftest.err
8858 # Broken: success on invalid input.
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 # Passes both tests.
8869 rm -f conftest.err conftest.$ac_ext
8872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8873 rm -f conftest.err conftest.$ac_ext
8874 if $ac_preproc_ok; then
8877 _lt_caught_CXX_error=yes
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887 _lt_caught_CXX_error=yes
8895 # Check whether --enable-shared was given.
8896 if test "${enable_shared+set}" = set; then
8897 enableval=$enable_shared; p=${PACKAGE-default}
8899 yes) enable_shared=yes ;;
8900 no) enable_shared=no ;;
8903 # Look at the argument we got. We use all the common list separators.
8904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8905 for pkg in $enableval; do
8907 if test "X$pkg" = "X$p"; then
8924 # Check whether --enable-static was given.
8925 if test "${enable_static+set}" = set; then
8926 enableval=$enable_static; p=${PACKAGE-default}
8928 yes) enable_static=yes ;;
8929 no) enable_static=no ;;
8932 # Look at the argument we got. We use all the common list separators.
8933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8934 for pkg in $enableval; do
8936 if test "X$pkg" = "X$p"; then
8965 # Check whether --with-pic was given.
8966 if test "${with_pic+set}" = set; then
8967 withval=$with_pic; pic_mode="$withval"
8973 test -z "$pic_mode" && pic_mode=default
8981 # Check whether --enable-fast-install was given.
8982 if test "${enable_fast_install+set}" = set; then
8983 enableval=$enable_fast_install; p=${PACKAGE-default}
8985 yes) enable_fast_install=yes ;;
8986 no) enable_fast_install=no ;;
8988 enable_fast_install=no
8989 # Look at the argument we got. We use all the common list separators.
8990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8991 for pkg in $enableval; do
8993 if test "X$pkg" = "X$p"; then
8994 enable_fast_install=yes
9001 enable_fast_install=yes
9014 # This can be used to rebuild libtool when needed
9015 LIBTOOL_DEPS="$ltmain"
9017 # Always use our own libtool.
9018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9044 test -z "$LN_S" && LN_S="ln -s"
9059 if test -n "${ZSH_VERSION+set}" ; then
9060 setopt NO_GLOB_SUBST
9063 { echo "$as_me:$LINENO: checking for objdir" >&5
9064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9065 if test "${lt_cv_objdir+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 rm -f .libs 2>/dev/null
9069 mkdir .libs 2>/dev/null
9070 if test -d .libs; then
9073 # MS-DOS does not allow filenames that begin with a dot.
9076 rmdir .libs 2>/dev/null
9078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9080 objdir=$lt_cv_objdir
9086 cat >>confdefs.h <<_ACEOF
9087 #define LT_OBJDIR "$lt_cv_objdir/"
9108 # AIX sometimes has problems with the GCC collect2 program. For some
9109 # reason, if we set the COLLECT_NAMES environment variable, the problems
9110 # vanish in a puff of smoke.
9111 if test "X${COLLECT_NAMES+set}" != Xset; then
9113 export COLLECT_NAMES
9118 # Sed substitution that helps us do robust quoting. It backslashifies
9119 # metacharacters that are still active within double-quoted strings.
9120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9122 # Same as above, but do not quote variable references.
9123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9125 # Sed substitution to delay expansion of an escaped shell variable in a
9126 # double_quote_subst'ed string.
9127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9129 # Sed substitution to delay expansion of an escaped single quote.
9130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9132 # Sed substitution to avoid accidental globbing in evaled expressions
9133 no_glob_subst='s/\*/\\\*/g'
9137 can_build_shared=yes
9139 # All known linkers require a `.a' archive for static linking (except MSVC,
9140 # which needs '.lib').
9143 with_gnu_ld="$lt_cv_prog_gnu_ld"
9146 old_CFLAGS="$CFLAGS"
9148 # Set sane defaults for various variables
9149 test -z "$CC" && CC=cc
9150 test -z "$LTCC" && LTCC=$CC
9151 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9152 test -z "$LD" && LD=ld
9153 test -z "$ac_objext" && ac_objext=o
9155 for cc_temp in $compiler""; do
9157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9163 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9166 # Only perform the check for file, if the check method requires it
9167 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9168 case $deplibs_check_method in
9170 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9171 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9172 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9181 lt_save_MAGIC_CMD="$MAGIC_CMD"
9182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9184 for ac_dir in $ac_dummy; do
9186 test -z "$ac_dir" && ac_dir=.
9187 if test -f $ac_dir/${ac_tool_prefix}file; then
9188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9189 if test -n "$file_magic_test_file"; then
9190 case $deplibs_check_method in
9192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9195 $EGREP "$file_magic_regex" > /dev/null; then
9200 *** Warning: the command libtool uses to detect shared libraries,
9201 *** $file_magic_cmd, produces output that libtool cannot recognize.
9202 *** The result is that libtool may fail to recognize shared libraries
9203 *** as such. This will affect the creation of libtool libraries that
9204 *** depend on shared libraries, but programs linked with such libtool
9205 *** libraries will work regardless of this problem. Nevertheless, you
9206 *** may want to report the problem to your system manager and/or to
9207 *** bug-libtool@gnu.org
9217 MAGIC_CMD="$lt_save_MAGIC_CMD"
9222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9223 if test -n "$MAGIC_CMD"; then
9224 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9225 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9227 { echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6; }
9235 if test -z "$lt_cv_path_MAGIC_CMD"; then
9236 if test -n "$ac_tool_prefix"; then
9237 { echo "$as_me:$LINENO: checking for file" >&5
9238 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9239 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9247 lt_save_MAGIC_CMD="$MAGIC_CMD"
9248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9250 for ac_dir in $ac_dummy; do
9252 test -z "$ac_dir" && ac_dir=.
9253 if test -f $ac_dir/file; then
9254 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9255 if test -n "$file_magic_test_file"; then
9256 case $deplibs_check_method in
9258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9261 $EGREP "$file_magic_regex" > /dev/null; then
9266 *** Warning: the command libtool uses to detect shared libraries,
9267 *** $file_magic_cmd, produces output that libtool cannot recognize.
9268 *** The result is that libtool may fail to recognize shared libraries
9269 *** as such. This will affect the creation of libtool libraries that
9270 *** depend on shared libraries, but programs linked with such libtool
9271 *** libraries will work regardless of this problem. Nevertheless, you
9272 *** may want to report the problem to your system manager and/or to
9273 *** bug-libtool@gnu.org
9283 MAGIC_CMD="$lt_save_MAGIC_CMD"
9288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9289 if test -n "$MAGIC_CMD"; then
9290 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9291 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9293 { echo "$as_me:$LINENO: result: no" >&5
9294 echo "${ECHO_T}no" >&6; }
9307 # Use C for the default configuration in the libtool script
9311 ac_cpp='$CPP $CPPFLAGS'
9312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9317 # Source file extension for C test sources.
9320 # Object file extension for compiled C test sources.
9324 # Code to be used in simple compile tests
9325 lt_simple_compile_test_code="int some_variable = 0;"
9327 # Code to be used in simple link tests
9328 lt_simple_link_test_code='int main(){return(0);}'
9336 # If no C compiler was specified, use CC.
9339 # If no C compiler flags were specified, use CFLAGS.
9340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9342 # Allow CC to be a program name with arguments.
9345 # Save the default compiler, since it gets overwritten when the other
9346 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9347 compiler_DEFAULT=$CC
9349 # save warnings/boilerplate of simple test code
9350 ac_outfile=conftest.$ac_objext
9351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9353 _lt_compiler_boilerplate=`cat conftest.err`
9356 ac_outfile=conftest.$ac_objext
9357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9359 _lt_linker_boilerplate=`cat conftest.err`
9364 ## There is no encapsulation within the following macros, do not change
9365 ## the running order or otherwise move them around unless you know exactly
9366 ## what you are doing...
9367 if test -n "$compiler"; then
9369 lt_prog_compiler_no_builtin_flag=
9371 if test "$GCC" = yes; then
9372 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9374 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9375 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9376 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 lt_cv_prog_compiler_rtti_exceptions=no
9380 ac_outfile=conftest.$ac_objext
9381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9382 lt_compiler_flag="-fno-rtti -fno-exceptions"
9383 # Insert the option either (1) after the last *FLAGS variable, or
9384 # (2) before a word containing "conftest.", or (3) at the end.
9385 # Note that $ac_compile itself does not contain backslashes and begins
9386 # with a dollar sign (not a hyphen), so the echo should work correctly.
9387 # The option is referenced via a variable to avoid confusing sed.
9388 lt_compile=`echo "$ac_compile" | $SED \
9389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9391 -e 's:$: $lt_compiler_flag:'`
9392 (eval echo "\"\$as_me:9392: $lt_compile\"" >&5)
9393 (eval "$lt_compile" 2>conftest.err)
9395 cat conftest.err >&5
9396 echo "$as_me:9396: \$? = $ac_status" >&5
9397 if (exit $ac_status) && test -s "$ac_outfile"; then
9398 # The compiler can only warn and ignore the option if not recognized
9399 # So say no if there are warnings other than the usual output.
9400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9403 lt_cv_prog_compiler_rtti_exceptions=yes
9409 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9410 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9412 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9413 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9425 lt_prog_compiler_wl=
9426 lt_prog_compiler_pic=
9427 lt_prog_compiler_static=
9429 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9432 if test "$GCC" = yes; then
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_static='-static'
9438 # All AIX code is PIC.
9439 if test "$host_cpu" = ia64; then
9440 # AIX 5 now supports IA64 processor
9441 lt_prog_compiler_static='-Bstatic'
9448 # see comment about AmigaOS4 .so support
9449 lt_prog_compiler_pic='-fPIC'
9452 # FIXME: we need at least 68020 code to build shared libraries, but
9453 # adding the `-m68020' flag to GCC prevents building anything better,
9455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9461 # PIC is the default for these OSes.
9464 mingw* | cygwin* | pw32* | os2* | cegcc*)
9465 # This hack is so that the source file can tell whether it is being
9466 # built for inclusion in a dll (and should export symbols for example).
9467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9468 # (--disable-auto-import) libraries
9469 lt_prog_compiler_pic='-DDLL_EXPORT'
9472 darwin* | rhapsody*)
9473 # PIC is the default on this platform
9474 # Common symbols not allowed in MH_DYLIB files
9475 lt_prog_compiler_pic='-fno-common'
9479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9481 # sets the default TLS model and affects inlining.
9487 lt_prog_compiler_pic='-fPIC'
9493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9494 # Instead, we relocate shared libraries at runtime.
9498 # Just because we use GCC doesn't mean we suddenly get shared libraries
9499 # on systems that don't support them.
9500 lt_prog_compiler_can_build_shared=no
9505 # QNX uses GNU C++, but need to define -shared option too, otherwise
9507 lt_prog_compiler_pic='-fPIC -shared'
9511 if test -d /usr/nec; then
9512 lt_prog_compiler_pic=-Kconform_pic
9517 lt_prog_compiler_pic='-fPIC'
9521 # PORTME Check for flag to pass linker flags through the system compiler.
9524 lt_prog_compiler_wl='-Wl,'
9525 if test "$host_cpu" = ia64; then
9526 # AIX 5 now supports IA64 processor
9527 lt_prog_compiler_static='-Bstatic'
9529 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9533 mingw* | cygwin* | pw32* | os2* | cegcc*)
9534 # This hack is so that the source file can tell whether it is being
9535 # built for inclusion in a dll (and should export symbols for example).
9536 lt_prog_compiler_pic='-DDLL_EXPORT'
9539 hpux9* | hpux10* | hpux11*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9548 lt_prog_compiler_pic='+Z'
9551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9552 lt_prog_compiler_static='${wl}-a ${wl}archive'
9555 irix5* | irix6* | nonstopux*)
9556 lt_prog_compiler_wl='-Wl,'
9557 # PIC (with -KPIC) is the default.
9558 lt_prog_compiler_static='-non_shared'
9561 linux* | k*bsd*-gnu)
9562 case $cc_basename in
9563 # old Intel for x86_64 which still supported -KPIC.
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-static'
9569 # icc used to be incompatible with GCC.
9570 # ICC 10 doesn't accept -KPIC any more.
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-fPIC'
9574 lt_prog_compiler_static='-static'
9576 # Lahey Fortran 8.1.
9578 lt_prog_compiler_wl='-Wl,'
9579 lt_prog_compiler_pic='--shared'
9580 lt_prog_compiler_static='--static'
9582 pgcc* | pgf77* | pgf90* | pgf95*)
9583 # Portland Group compilers (*not* the Pentium gcc compiler,
9584 # which looks to be a dead project)
9585 lt_prog_compiler_wl='-Wl,'
9586 lt_prog_compiler_pic='-fpic'
9587 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Wl,'
9591 # All Alpha code is PIC.
9592 lt_prog_compiler_static='-non_shared'
9595 # IBM XL C 8.0/Fortran 10.1 on PPC
9596 lt_prog_compiler_wl='-Wl,'
9597 lt_prog_compiler_pic='-qpic'
9598 lt_prog_compiler_static='-qstaticlink'
9601 case `$CC -V 2>&1 | sed 5q` in
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9606 lt_prog_compiler_wl='-Wl,'
9609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9610 lt_prog_compiler_pic='-KPIC'
9611 lt_prog_compiler_static='-Bstatic'
9612 lt_prog_compiler_wl=''
9620 lt_prog_compiler_pic='-KPIC'
9621 lt_prog_compiler_static='-Bstatic'
9625 # QNX uses GNU C++, but need to define -shared option too, otherwise
9627 lt_prog_compiler_pic='-fPIC -shared'
9630 osf3* | osf4* | osf5*)
9631 lt_prog_compiler_wl='-Wl,'
9632 # All OSF/1 code is PIC.
9633 lt_prog_compiler_static='-non_shared'
9637 lt_prog_compiler_static='-non_shared'
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9643 case $cc_basename in
9645 lt_prog_compiler_wl='-Qoption ld ';;
9647 lt_prog_compiler_wl='-Wl,';;
9652 lt_prog_compiler_wl='-Qoption ld '
9653 lt_prog_compiler_pic='-PIC'
9654 lt_prog_compiler_static='-Bstatic'
9657 sysv4 | sysv4.2uw2* | sysv4.3*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9664 if test -d /usr/nec ;then
9665 lt_prog_compiler_pic='-Kconform_pic'
9666 lt_prog_compiler_static='-Bstatic'
9670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-KPIC'
9673 lt_prog_compiler_static='-Bstatic'
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_can_build_shared=no
9682 lt_prog_compiler_pic='-pic'
9683 lt_prog_compiler_static='-Bstatic'
9687 lt_prog_compiler_can_build_shared=no
9693 # For platforms which do not support PIC, -DPIC is meaningless:
9695 lt_prog_compiler_pic=
9698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9710 # Check to make sure the PIC flag actually works.
9712 if test -n "$lt_prog_compiler_pic"; then
9713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9715 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 lt_cv_prog_compiler_pic_works=no
9719 ac_outfile=conftest.$ac_objext
9720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9722 # Insert the option either (1) after the last *FLAGS variable, or
9723 # (2) before a word containing "conftest.", or (3) at the end.
9724 # Note that $ac_compile itself does not contain backslashes and begins
9725 # with a dollar sign (not a hyphen), so the echo should work correctly.
9726 # The option is referenced via a variable to avoid confusing sed.
9727 lt_compile=`echo "$ac_compile" | $SED \
9728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9730 -e 's:$: $lt_compiler_flag:'`
9731 (eval echo "\"\$as_me:9731: $lt_compile\"" >&5)
9732 (eval "$lt_compile" 2>conftest.err)
9734 cat conftest.err >&5
9735 echo "$as_me:9735: \$? = $ac_status" >&5
9736 if (exit $ac_status) && test -s "$ac_outfile"; then
9737 # The compiler can only warn and ignore the option if not recognized
9738 # So say no if there are warnings other than the usual output.
9739 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9742 lt_cv_prog_compiler_pic_works=yes
9748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9749 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9751 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9752 case $lt_prog_compiler_pic in
9754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9757 lt_prog_compiler_pic=
9758 lt_prog_compiler_can_build_shared=no
9769 # Check to make sure the static flag actually works.
9771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9774 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 lt_cv_prog_compiler_static_works=no
9778 save_LDFLAGS="$LDFLAGS"
9779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9782 # The linker can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 if test -s conftest.err; then
9785 # Append any errors to the config.log.
9786 cat conftest.err 1>&5
9787 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789 if diff conftest.exp conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_static_works=yes
9793 lt_cv_prog_compiler_static_works=yes
9797 LDFLAGS="$save_LDFLAGS"
9800 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9801 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9803 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9806 lt_prog_compiler_static=
9815 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 lt_cv_prog_compiler_c_o=no
9821 $RM -r conftest 2>/dev/null
9825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9827 lt_compiler_flag="-o out/conftest2.$ac_objext"
9828 # Insert the option either (1) after the last *FLAGS variable, or
9829 # (2) before a word containing "conftest.", or (3) at the end.
9830 # Note that $ac_compile itself does not contain backslashes and begins
9831 # with a dollar sign (not a hyphen), so the echo should work correctly.
9832 lt_compile=`echo "$ac_compile" | $SED \
9833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835 -e 's:$: $lt_compiler_flag:'`
9836 (eval echo "\"\$as_me:9836: $lt_compile\"" >&5)
9837 (eval "$lt_compile" 2>out/conftest.err)
9839 cat out/conftest.err >&5
9840 echo "$as_me:9840: \$? = $ac_status" >&5
9841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9843 # The compiler can only warn and ignore the option if not recognized
9844 # So say no if there are warnings
9845 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9848 lt_cv_prog_compiler_c_o=yes
9853 # SGI C++ compiler will create directory out/ii_files/ for
9854 # template instantiation
9855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9856 $RM out/* && rmdir out
9862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9870 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 lt_cv_prog_compiler_c_o=no
9876 $RM -r conftest 2>/dev/null
9880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9882 lt_compiler_flag="-o out/conftest2.$ac_objext"
9883 # Insert the option either (1) after the last *FLAGS variable, or
9884 # (2) before a word containing "conftest.", or (3) at the end.
9885 # Note that $ac_compile itself does not contain backslashes and begins
9886 # with a dollar sign (not a hyphen), so the echo should work correctly.
9887 lt_compile=`echo "$ac_compile" | $SED \
9888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890 -e 's:$: $lt_compiler_flag:'`
9891 (eval echo "\"\$as_me:9891: $lt_compile\"" >&5)
9892 (eval "$lt_compile" 2>out/conftest.err)
9894 cat out/conftest.err >&5
9895 echo "$as_me:9895: \$? = $ac_status" >&5
9896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9898 # The compiler can only warn and ignore the option if not recognized
9899 # So say no if there are warnings
9900 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9903 lt_cv_prog_compiler_c_o=yes
9908 # SGI C++ compiler will create directory out/ii_files/ for
9909 # template instantiation
9910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9911 $RM out/* && rmdir out
9917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9923 hard_links="nottested"
9924 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9925 # do not overwrite the value of need_locks provided by the user
9926 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9927 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9932 ln conftest.a conftest.b 2>&5 || hard_links=no
9933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9934 { echo "$as_me:$LINENO: result: $hard_links" >&5
9935 echo "${ECHO_T}$hard_links" >&6; }
9936 if test "$hard_links" = no; then
9937 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9938 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9950 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9954 allow_undefined_flag=
9955 always_export_symbols=no
9957 archive_expsym_cmds=
9958 compiler_needs_object=no
9959 enable_shared_with_static_runtimes=no
9960 export_dynamic_flag_spec=
9961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9962 hardcode_automatic=no
9964 hardcode_direct_absolute=no
9965 hardcode_libdir_flag_spec=
9966 hardcode_libdir_flag_spec_ld=
9967 hardcode_libdir_separator=
9969 hardcode_shlibpath_var=unsupported
9971 link_all_deplibs=unknown
9974 old_archive_from_new_cmds=
9975 old_archive_from_expsyms_cmds=
9976 thread_safe_flag_spec=
9977 whole_archive_flag_spec=
9978 # include_expsyms should be a list of space-separated symbols to be *always*
9979 # included in the symbol list
9981 # exclude_expsyms can be an extended regexp of symbols to exclude
9982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9984 # as well as any symbol that contains `d'.
9985 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9987 # platforms (ab)use it in PIC code, but their linkers get confused if
9988 # the symbol is explicitly referenced. Since portable code cannot
9989 # rely on this symbol name, it's probably fine to never include it in
9990 # preloaded symbol tables.
9991 # Exclude shared library initialization/finalization symbols.
9992 extract_expsyms_cmds=
9995 cygwin* | mingw* | pw32* | cegcc*)
9996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9997 # When not using gcc, we currently assume that we are using
9998 # Microsoft Visual C++.
9999 if test "$GCC" != yes; then
10004 # we just hope/assume this is gcc and not c89 (= MSVC++)
10013 if test "$with_gnu_ld" = yes; then
10014 # If archive_cmds runs LD, not CC, wlarc should be empty
10017 # Set some defaults for GNU ld with shared library support. These
10018 # are reset later if shared libraries are not supported. Putting them
10019 # here allows them to be overridden if necessary.
10020 runpath_var=LD_RUN_PATH
10021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022 export_dynamic_flag_spec='${wl}--export-dynamic'
10023 # ancient GNU ld didn't support --whole-archive et. al.
10024 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10025 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10027 whole_archive_flag_spec=
10029 supports_anon_versioning=no
10030 case `$LD -v 2>&1` in
10031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10034 *\ 2.11.*) ;; # other 2.11 versions
10035 *) supports_anon_versioning=yes ;;
10038 # See if GNU ld supports shared libraries.
10041 # On AIX/PPC, the GNU linker is very broken
10042 if test "$host_cpu" != ia64; then
10046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10047 *** to be unable to reliably create shared libraries on AIX.
10048 *** Therefore, libtool is disabling shared libraries support. If you
10049 *** really care for shared libraries, you may want to modify your PATH
10050 *** so that a non-GNU linker is found, and then restart.
10059 # see comment about AmigaOS4 .so support
10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 archive_expsym_cmds=''
10064 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)'
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_minus_L=yes
10072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10073 allow_undefined_flag=unsupported
10074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10075 # support --undefined. This deserves some investigation. FIXME
10076 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 cygwin* | mingw* | pw32* | cegcc*)
10083 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10084 # as there is no search path for DLLs.
10085 hardcode_libdir_flag_spec='-L$libdir'
10086 allow_undefined_flag=unsupported
10087 always_export_symbols=no
10088 enable_shared_with_static_runtimes=yes
10089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093 # If the export-symbols file already is a .def file (1st line
10094 # is EXPORTS), use it as is; otherwise, prepend...
10095 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10096 cp $export_symbols $output_objdir/$soname.def;
10098 echo EXPORTS > $output_objdir/$soname.def;
10099 cat $export_symbols >> $output_objdir/$soname.def;
10101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10109 hardcode_shlibpath_var=no
10110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111 export_dynamic_flag_spec='${wl}-E'
10112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10113 # Instead, shared libraries are loaded at an image base (0x10000000 by
10114 # default) and relocated if they conflict, which is a slow very memory
10115 # consuming and fragmenting process. To avoid this, we pick a random,
10116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10117 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10119 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'
10122 gnu* | linux* | tpf* | k*bsd*-gnu)
10124 if test "$host_os" = linux-dietlibc; then
10125 case $cc_basename in
10126 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10129 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10130 && test "$tmp_diet" = no
10133 tmp_sharedflag='-shared'
10134 case $cc_basename,$host_cpu in
10135 pgcc*) # Portland Group C compiler
10136 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'
10137 tmp_addflag=' $pic_flag'
10139 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10140 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'
10141 tmp_addflag=' $pic_flag -Mnomain' ;;
10142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10143 tmp_addflag=' -i_dynamic' ;;
10144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10145 tmp_addflag=' -i_dynamic -nofor_main' ;;
10146 ifc* | ifort*) # Intel Fortran compiler
10147 tmp_addflag=' -nofor_main' ;;
10148 lf95*) # Lahey Fortran 8.1
10149 whole_archive_flag_spec=
10150 tmp_sharedflag='--shared' ;;
10151 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10152 tmp_sharedflag='-qmkshrobj'
10155 case `$CC -V 2>&1 | sed 5q` in
10156 *Sun\ C*) # Sun C 5.9
10157 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'
10158 compiler_needs_object=yes
10159 tmp_sharedflag='-G' ;;
10160 *Sun\ F*) # Sun Fortran 8.3
10161 tmp_sharedflag='-G' ;;
10163 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10165 if test "x$supports_anon_versioning" = xyes; then
10166 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10168 echo "local: *; };" >> $output_objdir/$libname.ver~
10169 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10172 case $cc_basename in
10174 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10175 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10176 hardcode_libdir_flag_spec=
10177 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10178 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10179 if test "x$supports_anon_versioning" = xyes; then
10180 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10182 echo "local: *; };" >> $output_objdir/$libname.ver~
10183 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10203 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10208 *** create shared libraries on Solaris systems. Therefore, libtool
10209 *** is disabling shared libraries support. We urge you to upgrade GNU
10210 *** binutils to release 2.9.1 or newer. Another option is to modify
10211 *** your PATH or compiler configuration so that the native linker is
10212 *** used, and then restart.
10215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10224 case `$LD -v 2>&1` in
10225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10230 *** reliably create shared libraries on SCO systems. Therefore, libtool
10231 *** is disabling shared libraries support. We urge you to upgrade GNU
10232 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10233 *** your PATH or compiler configuration so that the native linker is
10234 *** used, and then restart.
10239 # For security reasons, it is highly recommended that you always
10240 # use absolute paths for naming shared libraries, and exclude the
10241 # DT_RUNPATH tag from executables and libraries. But doing so
10242 # requires that you compile everything twice, which is a pain.
10243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_direct=yes
10258 hardcode_shlibpath_var=no
10262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10271 if test "$ld_shlibs" = no; then
10273 hardcode_libdir_flag_spec=
10274 export_dynamic_flag_spec=
10275 whole_archive_flag_spec=
10278 # PORTME fill in a description of your system's linker (not GNU ld)
10281 allow_undefined_flag=unsupported
10282 always_export_symbols=yes
10283 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'
10284 # Note: this linker hardcodes the directories in LIBPATH if there
10285 # are no directories specified by -L.
10286 hardcode_minus_L=yes
10287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10288 # Neither direct hardcoding nor static linking is supported with a
10290 hardcode_direct=unsupported
10295 if test "$host_cpu" = ia64; then
10296 # On IA64, the linker does run time linking by default, so we don't
10297 # have to do anything special.
10298 aix_use_runtimelinking=no
10299 exp_sym_flag='-Bexport'
10302 # If we're using GNU nm, then we don't want the "-C" option.
10303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10305 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'
10307 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'
10309 aix_use_runtimelinking=no
10311 # Test if we are trying to use run time linking or normal
10312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10313 # need to do runtime linking.
10314 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10315 for ld_flag in $LDFLAGS; do
10316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10317 aix_use_runtimelinking=yes
10324 exp_sym_flag='-bexport'
10325 no_entry_flag='-bnoentry'
10328 # When large executables or shared objects are built, AIX ld can
10329 # have problems creating the table of contents. If linking a library
10330 # or program results in "error TOC overflow" add -mminimal-toc to
10331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10335 hardcode_direct=yes
10336 hardcode_direct_absolute=yes
10337 hardcode_libdir_separator=':'
10338 link_all_deplibs=yes
10339 file_list_spec='${wl}-f,'
10341 if test "$GCC" = yes; then
10342 case $host_os in aix4.[012]|aix4.[012].*)
10343 # We only want to do this on AIX 4.2 and lower, the check
10344 # below for broken collect2 doesn't work under 4.3+
10345 collect2name=`${CC} -print-prog-name=collect2`
10346 if test -f "$collect2name" &&
10347 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10349 # We have reworked collect2
10352 # We have old collect2
10353 hardcode_direct=unsupported
10354 # It fails to find uninstalled libraries when the uninstalled
10355 # path is not listed in the libpath. Setting hardcode_minus_L
10356 # to unsupported forces relinking
10357 hardcode_minus_L=yes
10358 hardcode_libdir_flag_spec='-L$libdir'
10359 hardcode_libdir_separator=
10363 shared_flag='-shared'
10364 if test "$aix_use_runtimelinking" = yes; then
10365 shared_flag="$shared_flag "'${wl}-G'
10369 if test "$host_cpu" = ia64; then
10370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10371 # chokes on -Wl,-G. The following line is correct:
10374 if test "$aix_use_runtimelinking" = yes; then
10375 shared_flag='${wl}-G'
10377 shared_flag='${wl}-bM:SRE'
10382 export_dynamic_flag_spec='${wl}-bexpall'
10383 # It seems that -bexpall does not export symbols beginning with
10384 # underscore (_), so it is better to generate a list of symbols to export.
10385 always_export_symbols=yes
10386 if test "$aix_use_runtimelinking" = yes; then
10387 # Warning - without using the other runtime loading flags (-brtl),
10388 # -berok will link without error, but may produce a broken library.
10389 allow_undefined_flag='-berok'
10390 # Determine the default libpath from the value encoded in an
10391 # empty executable.
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext &&
10424 $as_test_x conftest$ac_exeext; then
10426 lt_aix_libpath_sed='
10427 /Import File Strings/,/^$/ {
10433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10434 # Check for a 64-bit object if we didn't find anything.
10435 if test -z "$aix_libpath"; then
10436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446 conftest$ac_exeext conftest.$ac_ext
10447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10450 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10452 if test "$host_cpu" = ia64; then
10453 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10454 allow_undefined_flag="-z nodefs"
10455 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"
10457 # Determine the default libpath from the value encoded in an
10458 # empty executable.
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && {
10488 test -z "$ac_c_werror_flag" ||
10489 test ! -s conftest.err
10490 } && test -s conftest$ac_exeext &&
10491 $as_test_x conftest$ac_exeext; then
10493 lt_aix_libpath_sed='
10494 /Import File Strings/,/^$/ {
10500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10501 # Check for a 64-bit object if we didn't find anything.
10502 if test -z "$aix_libpath"; then
10503 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10513 conftest$ac_exeext conftest.$ac_ext
10514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10517 # Warning - without using the other run time loading flags,
10518 # -berok will link without error, but may produce a broken library.
10519 no_undefined_flag=' ${wl}-bernotok'
10520 allow_undefined_flag=' ${wl}-berok'
10521 # Exported symbols can be pulled into shared objects from archives
10522 whole_archive_flag_spec='$convenience'
10523 archive_cmds_need_lc=yes
10524 # This is similar to how AIX traditionally builds its shared libraries.
10525 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'
10533 # see comment about AmigaOS4 .so support
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535 archive_expsym_cmds=''
10538 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)'
10539 hardcode_libdir_flag_spec='-L$libdir'
10540 hardcode_minus_L=yes
10546 export_dynamic_flag_spec=-rdynamic
10549 cygwin* | mingw* | pw32* | cegcc*)
10550 # When not using gcc, we currently assume that we are using
10551 # Microsoft Visual C++.
10552 # hardcode_libdir_flag_spec is actually meaningless, as there is
10553 # no search path for DLLs.
10554 hardcode_libdir_flag_spec=' '
10555 allow_undefined_flag=unsupported
10556 # Tell ltmain to make .lib files, not .a files.
10558 # Tell ltmain to make .dll files, not .so files.
10560 # FIXME: Setting linknames here is a bad hack.
10561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10562 # The linker will automatically build a .lib file if we build a DLL.
10563 old_archive_from_new_cmds='true'
10564 # FIXME: Should let the user specify the lib program.
10565 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10566 fix_srcfile_path='`cygpath -w "$srcfile"`'
10567 enable_shared_with_static_runtimes=yes
10570 darwin* | rhapsody*)
10573 archive_cmds_need_lc=no
10575 hardcode_automatic=yes
10576 hardcode_shlibpath_var=unsupported
10577 whole_archive_flag_spec=''
10578 link_all_deplibs=yes
10579 allow_undefined_flag="$_lt_dar_allow_undefined"
10580 case $cc_basename in
10581 ifort*) _lt_dar_can_shared=yes ;;
10582 *) _lt_dar_can_shared=$GCC ;;
10584 if test "$_lt_dar_can_shared" = "yes"; then
10585 output_verbose_link_cmd=echo
10586 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10587 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10588 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10589 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_libdir_flag_spec='-L$libdir'
10600 hardcode_shlibpath_var=no
10607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10608 # support. Future versions do this automatically, but an explicit c++rt0.o
10609 # does not break anything, and helps significantly (at the cost of a little
10612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_direct=yes
10622 hardcode_minus_L=yes
10623 hardcode_shlibpath_var=no
10626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10627 freebsd* | dragonfly*)
10628 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 hardcode_direct=yes
10631 hardcode_shlibpath_var=no
10635 if test "$GCC" = yes; then
10636 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'
10638 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'
10640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10641 hardcode_libdir_separator=:
10642 hardcode_direct=yes
10644 # hardcode_minus_L: Not really in the search PATH,
10645 # but as the default location of the library.
10646 hardcode_minus_L=yes
10647 export_dynamic_flag_spec='${wl}-E'
10651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10656 if test "$with_gnu_ld" = no; then
10657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10658 hardcode_libdir_flag_spec_ld='+b $libdir'
10659 hardcode_libdir_separator=:
10660 hardcode_direct=yes
10661 hardcode_direct_absolute=yes
10662 export_dynamic_flag_spec='${wl}-E'
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10695 if test "$with_gnu_ld" = no; then
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_separator=:
10702 hardcode_shlibpath_var=no
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10709 # hardcode_minus_L: Not really in the search PATH,
10710 # but as the default location of the library.
10711 hardcode_minus_L=yes
10717 irix5* | irix6* | nonstopux*)
10718 if test "$GCC" = yes; then
10719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10720 # Try to use the -exported_symbol ld option, if it does not
10721 # work, assume that -exports_file does not work either and
10722 # implicitly export all symbols.
10723 save_LDFLAGS="$LDFLAGS"
10724 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10725 cat >conftest.$ac_ext <<_ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LDFLAGS="$save_LDFLAGS"
10759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10762 archive_cmds_need_lc='no'
10763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10764 hardcode_libdir_separator=:
10766 link_all_deplibs=yes
10770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10775 hardcode_libdir_flag_spec='-R$libdir'
10776 hardcode_direct=yes
10777 hardcode_shlibpath_var=no
10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_direct=yes
10783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10784 hardcode_libdir_separator=:
10785 hardcode_shlibpath_var=no
10792 if test -f /usr/libexec/ld.so; then
10793 hardcode_direct=yes
10794 hardcode_shlibpath_var=no
10795 hardcode_direct_absolute=yes
10796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10800 export_dynamic_flag_spec='${wl}-E'
10803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_libdir_flag_spec='-R$libdir'
10808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10819 hardcode_libdir_flag_spec='-L$libdir'
10820 hardcode_minus_L=yes
10821 allow_undefined_flag=unsupported
10822 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'
10823 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10827 if test "$GCC" = yes; then
10828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10829 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10831 allow_undefined_flag=' -expect_unresolved \*'
10832 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10834 archive_cmds_need_lc='no'
10835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10836 hardcode_libdir_separator=:
10839 osf4* | osf5*) # as osf3* with the addition of -msym flag
10840 if test "$GCC" = yes; then
10841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10842 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10845 allow_undefined_flag=' -expect_unresolved \*'
10846 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10847 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10848 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10850 # Both c and cxx compiler support -rpath directly
10851 hardcode_libdir_flag_spec='-rpath $libdir'
10853 archive_cmds_need_lc='no'
10854 hardcode_libdir_separator=:
10858 no_undefined_flag=' -z defs'
10859 if test "$GCC" = yes; then
10861 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10863 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10865 case `$CC -V 2>&1` in
10868 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10874 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10876 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10880 hardcode_libdir_flag_spec='-R$libdir'
10881 hardcode_shlibpath_var=no
10883 solaris2.[0-5] | solaris2.[0-5].*) ;;
10885 # The compiler driver will combine and reorder linker options,
10886 # but understands `-z linker_flag'. GCC discards it without `$wl',
10887 # but is careful enough not to reorder.
10888 # Supported since Solaris 2.6 (maybe 2.5.1?)
10889 if test "$GCC" = yes; then
10890 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10892 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10896 link_all_deplibs=yes
10900 if test "x$host_vendor" = xsequent; then
10901 # Use $CC to link under sequent, because it throws in some extra .o
10902 # files that make .init and .fini sections work.
10903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_libdir_flag_spec='-L$libdir'
10908 hardcode_direct=yes
10909 hardcode_minus_L=yes
10910 hardcode_shlibpath_var=no
10914 case $host_vendor in
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_direct=yes # is this really true???
10920 ## LD is ld it makes a PLAMLIB
10921 ## CC just makes a GrossModule.
10922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10923 reload_cmds='$CC -r -o $output$reload_objs'
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10931 runpath_var='LD_RUN_PATH'
10932 hardcode_shlibpath_var=no
10936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10937 hardcode_shlibpath_var=no
10938 export_dynamic_flag_spec='-Bexport'
10942 if test -d /usr/nec; then
10943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10944 hardcode_shlibpath_var=no
10945 runpath_var=LD_RUN_PATH
10946 hardcode_runpath_var=yes
10951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10952 no_undefined_flag='${wl}-z,text'
10953 archive_cmds_need_lc=no
10954 hardcode_shlibpath_var=no
10955 runpath_var='LD_RUN_PATH'
10957 if test "$GCC" = yes; then
10958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 sysv5* | sco3.2v5* | sco5v6*)
10967 # Note: We can NOT use -z defs as we might desire, because we do not
10968 # link with -lc, and that would cause any symbols used from libc to
10969 # always be unresolved, which means just about no library would
10970 # ever link correctly. If we're not using GNU ld we use -z text
10971 # though, which does catch some bad symbols but isn't as heavy-handed
10973 no_undefined_flag='${wl}-z,text'
10974 allow_undefined_flag='${wl}-z,nodefs'
10975 archive_cmds_need_lc=no
10976 hardcode_shlibpath_var=no
10977 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10978 hardcode_libdir_separator=':'
10979 link_all_deplibs=yes
10980 export_dynamic_flag_spec='${wl}-Bexport'
10981 runpath_var='LD_RUN_PATH'
10983 if test "$GCC" = yes; then
10984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994 hardcode_libdir_flag_spec='-L$libdir'
10995 hardcode_shlibpath_var=no
11003 if test x$host_vendor = xsni; then
11005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11006 export_dynamic_flag_spec='${wl}-Blargedynsym'
11012 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11013 echo "${ECHO_T}$ld_shlibs" >&6; }
11014 test "$ld_shlibs" = no && can_build_shared=no
11016 with_gnu_ld=$with_gnu_ld
11033 # Do we need to explicitly link libc?
11035 case "x$archive_cmds_need_lc" in
11037 # Assume -lc should be added
11038 archive_cmds_need_lc=yes
11040 if test "$enable_shared" = yes && test "$GCC" = yes; then
11041 case $archive_cmds in
11043 # FIXME: we may have to deal with multi-command sequences.
11046 # Test whether the compiler implicitly links with -lc since on some
11047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11048 # to ld, don't add -lc before -lgcc.
11049 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } 2>conftest.err; then
11061 libobjs=conftest.$ac_objext
11063 wl=$lt_prog_compiler_wl
11064 pic_flag=$lt_prog_compiler_pic
11070 lt_save_allow_undefined_flag=$allow_undefined_flag
11071 allow_undefined_flag=
11072 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11073 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11078 archive_cmds_need_lc=no
11080 archive_cmds_need_lc=yes
11082 allow_undefined_flag=$lt_save_allow_undefined_flag
11084 cat conftest.err 1>&5
11087 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11088 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11251 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11254 if test "$GCC" = yes; then
11256 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11257 *) lt_awk_arg="/^libraries:/" ;;
11259 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11260 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11261 # if the path contains ";" then we assume it to be the separator
11262 # otherwise default to the standard path separator (i.e. ":") - it is
11263 # assumed that no part of a normal pathname contains ";" but that should
11264 # okay in the real world where ";" in dirpaths is itself problematic.
11265 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11269 # Ok, now we have the path, separated by spaces, we can step through it
11270 # and add multilib dir if necessary.
11271 lt_tmp_lt_search_path_spec=
11272 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273 for lt_sys_path in $lt_search_path_spec; do
11274 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11277 test -d "$lt_sys_path" && \
11278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11281 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11282 BEGIN {RS=" "; FS="/|\n";} {
11285 for (lt_i = NF; lt_i > 0; lt_i--) {
11286 if ($lt_i != "" && $lt_i != ".") {
11287 if ($lt_i == "..") {
11290 if (lt_count == 0) {
11291 lt_foo="/" $lt_i lt_foo;
11298 if (lt_foo != "") { lt_freq[lt_foo]++; }
11299 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11301 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11305 library_names_spec=
11306 libname_spec='lib$name'
11310 postuninstall_cmds=
11314 shlibpath_overrides_runpath=unknown
11316 dynamic_linker="$host_os ld.so"
11317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11318 need_lib_prefix=unknown
11319 hardcode_into_libs=no
11321 # when you set need_version to no, make sure it does not cause -set_version
11322 # flags to be left without arguments
11323 need_version=unknown
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11329 shlibpath_var=LIBPATH
11331 # AIX 3 has no versioning support, so we append a major version to the name.
11332 soname_spec='${libname}${release}${shared_ext}$major'
11339 hardcode_into_libs=yes
11340 if test "$host_cpu" = ia64; then
11341 # AIX 5 supports IA64
11342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11343 shlibpath_var=LD_LIBRARY_PATH
11345 # With GCC up to 2.95.x, collect2 would create an import file
11346 # for dependence libraries. The import file would start with
11347 # the line `#! .'. This would cause the generated library to
11348 # depend on `.', always an invalid library. This was fixed in
11349 # development snapshots of GCC prior to 3.0.
11351 aix4 | aix4.[01] | aix4.[01].*)
11352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11354 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11357 can_build_shared=no
11361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11362 # soname into executable. Probably we can add versioning support to
11363 # collect2, so additional links can be useful in future.
11364 if test "$aix_use_runtimelinking" = yes; then
11365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11366 # instead of lib<name>.a to let people know that these are not
11367 # typical AIX shared libraries.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 # We preserve .a as extension for shared libraries through AIX4.2
11371 # and later when we are not doing run time linking.
11372 library_names_spec='${libname}${release}.a $libname.a'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11375 shlibpath_var=LIBPATH
11382 # Since July 2007 AmigaOS4 officially supports .so libraries.
11383 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 library_names_spec='$libname.ixlibrary $libname.a'
11388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11389 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'
11395 library_names_spec='${libname}${shared_ext}'
11396 dynamic_linker="$host_os ld.so"
11397 shlibpath_var=LIBRARY_PATH
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11409 # the default ld.so.conf also contains /usr/contrib/lib and
11410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11411 # libtool to hard-code these into programs
11414 cygwin* | mingw* | pw32* | cegcc*)
11415 version_type=windows
11420 case $GCC,$host_os in
11421 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11422 library_names_spec='$libname.dll.a'
11423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11424 postinstall_cmds='base_file=`basename \${file}`~
11425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11426 dldir=$destdir/`dirname \$dlpath`~
11427 test -d \$dldir || mkdir -p \$dldir~
11428 $install_prog $dir/$dlname \$dldir/$dlname~
11429 chmod a+x \$dldir/$dlname~
11430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434 dlpath=$dir/\$dldll~
11436 shlibpath_overrides_runpath=yes
11440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11445 # MinGW DLLs use traditional 'lib' prefix
11446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11448 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11449 # It is most probably a Windows format PATH printed by
11450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11451 # path with ; separators, and with drive letters. We can handle the
11452 # drive letters (cygwin fileutils understands them), so leave them,
11453 # especially as we might pass files found there to a mingw objdump,
11454 # which wouldn't understand a cygwinified path. Ahh.
11455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11461 # pw32 DLLs use 'pw' prefix rather than 'lib'
11462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11471 dynamic_linker='Win32 ld.exe'
11472 # FIXME: first we should search . and the directory the executable is in
11476 darwin* | rhapsody*)
11477 dynamic_linker="$host_os dyld"
11478 version_type=darwin
11481 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11482 soname_spec='${libname}${release}${major}$shared_ext'
11483 shlibpath_overrides_runpath=yes
11484 shlibpath_var=DYLD_LIBRARY_PATH
11485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11487 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11504 freebsd* | dragonfly*)
11505 # DragonFly does not have aout. When/if they implement a new
11506 # versioning mechanism, adjust this.
11507 if test -x /usr/bin/objformat; then
11508 objformat=`/usr/bin/objformat`
11511 freebsd[123]*) objformat=aout ;;
11512 *) objformat=elf ;;
11515 version_type=freebsd-$objformat
11516 case $version_type in
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11527 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11532 freebsd3.[01]* | freebsdelf3.[01]*)
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11538 shlibpath_overrides_runpath=no
11539 hardcode_into_libs=yes
11541 *) # from 4.6 on, and DragonFly
11542 shlibpath_overrides_runpath=yes
11543 hardcode_into_libs=yes
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 hardcode_into_libs=yes
11558 hpux9* | hpux10* | hpux11*)
11559 # Give a soname corresponding to the major version so that dld.sl refuses to
11560 # link against other versions.
11567 hardcode_into_libs=yes
11568 dynamic_linker="$host_os dld.so"
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11573 if test "X$HPUX_IA64_MODE" = X32; then
11574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11582 hardcode_into_libs=yes
11583 dynamic_linker="$host_os dld.sl"
11584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593 dynamic_linker="$host_os dld.sl"
11594 shlibpath_var=SHLIB_PATH
11595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11600 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11601 postinstall_cmds='chmod 555 $lib'
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=no
11613 hardcode_into_libs=yes
11616 irix5* | irix6* | nonstopux*)
11618 nonstopux*) version_type=nonstopux ;;
11620 if test "$lt_cv_prog_gnu_ld" = yes; then
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11631 irix5* | nonstopux*)
11632 libsuff= shlibsuff=
11635 case $LD in # libtool.m4 will add one of these switches to LD
11636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11637 libsuff= shlibsuff= libmagic=32-bit;;
11638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11639 libsuff=32 shlibsuff=N32 libmagic=N32;;
11640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11642 *) libsuff= shlibsuff= libmagic=never-match;;
11646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11647 shlibpath_overrides_runpath=no
11648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11650 hardcode_into_libs=yes
11653 # No shared lib support for Linux oldld, aout, or coff.
11654 linux*oldld* | linux*aout* | linux*coff*)
11658 # This must be Linux ELF.
11659 linux* | k*bsd*-gnu)
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 # Some binutils ld are patched to set DT_RUNPATH
11669 save_LDFLAGS=$LDFLAGS
11670 save_libdir=$libdir
11671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_link") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest$ac_exeext &&
11705 $as_test_x conftest$ac_exeext; then
11706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11707 shlibpath_overrides_runpath=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LDFLAGS=$save_LDFLAGS
11720 libdir=$save_libdir
11722 # This implies no fast_install, which is unacceptable.
11723 # Some rework will be needed to allow for fast_install
11724 # before this can be enabled.
11725 hardcode_into_libs=yes
11727 # Append ld.so.conf contents to the search path
11728 if test -f /etc/ld.so.conf; then
11729 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' ' '`
11730 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11733 # We used to test for /lib/ld.so.1 and disable shared libraries on
11734 # powerpc, because MkLinux only supported shared libraries with the
11735 # GNU dynamic linker. Since this was broken with cross compilers,
11736 # most powerpc-linux boxes support dynamic linking these days and
11737 # people can always --disable-shared, the test was removed, and we
11738 # assume the GNU/Linux dynamic linker is in use.
11739 dynamic_linker='GNU/Linux ld.so'
11746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11749 dynamic_linker='NetBSD (a.out) ld.so'
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11752 soname_spec='${libname}${release}${shared_ext}$major'
11753 dynamic_linker='NetBSD ld.elf_so'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=yes
11757 hardcode_into_libs=yes
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=no
11775 hardcode_into_libs=yes
11776 dynamic_linker='ldqnx.so'
11781 sys_lib_dlsearch_path_spec="/usr/lib"
11783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11786 *) need_version=no ;;
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11793 openbsd2.[89] | openbsd2.[89].*)
11794 shlibpath_overrides_runpath=no
11797 shlibpath_overrides_runpath=yes
11801 shlibpath_overrides_runpath=yes
11806 libname_spec='$name'
11809 library_names_spec='$libname${shared_ext} $libname.a'
11810 dynamic_linker='OS/2 ld.exe'
11811 shlibpath_var=LIBPATH
11814 osf3* | osf4* | osf5*)
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes
11837 hardcode_into_libs=yes
11838 # ldd complains unless libraries are executable
11839 postinstall_cmds='chmod +x $lib'
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 if test "$with_gnu_ld" = yes; then
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 case $host_vendor in
11861 shlibpath_overrides_runpath=no
11863 runpath_var=LD_RUN_PATH
11871 shlibpath_overrides_runpath=no
11872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11878 if test -d /usr/nec ;then
11880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11881 soname_spec='$libname${shared_ext}.$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11887 version_type=freebsd-elf
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11895 if test "$with_gnu_ld" = yes; then
11896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11905 sys_lib_dlsearch_path_spec='/usr/lib'
11909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 shlibpath_overrides_runpath=no
11916 hardcode_into_libs=yes
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922 soname_spec='${libname}${release}${shared_ext}$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11930 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11931 echo "${ECHO_T}$dynamic_linker" >&6; }
11932 test "$dynamic_linker" = no && can_build_shared=no
11934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11935 if test "$GCC" = yes; then
11936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11940 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11943 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12032 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12035 if test -n "$hardcode_libdir_flag_spec" ||
12036 test -n "$runpath_var" ||
12037 test "X$hardcode_automatic" = "Xyes" ; then
12039 # We can hardcode non-existent directories.
12040 if test "$hardcode_direct" != no &&
12041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12042 # have to relink, otherwise we might link with an installed library
12043 # when we should be linking with a yet-to-be-installed one
12044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12045 test "$hardcode_minus_L" != no; then
12046 # Linking always hardcodes the temporary library directory.
12047 hardcode_action=relink
12049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12050 hardcode_action=immediate
12053 # We cannot hardcode anything, or else we can only hardcode existing
12055 hardcode_action=unsupported
12057 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12058 echo "${ECHO_T}$hardcode_action" >&6; }
12060 if test "$hardcode_action" = relink ||
12061 test "$inherit_rpath" = yes; then
12062 # Fast installation is not supported
12063 enable_fast_install=no
12064 elif test "$shlibpath_overrides_runpath" = yes ||
12065 test "$enable_shared" = no; then
12066 # Fast installation is not necessary
12067 enable_fast_install=needless
12075 if test "x$enable_dlopen" != xyes; then
12076 enable_dlopen=unknown
12077 enable_dlopen_self=unknown
12078 enable_dlopen_self_static=unknown
12085 lt_cv_dlopen="load_add_on"
12087 lt_cv_dlopen_self=yes
12090 mingw* | pw32* | cegcc*)
12091 lt_cv_dlopen="LoadLibrary"
12096 lt_cv_dlopen="dlopen"
12101 # if libdl is installed we need to link against it
12102 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12103 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 ac_check_lib_save_LIBS=$LIBS
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } && {
12145 test -z "$ac_c_werror_flag" ||
12146 test ! -s conftest.err
12147 } && test -s conftest$ac_exeext &&
12148 $as_test_x conftest$ac_exeext; then
12149 ac_cv_lib_dl_dlopen=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_cv_lib_dl_dlopen=no
12157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12163 if test $ac_cv_lib_dl_dlopen = yes; then
12164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12167 lt_cv_dlopen="dyld"
12169 lt_cv_dlopen_self=yes
12176 { echo "$as_me:$LINENO: checking for shl_load" >&5
12177 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12178 if test "${ac_cv_func_shl_load+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12189 #define shl_load innocuous_shl_load
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char shl_load (); below.
12193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12194 <limits.h> exists even on freestanding compilers. */
12197 # include <limits.h>
12199 # include <assert.h>
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12211 /* The GNU C library defines this for functions which it implements
12212 to always fail with ENOSYS. Some functions are actually named
12213 something starting with __ and the normal name is an alias. */
12214 #if defined __stub_shl_load || defined __stub___shl_load
12221 return shl_load ();
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_link") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest$ac_exeext &&
12243 $as_test_x conftest$ac_exeext; then
12244 ac_cv_func_shl_load=yes
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_func_shl_load=no
12252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12253 conftest$ac_exeext conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12256 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12257 if test $ac_cv_func_shl_load = yes; then
12258 lt_cv_dlopen="shl_load"
12260 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12261 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12262 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_check_lib_save_LIBS=$LIBS
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12284 return shl_load ();
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest$ac_exeext &&
12306 $as_test_x conftest$ac_exeext; then
12307 ac_cv_lib_dld_shl_load=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_dld_shl_load=no
12315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12320 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12321 if test $ac_cv_lib_dld_shl_load = yes; then
12322 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12324 { echo "$as_me:$LINENO: checking for dlopen" >&5
12325 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12326 if test "${ac_cv_func_dlopen+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12337 #define dlopen innocuous_dlopen
12339 /* System header to define __stub macros and hopefully few prototypes,
12340 which can conflict with char dlopen (); below.
12341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342 <limits.h> exists even on freestanding compilers. */
12345 # include <limits.h>
12347 # include <assert.h>
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12359 /* The GNU C library defines this for functions which it implements
12360 to always fail with ENOSYS. Some functions are actually named
12361 something starting with __ and the normal name is an alias. */
12362 #if defined __stub_dlopen || defined __stub___dlopen
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && {
12388 test -z "$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 } && test -s conftest$ac_exeext &&
12391 $as_test_x conftest$ac_exeext; then
12392 ac_cv_func_dlopen=yes
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_cv_func_dlopen=no
12400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12401 conftest$ac_exeext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12404 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12405 if test $ac_cv_func_dlopen = yes; then
12406 lt_cv_dlopen="dlopen"
12408 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12409 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12410 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 ac_check_lib_save_LIBS=$LIBS
12415 cat >conftest.$ac_ext <<_ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12422 /* Override any GCC internal prototype to avoid an error.
12423 Use char because int might match the return type of a GCC
12424 builtin and then its argument prototype would still apply. */
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_c_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest$ac_exeext &&
12454 $as_test_x conftest$ac_exeext; then
12455 ac_cv_lib_dl_dlopen=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_lib_dl_dlopen=no
12463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12468 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12469 if test $ac_cv_lib_dl_dlopen = yes; then
12470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12472 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12473 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12474 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lsvld $LIBS"
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext &&
12518 $as_test_x conftest$ac_exeext; then
12519 ac_cv_lib_svld_dlopen=yes
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ac_cv_lib_svld_dlopen=no
12527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528 conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12531 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12532 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12533 if test $ac_cv_lib_svld_dlopen = yes; then
12534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12536 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12537 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12538 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 ac_check_lib_save_LIBS=$LIBS
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12560 return dld_link ();
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_link") 2>conftest.er1
12574 grep -v '^ *+' conftest.er1 >conftest.err
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } && {
12579 test -z "$ac_c_werror_flag" ||
12580 test ! -s conftest.err
12581 } && test -s conftest$ac_exeext &&
12582 $as_test_x conftest$ac_exeext; then
12583 ac_cv_lib_dld_dld_link=yes
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_cv_lib_dld_dld_link=no
12591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12596 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12597 if test $ac_cv_lib_dld_dld_link = yes; then
12598 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12619 if test "x$lt_cv_dlopen" != xno; then
12625 case $lt_cv_dlopen in
12627 save_CPPFLAGS="$CPPFLAGS"
12628 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12630 save_LDFLAGS="$LDFLAGS"
12631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12634 LIBS="$lt_cv_dlopen_libs $LIBS"
12636 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12637 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12638 if test "${lt_cv_dlopen_self+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 if test "$cross_compiling" = yes; then :
12642 lt_cv_dlopen_self=cross
12644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12645 lt_status=$lt_dlunknown
12646 cat > conftest.$ac_ext <<_LT_EOF
12647 #line 12647 "configure"
12648 #include "confdefs.h"
12657 # define LT_DLGLOBAL RTLD_GLOBAL
12660 # define LT_DLGLOBAL DL_GLOBAL
12662 # define LT_DLGLOBAL 0
12666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12667 find out it does not work in some platform. */
12668 #ifndef LT_DLLAZY_OR_NOW
12670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12673 # define LT_DLLAZY_OR_NOW DL_LAZY
12676 # define LT_DLLAZY_OR_NOW RTLD_NOW
12679 # define LT_DLLAZY_OR_NOW DL_NOW
12681 # define LT_DLLAZY_OR_NOW 0
12688 void fnord() { int i=42;}
12691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12692 int status = $lt_dlunknown;
12696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12698 /* dlclose (self); */
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12711 (./conftest; exit; ) >&5 2>/dev/null
12713 case x$lt_status in
12714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12716 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12719 # compilation failed
12720 lt_cv_dlopen_self=no
12727 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12728 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12730 if test "x$lt_cv_dlopen_self" = xyes; then
12731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12732 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12733 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12734 if test "${lt_cv_dlopen_self_static+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 if test "$cross_compiling" = yes; then :
12738 lt_cv_dlopen_self_static=cross
12740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12741 lt_status=$lt_dlunknown
12742 cat > conftest.$ac_ext <<_LT_EOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12753 # define LT_DLGLOBAL RTLD_GLOBAL
12756 # define LT_DLGLOBAL DL_GLOBAL
12758 # define LT_DLGLOBAL 0
12762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12763 find out it does not work in some platform. */
12764 #ifndef LT_DLLAZY_OR_NOW
12766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12769 # define LT_DLLAZY_OR_NOW DL_LAZY
12772 # define LT_DLLAZY_OR_NOW RTLD_NOW
12775 # define LT_DLLAZY_OR_NOW DL_NOW
12777 # define LT_DLLAZY_OR_NOW 0
12784 void fnord() { int i=42;}
12787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12788 int status = $lt_dlunknown;
12792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12793 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12794 /* dlclose (self); */
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12807 (./conftest; exit; ) >&5 2>/dev/null
12809 case x$lt_status in
12810 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12811 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12812 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12815 # compilation failed
12816 lt_cv_dlopen_self_static=no
12823 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12824 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12827 CPPFLAGS="$save_CPPFLAGS"
12828 LDFLAGS="$save_LDFLAGS"
12833 case $lt_cv_dlopen_self in
12834 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12835 *) enable_dlopen_self=unknown ;;
12838 case $lt_cv_dlopen_self_static in
12839 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12840 *) enable_dlopen_self_static=unknown ;;
12862 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12863 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12864 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12865 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12866 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12867 { echo "$as_me:$LINENO: result: yes" >&5
12868 echo "${ECHO_T}yes" >&6; }
12870 # FIXME - insert some real tests, host_os isn't really good enough
12873 if test -n "$STRIP" ; then
12874 striplib="$STRIP -x"
12875 old_striplib="$STRIP -S"
12876 { echo "$as_me:$LINENO: result: yes" >&5
12877 echo "${ECHO_T}yes" >&6; }
12879 { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12884 { echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6; }
12901 # Report which library types will actually be built
12902 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12903 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12904 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12905 echo "${ECHO_T}$can_build_shared" >&6; }
12907 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12908 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12909 test "$can_build_shared" = "no" && enable_shared=no
12911 # On AIX, shared libraries and static libraries use the same namespace, and
12912 # are all built from PIC.
12915 test "$enable_shared" = yes && enable_static=no
12916 if test -n "$RANLIB"; then
12917 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12918 postinstall_cmds='$RANLIB $lib'
12923 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12924 test "$enable_shared" = yes && enable_static=no
12928 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12929 echo "${ECHO_T}$enable_shared" >&6; }
12931 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12932 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12933 # Make sure either enable_shared or enable_static is yes.
12934 test "$enable_shared" = yes || enable_static=yes
12935 { echo "$as_me:$LINENO: result: $enable_static" >&5
12936 echo "${ECHO_T}$enable_static" >&6; }
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12952 ac_cpp='$CXXCPP $CPPFLAGS'
12953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12957 archive_cmds_need_lc_CXX=no
12958 allow_undefined_flag_CXX=
12959 always_export_symbols_CXX=no
12960 archive_expsym_cmds_CXX=
12961 compiler_needs_object_CXX=no
12962 export_dynamic_flag_spec_CXX=
12963 hardcode_direct_CXX=no
12964 hardcode_direct_absolute_CXX=no
12965 hardcode_libdir_flag_spec_CXX=
12966 hardcode_libdir_flag_spec_ld_CXX=
12967 hardcode_libdir_separator_CXX=
12968 hardcode_minus_L_CXX=no
12969 hardcode_shlibpath_var_CXX=unsupported
12970 hardcode_automatic_CXX=no
12971 inherit_rpath_CXX=no
12973 module_expsym_cmds_CXX=
12974 link_all_deplibs_CXX=unknown
12975 old_archive_cmds_CXX=$old_archive_cmds
12976 no_undefined_flag_CXX=
12977 whole_archive_flag_spec_CXX=
12978 enable_shared_with_static_runtimes_CXX=no
12980 # Source file extension for C++ test sources.
12983 # Object file extension for compiled C++ test sources.
12987 # No sense in running all these tests if we already determined that
12988 # the CXX compiler isn't working. Some variables (like enable_shared)
12989 # are currently assumed to apply to all compilers on this platform,
12990 # and will be corrupted by setting them based on a non-working compiler.
12991 if test "$_lt_caught_CXX_error" != yes; then
12992 # Code to be used in simple compile tests
12993 lt_simple_compile_test_code="int some_variable = 0;"
12995 # Code to be used in simple link tests
12996 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13005 # If no C compiler was specified, use CC.
13008 # If no C compiler flags were specified, use CFLAGS.
13009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13011 # Allow CC to be a program name with arguments.
13015 # save warnings/boilerplate of simple test code
13016 ac_outfile=conftest.$ac_objext
13017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13019 _lt_compiler_boilerplate=`cat conftest.err`
13022 ac_outfile=conftest.$ac_objext
13023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13025 _lt_linker_boilerplate=`cat conftest.err`
13029 # Allow CC to be a program name with arguments.
13034 lt_save_with_gnu_ld=$with_gnu_ld
13035 lt_save_path_LD=$lt_cv_path_LD
13036 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13037 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13039 $as_unset lt_cv_prog_gnu_ld
13041 if test -n "${lt_cv_path_LDCXX+set}"; then
13042 lt_cv_path_LD=$lt_cv_path_LDCXX
13044 $as_unset lt_cv_path_LD
13046 test -z "${LDCXX+set}" || LD=$LDCXX
13050 for cc_temp in $compiler""; do
13052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13058 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13061 if test -n "$compiler"; then
13062 # We don't want -fno-exception when compiling C++ code, so set the
13063 # no_builtin_flag separately
13064 if test "$GXX" = yes; then
13065 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13067 lt_prog_compiler_no_builtin_flag_CXX=
13070 if test "$GXX" = yes; then
13071 # Set up default GNU C++ configuration
13075 # Check whether --with-gnu-ld was given.
13076 if test "${with_gnu_ld+set}" = set; then
13077 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13083 if test "$GCC" = yes; then
13084 # Check if gcc -print-prog-name=ld gives a path.
13085 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13086 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13089 # gcc leaves a trailing carriage return which upsets mingw
13090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13095 # Accept absolute paths.
13097 re_direlt='/[^/][^/]*/\.\./'
13098 # Canonicalize the pathname of ld
13099 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13100 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13101 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13103 test -z "$LD" && LD="$ac_prog"
13106 # If it fails, then pretend we aren't using GCC.
13110 # If it is relative, then search for the first ld in PATH.
13111 with_gnu_ld=unknown
13114 elif test "$with_gnu_ld" = yes; then
13115 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13116 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13118 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13119 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13121 if test "${lt_cv_path_LD+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 if test -z "$LD"; then
13125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13126 for ac_dir in $PATH; do
13128 test -z "$ac_dir" && ac_dir=.
13129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13130 lt_cv_path_LD="$ac_dir/$ac_prog"
13131 # Check to see if the program is GNU ld. I'd rather use --version,
13132 # but apparently some variants of GNU ld only accept -v.
13133 # Break only if it was the GNU/non-GNU ld that we prefer.
13134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13135 *GNU* | *'with BFD'*)
13136 test "$with_gnu_ld" != no && break
13139 test "$with_gnu_ld" != yes && break
13146 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13150 LD="$lt_cv_path_LD"
13151 if test -n "$LD"; then
13152 { echo "$as_me:$LINENO: result: $LD" >&5
13153 echo "${ECHO_T}$LD" >&6; }
13155 { echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6; }
13158 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13159 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13160 { (exit 1); exit 1; }; }
13161 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13162 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13163 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13167 case `$LD -v 2>&1 </dev/null` in
13168 *GNU* | *'with BFD'*)
13169 lt_cv_prog_gnu_ld=yes
13172 lt_cv_prog_gnu_ld=no
13176 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13177 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13178 with_gnu_ld=$lt_cv_prog_gnu_ld
13186 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13187 # archiving commands below assume that GNU ld is being used.
13188 if test "$with_gnu_ld" = yes; then
13189 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 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'
13192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13193 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13195 # If archive_cmds runs LD, not CC, wlarc should be empty
13196 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13197 # investigate it a little bit more. (MM)
13200 # ancient GNU ld didn't support --whole-archive et. al.
13201 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13202 $GREP 'no-whole-archive' > /dev/null; then
13203 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13205 whole_archive_flag_spec_CXX=
13211 # A generic and very simple default shared library creation
13212 # command for GNU C++ for the case where it uses the native
13213 # linker, instead of GNU ld. If possible, this setting should
13214 # overridden to take advantage of the native linker features on
13215 # the platform it is being used on.
13216 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13219 # Commands to make compiler produce verbose output that lists
13220 # what "hidden" libraries, object files and flags are used when
13221 # linking a shared library.
13222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13230 # PORTME: fill in a description of your system's C++ link characteristics
13231 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13236 # FIXME: insert proper C++ library support
13240 if test "$host_cpu" = ia64; then
13241 # On IA64, the linker does run time linking by default, so we don't
13242 # have to do anything special.
13243 aix_use_runtimelinking=no
13244 exp_sym_flag='-Bexport'
13247 aix_use_runtimelinking=no
13249 # Test if we are trying to use run time linking or normal
13250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13251 # need to do runtime linking.
13252 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13253 for ld_flag in $LDFLAGS; do
13256 aix_use_runtimelinking=yes
13264 exp_sym_flag='-bexport'
13265 no_entry_flag='-bnoentry'
13268 # When large executables or shared objects are built, AIX ld can
13269 # have problems creating the table of contents. If linking a library
13270 # or program results in "error TOC overflow" add -mminimal-toc to
13271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13274 archive_cmds_CXX=''
13275 hardcode_direct_CXX=yes
13276 hardcode_direct_absolute_CXX=yes
13277 hardcode_libdir_separator_CXX=':'
13278 link_all_deplibs_CXX=yes
13279 file_list_spec_CXX='${wl}-f,'
13281 if test "$GXX" = yes; then
13282 case $host_os in aix4.[012]|aix4.[012].*)
13283 # We only want to do this on AIX 4.2 and lower, the check
13284 # below for broken collect2 doesn't work under 4.3+
13285 collect2name=`${CC} -print-prog-name=collect2`
13286 if test -f "$collect2name" &&
13287 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13289 # We have reworked collect2
13292 # We have old collect2
13293 hardcode_direct_CXX=unsupported
13294 # It fails to find uninstalled libraries when the uninstalled
13295 # path is not listed in the libpath. Setting hardcode_minus_L
13296 # to unsupported forces relinking
13297 hardcode_minus_L_CXX=yes
13298 hardcode_libdir_flag_spec_CXX='-L$libdir'
13299 hardcode_libdir_separator_CXX=
13302 shared_flag='-shared'
13303 if test "$aix_use_runtimelinking" = yes; then
13304 shared_flag="$shared_flag "'${wl}-G'
13308 if test "$host_cpu" = ia64; then
13309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13310 # chokes on -Wl,-G. The following line is correct:
13313 if test "$aix_use_runtimelinking" = yes; then
13314 shared_flag='${wl}-G'
13316 shared_flag='${wl}-bM:SRE'
13321 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13322 # It seems that -bexpall does not export symbols beginning with
13323 # underscore (_), so it is better to generate a list of symbols to
13325 always_export_symbols_CXX=yes
13326 if test "$aix_use_runtimelinking" = yes; then
13327 # Warning - without using the other runtime loading flags (-brtl),
13328 # -berok will link without error, but may produce a broken library.
13329 allow_undefined_flag_CXX='-berok'
13330 # Determine the default libpath from the value encoded in an empty
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_cxx_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13366 lt_aix_libpath_sed='
13367 /Import File Strings/,/^$/ {
13373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13374 # Check for a 64-bit object if we didn't find anything.
13375 if test -z "$aix_libpath"; then
13376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13386 conftest$ac_exeext conftest.$ac_ext
13387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13389 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13391 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13393 if test "$host_cpu" = ia64; then
13394 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13395 allow_undefined_flag_CXX="-z nodefs"
13396 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"
13398 # Determine the default libpath from the value encoded in an
13399 # empty executable.
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_link") 2>conftest.er1
13424 grep -v '^ *+' conftest.er1 >conftest.err
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_cxx_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest$ac_exeext &&
13432 $as_test_x conftest$ac_exeext; then
13434 lt_aix_libpath_sed='
13435 /Import File Strings/,/^$/ {
13441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13442 # Check for a 64-bit object if we didn't find anything.
13443 if test -z "$aix_libpath"; then
13444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13454 conftest$ac_exeext conftest.$ac_ext
13455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13458 # Warning - without using the other run time loading flags,
13459 # -berok will link without error, but may produce a broken library.
13460 no_undefined_flag_CXX=' ${wl}-bernotok'
13461 allow_undefined_flag_CXX=' ${wl}-berok'
13462 # Exported symbols can be pulled into shared objects from archives
13463 whole_archive_flag_spec_CXX='$convenience'
13464 archive_cmds_need_lc_CXX=yes
13465 # This is similar to how AIX traditionally builds its shared
13467 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'
13473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13474 allow_undefined_flag_CXX=unsupported
13475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13476 # support --undefined. This deserves some investigation. FIXME
13477 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13484 case $cc_basename in
13486 # FIXME: insert proper C++ library support
13492 cygwin* | mingw* | pw32* | cegcc*)
13493 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13494 # as there is no search path for DLLs.
13495 hardcode_libdir_flag_spec_CXX='-L$libdir'
13496 allow_undefined_flag_CXX=unsupported
13497 always_export_symbols_CXX=no
13498 enable_shared_with_static_runtimes_CXX=yes
13500 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13501 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'
13502 # If the export-symbols file already is a .def file (1st line
13503 # is EXPORTS), use it as is; otherwise, prepend...
13504 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13505 cp $export_symbols $output_objdir/$soname.def;
13507 echo EXPORTS > $output_objdir/$soname.def;
13508 cat $export_symbols >> $output_objdir/$soname.def;
13510 $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'
13515 darwin* | rhapsody*)
13518 archive_cmds_need_lc_CXX=no
13519 hardcode_direct_CXX=no
13520 hardcode_automatic_CXX=yes
13521 hardcode_shlibpath_var_CXX=unsupported
13522 whole_archive_flag_spec_CXX=''
13523 link_all_deplibs_CXX=yes
13524 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13525 case $cc_basename in
13526 ifort*) _lt_dar_can_shared=yes ;;
13527 *) _lt_dar_can_shared=$GCC ;;
13529 if test "$_lt_dar_can_shared" = "yes"; then
13530 output_verbose_link_cmd=echo
13531 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13532 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13533 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13534 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13535 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13536 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${_lt_dsymutil}"
13537 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13547 case $cc_basename in
13549 # FIXME: insert proper C++ library support
13553 # Green Hills C++ Compiler
13554 # FIXME: insert proper C++ library support
13558 # FIXME: insert proper C++ library support
13565 # C++ shared libraries reported to be fairly broken before
13571 archive_cmds_need_lc_CXX=no
13574 freebsd* | dragonfly*)
13575 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13585 hardcode_libdir_separator_CXX=:
13586 export_dynamic_flag_spec_CXX='${wl}-E'
13587 hardcode_direct_CXX=yes
13588 hardcode_minus_L_CXX=yes # Not in the search PATH,
13589 # but as the default
13590 # location of the library.
13592 case $cc_basename in
13594 # FIXME: insert proper C++ library support
13598 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'
13599 # Commands to make compiler produce verbose output that lists
13600 # what "hidden" libraries, object files and flags are used when
13601 # linking a shared library.
13603 # There doesn't appear to be a way to prevent this compiler from
13604 # explicitly linking system object files so we need to strip them
13605 # from the output so that they don't get included in the library
13607 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13610 if test "$GXX" = yes; then
13611 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'
13613 # FIXME: insert proper C++ library support
13621 if test $with_gnu_ld = no; then
13622 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13623 hardcode_libdir_separator_CXX=:
13629 export_dynamic_flag_spec_CXX='${wl}-E'
13635 hardcode_direct_CXX=no
13636 hardcode_shlibpath_var_CXX=no
13639 hardcode_direct_CXX=yes
13640 hardcode_direct_absolute_CXX=yes
13641 hardcode_minus_L_CXX=yes # Not in the search PATH,
13642 # but as the default
13643 # location of the library.
13647 case $cc_basename in
13649 # FIXME: insert proper C++ library support
13655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13661 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664 # Commands to make compiler produce verbose output that lists
13665 # what "hidden" libraries, object files and flags are used when
13666 # linking a shared library.
13668 # There doesn't appear to be a way to prevent this compiler from
13669 # explicitly linking system object files so we need to strip them
13670 # from the output so that they don't get included in the library
13672 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 "X$list" | $Xsed'
13675 if test "$GXX" = yes; then
13676 if test $with_gnu_ld = no; then
13679 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13682 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13685 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'
13690 # FIXME: insert proper C++ library support
13698 hardcode_direct_CXX=no
13699 hardcode_shlibpath_var_CXX=no
13700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13701 export_dynamic_flag_spec_CXX='${wl}-E'
13702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13703 # Instead, shared libraries are loaded at an image base (0x10000000 by
13704 # default) and relocated if they conflict, which is a slow very memory
13705 # consuming and fragmenting process. To avoid this, we pick a random,
13706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13708 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'
13709 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'
13712 case $cc_basename in
13715 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13717 # Archives containing C++ object files must be created using
13718 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13719 # necessary to make sure instantiated templates are included
13721 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13724 if test "$GXX" = yes; then
13725 if test "$with_gnu_ld" = no; then
13726 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13728 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13731 link_all_deplibs_CXX=yes
13734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13735 hardcode_libdir_separator_CXX=:
13736 inherit_rpath_CXX=yes
13739 linux* | k*bsd*-gnu)
13740 case $cc_basename in
13742 # Kuck and Associates, Inc. (KAI) C++ Compiler
13744 # KCC will only create a shared library if the output file
13745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13746 # to its proper name (with version) after linking.
13747 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'
13748 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'
13749 # Commands to make compiler produce verbose output that lists
13750 # what "hidden" libraries, object files and flags are used when
13751 # linking a shared library.
13753 # There doesn't appear to be a way to prevent this compiler from
13754 # explicitly linking system object files so we need to strip them
13755 # from the output so that they don't get included in the library
13757 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 "X$list" | $Xsed'
13759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13762 # Archives containing C++ object files must be created using
13763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13769 # version 8.0 and above of icpc choke on multiply defined symbols
13770 # if we add $predep_objects and $postdep_objects, however 7.1 and
13771 # earlier do not add the objects themselves.
13772 case `$CC -V 2>&1` in
13774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 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'
13777 *) # Version 8.0 or newer
13780 ia64*) tmp_idyn=' -i_dynamic';;
13782 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13783 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'
13786 archive_cmds_need_lc_CXX=no
13787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13789 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13792 # Portland Group C++ compiler
13794 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13795 prelink_cmds_CXX='tpldir=Template.dir~
13797 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13798 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13799 old_archive_cmds_CXX='tpldir=Template.dir~
13801 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13802 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13804 archive_cmds_CXX='tpldir=Template.dir~
13806 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13807 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13808 archive_expsym_cmds_CXX='tpldir=Template.dir~
13810 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13811 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13813 *) # Version 6 will use weak symbols
13814 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13815 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'
13819 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821 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'
13825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826 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'
13828 runpath_var=LD_RUN_PATH
13829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13830 hardcode_libdir_separator_CXX=:
13832 # Commands to make compiler produce verbose output that lists
13833 # what "hidden" libraries, object files and flags are used when
13834 # linking a shared library.
13836 # There doesn't appear to be a way to prevent this compiler from
13837 # explicitly linking system object files so we need to strip them
13838 # from the output so that they don't get included in the library
13840 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13843 # IBM XL 8.0 on PPC, with GNU ld
13844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13845 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13846 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 if test "x$supports_anon_versioning" = xyes; then
13848 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13850 echo "local: *; };" >> $output_objdir/$libname.ver~
13851 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13855 case `$CC -V 2>&1 | sed 5q` in
13858 no_undefined_flag_CXX=' -zdefs'
13859 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13860 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'
13861 hardcode_libdir_flag_spec_CXX='-R$libdir'
13862 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'
13863 compiler_needs_object_CXX=yes
13865 # Not sure whether something based on
13866 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13868 output_verbose_link_cmd='echo'
13870 # Archives containing C++ object files must be created using
13871 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13872 # necessary to make sure instantiated templates are included
13874 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13882 # FIXME: insert proper C++ library support
13887 # FIXME: insert proper C++ library support
13892 case $cc_basename in
13894 # FIXME: insert proper C++ library support
13898 # FIXME: insert proper C++ library support
13905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13906 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13908 hardcode_libdir_flag_spec_CXX='-R$libdir'
13909 hardcode_direct_CXX=yes
13910 hardcode_shlibpath_var_CXX=no
13912 # Workaround some broken pre-1.5 toolchains
13913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13921 # C++ shared libraries are fairly broken
13926 if test -f /usr/libexec/ld.so; then
13927 hardcode_direct_CXX=yes
13928 hardcode_shlibpath_var_CXX=no
13929 hardcode_direct_absolute_CXX=yes
13930 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13933 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13934 export_dynamic_flag_spec_CXX='${wl}-E'
13935 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13937 output_verbose_link_cmd=echo
13943 osf3* | osf4* | osf5*)
13944 case $cc_basename in
13946 # Kuck and Associates, Inc. (KAI) C++ Compiler
13948 # KCC will only create a shared library if the output file
13949 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13950 # to its proper name (with version) after linking.
13951 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'
13953 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13954 hardcode_libdir_separator_CXX=:
13956 # Archives containing C++ object files must be created using
13957 # the KAI C++ compiler.
13959 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13960 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13964 # Rational C++ 2.4.1
13965 # FIXME: insert proper C++ library support
13971 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13972 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13976 allow_undefined_flag_CXX=' -expect_unresolved \*'
13977 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13978 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13979 echo "-hidden">> $lib.exp~
13980 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13986 hardcode_libdir_separator_CXX=:
13988 # Commands to make compiler produce verbose output that lists
13989 # what "hidden" libraries, object files and flags are used when
13990 # linking a shared library.
13992 # There doesn't appear to be a way to prevent this compiler from
13993 # explicitly linking system object files so we need to strip them
13994 # from the output so that they don't get included in the library
13996 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13999 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14000 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14003 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14006 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14011 hardcode_libdir_separator_CXX=:
14013 # Commands to make compiler produce verbose output that lists
14014 # what "hidden" libraries, object files and flags are used when
14015 # linking a shared library.
14016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14019 # FIXME: insert proper C++ library support
14027 # FIXME: insert proper C++ library support
14032 case $cc_basename in
14035 # FIXME: insert proper C++ library support
14040 # FIXME: insert proper C++ library support
14044 # FIXME: insert proper C++ library support
14051 case $cc_basename in
14053 # Sun C++ 4.2, 5.x and Centerline C++
14054 archive_cmds_need_lc_CXX=yes
14055 no_undefined_flag_CXX=' -zdefs'
14056 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14057 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14058 $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'
14060 hardcode_libdir_flag_spec_CXX='-R$libdir'
14061 hardcode_shlibpath_var_CXX=no
14063 solaris2.[0-5] | solaris2.[0-5].*) ;;
14065 # The compiler driver will combine and reorder linker options,
14066 # but understands `-z linker_flag'.
14067 # Supported since Solaris 2.6 (maybe 2.5.1?)
14068 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14071 link_all_deplibs_CXX=yes
14073 output_verbose_link_cmd='echo'
14075 # Archives containing C++ object files must be created using
14076 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14077 # necessary to make sure instantiated templates are included
14079 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14082 # Green Hills C++ Compiler
14083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14085 # The C++ compiler must be used to create the archive.
14086 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14089 # GNU C++ compiler with Solaris linker
14090 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14091 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14092 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14093 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14094 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14095 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14097 # Commands to make compiler produce verbose output that lists
14098 # what "hidden" libraries, object files and flags are used when
14099 # linking a shared library.
14100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14102 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14104 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14106 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14108 # Commands to make compiler produce verbose output that lists
14109 # what "hidden" libraries, object files and flags are used when
14110 # linking a shared library.
14111 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14114 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14116 solaris2.[0-5] | solaris2.[0-5].*) ;;
14118 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14127 no_undefined_flag_CXX='${wl}-z,text'
14128 archive_cmds_need_lc_CXX=no
14129 hardcode_shlibpath_var_CXX=no
14130 runpath_var='LD_RUN_PATH'
14132 case $cc_basename in
14134 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14135 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14144 sysv5* | sco3.2v5* | sco5v6*)
14145 # Note: We can NOT use -z defs as we might desire, because we do not
14146 # link with -lc, and that would cause any symbols used from libc to
14147 # always be unresolved, which means just about no library would
14148 # ever link correctly. If we're not using GNU ld we use -z text
14149 # though, which does catch some bad symbols but isn't as heavy-handed
14151 no_undefined_flag_CXX='${wl}-z,text'
14152 allow_undefined_flag_CXX='${wl}-z,nodefs'
14153 archive_cmds_need_lc_CXX=no
14154 hardcode_shlibpath_var_CXX=no
14155 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14156 hardcode_libdir_separator_CXX=':'
14157 link_all_deplibs_CXX=yes
14158 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14159 runpath_var='LD_RUN_PATH'
14161 case $cc_basename in
14163 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14164 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 case $cc_basename in
14176 # NonStop-UX NCC 3.20
14177 # FIXME: insert proper C++ library support
14181 # FIXME: insert proper C++ library support
14188 # FIXME: insert proper C++ library support
14193 # FIXME: insert proper C++ library support
14198 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14200 test "$ld_shlibs_CXX" = no && can_build_shared=no
14206 ## There is no encapsulation within the following macros, do not change
14207 ## the running order or otherwise move them around unless you know exactly
14208 ## what you are doing...
14209 # Dependencies to place before and after the object being linked:
14210 predep_objects_CXX=
14211 postdep_objects_CXX=
14214 compiler_lib_search_path_CXX=
14216 cat > conftest.$ac_ext <<_LT_EOF
14220 Foo (void) { a = 0; }
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; then
14231 # Parse the compiler output and extract the necessary
14232 # objects, libraries and library flags.
14234 # Sentinel used to keep track of whether or not we are before
14235 # the conftest object file.
14236 pre_test_object_deps_done=no
14238 for p in `eval "$output_verbose_link_cmd"`; do
14242 # Some compilers place space between "-{L,R}" and the path.
14243 # Remove the space.
14244 if test $p = "-L" ||
14245 test $p = "-R"; then
14252 if test "$pre_test_object_deps_done" = no; then
14255 # Internal compiler library paths should come after those
14256 # provided the user. The postdeps already come after the
14257 # user supplied libs so there is no need to process them.
14258 if test -z "$compiler_lib_search_path_CXX"; then
14259 compiler_lib_search_path_CXX="${prev}${p}"
14261 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14264 # The "-l" case would never come before the object being
14265 # linked, so don't bother handling this case.
14268 if test -z "$postdeps_CXX"; then
14269 postdeps_CXX="${prev}${p}"
14271 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14277 # This assumes that the test object file only shows up
14278 # once in the compiler output.
14279 if test "$p" = "conftest.$objext"; then
14280 pre_test_object_deps_done=yes
14284 if test "$pre_test_object_deps_done" = no; then
14285 if test -z "$predep_objects_CXX"; then
14286 predep_objects_CXX="$p"
14288 predep_objects_CXX="$predep_objects_CXX $p"
14291 if test -z "$postdep_objects_CXX"; then
14292 postdep_objects_CXX="$p"
14294 postdep_objects_CXX="$postdep_objects_CXX $p"
14299 *) ;; # Ignore the rest.
14307 echo "libtool.m4: error: problem compiling CXX test program"
14310 $RM -f confest.$objext
14312 # PORTME: override above test on systems where it is broken
14315 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14316 # hack all around it, let's just trust "g++" to DTRT.
14317 predep_objects_CXX=
14318 postdep_objects_CXX=
14323 case `$CC -V 2>&1 | sed 5q` in
14327 # The more standards-conforming stlport4 library is
14328 # incompatible with the Cstd library. Avoid specifying
14329 # it if it's in CXXFLAGS. Ignore libCrun as
14330 # -library=stlport4 depends on it.
14331 case " $CXX $CXXFLAGS " in
14332 *" -library=stlport4 "*)
14333 solaris_use_stlport4=yes
14337 if test "$solaris_use_stlport4" != yes; then
14338 postdeps_CXX='-library=Cstd -library=Crun'
14345 case $cc_basename in
14347 # The more standards-conforming stlport4 library is
14348 # incompatible with the Cstd library. Avoid specifying
14349 # it if it's in CXXFLAGS. Ignore libCrun as
14350 # -library=stlport4 depends on it.
14351 case " $CXX $CXXFLAGS " in
14352 *" -library=stlport4 "*)
14353 solaris_use_stlport4=yes
14357 # Adding this requires a known-good setup of shared libraries for
14358 # Sun compiler versions before 5.6, else PIC objects from an old
14359 # archive will be linked into the output, leading to subtle bugs.
14360 if test "$solaris_use_stlport4" != yes; then
14361 postdeps_CXX='-library=Cstd -library=Crun'
14369 case " $postdeps_CXX " in
14370 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14372 compiler_lib_search_dirs_CXX=
14373 if test -n "${compiler_lib_search_path_CXX}"; then
14374 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14407 lt_prog_compiler_wl_CXX=
14408 lt_prog_compiler_pic_CXX=
14409 lt_prog_compiler_static_CXX=
14411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14414 # C++ specific cases for pic, static, wl, etc.
14415 if test "$GXX" = yes; then
14416 lt_prog_compiler_wl_CXX='-Wl,'
14417 lt_prog_compiler_static_CXX='-static'
14421 # All AIX code is PIC.
14422 if test "$host_cpu" = ia64; then
14423 # AIX 5 now supports IA64 processor
14424 lt_prog_compiler_static_CXX='-Bstatic'
14431 # see comment about AmigaOS4 .so support
14432 lt_prog_compiler_pic_CXX='-fPIC'
14435 # FIXME: we need at least 68020 code to build shared libraries, but
14436 # adding the `-m68020' flag to GCC prevents building anything better,
14438 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14444 # PIC is the default for these OSes.
14446 mingw* | cygwin* | os2* | pw32* | cegcc*)
14447 # This hack is so that the source file can tell whether it is being
14448 # built for inclusion in a dll (and should export symbols for example).
14449 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14450 # (--disable-auto-import) libraries
14451 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14453 darwin* | rhapsody*)
14454 # PIC is the default on this platform
14455 # Common symbols not allowed in MH_DYLIB files
14456 lt_prog_compiler_pic_CXX='-fno-common'
14459 # DJGPP does not support shared libraries at all
14460 lt_prog_compiler_pic_CXX=
14463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464 # Instead, we relocate shared libraries at runtime.
14467 if test -d /usr/nec; then
14468 lt_prog_compiler_pic_CXX=-Kconform_pic
14472 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14473 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14474 # sets the default TLS model and affects inlining.
14479 lt_prog_compiler_pic_CXX='-fPIC'
14484 # QNX uses GNU C++, but need to define -shared option too, otherwise
14485 # it will coredump.
14486 lt_prog_compiler_pic_CXX='-fPIC -shared'
14489 lt_prog_compiler_pic_CXX='-fPIC'
14495 # All AIX code is PIC.
14496 if test "$host_cpu" = ia64; then
14497 # AIX 5 now supports IA64 processor
14498 lt_prog_compiler_static_CXX='-Bstatic'
14500 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14504 case $cc_basename in
14506 # Green Hills C++ Compiler
14507 # _LT_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"
14512 case $cc_basename in
14514 lt_prog_compiler_pic_CXX='-KPIC'
14517 # Green Hills C++ Compiler
14518 lt_prog_compiler_pic_CXX='-pic'
14524 freebsd* | dragonfly*)
14525 # FreeBSD uses GNU C++
14527 hpux9* | hpux10* | hpux11*)
14528 case $cc_basename in
14530 lt_prog_compiler_wl_CXX='-Wl,'
14531 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14532 if test "$host_cpu" != ia64; then
14533 lt_prog_compiler_pic_CXX='+Z'
14537 lt_prog_compiler_wl_CXX='-Wl,'
14538 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14544 lt_prog_compiler_pic_CXX='+Z'
14553 # This is c89, which is MS Visual C++ (no shared libs)
14554 # Anyone wants to do a port?
14556 irix5* | irix6* | nonstopux*)
14557 case $cc_basename in
14559 lt_prog_compiler_wl_CXX='-Wl,'
14560 lt_prog_compiler_static_CXX='-non_shared'
14561 # CC pic flag -KPIC is the default.
14567 linux* | k*bsd*-gnu)
14568 case $cc_basename in
14571 lt_prog_compiler_wl_CXX='--backend -Wl,'
14572 lt_prog_compiler_pic_CXX='-fPIC'
14575 # old Intel C++ for x86_64 which still supported -KPIC.
14576 lt_prog_compiler_wl_CXX='-Wl,'
14577 lt_prog_compiler_pic_CXX='-KPIC'
14578 lt_prog_compiler_static_CXX='-static'
14581 # Intel C++, used to be incompatible with GCC.
14582 # ICC 10 doesn't accept -KPIC any more.
14583 lt_prog_compiler_wl_CXX='-Wl,'
14584 lt_prog_compiler_pic_CXX='-fPIC'
14585 lt_prog_compiler_static_CXX='-static'
14588 # Portland Group C++ compiler
14589 lt_prog_compiler_wl_CXX='-Wl,'
14590 lt_prog_compiler_pic_CXX='-fpic'
14591 lt_prog_compiler_static_CXX='-Bstatic'
14595 # Make sure the PIC flag is empty. It appears that all Alpha
14596 # Linux and Compaq Tru64 Unix objects are PIC.
14597 lt_prog_compiler_pic_CXX=
14598 lt_prog_compiler_static_CXX='-non_shared'
14601 # IBM XL 8.0 on PPC
14602 lt_prog_compiler_wl_CXX='-Wl,'
14603 lt_prog_compiler_pic_CXX='-qpic'
14604 lt_prog_compiler_static_CXX='-qstaticlink'
14607 case `$CC -V 2>&1 | sed 5q` in
14610 lt_prog_compiler_pic_CXX='-KPIC'
14611 lt_prog_compiler_static_CXX='-Bstatic'
14612 lt_prog_compiler_wl_CXX='-Qoption ld '
14623 case $cc_basename in
14625 lt_prog_compiler_pic_CXX='-W c,exportall'
14634 # QNX uses GNU C++, but need to define -shared option too, otherwise
14635 # it will coredump.
14636 lt_prog_compiler_pic_CXX='-fPIC -shared'
14638 osf3* | osf4* | osf5*)
14639 case $cc_basename in
14641 lt_prog_compiler_wl_CXX='--backend -Wl,'
14644 # Rational C++ 2.4.1
14645 lt_prog_compiler_pic_CXX='-pic'
14648 # Digital/Compaq C++
14649 lt_prog_compiler_wl_CXX='-Wl,'
14650 # Make sure the PIC flag is empty. It appears that all Alpha
14651 # Linux and Compaq Tru64 Unix objects are PIC.
14652 lt_prog_compiler_pic_CXX=
14653 lt_prog_compiler_static_CXX='-non_shared'
14662 case $cc_basename in
14664 # Sun C++ 4.2, 5.x and Centerline C++
14665 lt_prog_compiler_pic_CXX='-KPIC'
14666 lt_prog_compiler_static_CXX='-Bstatic'
14667 lt_prog_compiler_wl_CXX='-Qoption ld '
14670 # Green Hills C++ Compiler
14671 lt_prog_compiler_pic_CXX='-PIC'
14678 case $cc_basename in
14681 lt_prog_compiler_pic_CXX='-pic'
14682 lt_prog_compiler_static_CXX='-Bstatic'
14686 lt_prog_compiler_pic_CXX='-pic'
14692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14693 case $cc_basename in
14695 lt_prog_compiler_wl_CXX='-Wl,'
14696 lt_prog_compiler_pic_CXX='-KPIC'
14697 lt_prog_compiler_static_CXX='-Bstatic'
14702 case $cc_basename in
14704 # NonStop-UX NCC 3.20
14705 lt_prog_compiler_pic_CXX='-KPIC'
14714 lt_prog_compiler_can_build_shared_CXX=no
14720 # For platforms which do not support PIC, -DPIC is meaningless:
14722 lt_prog_compiler_pic_CXX=
14725 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14729 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14734 # Check to make sure the PIC flag actually works.
14736 if test -n "$lt_prog_compiler_pic_CXX"; then
14737 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14738 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14739 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 lt_cv_prog_compiler_pic_works_CXX=no
14743 ac_outfile=conftest.$ac_objext
14744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14745 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 # The option is referenced via a variable to avoid confusing sed.
14751 lt_compile=`echo "$ac_compile" | $SED \
14752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754 -e 's:$: $lt_compiler_flag:'`
14755 (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756 (eval "$lt_compile" 2>conftest.err)
14758 cat conftest.err >&5
14759 echo "$as_me:14759: \$? = $ac_status" >&5
14760 if (exit $ac_status) && test -s "$ac_outfile"; then
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings other than the usual output.
14763 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_cv_prog_compiler_pic_works_CXX=yes
14772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14773 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14775 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14776 case $lt_prog_compiler_pic_CXX in
14778 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14781 lt_prog_compiler_pic_CXX=
14782 lt_prog_compiler_can_build_shared_CXX=no
14790 # Check to make sure the static flag actually works.
14792 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14793 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14794 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14795 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 lt_cv_prog_compiler_static_works_CXX=no
14799 save_LDFLAGS="$LDFLAGS"
14800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14803 # The linker can only warn and ignore the option if not recognized
14804 # So say no if there are warnings
14805 if test -s conftest.err; then
14806 # Append any errors to the config.log.
14807 cat conftest.err 1>&5
14808 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810 if diff conftest.exp conftest.er2 >/dev/null; then
14811 lt_cv_prog_compiler_static_works_CXX=yes
14814 lt_cv_prog_compiler_static_works_CXX=yes
14818 LDFLAGS="$save_LDFLAGS"
14821 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14822 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14824 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14827 lt_prog_compiler_static_CXX=
14833 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14834 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14835 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 lt_cv_prog_compiler_c_o_CXX=no
14839 $RM -r conftest 2>/dev/null
14843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14845 lt_compiler_flag="-o out/conftest2.$ac_objext"
14846 # Insert the option either (1) after the last *FLAGS variable, or
14847 # (2) before a word containing "conftest.", or (3) at the end.
14848 # Note that $ac_compile itself does not contain backslashes and begins
14849 # with a dollar sign (not a hyphen), so the echo should work correctly.
14850 lt_compile=`echo "$ac_compile" | $SED \
14851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14853 -e 's:$: $lt_compiler_flag:'`
14854 (eval echo "\"\$as_me:14854: $lt_compile\"" >&5)
14855 (eval "$lt_compile" 2>out/conftest.err)
14857 cat out/conftest.err >&5
14858 echo "$as_me:14858: \$? = $ac_status" >&5
14859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14861 # The compiler can only warn and ignore the option if not recognized
14862 # So say no if there are warnings
14863 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14866 lt_cv_prog_compiler_c_o_CXX=yes
14871 # SGI C++ compiler will create directory out/ii_files/ for
14872 # template instantiation
14873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14874 $RM out/* && rmdir out
14880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14881 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14885 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14886 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14887 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 lt_cv_prog_compiler_c_o_CXX=no
14891 $RM -r conftest 2>/dev/null
14895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14897 lt_compiler_flag="-o out/conftest2.$ac_objext"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 lt_compile=`echo "$ac_compile" | $SED \
14903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14905 -e 's:$: $lt_compiler_flag:'`
14906 (eval echo "\"\$as_me:14906: $lt_compile\"" >&5)
14907 (eval "$lt_compile" 2>out/conftest.err)
14909 cat out/conftest.err >&5
14910 echo "$as_me:14910: \$? = $ac_status" >&5
14911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings
14915 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14918 lt_cv_prog_compiler_c_o_CXX=yes
14923 # SGI C++ compiler will create directory out/ii_files/ for
14924 # template instantiation
14925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14926 $RM out/* && rmdir out
14932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14933 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14938 hard_links="nottested"
14939 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14940 # do not overwrite the value of need_locks provided by the user
14941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14947 ln conftest.a conftest.b 2>&5 || hard_links=no
14948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14949 { echo "$as_me:$LINENO: result: $hard_links" >&5
14950 echo "${ECHO_T}$hard_links" >&6; }
14951 if test "$hard_links" = no; then
14952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14962 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14968 # If we're using GNU nm, then we don't want the "-C" option.
14969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14971 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'
14973 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'
14977 export_symbols_cmds_CXX="$ltdll_cmds"
14979 cygwin* | mingw* | cegcc*)
14980 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'
14983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14986 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14988 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14989 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14990 test "$ld_shlibs_CXX" = no && can_build_shared=no
14992 with_gnu_ld_CXX=$with_gnu_ld
15000 # Do we need to explicitly link libc?
15002 case "x$archive_cmds_need_lc_CXX" in
15004 # Assume -lc should be added
15005 archive_cmds_need_lc_CXX=yes
15007 if test "$enable_shared" = yes && test "$GCC" = yes; then
15008 case $archive_cmds_CXX in
15010 # FIXME: we may have to deal with multi-command sequences.
15013 # Test whether the compiler implicitly links with -lc since on some
15014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015 # to ld, don't add -lc before -lgcc.
15016 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } 2>conftest.err; then
15028 libobjs=conftest.$ac_objext
15030 wl=$lt_prog_compiler_wl_CXX
15031 pic_flag=$lt_prog_compiler_pic_CXX
15037 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15038 allow_undefined_flag_CXX=
15039 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15040 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }
15045 archive_cmds_need_lc_CXX=no
15047 archive_cmds_need_lc_CXX=yes
15049 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15051 cat conftest.err 1>&5
15054 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15055 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15125 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15126 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15128 library_names_spec=
15129 libname_spec='lib$name'
15133 postuninstall_cmds=
15137 shlibpath_overrides_runpath=unknown
15139 dynamic_linker="$host_os ld.so"
15140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141 need_lib_prefix=unknown
15142 hardcode_into_libs=no
15144 # when you set need_version to no, make sure it does not cause -set_version
15145 # flags to be left without arguments
15146 need_version=unknown
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15152 shlibpath_var=LIBPATH
15154 # AIX 3 has no versioning support, so we append a major version to the name.
15155 soname_spec='${libname}${release}${shared_ext}$major'
15162 hardcode_into_libs=yes
15163 if test "$host_cpu" = ia64; then
15164 # AIX 5 supports IA64
15165 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15166 shlibpath_var=LD_LIBRARY_PATH
15168 # With GCC up to 2.95.x, collect2 would create an import file
15169 # for dependence libraries. The import file would start with
15170 # the line `#! .'. This would cause the generated library to
15171 # depend on `.', always an invalid library. This was fixed in
15172 # development snapshots of GCC prior to 3.0.
15174 aix4 | aix4.[01] | aix4.[01].*)
15175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15177 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15180 can_build_shared=no
15184 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15185 # soname into executable. Probably we can add versioning support to
15186 # collect2, so additional links can be useful in future.
15187 if test "$aix_use_runtimelinking" = yes; then
15188 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15189 # instead of lib<name>.a to let people know that these are not
15190 # typical AIX shared libraries.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 # We preserve .a as extension for shared libraries through AIX4.2
15194 # and later when we are not doing run time linking.
15195 library_names_spec='${libname}${release}.a $libname.a'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15198 shlibpath_var=LIBPATH
15205 # Since July 2007 AmigaOS4 officially supports .so libraries.
15206 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 library_names_spec='$libname.ixlibrary $libname.a'
15211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15212 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'
15218 library_names_spec='${libname}${shared_ext}'
15219 dynamic_linker="$host_os ld.so"
15220 shlibpath_var=LIBRARY_PATH
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15232 # the default ld.so.conf also contains /usr/contrib/lib and
15233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15234 # libtool to hard-code these into programs
15237 cygwin* | mingw* | pw32* | cegcc*)
15238 version_type=windows
15243 case $GCC,$host_os in
15244 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15245 library_names_spec='$libname.dll.a'
15246 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15247 postinstall_cmds='base_file=`basename \${file}`~
15248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15249 dldir=$destdir/`dirname \$dlpath`~
15250 test -d \$dldir || mkdir -p \$dldir~
15251 $install_prog $dir/$dlname \$dldir/$dlname~
15252 chmod a+x \$dldir/$dlname~
15253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15257 dlpath=$dir/\$dldll~
15259 shlibpath_overrides_runpath=yes
15263 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15264 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15265 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15268 # MinGW DLLs use traditional 'lib' prefix
15269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15271 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15272 # It is most probably a Windows format PATH printed by
15273 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15274 # path with ; separators, and with drive letters. We can handle the
15275 # drive letters (cygwin fileutils understands them), so leave them,
15276 # especially as we might pass files found there to a mingw objdump,
15277 # which wouldn't understand a cygwinified path. Ahh.
15278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15284 # pw32 DLLs use 'pw' prefix rather than 'lib'
15285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15291 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15294 dynamic_linker='Win32 ld.exe'
15295 # FIXME: first we should search . and the directory the executable is in
15299 darwin* | rhapsody*)
15300 dynamic_linker="$host_os dyld"
15301 version_type=darwin
15304 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305 soname_spec='${libname}${release}${major}$shared_ext'
15306 shlibpath_overrides_runpath=yes
15307 shlibpath_var=DYLD_LIBRARY_PATH
15308 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15326 freebsd* | dragonfly*)
15327 # DragonFly does not have aout. When/if they implement a new
15328 # versioning mechanism, adjust this.
15329 if test -x /usr/bin/objformat; then
15330 objformat=`/usr/bin/objformat`
15333 freebsd[123]*) objformat=aout ;;
15334 *) objformat=elf ;;
15337 version_type=freebsd-$objformat
15338 case $version_type in
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15349 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15354 freebsd3.[01]* | freebsdelf3.[01]*)
15355 shlibpath_overrides_runpath=yes
15356 hardcode_into_libs=yes
15358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15360 shlibpath_overrides_runpath=no
15361 hardcode_into_libs=yes
15363 *) # from 4.6 on, and DragonFly
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 hardcode_into_libs=yes
15380 hpux9* | hpux10* | hpux11*)
15381 # Give a soname corresponding to the major version so that dld.sl refuses to
15382 # link against other versions.
15389 hardcode_into_libs=yes
15390 dynamic_linker="$host_os dld.so"
15391 shlibpath_var=LD_LIBRARY_PATH
15392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 if test "X$HPUX_IA64_MODE" = X32; then
15396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15404 hardcode_into_libs=yes
15405 dynamic_linker="$host_os dld.sl"
15406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15415 dynamic_linker="$host_os dld.sl"
15416 shlibpath_var=SHLIB_PATH
15417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15423 postinstall_cmds='chmod 555 $lib'
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=no
15435 hardcode_into_libs=yes
15438 irix5* | irix6* | nonstopux*)
15440 nonstopux*) version_type=nonstopux ;;
15442 if test "$lt_cv_prog_gnu_ld" = yes; then
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15453 irix5* | nonstopux*)
15454 libsuff= shlibsuff=
15457 case $LD in # libtool.m4 will add one of these switches to LD
15458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15459 libsuff= shlibsuff= libmagic=32-bit;;
15460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15461 libsuff=32 shlibsuff=N32 libmagic=N32;;
15462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15464 *) libsuff= shlibsuff= libmagic=never-match;;
15468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15469 shlibpath_overrides_runpath=no
15470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15472 hardcode_into_libs=yes
15475 # No shared lib support for Linux oldld, aout, or coff.
15476 linux*oldld* | linux*aout* | linux*coff*)
15480 # This must be Linux ELF.
15481 linux* | k*bsd*-gnu)
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=no
15490 # Some binutils ld are patched to set DT_RUNPATH
15491 save_LDFLAGS=$LDFLAGS
15492 save_libdir=$libdir
15493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_cxx_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest$ac_exeext &&
15527 $as_test_x conftest$ac_exeext; then
15528 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15529 shlibpath_overrides_runpath=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LDFLAGS=$save_LDFLAGS
15542 libdir=$save_libdir
15544 # This implies no fast_install, which is unacceptable.
15545 # Some rework will be needed to allow for fast_install
15546 # before this can be enabled.
15547 hardcode_into_libs=yes
15549 # Append ld.so.conf contents to the search path
15550 if test -f /etc/ld.so.conf; then
15551 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' ' '`
15552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15555 # We used to test for /lib/ld.so.1 and disable shared libraries on
15556 # powerpc, because MkLinux only supported shared libraries with the
15557 # GNU dynamic linker. Since this was broken with cross compilers,
15558 # most powerpc-linux boxes support dynamic linking these days and
15559 # people can always --disable-shared, the test was removed, and we
15560 # assume the GNU/Linux dynamic linker is in use.
15561 dynamic_linker='GNU/Linux ld.so'
15568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571 dynamic_linker='NetBSD (a.out) ld.so'
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 dynamic_linker='NetBSD ld.elf_so'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=no
15597 hardcode_into_libs=yes
15598 dynamic_linker='ldqnx.so'
15603 sys_lib_dlsearch_path_spec="/usr/lib"
15605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15607 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15608 *) need_version=no ;;
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15615 openbsd2.[89] | openbsd2.[89].*)
15616 shlibpath_overrides_runpath=no
15619 shlibpath_overrides_runpath=yes
15623 shlibpath_overrides_runpath=yes
15628 libname_spec='$name'
15631 library_names_spec='$libname${shared_ext} $libname.a'
15632 dynamic_linker='OS/2 ld.exe'
15633 shlibpath_var=LIBPATH
15636 osf3* | osf4* | osf5*)
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=yes
15659 hardcode_into_libs=yes
15660 # ldd complains unless libraries are executable
15661 postinstall_cmds='chmod +x $lib'
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 shlibpath_overrides_runpath=yes
15670 if test "$with_gnu_ld" = yes; then
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 case $host_vendor in
15683 shlibpath_overrides_runpath=no
15685 runpath_var=LD_RUN_PATH
15693 shlibpath_overrides_runpath=no
15694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15700 if test -d /usr/nec ;then
15702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15703 soname_spec='$libname${shared_ext}.$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15709 version_type=freebsd-elf
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15716 hardcode_into_libs=yes
15717 if test "$with_gnu_ld" = yes; then
15718 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15720 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15727 sys_lib_dlsearch_path_spec='/usr/lib'
15731 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=no
15738 hardcode_into_libs=yes
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 shlibpath_var=LD_LIBRARY_PATH
15752 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15753 echo "${ECHO_T}$dynamic_linker" >&6; }
15754 test "$dynamic_linker" = no && can_build_shared=no
15756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15757 if test "$GCC" = yes; then
15758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15762 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15803 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15805 hardcode_action_CXX=
15806 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15807 test -n "$runpath_var_CXX" ||
15808 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15810 # We can hardcode non-existent directories.
15811 if test "$hardcode_direct_CXX" != no &&
15812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15813 # have to relink, otherwise we might link with an installed library
15814 # when we should be linking with a yet-to-be-installed one
15815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15816 test "$hardcode_minus_L_CXX" != no; then
15817 # Linking always hardcodes the temporary library directory.
15818 hardcode_action_CXX=relink
15820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15821 hardcode_action_CXX=immediate
15824 # We cannot hardcode anything, or else we can only hardcode existing
15826 hardcode_action_CXX=unsupported
15828 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15829 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15831 if test "$hardcode_action_CXX" = relink ||
15832 test "$inherit_rpath_CXX" = yes; then
15833 # Fast installation is not supported
15834 enable_fast_install=no
15835 elif test "$shlibpath_overrides_runpath" = yes ||
15836 test "$enable_shared" = no; then
15837 # Fast installation is not necessary
15838 enable_fast_install=needless
15847 fi # test -n "$compiler"
15853 with_gnu_ld=$lt_save_with_gnu_ld
15854 lt_cv_path_LDCXX=$lt_cv_path_LD
15855 lt_cv_path_LD=$lt_save_path_LD
15856 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15857 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15858 fi # test "$_lt_caught_CXX_error" != yes
15861 ac_cpp='$CPP $CPPFLAGS'
15862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15878 ac_config_commands="$ac_config_commands libtool"
15883 # Only expand once:
15888 if test x$use_libtool != xno; then
15889 DEFAULT_OBJECT_TYPE=".lo"
15890 DEFAULT_ARCHIVE_TYPE=".la"
15891 DEFAULT_SHARED_OBJECT_TYPE=".la"
15892 LIBTOOL="\$(LIBTOOL)"
15893 LIBTOOL_INSTALL_TARGET="libtool-install"
15894 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15895 LIBTOOL_CLEAN_TARGET="libtool-clean"
15896 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15897 FD_PLUGIN_DIR="src/plugins/fd"
15900 DEFAULT_OBJECT_TYPE=".o"
15901 DEFAULT_ARCHIVE_TYPE=".a"
15902 DEFAULT_SHARED_OBJECT_TYPE=".so"
15903 LIBTOOL="# \$(LIBTOOL)"
15904 LIBTOOL_INSTALL_TARGET=""
15905 LIBTOOL_UNINSTALL_TARGET=""
15906 LIBTOOL_CLEAN_TARGET=""
15907 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15922 # Check whether --enable-includes was given.
15923 if test "${enable_includes+set}" = set; then
15924 enableval=$enable_includes;
15925 if test x$enableval = xyes; then
15926 install_includes=yes
15934 if test x$use_libtool != xno -a x$install_includes = xyes; then
15935 INCLUDE_INSTALL_TARGET="install-includes"
15936 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15938 INCLUDE_INSTALL_TARGET=""
15939 INCLUDE_UNINSTALL_TARGET=""
15945 { echo "$as_me:$LINENO: checking host system type" >&5
15946 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15947 if test "${ac_cv_host+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 if test "x$host_alias" = x; then
15951 ac_cv_host=$ac_cv_build
15953 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15954 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15955 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15956 { (exit 1); exit 1; }; }
15960 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15961 echo "${ECHO_T}$ac_cv_host" >&6; }
15962 case $ac_cv_host in
15964 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15965 echo "$as_me: error: invalid value of canonical host" >&2;}
15966 { (exit 1); exit 1; }; };;
15969 ac_save_IFS=$IFS; IFS='-'
15975 # Remember, the first character of IFS is used to create $*,
15976 # except with old shells:
15979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15983 *cygwin* ) CYGWIN=yes;;
15987 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15993 HAVE_SUN_OS_FALSE='#'
15995 HAVE_SUN_OS_TRUE='#'
15998 cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_SUN_OS 1
16007 HAVE_SUN_OS_FALSE='#'
16009 HAVE_SUN_OS_TRUE='#'
16014 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16020 HAVE_OSF1_OS_FALSE='#'
16022 HAVE_OSF1_OS_TRUE='#'
16023 HAVE_OSF1_OS_FALSE=
16025 cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_OSF1_OS 1
16034 HAVE_OSF1_OS_FALSE='#'
16036 HAVE_OSF1_OS_TRUE='#'
16037 HAVE_OSF1_OS_FALSE=
16041 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16047 HAVE_AIX_OS_FALSE='#'
16049 HAVE_AIX_OS_TRUE='#'
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_AIX_OS 1
16061 HAVE_AIX_OS_FALSE='#'
16063 HAVE_AIX_OS_TRUE='#'
16068 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16074 HAVE_HPUX_OS_FALSE='#'
16076 HAVE_HPUX_OS_TRUE='#'
16077 HAVE_HPUX_OS_FALSE=
16079 cat >>confdefs.h <<\_ACEOF
16080 #define HAVE_HPUX_OS 1
16088 HAVE_HPUX_OS_FALSE='#'
16090 HAVE_HPUX_OS_TRUE='#'
16091 HAVE_HPUX_OS_FALSE=
16095 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16100 HAVE_LINUX_OS_TRUE=
16101 HAVE_LINUX_OS_FALSE='#'
16103 HAVE_LINUX_OS_TRUE='#'
16104 HAVE_LINUX_OS_FALSE=
16106 cat >>confdefs.h <<\_ACEOF
16107 #define HAVE_LINUX_OS 1
16114 HAVE_LINUX_OS_TRUE=
16115 HAVE_LINUX_OS_FALSE='#'
16117 HAVE_LINUX_OS_TRUE='#'
16118 HAVE_LINUX_OS_FALSE=
16122 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16127 HAVE_FREEBSD_OS_TRUE=
16128 HAVE_FREEBSD_OS_FALSE='#'
16130 HAVE_FREEBSD_OS_TRUE='#'
16131 HAVE_FREEBSD_OS_FALSE=
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_FREEBSD_OS 1
16141 HAVE_FREEBSD_OS_TRUE=
16142 HAVE_FREEBSD_OS_FALSE='#'
16144 HAVE_FREEBSD_OS_TRUE='#'
16145 HAVE_FREEBSD_OS_FALSE=
16149 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16154 HAVE_NETBSD_OS_TRUE=
16155 HAVE_NETBSD_OS_FALSE='#'
16157 HAVE_NETBSD_OS_TRUE='#'
16158 HAVE_NETBSD_OS_FALSE=
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_NETBSD_OS 1
16168 HAVE_NETBSD_OS_TRUE=
16169 HAVE_NETBSD_OS_FALSE='#'
16171 HAVE_NETBSD_OS_TRUE='#'
16172 HAVE_NETBSD_OS_FALSE=
16176 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16181 HAVE_OPENBSD_OS_TRUE=
16182 HAVE_OPENBSD_OS_FALSE='#'
16184 HAVE_OPENBSD_OS_TRUE='#'
16185 HAVE_OPENBSD_OS_FALSE=
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_OPENBSD_OS 1
16195 HAVE_OPENBSD_OS_TRUE=
16196 HAVE_OPENBSD_OS_FALSE='#'
16198 HAVE_OPENBSD_OS_TRUE='#'
16199 HAVE_OPENBSD_OS_FALSE=
16203 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16209 HAVE_BSDI_OS_FALSE='#'
16211 HAVE_BSDI_OS_TRUE='#'
16212 HAVE_BSDI_OS_FALSE=
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_BSDI_OS 1
16223 HAVE_BSDI_OS_FALSE='#'
16225 HAVE_BSDI_OS_TRUE='#'
16226 HAVE_BSDI_OS_FALSE=
16230 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16236 HAVE_SGI_OS_FALSE='#'
16238 HAVE_SGI_OS_TRUE='#'
16241 cat >>confdefs.h <<\_ACEOF
16242 #define HAVE_SGI_OS 1
16250 HAVE_SGI_OS_FALSE='#'
16252 HAVE_SGI_OS_TRUE='#'
16257 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16263 HAVE_IRIX_OS_FALSE='#'
16265 HAVE_IRIX_OS_TRUE='#'
16266 HAVE_IRIX_OS_FALSE=
16268 cat >>confdefs.h <<\_ACEOF
16269 #define HAVE_IRIX_OS 1
16277 HAVE_IRIX_OS_FALSE='#'
16279 HAVE_IRIX_OS_TRUE='#'
16280 HAVE_IRIX_OS_FALSE=
16284 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16289 HAVE_DARWIN_OS_TRUE=
16290 HAVE_DARWIN_OS_FALSE='#'
16292 HAVE_DARWIN_OS_TRUE='#'
16293 HAVE_DARWIN_OS_FALSE=
16295 cat >>confdefs.h <<\_ACEOF
16296 #define HAVE_DARWIN_OS 1
16303 HAVE_DARWIN_OS_TRUE=
16304 HAVE_DARWIN_OS_FALSE='#'
16306 HAVE_DARWIN_OS_TRUE='#'
16307 HAVE_DARWIN_OS_FALSE=
16312 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16313 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16314 if test "x$DISTNAME" != "x"
16316 echo "distname set to $DISTNAME"
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16326 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16329 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16332 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16335 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16338 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16341 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16344 elif test -f /etc/SuSE-release
16347 elif test -d /etc/SuSEconfig
16350 elif test -f /etc/mandrake-release
16353 elif test -f /etc/whitebox-release
16356 elif test -f /etc/redhat-release
16359 elif test -f /etc/gentoo-release
16362 elif test -f /etc/debian_version
16365 elif test -f /etc/slackware-version
16368 elif test x$host_vendor = xapple
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16374 elif test -f /etc/engarde-version
16377 elif test "$CYGWIN" = yes
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_CYGWIN 1
16387 { echo "$as_me:$LINENO: result: done" >&5
16388 echo "${ECHO_T}done" >&6; }
16391 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16392 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16393 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16394 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 cat >conftest.make <<\_ACEOF
16400 @echo '@@@%%%=$(MAKE)=@@@%%%'
16402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16404 *@@@%%%=?*=@@@%%%*)
16405 eval ac_cv_prog_make_${ac_make}_set=yes;;
16407 eval ac_cv_prog_make_${ac_make}_set=no;;
16409 rm -f conftest.make
16411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16412 { echo "$as_me:$LINENO: result: yes" >&5
16413 echo "${ECHO_T}yes" >&6; }
16416 { echo "$as_me:$LINENO: result: no" >&5
16417 echo "${ECHO_T}no" >&6; }
16418 SET_MAKE="MAKE=${MAKE-make}"
16424 if test -n "$ac_aux_dir"; then
16425 case "$ac_aux_dir" in
16426 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16427 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16430 if test -z "$MKINSTALLDIRS"; then
16431 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16436 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16437 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16438 # Check whether --enable-nls was given.
16439 if test "${enable_nls+set}" = set; then
16440 enableval=$enable_nls; USE_NLS=$enableval
16445 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16446 echo "${ECHO_T}$USE_NLS" >&6; }
16453 # Prepare PATH_SEPARATOR.
16454 # The user is always right.
16455 if test "${PATH_SEPARATOR+set}" != set; then
16456 echo "#! /bin/sh" >conf$$.sh
16457 echo "exit 0" >>conf$$.sh
16459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16467 # Find out how to test for executable files. Don't use a zero-byte file,
16468 # as systems may use methods other than mode bits to determine executability.
16469 cat >conf$$.file <<_ASEOF
16473 chmod +x conf$$.file
16474 if test -x conf$$.file >/dev/null 2>&1; then
16475 ac_executable_p="test -x"
16477 ac_executable_p="test -f"
16481 # Extract the first word of "msgfmt", so it can be a program name with args.
16482 set dummy msgfmt; ac_word=$2
16483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16485 if test "${ac_cv_path_MSGFMT+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16494 for ac_dir in $PATH; do
16496 test -z "$ac_dir" && ac_dir=.
16497 for ac_exec_ext in '' $ac_executable_extensions; do
16498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16499 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16500 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16501 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16502 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16509 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16513 MSGFMT="$ac_cv_path_MSGFMT"
16514 if test "$MSGFMT" != ":"; then
16515 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16516 echo "${ECHO_T}$MSGFMT" >&6; }
16518 { echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6; }
16522 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16523 set dummy gmsgfmt; ac_word=$2
16524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16526 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16535 for as_dir in $PATH
16538 test -z "$as_dir" && as_dir=.
16539 for ac_exec_ext in '' $ac_executable_extensions; do
16540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16541 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16549 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16553 GMSGFMT=$ac_cv_path_GMSGFMT
16554 if test -n "$GMSGFMT"; then
16555 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16556 echo "${ECHO_T}$GMSGFMT" >&6; }
16558 { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16565 # Prepare PATH_SEPARATOR.
16566 # The user is always right.
16567 if test "${PATH_SEPARATOR+set}" != set; then
16568 echo "#! /bin/sh" >conf$$.sh
16569 echo "exit 0" >>conf$$.sh
16571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16579 # Find out how to test for executable files. Don't use a zero-byte file,
16580 # as systems may use methods other than mode bits to determine executability.
16581 cat >conf$$.file <<_ASEOF
16585 chmod +x conf$$.file
16586 if test -x conf$$.file >/dev/null 2>&1; then
16587 ac_executable_p="test -x"
16589 ac_executable_p="test -f"
16593 # Extract the first word of "xgettext", so it can be a program name with args.
16594 set dummy xgettext; ac_word=$2
16595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16597 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 case "$XGETTEXT" in
16602 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16605 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16606 for ac_dir in $PATH; do
16608 test -z "$ac_dir" && ac_dir=.
16609 for ac_exec_ext in '' $ac_executable_extensions; do
16610 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16611 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16612 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16613 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16614 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16621 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16625 XGETTEXT="$ac_cv_path_XGETTEXT"
16626 if test "$XGETTEXT" != ":"; then
16627 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16628 echo "${ECHO_T}$XGETTEXT" >&6; }
16630 { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16637 # Prepare PATH_SEPARATOR.
16638 # The user is always right.
16639 if test "${PATH_SEPARATOR+set}" != set; then
16640 echo "#! /bin/sh" >conf$$.sh
16641 echo "exit 0" >>conf$$.sh
16643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16651 # Find out how to test for executable files. Don't use a zero-byte file,
16652 # as systems may use methods other than mode bits to determine executability.
16653 cat >conf$$.file <<_ASEOF
16657 chmod +x conf$$.file
16658 if test -x conf$$.file >/dev/null 2>&1; then
16659 ac_executable_p="test -x"
16661 ac_executable_p="test -f"
16665 # Extract the first word of "msgmerge", so it can be a program name with args.
16666 set dummy msgmerge; ac_word=$2
16667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16669 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 case "$MSGMERGE" in
16674 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16677 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16678 for ac_dir in $PATH; do
16680 test -z "$ac_dir" && ac_dir=.
16681 for ac_exec_ext in '' $ac_executable_extensions; do
16682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16683 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16684 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16685 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16692 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16696 MSGMERGE="$ac_cv_path_MSGMERGE"
16697 if test "$MSGMERGE" != ":"; then
16698 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16699 echo "${ECHO_T}$MSGMERGE" >&6; }
16701 { echo "$as_me:$LINENO: result: no" >&5
16702 echo "${ECHO_T}no" >&6; }
16706 if test "$GMSGFMT" != ":"; then
16707 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16708 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16711 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16712 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16713 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16718 if test "$XGETTEXT" != ":"; then
16719 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16720 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16723 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16724 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16730 ac_config_commands="$ac_config_commands default-1"
16734 if test "X$prefix" = "XNONE"; then
16735 acl_final_prefix="$ac_default_prefix"
16737 acl_final_prefix="$prefix"
16739 if test "X$exec_prefix" = "XNONE"; then
16740 acl_final_exec_prefix='${prefix}'
16742 acl_final_exec_prefix="$exec_prefix"
16744 acl_save_prefix="$prefix"
16745 prefix="$acl_final_prefix"
16746 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16747 prefix="$acl_save_prefix"
16750 # Check whether --with-gnu-ld was given.
16751 if test "${with_gnu_ld+set}" = set; then
16752 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16757 # Prepare PATH_SEPARATOR.
16758 # The user is always right.
16759 if test "${PATH_SEPARATOR+set}" != set; then
16760 echo "#! /bin/sh" >conf$$.sh
16761 echo "exit 0" >>conf$$.sh
16763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16771 if test "$GCC" = yes; then
16772 # Check if gcc -print-prog-name=ld gives a path.
16773 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16774 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16777 # gcc leaves a trailing carriage return which upsets mingw
16778 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16780 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16783 # Accept absolute paths.
16784 [\\/]* | [A-Za-z]:[\\/]*)
16785 re_direlt='/[^/][^/]*/\.\./'
16786 # Canonicalize the path of ld
16787 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16788 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16789 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16791 test -z "$LD" && LD="$ac_prog"
16794 # If it fails, then pretend we aren't using GCC.
16798 # If it is relative, then search for the first ld in PATH.
16799 with_gnu_ld=unknown
16802 elif test "$with_gnu_ld" = yes; then
16803 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16804 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16806 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16807 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16809 if test "${acl_cv_path_LD+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 if test -z "$LD"; then
16813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16814 for ac_dir in $PATH; do
16815 test -z "$ac_dir" && ac_dir=.
16816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16817 acl_cv_path_LD="$ac_dir/$ac_prog"
16818 # Check to see if the program is GNU ld. I'd rather use --version,
16819 # but apparently some GNU ld's only accept -v.
16820 # Break only if it was the GNU/non-GNU ld that we prefer.
16821 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16822 *GNU* | *'with BFD'*)
16823 test "$with_gnu_ld" != no && break ;;
16825 test "$with_gnu_ld" != yes && break ;;
16831 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16835 LD="$acl_cv_path_LD"
16836 if test -n "$LD"; then
16837 { echo "$as_me:$LINENO: result: $LD" >&5
16838 echo "${ECHO_T}$LD" >&6; }
16840 { echo "$as_me:$LINENO: result: no" >&5
16841 echo "${ECHO_T}no" >&6; }
16843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16845 { (exit 1); exit 1; }; }
16846 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16852 case `$LD -v 2>&1 </dev/null` in
16853 *GNU* | *'with BFD'*)
16854 acl_cv_prog_gnu_ld=yes ;;
16856 acl_cv_prog_gnu_ld=no ;;
16859 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16860 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16861 with_gnu_ld=$acl_cv_prog_gnu_ld
16866 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16867 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16868 if test "${acl_cv_rpath+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16873 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16875 rm -f ./conftest.sh
16879 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16880 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16882 libext="$acl_cv_libext"
16883 shlibext="$acl_cv_shlibext"
16884 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16885 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16886 hardcode_direct="$acl_cv_hardcode_direct"
16887 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16888 # Check whether --enable-rpath was given.
16889 if test "${enable_rpath+set}" = set; then
16890 enableval=$enable_rpath; :
16904 acl_save_prefix="$prefix"
16905 prefix="$acl_final_prefix"
16906 acl_save_exec_prefix="$exec_prefix"
16907 exec_prefix="$acl_final_exec_prefix"
16909 eval additional_includedir=\"$includedir\"
16910 eval additional_libdir=\"$libdir\"
16912 exec_prefix="$acl_save_exec_prefix"
16913 prefix="$acl_save_prefix"
16916 # Check whether --with-libiconv-prefix was given.
16917 if test "${with_libiconv_prefix+set}" = set; then
16918 withval=$with_libiconv_prefix;
16919 if test "X$withval" = "Xno"; then
16922 if test "X$withval" = "X"; then
16924 acl_save_prefix="$prefix"
16925 prefix="$acl_final_prefix"
16926 acl_save_exec_prefix="$exec_prefix"
16927 exec_prefix="$acl_final_exec_prefix"
16929 eval additional_includedir=\"$includedir\"
16930 eval additional_libdir=\"$libdir\"
16932 exec_prefix="$acl_save_exec_prefix"
16933 prefix="$acl_save_prefix"
16936 additional_includedir="$withval/include"
16937 additional_libdir="$withval/lib"
16948 names_already_handled=
16949 names_next_round='iconv '
16950 while test -n "$names_next_round"; do
16951 names_this_round="$names_next_round"
16953 for name in $names_this_round; do
16955 for n in $names_already_handled; do
16956 if test "$n" = "$name"; then
16957 already_handled=yes
16961 if test -z "$already_handled"; then
16962 names_already_handled="$names_already_handled $name"
16963 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16964 eval value=\"\$HAVE_LIB$uppername\"
16965 if test -n "$value"; then
16966 if test "$value" = yes; then
16967 eval value=\"\$LIB$uppername\"
16968 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16969 eval value=\"\$LTLIB$uppername\"
16970 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16979 if test $use_additional = yes; then
16980 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16981 found_dir="$additional_libdir"
16982 found_so="$additional_libdir/lib$name.$shlibext"
16983 if test -f "$additional_libdir/lib$name.la"; then
16984 found_la="$additional_libdir/lib$name.la"
16987 if test -f "$additional_libdir/lib$name.$libext"; then
16988 found_dir="$additional_libdir"
16989 found_a="$additional_libdir/lib$name.$libext"
16990 if test -f "$additional_libdir/lib$name.la"; then
16991 found_la="$additional_libdir/lib$name.la"
16996 if test "X$found_dir" = "X"; then
16997 for x in $LDFLAGS $LTLIBICONV; do
16999 acl_save_prefix="$prefix"
17000 prefix="$acl_final_prefix"
17001 acl_save_exec_prefix="$exec_prefix"
17002 exec_prefix="$acl_final_exec_prefix"
17004 exec_prefix="$acl_save_exec_prefix"
17005 prefix="$acl_save_prefix"
17009 dir=`echo "X$x" | sed -e 's/^X-L//'`
17010 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17012 found_so="$dir/lib$name.$shlibext"
17013 if test -f "$dir/lib$name.la"; then
17014 found_la="$dir/lib$name.la"
17017 if test -f "$dir/lib$name.$libext"; then
17019 found_a="$dir/lib$name.$libext"
17020 if test -f "$dir/lib$name.la"; then
17021 found_la="$dir/lib$name.la"
17027 if test "X$found_dir" != "X"; then
17032 if test "X$found_dir" != "X"; then
17033 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17034 if test "X$found_so" != "X"; then
17035 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17039 for x in $ltrpathdirs; do
17040 if test "X$x" = "X$found_dir"; then
17045 if test -z "$haveit"; then
17046 ltrpathdirs="$ltrpathdirs $found_dir"
17048 if test "$hardcode_direct" = yes; then
17049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17051 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17054 for x in $rpathdirs; do
17055 if test "X$x" = "X$found_dir"; then
17060 if test -z "$haveit"; then
17061 rpathdirs="$rpathdirs $found_dir"
17065 for x in $LDFLAGS $LIBICONV; do
17067 acl_save_prefix="$prefix"
17068 prefix="$acl_final_prefix"
17069 acl_save_exec_prefix="$exec_prefix"
17070 exec_prefix="$acl_final_exec_prefix"
17072 exec_prefix="$acl_save_exec_prefix"
17073 prefix="$acl_save_prefix"
17075 if test "X$x" = "X-L$found_dir"; then
17080 if test -z "$haveit"; then
17081 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17083 if test "$hardcode_minus_L" != no; then
17084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17092 if test "X$found_a" != "X"; then
17093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17098 additional_includedir=
17099 case "$found_dir" in
17101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17102 additional_includedir="$basedir/include"
17105 if test "X$additional_includedir" != "X"; then
17106 if test "X$additional_includedir" != "X/usr/include"; then
17108 if test "X$additional_includedir" = "X/usr/local/include"; then
17109 if test -n "$GCC"; then
17111 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17115 if test -z "$haveit"; then
17116 for x in $CPPFLAGS $INCICONV; do
17118 acl_save_prefix="$prefix"
17119 prefix="$acl_final_prefix"
17120 acl_save_exec_prefix="$exec_prefix"
17121 exec_prefix="$acl_final_exec_prefix"
17123 exec_prefix="$acl_save_exec_prefix"
17124 prefix="$acl_save_prefix"
17126 if test "X$x" = "X-I$additional_includedir"; then
17131 if test -z "$haveit"; then
17132 if test -d "$additional_includedir"; then
17133 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17139 if test -n "$found_la"; then
17140 save_libdir="$libdir"
17141 case "$found_la" in
17142 */* | *\\*) . "$found_la" ;;
17143 *) . "./$found_la" ;;
17145 libdir="$save_libdir"
17146 for dep in $dependency_libs; do
17149 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17150 if test "X$additional_libdir" != "X/usr/lib"; then
17152 if test "X$additional_libdir" = "X/usr/local/lib"; then
17153 if test -n "$GCC"; then
17155 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17159 if test -z "$haveit"; then
17161 for x in $LDFLAGS $LIBICONV; do
17163 acl_save_prefix="$prefix"
17164 prefix="$acl_final_prefix"
17165 acl_save_exec_prefix="$exec_prefix"
17166 exec_prefix="$acl_final_exec_prefix"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17171 if test "X$x" = "X-L$additional_libdir"; then
17176 if test -z "$haveit"; then
17177 if test -d "$additional_libdir"; then
17178 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17182 for x in $LDFLAGS $LTLIBICONV; do
17184 acl_save_prefix="$prefix"
17185 prefix="$acl_final_prefix"
17186 acl_save_exec_prefix="$exec_prefix"
17187 exec_prefix="$acl_final_exec_prefix"
17189 exec_prefix="$acl_save_exec_prefix"
17190 prefix="$acl_save_prefix"
17192 if test "X$x" = "X-L$additional_libdir"; then
17197 if test -z "$haveit"; then
17198 if test -d "$additional_libdir"; then
17199 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17206 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17207 if test "$enable_rpath" != no; then
17209 for x in $rpathdirs; do
17210 if test "X$x" = "X$dir"; then
17215 if test -z "$haveit"; then
17216 rpathdirs="$rpathdirs $dir"
17219 for x in $ltrpathdirs; do
17220 if test "X$x" = "X$dir"; then
17225 if test -z "$haveit"; then
17226 ltrpathdirs="$ltrpathdirs $dir"
17231 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17234 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17237 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17244 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17251 if test "X$rpathdirs" != "X"; then
17252 if test -n "$hardcode_libdir_separator"; then
17254 for found_dir in $rpathdirs; do
17255 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17257 acl_save_libdir="$libdir"
17259 eval flag=\"$hardcode_libdir_flag_spec\"
17260 libdir="$acl_save_libdir"
17261 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17263 for found_dir in $rpathdirs; do
17264 acl_save_libdir="$libdir"
17265 libdir="$found_dir"
17266 eval flag=\"$hardcode_libdir_flag_spec\"
17267 libdir="$acl_save_libdir"
17268 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17272 if test "X$ltrpathdirs" != "X"; then
17273 for found_dir in $ltrpathdirs; do
17274 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17295 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17296 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17297 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 gt_save_CPPFLAGS="$CPPFLAGS"
17301 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17302 gt_save_LIBS="$LIBS"
17303 LIBS="$LIBS -framework CoreFoundation"
17304 cat >conftest.$ac_ext <<_ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 #include <CFPreferences.h>
17314 CFPreferencesCopyAppValue(NULL, NULL)
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>conftest.er1
17328 grep -v '^ *+' conftest.er1 >conftest.err
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest$ac_exeext &&
17336 $as_test_x conftest$ac_exeext; then
17337 gt_cv_func_CFPreferencesCopyAppValue=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 gt_cv_func_CFPreferencesCopyAppValue=no
17345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17346 conftest$ac_exeext conftest.$ac_ext
17347 CPPFLAGS="$gt_save_CPPFLAGS"
17348 LIBS="$gt_save_LIBS"
17350 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17351 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17352 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17359 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17360 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17361 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 gt_save_CPPFLAGS="$CPPFLAGS"
17365 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17366 gt_save_LIBS="$LIBS"
17367 LIBS="$LIBS -framework CoreFoundation"
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <CFLocale.h>
17378 CFLocaleCopyCurrent();
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && {
17397 test -z "$ac_c_werror_flag" ||
17398 test ! -s conftest.err
17399 } && test -s conftest$ac_exeext &&
17400 $as_test_x conftest$ac_exeext; then
17401 gt_cv_func_CFLocaleCopyCurrent=yes
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 gt_cv_func_CFLocaleCopyCurrent=no
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410 conftest$ac_exeext conftest.$ac_ext
17411 CPPFLAGS="$gt_save_CPPFLAGS"
17412 LIBS="$gt_save_LIBS"
17414 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17415 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17416 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17418 cat >>confdefs.h <<\_ACEOF
17419 #define HAVE_CFLOCALECOPYCURRENT 1
17424 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17425 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17431 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17432 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17433 # Check whether --enable-nls was given.
17434 if test "${enable_nls+set}" = set; then
17435 enableval=$enable_nls; USE_NLS=$enableval
17440 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17441 echo "${ECHO_T}$USE_NLS" >&6; }
17450 if test "$USE_NLS" = "yes"; then
17451 gt_use_preinstalled_gnugettext=no
17458 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17459 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17460 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 #include <libintl.h>
17470 extern int _nl_msg_cat_cntr;
17471 extern int *_nl_domain_bindings;
17475 bindtextdomain ("", "");
17476 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest$ac_exeext &&
17498 $as_test_x conftest$ac_exeext; then
17499 gt_cv_func_gnugettext1_libc=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 gt_cv_func_gnugettext1_libc=no
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17510 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17511 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17513 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17519 am_save_CPPFLAGS="$CPPFLAGS"
17521 for element in $INCICONV; do
17523 for x in $CPPFLAGS; do
17525 acl_save_prefix="$prefix"
17526 prefix="$acl_final_prefix"
17527 acl_save_exec_prefix="$exec_prefix"
17528 exec_prefix="$acl_final_exec_prefix"
17530 exec_prefix="$acl_save_exec_prefix"
17531 prefix="$acl_save_prefix"
17533 if test "X$x" = "X$element"; then
17538 if test -z "$haveit"; then
17539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17544 { echo "$as_me:$LINENO: checking for iconv" >&5
17545 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17546 if test "${am_cv_func_iconv+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 am_cv_func_iconv="no, consider installing GNU libiconv"
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 #include <stdlib.h>
17563 iconv_t cd = iconv_open("","");
17564 iconv(cd,NULL,NULL,NULL,NULL);
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
17588 am_cv_func_iconv=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17597 conftest$ac_exeext conftest.$ac_ext
17598 if test "$am_cv_func_iconv" != yes; then
17599 am_save_LIBS="$LIBS"
17600 LIBS="$LIBS $LIBICONV"
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 #include <stdlib.h>
17612 iconv_t cd = iconv_open("","");
17613 iconv(cd,NULL,NULL,NULL,NULL);
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_link") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest$ac_exeext &&
17636 $as_test_x conftest$ac_exeext; then
17637 am_cv_lib_iconv=yes
17638 am_cv_func_iconv=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS="$am_save_LIBS"
17652 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17653 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17654 if test "$am_cv_func_iconv" = yes; then
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_ICONV 1
17661 if test "$am_cv_lib_iconv" = yes; then
17662 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17663 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17664 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17665 echo "${ECHO_T}$LIBICONV" >&6; }
17667 CPPFLAGS="$am_save_CPPFLAGS"
17679 acl_save_prefix="$prefix"
17680 prefix="$acl_final_prefix"
17681 acl_save_exec_prefix="$exec_prefix"
17682 exec_prefix="$acl_final_exec_prefix"
17684 eval additional_includedir=\"$includedir\"
17685 eval additional_libdir=\"$libdir\"
17687 exec_prefix="$acl_save_exec_prefix"
17688 prefix="$acl_save_prefix"
17691 # Check whether --with-libintl-prefix was given.
17692 if test "${with_libintl_prefix+set}" = set; then
17693 withval=$with_libintl_prefix;
17694 if test "X$withval" = "Xno"; then
17697 if test "X$withval" = "X"; then
17699 acl_save_prefix="$prefix"
17700 prefix="$acl_final_prefix"
17701 acl_save_exec_prefix="$exec_prefix"
17702 exec_prefix="$acl_final_exec_prefix"
17704 eval additional_includedir=\"$includedir\"
17705 eval additional_libdir=\"$libdir\"
17707 exec_prefix="$acl_save_exec_prefix"
17708 prefix="$acl_save_prefix"
17711 additional_includedir="$withval/include"
17712 additional_libdir="$withval/lib"
17723 names_already_handled=
17724 names_next_round='intl '
17725 while test -n "$names_next_round"; do
17726 names_this_round="$names_next_round"
17728 for name in $names_this_round; do
17730 for n in $names_already_handled; do
17731 if test "$n" = "$name"; then
17732 already_handled=yes
17736 if test -z "$already_handled"; then
17737 names_already_handled="$names_already_handled $name"
17738 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17739 eval value=\"\$HAVE_LIB$uppername\"
17740 if test -n "$value"; then
17741 if test "$value" = yes; then
17742 eval value=\"\$LIB$uppername\"
17743 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17744 eval value=\"\$LTLIB$uppername\"
17745 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17754 if test $use_additional = yes; then
17755 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17756 found_dir="$additional_libdir"
17757 found_so="$additional_libdir/lib$name.$shlibext"
17758 if test -f "$additional_libdir/lib$name.la"; then
17759 found_la="$additional_libdir/lib$name.la"
17762 if test -f "$additional_libdir/lib$name.$libext"; then
17763 found_dir="$additional_libdir"
17764 found_a="$additional_libdir/lib$name.$libext"
17765 if test -f "$additional_libdir/lib$name.la"; then
17766 found_la="$additional_libdir/lib$name.la"
17771 if test "X$found_dir" = "X"; then
17772 for x in $LDFLAGS $LTLIBINTL; do
17774 acl_save_prefix="$prefix"
17775 prefix="$acl_final_prefix"
17776 acl_save_exec_prefix="$exec_prefix"
17777 exec_prefix="$acl_final_exec_prefix"
17779 exec_prefix="$acl_save_exec_prefix"
17780 prefix="$acl_save_prefix"
17784 dir=`echo "X$x" | sed -e 's/^X-L//'`
17785 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17787 found_so="$dir/lib$name.$shlibext"
17788 if test -f "$dir/lib$name.la"; then
17789 found_la="$dir/lib$name.la"
17792 if test -f "$dir/lib$name.$libext"; then
17794 found_a="$dir/lib$name.$libext"
17795 if test -f "$dir/lib$name.la"; then
17796 found_la="$dir/lib$name.la"
17802 if test "X$found_dir" != "X"; then
17807 if test "X$found_dir" != "X"; then
17808 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17809 if test "X$found_so" != "X"; then
17810 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17814 for x in $ltrpathdirs; do
17815 if test "X$x" = "X$found_dir"; then
17820 if test -z "$haveit"; then
17821 ltrpathdirs="$ltrpathdirs $found_dir"
17823 if test "$hardcode_direct" = yes; then
17824 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17826 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17827 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17829 for x in $rpathdirs; do
17830 if test "X$x" = "X$found_dir"; then
17835 if test -z "$haveit"; then
17836 rpathdirs="$rpathdirs $found_dir"
17840 for x in $LDFLAGS $LIBINTL; do
17842 acl_save_prefix="$prefix"
17843 prefix="$acl_final_prefix"
17844 acl_save_exec_prefix="$exec_prefix"
17845 exec_prefix="$acl_final_exec_prefix"
17847 exec_prefix="$acl_save_exec_prefix"
17848 prefix="$acl_save_prefix"
17850 if test "X$x" = "X-L$found_dir"; then
17855 if test -z "$haveit"; then
17856 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17858 if test "$hardcode_minus_L" != no; then
17859 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17867 if test "X$found_a" != "X"; then
17868 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17870 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17873 additional_includedir=
17874 case "$found_dir" in
17876 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17877 additional_includedir="$basedir/include"
17880 if test "X$additional_includedir" != "X"; then
17881 if test "X$additional_includedir" != "X/usr/include"; then
17883 if test "X$additional_includedir" = "X/usr/local/include"; then
17884 if test -n "$GCC"; then
17886 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17890 if test -z "$haveit"; then
17891 for x in $CPPFLAGS $INCINTL; do
17893 acl_save_prefix="$prefix"
17894 prefix="$acl_final_prefix"
17895 acl_save_exec_prefix="$exec_prefix"
17896 exec_prefix="$acl_final_exec_prefix"
17898 exec_prefix="$acl_save_exec_prefix"
17899 prefix="$acl_save_prefix"
17901 if test "X$x" = "X-I$additional_includedir"; then
17906 if test -z "$haveit"; then
17907 if test -d "$additional_includedir"; then
17908 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17914 if test -n "$found_la"; then
17915 save_libdir="$libdir"
17916 case "$found_la" in
17917 */* | *\\*) . "$found_la" ;;
17918 *) . "./$found_la" ;;
17920 libdir="$save_libdir"
17921 for dep in $dependency_libs; do
17924 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17925 if test "X$additional_libdir" != "X/usr/lib"; then
17927 if test "X$additional_libdir" = "X/usr/local/lib"; then
17928 if test -n "$GCC"; then
17930 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17934 if test -z "$haveit"; then
17936 for x in $LDFLAGS $LIBINTL; do
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17946 if test "X$x" = "X-L$additional_libdir"; then
17951 if test -z "$haveit"; then
17952 if test -d "$additional_libdir"; then
17953 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17957 for x in $LDFLAGS $LTLIBINTL; do
17959 acl_save_prefix="$prefix"
17960 prefix="$acl_final_prefix"
17961 acl_save_exec_prefix="$exec_prefix"
17962 exec_prefix="$acl_final_exec_prefix"
17964 exec_prefix="$acl_save_exec_prefix"
17965 prefix="$acl_save_prefix"
17967 if test "X$x" = "X-L$additional_libdir"; then
17972 if test -z "$haveit"; then
17973 if test -d "$additional_libdir"; then
17974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17981 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17982 if test "$enable_rpath" != no; then
17984 for x in $rpathdirs; do
17985 if test "X$x" = "X$dir"; then
17990 if test -z "$haveit"; then
17991 rpathdirs="$rpathdirs $dir"
17994 for x in $ltrpathdirs; do
17995 if test "X$x" = "X$dir"; then
18000 if test -z "$haveit"; then
18001 ltrpathdirs="$ltrpathdirs $dir"
18006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18012 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18019 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18020 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18026 if test "X$rpathdirs" != "X"; then
18027 if test -n "$hardcode_libdir_separator"; then
18029 for found_dir in $rpathdirs; do
18030 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18032 acl_save_libdir="$libdir"
18034 eval flag=\"$hardcode_libdir_flag_spec\"
18035 libdir="$acl_save_libdir"
18036 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18038 for found_dir in $rpathdirs; do
18039 acl_save_libdir="$libdir"
18040 libdir="$found_dir"
18041 eval flag=\"$hardcode_libdir_flag_spec\"
18042 libdir="$acl_save_libdir"
18043 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18047 if test "X$ltrpathdirs" != "X"; then
18048 for found_dir in $ltrpathdirs; do
18049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18053 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18054 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18055 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 gt_save_CPPFLAGS="$CPPFLAGS"
18059 CPPFLAGS="$CPPFLAGS $INCINTL"
18060 gt_save_LIBS="$LIBS"
18061 LIBS="$LIBS $LIBINTL"
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 #include <libintl.h>
18069 extern int _nl_msg_cat_cntr;
18074 const char *_nl_expand_alias (const char *);
18078 bindtextdomain ("", "");
18079 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18102 gt_cv_func_gnugettext1_libintl=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 gt_cv_func_gnugettext1_libintl=no
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111 conftest$ac_exeext conftest.$ac_ext
18112 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18113 LIBS="$LIBS $LIBICONV"
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <libintl.h>
18121 extern int _nl_msg_cat_cntr;
18126 const char *_nl_expand_alias (const char *);
18130 bindtextdomain ("", "");
18131 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 LIBINTL="$LIBINTL $LIBICONV"
18155 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18156 gt_cv_func_gnugettext1_libintl=yes
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18166 conftest$ac_exeext conftest.$ac_ext
18168 CPPFLAGS="$gt_save_CPPFLAGS"
18169 LIBS="$gt_save_LIBS"
18171 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18172 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18175 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18176 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18177 && test "$PACKAGE" != gettext-runtime \
18178 && test "$PACKAGE" != gettext-tools; }; then
18179 gt_use_preinstalled_gnugettext=yes
18188 if test -n "$INTL_MACOSX_LIBS"; then
18189 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18190 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18191 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18192 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18196 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18197 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18199 cat >>confdefs.h <<\_ACEOF
18200 #define ENABLE_NLS 1
18208 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18209 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18210 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18211 echo "${ECHO_T}$USE_NLS" >&6; }
18212 if test "$USE_NLS" = "yes"; then
18213 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18214 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18215 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18216 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18217 gt_source="external libintl"
18222 gt_source="included intl directory"
18224 { echo "$as_me:$LINENO: result: $gt_source" >&5
18225 echo "${ECHO_T}$gt_source" >&6; }
18228 if test "$USE_NLS" = "yes"; then
18230 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18231 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18232 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18233 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18234 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18235 echo "${ECHO_T}$LIBINTL" >&6; }
18237 for element in $INCINTL; do
18239 for x in $CPPFLAGS; do
18241 acl_save_prefix="$prefix"
18242 prefix="$acl_final_prefix"
18243 acl_save_exec_prefix="$exec_prefix"
18244 exec_prefix="$acl_final_exec_prefix"
18246 exec_prefix="$acl_save_exec_prefix"
18247 prefix="$acl_save_prefix"
18249 if test "X$x" = "X$element"; then
18254 if test -z "$haveit"; then
18255 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_GETTEXT 1
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_DCGETTEXT 1
18278 INTLLIBS="$LIBINTL"
18286 os_name=`uname -s 2>/dev/null`
18287 if test x${prefix} = xNONE ; then
18288 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18289 sysconfdir=/etc/bacula
18292 if test `eval echo ${libdir}` = NONE/lib ; then
18295 os_processor=`uname -p 2>/dev/null`
18296 case ${os_processor} in
18311 if test `eval echo ${includedir}` = NONE/include ; then
18312 includedir=/usr/include
18315 if test `eval echo ${datarootdir}` = NONE/share ; then
18316 datarootdir=/usr/share
18321 if test x${exec_prefix} = xNONE ; then
18322 exec_prefix=${prefix}
18325 sysconfdir=`eval echo ${sysconfdir}`
18326 datarootdir=`eval echo ${datarootdir}`
18327 docdir=`eval echo ${docdir}`
18328 htmldir=`eval echo ${htmldir}`
18329 libdir=`eval echo ${libdir}`
18330 includedir=`eval echo ${includedir}`
18331 localedir=`eval echo ${datarootdir}/locale`
18332 cat >>confdefs.h <<_ACEOF
18333 #define SYSCONFDIR "$sysconfdir"
18336 cat >>confdefs.h <<_ACEOF
18337 #define LOCALEDIR "$localedir"
18341 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18342 sbindir=${exec_prefix}/sbin
18344 sbindir=`eval echo ${sbindir}`
18346 if test x$mandir = x'${prefix}/man' ; then
18347 mandir=/usr/share/man
18350 if test x$htmldir = x${docdir} ; then
18351 htmldir=`eval echo ${docdir}bacula/html`
18354 if test x$docdir = x'/usr/share/doc/' ; then
18355 docdir=`eval echo ${docdir}bacula`
18359 for ac_prog in msgfmt
18361 # Extract the first word of "$ac_prog", so it can be a program name with args.
18362 set dummy $ac_prog; ac_word=$2
18363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18365 if test "${ac_cv_path_MSGFMT+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18374 for as_dir in $PATH
18377 test -z "$as_dir" && as_dir=.
18378 for ac_exec_ext in '' $ac_executable_extensions; do
18379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18380 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18391 MSGFMT=$ac_cv_path_MSGFMT
18392 if test -n "$MSGFMT"; then
18393 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18394 echo "${ECHO_T}$MSGFMT" >&6; }
18396 { echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6; }
18401 test -n "$MSGFMT" && break
18403 test -n "$MSGFMT" || MSGFMT="no"
18405 if test "$MSGFMT" = "no"
18407 echo 'msgfmt program not found, disabling NLS !'
18409 USE_INCLUDED_LIBINTL=no
18412 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18413 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18414 if test "${ac_cv_gnu_library_2+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18424 #include <features.h>
18425 #ifdef __GNU_LIBRARY__
18426 #if (__GLIBC__ >= 2)
18432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18433 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18434 ac_cv_gnu_library_2=yes
18436 ac_cv_gnu_library_2=no
18443 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18444 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18446 GLIBC2="$ac_cv_gnu_library_2"
18449 if test -n "$ac_tool_prefix"; then
18450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18454 if test "${ac_cv_prog_RANLIB+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 if test -n "$RANLIB"; then
18458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18461 for as_dir in $PATH
18464 test -z "$as_dir" && as_dir=.
18465 for ac_exec_ext in '' $ac_executable_extensions; do
18466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18477 RANLIB=$ac_cv_prog_RANLIB
18478 if test -n "$RANLIB"; then
18479 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18480 echo "${ECHO_T}$RANLIB" >&6; }
18482 { echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6; }
18488 if test -z "$ac_cv_prog_RANLIB"; then
18489 ac_ct_RANLIB=$RANLIB
18490 # Extract the first word of "ranlib", so it can be a program name with args.
18491 set dummy ranlib; ac_word=$2
18492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18494 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 if test -n "$ac_ct_RANLIB"; then
18498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501 for as_dir in $PATH
18504 test -z "$as_dir" && as_dir=.
18505 for ac_exec_ext in '' $ac_executable_extensions; do
18506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18507 ac_cv_prog_ac_ct_RANLIB="ranlib"
18508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18518 if test -n "$ac_ct_RANLIB"; then
18519 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18520 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18522 { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18526 if test "x$ac_ct_RANLIB" = x; then
18529 case $cross_compiling:$ac_tool_warned in
18531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18532 whose name does not start with the host triplet. If you think this
18533 configuration is useful to you, please write to autoconf@gnu.org." >&5
18534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18535 whose name does not start with the host triplet. If you think this
18536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18537 ac_tool_warned=yes ;;
18539 RANLIB=$ac_ct_RANLIB
18542 RANLIB="$ac_cv_prog_RANLIB"
18546 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18547 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18548 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 ac_check_lib_save_LIBS=$LIBS
18552 LIBS="-lcposix $LIBS"
18553 cat >conftest.$ac_ext <<_ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18560 /* Override any GCC internal prototype to avoid an error.
18561 Use char because int might match the return type of a GCC
18562 builtin and then its argument prototype would still apply. */
18570 return strerror ();
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest$ac_exeext &&
18592 $as_test_x conftest$ac_exeext; then
18593 ac_cv_lib_cposix_strerror=yes
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_cv_lib_cposix_strerror=no
18601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18602 conftest$ac_exeext conftest.$ac_ext
18603 LIBS=$ac_check_lib_save_LIBS
18605 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18606 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18607 if test $ac_cv_lib_cposix_strerror = yes; then
18608 LIBS="$LIBS -lcposix"
18613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18615 if test "${ac_cv_c_const+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18628 /* FIXME: Include the comments suggested by Paul. */
18629 #ifndef __cplusplus
18630 /* Ultrix mips cc rejects this. */
18631 typedef int charset[2];
18633 /* SunOS 4.1.1 cc rejects this. */
18634 char const *const *pcpcc;
18636 /* NEC SVR4.0.2 mips cc rejects this. */
18637 struct point {int x, y;};
18638 static struct point const zero = {0,0};
18639 /* AIX XL C 1.02.0.0 rejects this.
18640 It does not let you subtract one const X* pointer from another in
18641 an arm of an if-expression whose if-part is not a constant
18643 const char *g = "string";
18644 pcpcc = &g + (g ? g-g : 0);
18645 /* HPUX 7.0 cc rejects these. */
18647 ppc = (char**) pcpcc;
18648 pcpcc = (char const *const *) ppc;
18649 { /* SCO 3.2v4 cc rejects this. */
18651 char const *s = 0 ? (char *) 0 : (char const *) 0;
18656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18657 int x[] = {25, 17};
18658 const int *foo = &x[0];
18661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18662 typedef const int *iptr;
18666 { /* AIX XL C 1.02.0.0 rejects this saying
18667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18668 struct s { int j; const int *ap[3]; };
18669 struct s *b; b->j = 5;
18671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18672 const int foo = 10;
18673 if (!foo) return 0;
18675 return !cs[0] && !zero.x;
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18711 if test $ac_cv_c_const = no; then
18713 cat >>confdefs.h <<\_ACEOF
18720 { echo "$as_me:$LINENO: checking for signed" >&5
18721 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18722 if test "${bh_cv_c_signed+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18768 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18769 if test $bh_cv_c_signed = no; then
18771 cat >>confdefs.h <<\_ACEOF
18777 { echo "$as_me:$LINENO: checking for inline" >&5
18778 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18779 if test "${ac_cv_c_inline+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 for ac_kw in inline __inline__ __inline; do
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 #ifndef __cplusplus
18792 static $ac_kw foo_t static_foo () {return 0; }
18793 $ac_kw foo_t foo () {return 0; }
18797 rm -f conftest.$ac_objext
18798 if { (ac_try="$ac_compile"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_compile") 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } && {
18811 test -z "$ac_c_werror_flag" ||
18812 test ! -s conftest.err
18813 } && test -s conftest.$ac_objext; then
18814 ac_cv_c_inline=$ac_kw
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 test "$ac_cv_c_inline" != no && break
18827 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18828 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18831 case $ac_cv_c_inline in
18834 case $ac_cv_c_inline in
18836 *) ac_val=$ac_cv_c_inline;;
18838 cat >>confdefs.h <<_ACEOF
18839 #ifndef __cplusplus
18840 #define inline $ac_val
18846 { echo "$as_me:$LINENO: checking for off_t" >&5
18847 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18848 if test "${ac_cv_type_off_t+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 cat >conftest.$ac_ext <<_ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857 $ac_includes_default
18858 typedef off_t ac__type_new_;
18862 if ((ac__type_new_ *) 0)
18864 if (sizeof (ac__type_new_))
18870 rm -f conftest.$ac_objext
18871 if { (ac_try="$ac_compile"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_compile") 2>conftest.er1
18879 grep -v '^ *+' conftest.er1 >conftest.err
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } && {
18884 test -z "$ac_c_werror_flag" ||
18885 test ! -s conftest.err
18886 } && test -s conftest.$ac_objext; then
18887 ac_cv_type_off_t=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_type_off_t=no
18895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18898 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18899 if test $ac_cv_type_off_t = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define off_t long int
18909 { echo "$as_me:$LINENO: checking for size_t" >&5
18910 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18911 if test "${ac_cv_type_size_t+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 cat >conftest.$ac_ext <<_ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 $ac_includes_default
18921 typedef size_t ac__type_new_;
18925 if ((ac__type_new_ *) 0)
18927 if (sizeof (ac__type_new_))
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18950 ac_cv_type_size_t=yes
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_type_size_t=no
18958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18961 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18962 if test $ac_cv_type_size_t = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967 #define size_t unsigned int
18973 { echo "$as_me:$LINENO: checking for long long" >&5
18974 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18975 if test "${ac_cv_type_long_long+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 long long ll = 1LL; int i = 63;
18988 long long llmax = (long long) -1;
18989 return ll << i | ll >> i | llmax / ll | llmax % ll;
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_link") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1 >conftest.err
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && {
19008 test -z "$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19010 } && test -s conftest$ac_exeext &&
19011 $as_test_x conftest$ac_exeext; then
19012 ac_cv_type_long_long=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_type_long_long=no
19020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19021 conftest$ac_exeext conftest.$ac_ext
19023 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19024 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19025 if test $ac_cv_type_long_long = yes; then
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_LONG_LONG 1
19034 { echo "$as_me:$LINENO: checking for long double" >&5
19035 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19036 if test "${gt_cv_c_long_double+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 if test "$GCC" = yes; then
19040 gt_cv_c_long_double=yes
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19049 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19050 long double foo = 0.0;
19051 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19052 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19062 rm -f conftest.$ac_objext
19063 if { (ac_try="$ac_compile"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_compile") 2>conftest.er1
19071 grep -v '^ *+' conftest.er1 >conftest.err
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest.$ac_objext; then
19079 gt_cv_c_long_double=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 gt_cv_c_long_double=no
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19091 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19092 if test $gt_cv_c_long_double = yes; then
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_LONG_DOUBLE 1
19101 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19102 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19103 if test "${gt_cv_c_wchar_t+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 #include <stddef.h>
19113 wchar_t foo = (wchar_t)'\0';
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_compile") 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest.$ac_objext; then
19139 gt_cv_c_wchar_t=yes
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19150 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19151 if test $gt_cv_c_wchar_t = yes; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE_WCHAR_T 1
19160 { echo "$as_me:$LINENO: checking for wint_t" >&5
19161 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19162 if test "${gt_cv_c_wint_t+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19172 wint_t foo = (wchar_t)'\0';
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest.$ac_objext; then
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19209 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19210 if test $gt_cv_c_wint_t = yes; then
19212 cat >>confdefs.h <<\_ACEOF
19213 #define HAVE_WINT_T 1
19219 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19220 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19221 if test "${gl_cv_header_inttypes_h+set}" = set; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 #include <sys/types.h>
19231 #include <inttypes.h>
19235 uintmax_t i = (uintmax_t) -1;
19240 rm -f conftest.$ac_objext
19241 if { (ac_try="$ac_compile"
19242 case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_compile") 2>conftest.er1
19249 grep -v '^ *+' conftest.er1 >conftest.err
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } && {
19254 test -z "$ac_c_werror_flag" ||
19255 test ! -s conftest.err
19256 } && test -s conftest.$ac_objext; then
19257 gl_cv_header_inttypes_h=yes
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 gl_cv_header_inttypes_h=no
19265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19268 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19269 if test $gl_cv_header_inttypes_h = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19278 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19279 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19280 if test "${gl_cv_header_stdint_h+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19289 #include <sys/types.h>
19290 #include <stdint.h>
19294 uintmax_t i = (uintmax_t) -1;
19299 rm -f conftest.$ac_objext
19300 if { (ac_try="$ac_compile"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_compile") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest.$ac_objext; then
19316 gl_cv_header_stdint_h=yes
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 gl_cv_header_stdint_h=no
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19327 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19328 if test $gl_cv_header_stdint_h = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_STDINT_H_WITH_UINTMAX 1
19339 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19340 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19341 if test "${gt_cv_c_intmax_t+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 #include <stddef.h>
19352 #include <stdlib.h>
19353 #if HAVE_STDINT_H_WITH_UINTMAX
19354 #include <stdint.h>
19356 #if HAVE_INTTYPES_H_WITH_UINTMAX
19357 #include <inttypes.h>
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_compile") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest.$ac_objext; then
19385 gt_cv_c_intmax_t=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 gt_cv_c_intmax_t=no
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19396 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19397 if test $gt_cv_c_intmax_t = yes; then
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_INTMAX_T 1
19407 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19408 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19409 if test "${gt_cv_func_printf_posix+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 if test "$cross_compiling" = yes; then
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19422 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19428 $EGREP "notposix" >/dev/null 2>&1; then
19429 gt_cv_func_printf_posix="guessing no"
19431 gt_cv_func_printf_posix="guessing yes"
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19445 #include <string.h>
19446 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19447 dollar expansion (possibly an autoconf bug). */
19448 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19449 static char buf[100];
19452 sprintf (buf, format, 33, 55);
19453 return (strcmp (buf, "55 33") != 0);
19456 rm -f conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_link") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 gt_cv_func_printf_posix=yes
19478 echo "$as_me: program exited with status $ac_status" >&5
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ( exit $ac_status )
19483 gt_cv_func_printf_posix=no
19485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19491 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19492 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19493 case $gt_cv_func_printf_posix in
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_POSIX_PRINTF 1
19503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19504 # for constant arguments. Useless!
19505 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19507 if test "${ac_cv_working_alloca_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <alloca.h>
19520 char *p = (char *) alloca (2 * sizeof (int));
19526 rm -f conftest.$ac_objext conftest$ac_exeext
19527 if { (ac_try="$ac_link"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_link") 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && {
19540 test -z "$ac_c_werror_flag" ||
19541 test ! -s conftest.err
19542 } && test -s conftest$ac_exeext &&
19543 $as_test_x conftest$ac_exeext; then
19544 ac_cv_working_alloca_h=yes
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_working_alloca_h=no
19552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19553 conftest$ac_exeext conftest.$ac_ext
19555 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19557 if test $ac_cv_working_alloca_h = yes; then
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ALLOCA_H 1
19565 { echo "$as_me:$LINENO: checking for alloca" >&5
19566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_alloca_works+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19577 # define alloca __builtin_alloca
19580 # include <malloc.h>
19581 # define alloca _alloca
19583 # ifdef HAVE_ALLOCA_H
19584 # include <alloca.h>
19589 # ifndef alloca /* predefined by HP cc +Olibcalls */
19600 char *p = (char *) alloca (1);
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_link") 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && {
19620 test -z "$ac_c_werror_flag" ||
19621 test ! -s conftest.err
19622 } && test -s conftest$ac_exeext &&
19623 $as_test_x conftest$ac_exeext; then
19624 ac_cv_func_alloca_works=yes
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_cv_func_alloca_works=no
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633 conftest$ac_exeext conftest.$ac_ext
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19638 if test $ac_cv_func_alloca_works = yes; then
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_ALLOCA 1
19645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19646 # that cause trouble. Some versions do not even contain alloca or
19647 # contain a buggy version. If you still want to use their alloca,
19648 # use ar to extract alloca.o from them instead of compiling alloca.c.
19650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19652 cat >>confdefs.h <<\_ACEOF
19657 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19659 if test "${ac_cv_os_cray+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 cat >conftest.$ac_ext <<_ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 #if defined CRAY && ! defined CRAY2
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676 $EGREP "webecray" >/dev/null 2>&1; then
19684 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19685 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19686 if test $ac_cv_os_cray = yes; then
19687 for ac_func in _getb67 GETB67 getb67; do
19688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19702 #define $ac_func innocuous_$ac_func
19704 /* System header to define __stub macros and hopefully few prototypes,
19705 which can conflict with char $ac_func (); below.
19706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19707 <limits.h> exists even on freestanding compilers. */
19710 # include <limits.h>
19712 # include <assert.h>
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19724 /* The GNU C library defines this for functions which it implements
19725 to always fail with ENOSYS. Some functions are actually named
19726 something starting with __ and the normal name is an alias. */
19727 #if defined __stub_$ac_func || defined __stub___$ac_func
19734 return $ac_func ();
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext &&
19756 $as_test_x conftest$ac_exeext; then
19757 eval "$as_ac_var=yes"
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 eval "$as_ac_var=no"
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766 conftest$ac_exeext conftest.$ac_ext
19768 ac_res=`eval echo '${'$as_ac_var'}'`
19769 { echo "$as_me:$LINENO: result: $ac_res" >&5
19770 echo "${ECHO_T}$ac_res" >&6; }
19771 if test `eval echo '${'$as_ac_var'}'` = yes; then
19773 cat >>confdefs.h <<_ACEOF
19774 #define CRAY_STACKSEG_END $ac_func
19783 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19785 if test "${ac_cv_c_stack_direction+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 if test "$cross_compiling" = yes; then
19789 ac_cv_c_stack_direction=0
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19799 find_stack_direction ()
19801 static char *addr = 0;
19806 return find_stack_direction ();
19809 return (&dummy > addr) ? 1 : -1;
19815 return find_stack_direction () < 0;
19818 rm -f conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19829 { (case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_try") 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 ac_cv_c_stack_direction=1
19840 echo "$as_me: program exited with status $ac_status" >&5
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ( exit $ac_status )
19845 ac_cv_c_stack_direction=-1
19847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19852 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19855 cat >>confdefs.h <<_ACEOF
19856 #define STACK_DIRECTION $ac_cv_c_stack_direction
19864 for ac_header in stdlib.h unistd.h
19866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 ac_res=`eval echo '${'$as_ac_Header'}'`
19874 { echo "$as_me:$LINENO: result: $ac_res" >&5
19875 echo "${ECHO_T}$ac_res" >&6; }
19877 # Is the header compilable?
19878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19887 #include <$ac_header>
19889 rm -f conftest.$ac_objext
19890 if { (ac_try="$ac_compile"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_compile") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest.$ac_objext; then
19906 ac_header_compiler=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_header_compiler=no
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19916 echo "${ECHO_T}$ac_header_compiler" >&6; }
19918 # Is the header present?
19919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <$ac_header>
19929 if { (ac_try="$ac_cpp conftest.$ac_ext"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } >/dev/null && {
19942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19945 ac_header_preproc=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_header_preproc=no
19953 rm -f conftest.err conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19955 echo "${ECHO_T}$ac_header_preproc" >&6; }
19957 # So? What about this header?
19958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19964 ac_header_preproc=yes
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 eval "$as_ac_Header=\$ac_header_preproc"
19989 ac_res=`eval echo '${'$as_ac_Header'}'`
19990 { echo "$as_me:$LINENO: result: $ac_res" >&5
19991 echo "${ECHO_T}$ac_res" >&6; }
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20004 for ac_func in getpagesize
20006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20020 #define $ac_func innocuous_$ac_func
20022 /* System header to define __stub macros and hopefully few prototypes,
20023 which can conflict with char $ac_func (); below.
20024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20025 <limits.h> exists even on freestanding compilers. */
20028 # include <limits.h>
20030 # include <assert.h>
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20042 /* The GNU C library defines this for functions which it implements
20043 to always fail with ENOSYS. Some functions are actually named
20044 something starting with __ and the normal name is an alias. */
20045 #if defined __stub_$ac_func || defined __stub___$ac_func
20052 return $ac_func ();
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_link") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest$ac_exeext &&
20074 $as_test_x conftest$ac_exeext; then
20075 eval "$as_ac_var=yes"
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 eval "$as_ac_var=no"
20083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20084 conftest$ac_exeext conftest.$ac_ext
20086 ac_res=`eval echo '${'$as_ac_var'}'`
20087 { echo "$as_me:$LINENO: result: $ac_res" >&5
20088 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_var'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20097 { echo "$as_me:$LINENO: checking for working mmap" >&5
20098 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20099 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 if test "$cross_compiling" = yes; then
20103 ac_cv_func_mmap_fixed_mapped=no
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 $ac_includes_default
20112 /* malloc might have been renamed as rpl_malloc. */
20115 /* Thanks to Mike Haertel and Jim Avera for this test.
20116 Here is a matrix of mmap possibilities:
20117 mmap private not fixed
20118 mmap private fixed at somewhere currently unmapped
20119 mmap private fixed at somewhere already mapped
20120 mmap shared not fixed
20121 mmap shared fixed at somewhere currently unmapped
20122 mmap shared fixed at somewhere already mapped
20123 For private mappings, we should verify that changes cannot be read()
20124 back from the file, nor mmap's back from the file at a different
20125 address. (There have been systems where private was not correctly
20126 implemented like the infamous i386 svr4.0, and systems where the
20127 VM page cache was not coherent with the file system buffer cache
20128 like early versions of FreeBSD and possibly contemporary NetBSD.)
20129 For shared mappings, we should conversely verify that changes get
20130 propagated back to all the places they're supposed to be.
20132 Grep wants private fixed already mapped.
20133 The main things grep needs to know about mmap are:
20134 * does it exist and is it safe to write into the mmap'd area
20135 * how to use it (BSD variants) */
20138 #include <sys/mman.h>
20140 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20144 /* This mess was copied from the GNU getpagesize.h. */
20145 #ifndef HAVE_GETPAGESIZE
20146 /* Assume that all systems that can run configure have sys/param.h. */
20147 # ifndef HAVE_SYS_PARAM_H
20148 # define HAVE_SYS_PARAM_H 1
20151 # ifdef _SC_PAGESIZE
20152 # define getpagesize() sysconf(_SC_PAGESIZE)
20153 # else /* no _SC_PAGESIZE */
20154 # ifdef HAVE_SYS_PARAM_H
20155 # include <sys/param.h>
20156 # ifdef EXEC_PAGESIZE
20157 # define getpagesize() EXEC_PAGESIZE
20158 # else /* no EXEC_PAGESIZE */
20160 # define getpagesize() NBPG * CLSIZE
20163 # endif /* no CLSIZE */
20164 # else /* no NBPG */
20166 # define getpagesize() NBPC
20167 # else /* no NBPC */
20169 # define getpagesize() PAGESIZE
20170 # endif /* PAGESIZE */
20171 # endif /* no NBPC */
20172 # endif /* no NBPG */
20173 # endif /* no EXEC_PAGESIZE */
20174 # else /* no HAVE_SYS_PARAM_H */
20175 # define getpagesize() 8192 /* punt totally */
20176 # endif /* no HAVE_SYS_PARAM_H */
20177 # endif /* no _SC_PAGESIZE */
20179 #endif /* no HAVE_GETPAGESIZE */
20184 char *data, *data2, *data3;
20188 pagesize = getpagesize ();
20190 /* First, make a file with some known garbage in it. */
20191 data = (char *) malloc (pagesize);
20194 for (i = 0; i < pagesize; ++i)
20195 *(data + i) = rand ();
20197 fd = creat ("conftest.mmap", 0600);
20200 if (write (fd, data, pagesize) != pagesize)
20204 /* Next, try to mmap the file at a fixed address which already has
20205 something else allocated at it. If we can, also make sure that
20206 we see the same garbage. */
20207 fd = open ("conftest.mmap", O_RDWR);
20210 data2 = (char *) malloc (2 * pagesize);
20213 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20217 for (i = 0; i < pagesize; ++i)
20218 if (*(data + i) != *(data2 + i))
20221 /* Finally, make sure that changes to the mapped area do not
20222 percolate back to the file as seen by read(). (This is a bug on
20223 some variants of i386 svr4.0.) */
20224 for (i = 0; i < pagesize; ++i)
20225 *(data2 + i) = *(data2 + i) + 1;
20226 data3 = (char *) malloc (pagesize);
20229 if (read (fd, data3, pagesize) != pagesize)
20231 for (i = 0; i < pagesize; ++i)
20232 if (*(data + i) != *(data3 + i))
20238 rm -f conftest$ac_exeext
20239 if { (ac_try="$ac_link"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_cv_func_mmap_fixed_mapped=yes
20260 echo "$as_me: program exited with status $ac_status" >&5
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ( exit $ac_status )
20265 ac_cv_func_mmap_fixed_mapped=no
20267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20273 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_MMAP 1
20281 rm -f conftest.mmap
20284 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20285 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20286 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <features.h>
20297 #ifdef __GNU_LIBRARY__
20298 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20305 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20306 ac_cv_gnu_library_2_1=yes
20308 ac_cv_gnu_library_2_1=no
20315 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20316 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20318 GLIBC21="$ac_cv_gnu_library_2_1"
20323 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20324 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20325 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 if test "$cross_compiling" = yes; then
20331 # Guess based on the CPU.
20332 case "$host_cpu" in
20333 alpha* | i3456786 | m68k | s390*)
20334 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20336 gt_cv_int_divbyzero_sigfpe="guessing no";;
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 #include <stdlib.h>
20348 #include <signal.h>
20352 sigfpe_handler (int sig)
20354 sigfpe_handler (sig) int sig;
20357 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20358 exit (sig != SIGFPE);
20368 signal (SIGFPE, sigfpe_handler);
20369 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20370 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20371 signal (SIGTRAP, sigfpe_handler);
20373 /* Linux/SPARC yields signal SIGILL. */
20374 #if defined (__sparc__) && defined (__linux__)
20375 signal (SIGILL, sigfpe_handler);
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 gt_cv_int_divbyzero_sigfpe=yes
20406 echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ( exit $ac_status )
20411 gt_cv_int_divbyzero_sigfpe=no
20413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20419 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20420 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20421 case "$gt_cv_int_divbyzero_sigfpe" in
20426 cat >>confdefs.h <<_ACEOF
20427 #define INTDIV0_RAISES_SIGFPE $value
20432 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20433 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20434 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 unsigned long long ull = 1ULL; int i = 63;
20447 unsigned long long ullmax = (unsigned long long) -1;
20448 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 ac_cv_type_unsigned_long_long=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_type_unsigned_long_long=no
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20483 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20484 if test $ac_cv_type_unsigned_long_long = yes; then
20486 cat >>confdefs.h <<\_ACEOF
20487 #define HAVE_UNSIGNED_LONG_LONG 1
20495 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20497 test $ac_cv_type_unsigned_long_long = yes \
20498 && ac_type='unsigned long long' \
20499 || ac_type='unsigned long'
20501 cat >>confdefs.h <<_ACEOF
20502 #define uintmax_t $ac_type
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_UINTMAX_T 1
20514 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20515 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20516 if test "${gt_cv_header_inttypes_h+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <sys/types.h>
20527 #include <inttypes.h>
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_compile") 2>conftest.er1
20545 grep -v '^ *+' conftest.er1 >conftest.err
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest.$ac_objext; then
20553 gt_cv_header_inttypes_h=yes
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 gt_cv_header_inttypes_h=no
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20565 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20566 if test $gt_cv_header_inttypes_h = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_INTTYPES_H 1
20576 if test $gt_cv_header_inttypes_h = yes; then
20577 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20578 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20579 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 #include <inttypes.h>
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
20619 gt_cv_inttypes_pri_broken=no
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 gt_cv_inttypes_pri_broken=yes
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20631 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20633 if test "$gt_cv_inttypes_pri_broken" = yes; then
20635 cat >>confdefs.h <<_ACEOF
20636 #define PRI_MACROS_BROKEN 1
20643 for ac_header in stdint.h
20645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 ac_res=`eval echo '${'$as_ac_Header'}'`
20653 { echo "$as_me:$LINENO: result: $ac_res" >&5
20654 echo "${ECHO_T}$ac_res" >&6; }
20656 # Is the header compilable?
20657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20666 #include <$ac_header>
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_compile") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest.$ac_objext; then
20685 ac_header_compiler=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_header_compiler=no
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20695 echo "${ECHO_T}$ac_header_compiler" >&6; }
20697 # Is the header present?
20698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 #include <$ac_header>
20708 if { (ac_try="$ac_cpp conftest.$ac_ext"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } >/dev/null && {
20721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20724 ac_header_preproc=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_header_preproc=no
20732 rm -f conftest.err conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20734 echo "${ECHO_T}$ac_header_preproc" >&6; }
20736 # So? What about this header?
20737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20743 ac_header_preproc=yes
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 eval "$as_ac_Header=\$ac_header_preproc"
20768 ac_res=`eval echo '${'$as_ac_Header'}'`
20769 { echo "$as_me:$LINENO: result: $ac_res" >&5
20770 echo "${ECHO_T}$ac_res" >&6; }
20773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20774 cat >>confdefs.h <<_ACEOF
20775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20782 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20783 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20792 #include <limits.h>
20794 #include <stdint.h>
20801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20802 $EGREP "Found it" >/dev/null 2>&1; then
20807 if test -z "$result"; then
20808 if test "$cross_compiling" = yes; then
20809 # Depending upon the size, compute the lo and hi bounds.
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 #include <stddef.h>
20820 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_compile") 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest.$ac_objext; then
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 #include <stddef.h>
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20872 grep -v '^ *+' conftest.er1 >conftest.err
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20880 ac_hi=$ac_mid; break
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_lo=`expr $ac_mid + 1`
20886 if test $ac_lo -le $ac_mid; then
20890 ac_mid=`expr 2 '*' $ac_mid + 1`
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 #include <stddef.h>
20909 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest.$ac_objext; then
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 #include <stddef.h>
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_compile") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1 >conftest.err
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest.$ac_objext; then
20969 ac_lo=$ac_mid; break
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_hi=`expr '(' $ac_mid ')' - 1`
20975 if test $ac_mid -le $ac_hi; then
20979 ac_mid=`expr 2 '*' $ac_mid`
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 # Binary search between lo and hi bounds.
20996 while test "x$ac_lo" != "x$ac_hi"; do
20997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 #include <stddef.h>
21008 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21015 rm -f conftest.$ac_objext
21016 if { (ac_try="$ac_compile"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_compile") 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest.$ac_objext; then
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 ac_lo=`expr '(' $ac_mid ')' + 1`
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 ?*) res_hi=$ac_lo;;
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 #include <stddef.h>
21054 static long int longval () { return ~(size_t)0 / 10; }
21055 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21057 #include <stdlib.h>
21062 FILE *f = fopen ("conftest.val", "w");
21065 if ((~(size_t)0 / 10) < 0)
21067 long int i = longval ();
21068 if (i != (~(size_t)0 / 10))
21070 fprintf (f, "%ld\n", i);
21074 unsigned long int i = ulongval ();
21075 if (i != (~(size_t)0 / 10))
21077 fprintf (f, "%lu\n", i);
21079 return ferror (f) || fclose (f) != 0;
21085 rm -f conftest$ac_exeext
21086 if { (ac_try="$ac_link"
21087 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_link") 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21096 { (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); }; }; then
21105 res_hi=`cat conftest.val`
21107 echo "$as_me: program exited with status $ac_status" >&5
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ( exit $ac_status )
21114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21118 if test "$cross_compiling" = yes; then
21119 # Depending upon the size, compute the lo and hi bounds.
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <stddef.h>
21130 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21137 rm -f conftest.$ac_objext
21138 if { (ac_try="$ac_compile"
21139 case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_compile") 2>conftest.er1
21146 grep -v '^ *+' conftest.er1 >conftest.err
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && {
21151 test -z "$ac_c_werror_flag" ||
21152 test ! -s conftest.err
21153 } && test -s conftest.$ac_objext; then
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <stddef.h>
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21190 ac_hi=$ac_mid; break
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21195 ac_lo=`expr $ac_mid + 1`
21196 if test $ac_lo -le $ac_mid; then
21200 ac_mid=`expr 2 '*' $ac_mid + 1`
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 #include <stddef.h>
21219 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21226 rm -f conftest.$ac_objext
21227 if { (ac_try="$ac_compile"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <stddef.h>
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21279 ac_lo=$ac_mid; break
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_hi=`expr '(' $ac_mid ')' - 1`
21285 if test $ac_mid -le $ac_hi; then
21289 ac_mid=`expr 2 '*' $ac_mid`
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 # Binary search between lo and hi bounds.
21306 while test "x$ac_lo" != "x$ac_hi"; do
21307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 #include <stddef.h>
21318 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_compile") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && {
21339 test -z "$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 } && test -s conftest.$ac_objext; then
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ac_lo=`expr '(' $ac_mid ')' + 1`
21350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 ?*) res_lo=$ac_lo;;
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 #include <stddef.h>
21364 static long int longval () { return ~(size_t)0 % 10; }
21365 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21367 #include <stdlib.h>
21372 FILE *f = fopen ("conftest.val", "w");
21375 if ((~(size_t)0 % 10) < 0)
21377 long int i = longval ();
21378 if (i != (~(size_t)0 % 10))
21380 fprintf (f, "%ld\n", i);
21384 unsigned long int i = ulongval ();
21385 if (i != (~(size_t)0 % 10))
21387 fprintf (f, "%lu\n", i);
21389 return ferror (f) || fclose (f) != 0;
21395 rm -f conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_link") 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406 { (case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_try") 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 res_lo=`cat conftest.val`
21417 echo "$as_me: program exited with status $ac_status" >&5
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ( exit $ac_status )
21424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21428 if test "$cross_compiling" = yes; then
21429 # Depending upon the size, compute the lo and hi bounds.
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 #include <stddef.h>
21440 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1 >conftest.err
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <stddef.h>
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 ac_hi=$ac_mid; break
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_lo=`expr $ac_mid + 1`
21506 if test $ac_lo -le $ac_mid; then
21510 ac_mid=`expr 2 '*' $ac_mid + 1`
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 cat >conftest.$ac_ext <<_ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 #include <stddef.h>
21529 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <stddef.h>
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_lo=$ac_mid; break
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_hi=`expr '(' $ac_mid ')' - 1`
21595 if test $ac_mid -le $ac_hi; then
21599 ac_mid=`expr 2 '*' $ac_mid`
21602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 # Binary search between lo and hi bounds.
21616 while test "x$ac_lo" != "x$ac_hi"; do
21617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <stddef.h>
21628 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21644 grep -v '^ *+' conftest.er1 >conftest.err
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_lo=`expr '(' $ac_mid ')' + 1`
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663 ?*) fits_in_uint=$ac_lo;;
21667 cat >conftest.$ac_ext <<_ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <stddef.h>
21674 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21675 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21677 #include <stdlib.h>
21682 FILE *f = fopen ("conftest.val", "w");
21685 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21687 long int i = longval ();
21688 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21690 fprintf (f, "%ld\n", i);
21694 unsigned long int i = ulongval ();
21695 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21697 fprintf (f, "%lu\n", i);
21699 return ferror (f) || fclose (f) != 0;
21705 rm -f conftest$ac_exeext
21706 if { (ac_try="$ac_link"
21707 case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_link") 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 fits_in_uint=`cat conftest.val`
21727 echo "$as_me: program exited with status $ac_status" >&5
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ( exit $ac_status )
21734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21738 if test "$fits_in_uint" = 1; then
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 #include <stddef.h>
21747 extern unsigned long foo;
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_compile") 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest.$ac_objext; then
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 if test -z "$result"; then
21785 if test "$fits_in_uint" = 1; then
21786 result="$res_hi$res_lo"U
21788 result="$res_hi$res_lo"UL
21791 result='~(size_t)0'
21794 { echo "$as_me:$LINENO: result: $result" >&5
21795 echo "${ECHO_T}$result" >&6; }
21796 if test "$result" != yes; then
21798 cat >>confdefs.h <<_ACEOF
21799 #define SIZE_MAX $result
21808 for ac_header in stdint.h
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_compiler=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21881 grep -v '^ *+' conftest.er1 >conftest.err
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } >/dev/null && {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21889 ac_header_preproc=yes
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ac_header_preproc=no
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908 ac_header_preproc=yes
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 eval "$as_ac_Header=\$ac_header_preproc"
21933 ac_res=`eval echo '${'$as_ac_Header'}'`
21934 { echo "$as_me:$LINENO: result: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21954 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21955 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21956 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 $ac_includes_default
21966 typedef ptrdiff_t ac__type_new_;
21970 if ((ac__type_new_ *) 0)
21972 if (sizeof (ac__type_new_))
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_compile") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest.$ac_objext; then
21995 ac_cv_type_ptrdiff_t=yes
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_type_ptrdiff_t=no
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22006 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22007 if test $ac_cv_type_ptrdiff_t = yes; then
22011 cat >>confdefs.h <<\_ACEOF
22012 #define ptrdiff_t long
22028 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22029 stdlib.h string.h unistd.h sys/param.h
22031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 ac_res=`eval echo '${'$as_ac_Header'}'`
22039 { echo "$as_me:$LINENO: result: $ac_res" >&5
22040 echo "${ECHO_T}$ac_res" >&6; }
22042 # Is the header compilable?
22043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22045 cat >conftest.$ac_ext <<_ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 $ac_includes_default
22052 #include <$ac_header>
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^ *+' conftest.er1 >conftest.err
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_header_compiler=yes
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_header_compiler=no
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22081 echo "${ECHO_T}$ac_header_compiler" >&6; }
22083 # Is the header present?
22084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 #include <$ac_header>
22094 if { (ac_try="$ac_cpp conftest.$ac_ext"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } >/dev/null && {
22107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22110 ac_header_preproc=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_header_preproc=no
22118 rm -f conftest.err conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22120 echo "${ECHO_T}$ac_header_preproc" >&6; }
22122 # So? What about this header?
22123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22129 ac_header_preproc=yes
22132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 eval "$as_ac_Header=\$ac_header_preproc"
22154 ac_res=`eval echo '${'$as_ac_Header'}'`
22155 { echo "$as_me:$LINENO: result: $ac_res" >&5
22156 echo "${ECHO_T}$ac_res" >&6; }
22159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22160 cat >>confdefs.h <<_ACEOF
22161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22191 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22192 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22193 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22210 #define $ac_func innocuous_$ac_func
22212 /* System header to define __stub macros and hopefully few prototypes,
22213 which can conflict with char $ac_func (); below.
22214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215 <limits.h> exists even on freestanding compilers. */
22218 # include <limits.h>
22220 # include <assert.h>
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22232 /* The GNU C library defines this for functions which it implements
22233 to always fail with ENOSYS. Some functions are actually named
22234 something starting with __ and the normal name is an alias. */
22235 #if defined __stub_$ac_func || defined __stub___$ac_func
22242 return $ac_func ();
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (ac_try="$ac_link"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_link") 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest$ac_exeext &&
22264 $as_test_x conftest$ac_exeext; then
22265 eval "$as_ac_var=yes"
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270 eval "$as_ac_var=no"
22273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22274 conftest$ac_exeext conftest.$ac_ext
22276 ac_res=`eval echo '${'$as_ac_var'}'`
22277 { echo "$as_me:$LINENO: result: $ac_res" >&5
22278 echo "${ECHO_T}$ac_res" >&6; }
22279 if test `eval echo '${'$as_ac_var'}'` = yes; then
22280 cat >>confdefs.h <<_ACEOF
22281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22289 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22290 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22291 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22306 char *p = (char *) _snprintf;
22313 rm -f conftest.$ac_objext
22314 if { (ac_try="$ac_compile"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
22330 ac_cv_have_decl__snprintf=yes
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_cv_have_decl__snprintf=no
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22341 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22342 if test $ac_cv_have_decl__snprintf = yes; then
22348 cat >>confdefs.h <<_ACEOF
22349 #define HAVE_DECL__SNPRINTF $gt_value
22354 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22355 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22356 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 cat >conftest.$ac_ext <<_ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22371 char *p = (char *) _snwprintf;
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_cv_have_decl__snwprintf=yes
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_cv_have_decl__snwprintf=no
22403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22406 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22407 if test $ac_cv_have_decl__snwprintf = yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL__SNWPRINTF $gt_value
22420 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22421 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22422 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22436 #ifndef feof_unlocked
22437 char *p = (char *) feof_unlocked;
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_cv_have_decl_feof_unlocked=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_cv_have_decl_feof_unlocked=no
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22472 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22473 if test $ac_cv_have_decl_feof_unlocked = yes; then
22479 cat >>confdefs.h <<_ACEOF
22480 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22485 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22486 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22487 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22501 #ifndef fgets_unlocked
22502 char *p = (char *) fgets_unlocked;
22509 rm -f conftest.$ac_objext
22510 if { (ac_try="$ac_compile"
22511 case "(($ac_try" in
22512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513 *) ac_try_echo=$ac_try;;
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516 (eval "$ac_compile") 2>conftest.er1
22518 grep -v '^ *+' conftest.er1 >conftest.err
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } && {
22523 test -z "$ac_c_werror_flag" ||
22524 test ! -s conftest.err
22525 } && test -s conftest.$ac_objext; then
22526 ac_cv_have_decl_fgets_unlocked=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 ac_cv_have_decl_fgets_unlocked=no
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22537 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22538 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22550 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22551 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22552 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22566 #ifndef getc_unlocked
22567 char *p = (char *) getc_unlocked;
22574 rm -f conftest.$ac_objext
22575 if { (ac_try="$ac_compile"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_compile") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest.$ac_objext; then
22591 ac_cv_have_decl_getc_unlocked=yes
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_have_decl_getc_unlocked=no
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22602 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22603 if test $ac_cv_have_decl_getc_unlocked = yes; then
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22615 case $gt_cv_func_printf_posix in
22616 *yes) HAVE_POSIX_PRINTF=1 ;;
22617 *) HAVE_POSIX_PRINTF=0 ;;
22620 if test "$ac_cv_func_asprintf" = yes; then
22626 if test "$ac_cv_func_snprintf" = yes; then
22632 if test "$ac_cv_func_wprintf" = yes; then
22644 am_save_CPPFLAGS="$CPPFLAGS"
22646 for element in $INCICONV; do
22648 for x in $CPPFLAGS; do
22650 acl_save_prefix="$prefix"
22651 prefix="$acl_final_prefix"
22652 acl_save_exec_prefix="$exec_prefix"
22653 exec_prefix="$acl_final_exec_prefix"
22655 exec_prefix="$acl_save_exec_prefix"
22656 prefix="$acl_save_prefix"
22658 if test "X$x" = "X$element"; then
22663 if test -z "$haveit"; then
22664 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22669 { echo "$as_me:$LINENO: checking for iconv" >&5
22670 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22671 if test "${am_cv_func_iconv+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22675 am_cv_func_iconv="no, consider installing GNU libiconv"
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 #include <stdlib.h>
22688 iconv_t cd = iconv_open("","");
22689 iconv(cd,NULL,NULL,NULL,NULL);
22695 rm -f conftest.$ac_objext conftest$ac_exeext
22696 if { (ac_try="$ac_link"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_link") 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest$ac_exeext &&
22712 $as_test_x conftest$ac_exeext; then
22713 am_cv_func_iconv=yes
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22722 conftest$ac_exeext conftest.$ac_ext
22723 if test "$am_cv_func_iconv" != yes; then
22724 am_save_LIBS="$LIBS"
22725 LIBS="$LIBS $LIBICONV"
22726 cat >conftest.$ac_ext <<_ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 #include <stdlib.h>
22737 iconv_t cd = iconv_open("","");
22738 iconv(cd,NULL,NULL,NULL,NULL);
22744 rm -f conftest.$ac_objext conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_link") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest$ac_exeext &&
22761 $as_test_x conftest$ac_exeext; then
22762 am_cv_lib_iconv=yes
22763 am_cv_func_iconv=yes
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22772 conftest$ac_exeext conftest.$ac_ext
22773 LIBS="$am_save_LIBS"
22777 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22778 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22779 if test "$am_cv_func_iconv" = yes; then
22781 cat >>confdefs.h <<\_ACEOF
22782 #define HAVE_ICONV 1
22786 if test "$am_cv_lib_iconv" = yes; then
22787 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22788 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22789 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22790 echo "${ECHO_T}$LIBICONV" >&6; }
22792 CPPFLAGS="$am_save_CPPFLAGS"
22799 if test "$am_cv_func_iconv" = yes; then
22800 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22801 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22802 if test "${am_cv_proto_iconv+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22813 #include <stdlib.h>
22819 #if defined(__STDC__) || defined(__cplusplus)
22820 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 am_cv_proto_iconv_arg1=""
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 am_cv_proto_iconv_arg1="const"
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22863 { echo "$as_me:$LINENO: result: ${ac_t:-
22864 }$am_cv_proto_iconv" >&5
22865 echo "${ECHO_T}${ac_t:-
22866 }$am_cv_proto_iconv" >&6; }
22868 cat >>confdefs.h <<_ACEOF
22869 #define ICONV_CONST $am_cv_proto_iconv_arg1
22875 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22876 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22877 if test "${am_cv_langinfo_codeset+set}" = set; then
22878 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 #include <langinfo.h>
22890 char* cs = nl_langinfo(CODESET);
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_link") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1 >conftest.err
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest$ac_exeext &&
22912 $as_test_x conftest$ac_exeext; then
22913 am_cv_langinfo_codeset=yes
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 am_cv_langinfo_codeset=no
22921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22922 conftest$ac_exeext conftest.$ac_ext
22925 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22926 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22927 if test $am_cv_langinfo_codeset = yes; then
22929 cat >>confdefs.h <<\_ACEOF
22930 #define HAVE_LANGINFO_CODESET 1
22935 if test $ac_cv_header_locale_h = yes; then
22937 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22938 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22939 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <locale.h>
22957 rm -f conftest.$ac_objext conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_link") 2>conftest.er1
22966 grep -v '^ *+' conftest.er1 >conftest.err
22968 cat conftest.err >&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && {
22971 test -z "$ac_c_werror_flag" ||
22972 test ! -s conftest.err
22973 } && test -s conftest$ac_exeext &&
22974 $as_test_x conftest$ac_exeext; then
22975 gt_cv_val_LC_MESSAGES=yes
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 gt_cv_val_LC_MESSAGES=no
22983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22984 conftest$ac_exeext conftest.$ac_ext
22986 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22987 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22988 if test $gt_cv_val_LC_MESSAGES = yes; then
22990 cat >>confdefs.h <<\_ACEOF
22991 #define HAVE_LC_MESSAGES 1
22998 if test -n "$INTL_MACOSX_LIBS"; then
22999 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23002 for ac_prog in bison
23004 # Extract the first word of "$ac_prog", so it can be a program name with args.
23005 set dummy $ac_prog; ac_word=$2
23006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23008 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 if test -n "$INTLBISON"; then
23012 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23015 for as_dir in $PATH
23018 test -z "$as_dir" && as_dir=.
23019 for ac_exec_ext in '' $ac_executable_extensions; do
23020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23021 ac_cv_prog_INTLBISON="$ac_prog"
23022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23031 INTLBISON=$ac_cv_prog_INTLBISON
23032 if test -n "$INTLBISON"; then
23033 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23034 echo "${ECHO_T}$INTLBISON" >&6; }
23036 { echo "$as_me:$LINENO: result: no" >&5
23037 echo "${ECHO_T}no" >&6; }
23041 test -n "$INTLBISON" && break
23044 if test -z "$INTLBISON"; then
23047 { echo "$as_me:$LINENO: checking version of bison" >&5
23048 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23049 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23050 case $ac_prog_version in
23051 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23052 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23053 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23054 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23056 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23057 echo "${ECHO_T}$ac_prog_version" >&6; }
23059 if test $ac_verc_fail = yes; then
23078 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23079 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23080 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 gt_save_CPPFLAGS="$CPPFLAGS"
23084 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23085 gt_save_LIBS="$LIBS"
23086 LIBS="$LIBS -framework CoreFoundation"
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 #include <CFPreferences.h>
23097 CFPreferencesCopyAppValue(NULL, NULL)
23102 rm -f conftest.$ac_objext conftest$ac_exeext
23103 if { (ac_try="$ac_link"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_link") 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest$ac_exeext &&
23119 $as_test_x conftest$ac_exeext; then
23120 gt_cv_func_CFPreferencesCopyAppValue=yes
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 gt_cv_func_CFPreferencesCopyAppValue=no
23128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23129 conftest$ac_exeext conftest.$ac_ext
23130 CPPFLAGS="$gt_save_CPPFLAGS"
23131 LIBS="$gt_save_LIBS"
23133 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23134 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23135 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23137 cat >>confdefs.h <<\_ACEOF
23138 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23142 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23143 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23144 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 gt_save_CPPFLAGS="$CPPFLAGS"
23148 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23149 gt_save_LIBS="$LIBS"
23150 LIBS="$LIBS -framework CoreFoundation"
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23157 #include <CFLocale.h>
23161 CFLocaleCopyCurrent();
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_link") 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } && {
23180 test -z "$ac_c_werror_flag" ||
23181 test ! -s conftest.err
23182 } && test -s conftest$ac_exeext &&
23183 $as_test_x conftest$ac_exeext; then
23184 gt_cv_func_CFLocaleCopyCurrent=yes
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 gt_cv_func_CFLocaleCopyCurrent=no
23192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193 conftest$ac_exeext conftest.$ac_ext
23194 CPPFLAGS="$gt_save_CPPFLAGS"
23195 LIBS="$gt_save_LIBS"
23197 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23198 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23199 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_CFLOCALECOPYCURRENT 1
23207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23208 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23214 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23215 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23216 # Check whether --enable-nls was given.
23217 if test "${enable_nls+set}" = set; then
23218 enableval=$enable_nls; USE_NLS=$enableval
23223 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23224 echo "${ECHO_T}$USE_NLS" >&6; }
23229 BUILD_INCLUDED_LIBINTL=no
23230 USE_INCLUDED_LIBINTL=no
23236 if test "$USE_NLS" = "yes"; then
23237 gt_use_preinstalled_gnugettext=no
23239 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23240 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23242 # Check whether --with-included-gettext was given.
23243 if test "${with_included_gettext+set}" = set; then
23244 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23246 nls_cv_force_use_gnu_gettext=no
23249 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23250 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23252 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23253 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23260 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23261 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23262 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 cat >conftest.$ac_ext <<_ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 #include <libintl.h>
23272 extern int _nl_msg_cat_cntr;
23273 extern int *_nl_domain_bindings;
23277 bindtextdomain ("", "");
23278 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_link") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest$ac_exeext &&
23300 $as_test_x conftest$ac_exeext; then
23301 gt_cv_func_gnugettext1_libc=yes
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23306 gt_cv_func_gnugettext1_libc=no
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310 conftest$ac_exeext conftest.$ac_ext
23312 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23313 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23315 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23321 acl_save_prefix="$prefix"
23322 prefix="$acl_final_prefix"
23323 acl_save_exec_prefix="$exec_prefix"
23324 exec_prefix="$acl_final_exec_prefix"
23326 eval additional_includedir=\"$includedir\"
23327 eval additional_libdir=\"$libdir\"
23329 exec_prefix="$acl_save_exec_prefix"
23330 prefix="$acl_save_prefix"
23333 # Check whether --with-libintl-prefix was given.
23334 if test "${with_libintl_prefix+set}" = set; then
23335 withval=$with_libintl_prefix;
23336 if test "X$withval" = "Xno"; then
23339 if test "X$withval" = "X"; then
23341 acl_save_prefix="$prefix"
23342 prefix="$acl_final_prefix"
23343 acl_save_exec_prefix="$exec_prefix"
23344 exec_prefix="$acl_final_exec_prefix"
23346 eval additional_includedir=\"$includedir\"
23347 eval additional_libdir=\"$libdir\"
23349 exec_prefix="$acl_save_exec_prefix"
23350 prefix="$acl_save_prefix"
23353 additional_includedir="$withval/include"
23354 additional_libdir="$withval/lib"
23365 names_already_handled=
23366 names_next_round='intl '
23367 while test -n "$names_next_round"; do
23368 names_this_round="$names_next_round"
23370 for name in $names_this_round; do
23372 for n in $names_already_handled; do
23373 if test "$n" = "$name"; then
23374 already_handled=yes
23378 if test -z "$already_handled"; then
23379 names_already_handled="$names_already_handled $name"
23380 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23381 eval value=\"\$HAVE_LIB$uppername\"
23382 if test -n "$value"; then
23383 if test "$value" = yes; then
23384 eval value=\"\$LIB$uppername\"
23385 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23386 eval value=\"\$LTLIB$uppername\"
23387 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23396 if test $use_additional = yes; then
23397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23398 found_dir="$additional_libdir"
23399 found_so="$additional_libdir/lib$name.$shlibext"
23400 if test -f "$additional_libdir/lib$name.la"; then
23401 found_la="$additional_libdir/lib$name.la"
23404 if test -f "$additional_libdir/lib$name.$libext"; then
23405 found_dir="$additional_libdir"
23406 found_a="$additional_libdir/lib$name.$libext"
23407 if test -f "$additional_libdir/lib$name.la"; then
23408 found_la="$additional_libdir/lib$name.la"
23413 if test "X$found_dir" = "X"; then
23414 for x in $LDFLAGS $LTLIBINTL; do
23416 acl_save_prefix="$prefix"
23417 prefix="$acl_final_prefix"
23418 acl_save_exec_prefix="$exec_prefix"
23419 exec_prefix="$acl_final_exec_prefix"
23421 exec_prefix="$acl_save_exec_prefix"
23422 prefix="$acl_save_prefix"
23426 dir=`echo "X$x" | sed -e 's/^X-L//'`
23427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23429 found_so="$dir/lib$name.$shlibext"
23430 if test -f "$dir/lib$name.la"; then
23431 found_la="$dir/lib$name.la"
23434 if test -f "$dir/lib$name.$libext"; then
23436 found_a="$dir/lib$name.$libext"
23437 if test -f "$dir/lib$name.la"; then
23438 found_la="$dir/lib$name.la"
23444 if test "X$found_dir" != "X"; then
23449 if test "X$found_dir" != "X"; then
23450 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23451 if test "X$found_so" != "X"; then
23452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23453 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23456 for x in $ltrpathdirs; do
23457 if test "X$x" = "X$found_dir"; then
23462 if test -z "$haveit"; then
23463 ltrpathdirs="$ltrpathdirs $found_dir"
23465 if test "$hardcode_direct" = yes; then
23466 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23469 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23471 for x in $rpathdirs; do
23472 if test "X$x" = "X$found_dir"; then
23477 if test -z "$haveit"; then
23478 rpathdirs="$rpathdirs $found_dir"
23482 for x in $LDFLAGS $LIBINTL; do
23484 acl_save_prefix="$prefix"
23485 prefix="$acl_final_prefix"
23486 acl_save_exec_prefix="$exec_prefix"
23487 exec_prefix="$acl_final_exec_prefix"
23489 exec_prefix="$acl_save_exec_prefix"
23490 prefix="$acl_save_prefix"
23492 if test "X$x" = "X-L$found_dir"; then
23497 if test -z "$haveit"; then
23498 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23500 if test "$hardcode_minus_L" != no; then
23501 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23503 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23509 if test "X$found_a" != "X"; then
23510 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23512 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23515 additional_includedir=
23516 case "$found_dir" in
23518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23519 additional_includedir="$basedir/include"
23522 if test "X$additional_includedir" != "X"; then
23523 if test "X$additional_includedir" != "X/usr/include"; then
23525 if test "X$additional_includedir" = "X/usr/local/include"; then
23526 if test -n "$GCC"; then
23528 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23532 if test -z "$haveit"; then
23533 for x in $CPPFLAGS $INCINTL; do
23535 acl_save_prefix="$prefix"
23536 prefix="$acl_final_prefix"
23537 acl_save_exec_prefix="$exec_prefix"
23538 exec_prefix="$acl_final_exec_prefix"
23540 exec_prefix="$acl_save_exec_prefix"
23541 prefix="$acl_save_prefix"
23543 if test "X$x" = "X-I$additional_includedir"; then
23548 if test -z "$haveit"; then
23549 if test -d "$additional_includedir"; then
23550 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23556 if test -n "$found_la"; then
23557 save_libdir="$libdir"
23558 case "$found_la" in
23559 */* | *\\*) . "$found_la" ;;
23560 *) . "./$found_la" ;;
23562 libdir="$save_libdir"
23563 for dep in $dependency_libs; do
23566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23567 if test "X$additional_libdir" != "X/usr/lib"; then
23569 if test "X$additional_libdir" = "X/usr/local/lib"; then
23570 if test -n "$GCC"; then
23572 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23576 if test -z "$haveit"; then
23578 for x in $LDFLAGS $LIBINTL; do
23580 acl_save_prefix="$prefix"
23581 prefix="$acl_final_prefix"
23582 acl_save_exec_prefix="$exec_prefix"
23583 exec_prefix="$acl_final_exec_prefix"
23585 exec_prefix="$acl_save_exec_prefix"
23586 prefix="$acl_save_prefix"
23588 if test "X$x" = "X-L$additional_libdir"; then
23593 if test -z "$haveit"; then
23594 if test -d "$additional_libdir"; then
23595 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23599 for x in $LDFLAGS $LTLIBINTL; do
23601 acl_save_prefix="$prefix"
23602 prefix="$acl_final_prefix"
23603 acl_save_exec_prefix="$exec_prefix"
23604 exec_prefix="$acl_final_exec_prefix"
23606 exec_prefix="$acl_save_exec_prefix"
23607 prefix="$acl_save_prefix"
23609 if test "X$x" = "X-L$additional_libdir"; then
23614 if test -z "$haveit"; then
23615 if test -d "$additional_libdir"; then
23616 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23624 if test "$enable_rpath" != no; then
23626 for x in $rpathdirs; do
23627 if test "X$x" = "X$dir"; then
23632 if test -z "$haveit"; then
23633 rpathdirs="$rpathdirs $dir"
23636 for x in $ltrpathdirs; do
23637 if test "X$x" = "X$dir"; then
23642 if test -z "$haveit"; then
23643 ltrpathdirs="$ltrpathdirs $dir"
23648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23654 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23661 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23662 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23668 if test "X$rpathdirs" != "X"; then
23669 if test -n "$hardcode_libdir_separator"; then
23671 for found_dir in $rpathdirs; do
23672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23674 acl_save_libdir="$libdir"
23676 eval flag=\"$hardcode_libdir_flag_spec\"
23677 libdir="$acl_save_libdir"
23678 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23680 for found_dir in $rpathdirs; do
23681 acl_save_libdir="$libdir"
23682 libdir="$found_dir"
23683 eval flag=\"$hardcode_libdir_flag_spec\"
23684 libdir="$acl_save_libdir"
23685 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23689 if test "X$ltrpathdirs" != "X"; then
23690 for found_dir in $ltrpathdirs; do
23691 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23695 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23696 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23697 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 gt_save_CPPFLAGS="$CPPFLAGS"
23701 CPPFLAGS="$CPPFLAGS $INCINTL"
23702 gt_save_LIBS="$LIBS"
23703 LIBS="$LIBS $LIBINTL"
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <libintl.h>
23711 extern int _nl_msg_cat_cntr;
23716 const char *_nl_expand_alias (const char *);
23720 bindtextdomain ("", "");
23721 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_link") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest$ac_exeext &&
23743 $as_test_x conftest$ac_exeext; then
23744 gt_cv_func_gnugettext1_libintl=yes
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23749 gt_cv_func_gnugettext1_libintl=no
23752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23753 conftest$ac_exeext conftest.$ac_ext
23754 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23755 LIBS="$LIBS $LIBICONV"
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 #include <libintl.h>
23763 extern int _nl_msg_cat_cntr;
23768 const char *_nl_expand_alias (const char *);
23772 bindtextdomain ("", "");
23773 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_link") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext &&
23795 $as_test_x conftest$ac_exeext; then
23796 LIBINTL="$LIBINTL $LIBICONV"
23797 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23798 gt_cv_func_gnugettext1_libintl=yes
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23808 conftest$ac_exeext conftest.$ac_ext
23810 CPPFLAGS="$gt_save_CPPFLAGS"
23811 LIBS="$gt_save_LIBS"
23813 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23814 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23817 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23818 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23819 && test "$PACKAGE" != gettext-runtime \
23820 && test "$PACKAGE" != gettext-tools; }; then
23821 gt_use_preinstalled_gnugettext=yes
23829 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23830 nls_cv_use_gnu_gettext=yes
23834 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23835 BUILD_INCLUDED_LIBINTL=yes
23836 USE_INCLUDED_LIBINTL=yes
23837 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23838 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23839 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23843 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23844 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23849 if test -n "$INTL_MACOSX_LIBS"; then
23850 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23851 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23852 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23853 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23857 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23858 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define ENABLE_NLS 1
23869 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23870 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23871 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23872 echo "${ECHO_T}$USE_NLS" >&6; }
23873 if test "$USE_NLS" = "yes"; then
23874 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23875 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23876 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23877 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23878 gt_source="external libintl"
23883 gt_source="included intl directory"
23885 { echo "$as_me:$LINENO: result: $gt_source" >&5
23886 echo "${ECHO_T}$gt_source" >&6; }
23889 if test "$USE_NLS" = "yes"; then
23891 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23892 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23893 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23894 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23895 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23896 echo "${ECHO_T}$LIBINTL" >&6; }
23898 for element in $INCINTL; do
23900 for x in $CPPFLAGS; do
23902 acl_save_prefix="$prefix"
23903 prefix="$acl_final_prefix"
23904 acl_save_exec_prefix="$exec_prefix"
23905 exec_prefix="$acl_final_exec_prefix"
23907 exec_prefix="$acl_save_exec_prefix"
23908 prefix="$acl_save_prefix"
23910 if test "X$x" = "X$element"; then
23915 if test -z "$haveit"; then
23916 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23923 cat >>confdefs.h <<\_ACEOF
23924 #define HAVE_GETTEXT 1
23928 cat >>confdefs.h <<\_ACEOF
23929 #define HAVE_DCGETTEXT 1
23938 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23939 BUILD_INCLUDED_LIBINTL=yes
23946 nls_cv_header_intl=
23947 nls_cv_header_libgt=
23959 if test "$USE_INCLUDED_LIBINTL" = yes; then
23960 INTLOBJS="\$(GETTOBJS)"
23964 INTL_LIBTOOL_SUFFIX_PREFIX=
23968 INTLLIBS="$LIBINTL"
23980 support_postgresql=no
23983 support_smartalloc=yes
23984 support_readline=yes
23988 support_wx_console=no
23989 support_tray_monitor=no
23994 support_static_tools=no
23995 support_static_fd=no
23996 support_static_sd=no
23997 support_static_dir=no
23998 support_static_cons=no
24000 build_client_only=no
24009 # Check whether --enable-gnome was given.
24010 if test "${enable_gnome+set}" = set; then
24011 enableval=$enable_gnome;
24012 if test x$enableval = xyes; then
24021 if test x$support_gnome = xyes; then
24022 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24023 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24024 { (exit 1); exit 1; }; }
24025 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24026 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24027 { (exit 1); exit 1; }; }
24029 # AC_SUBST(GNOME_DIR)
24031 # Check whether --enable-bat was given.
24032 if test "${enable_bat+set}" = set; then
24033 enableval=$enable_bat;
24034 if test x$enableval = xyes; then
24036 cat >>confdefs.h <<\_ACEOF
24048 if test x$support_bat = xyes; then
24049 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24051 if test $pkg = 0; then
24052 BAT_DIR=src/qt-console
24054 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24055 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24056 { (exit 1); exit 1; }; }
24074 # Check whether --enable-bwx-console was given.
24075 if test "${enable_bwx_console+set}" = set; then
24076 enableval=$enable_bwx_console;
24077 if test x$enableval = xyes; then
24078 support_wx_console=yes
24086 if test x$support_wx_console = xyes; then
24087 abc=`$WXCONFIG $WXFLAGS --cppflags`
24089 if test $pkg = 0; then
24090 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24091 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24092 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24096 WX_DIR="src/wx-console"
24099 echo "wx-config program not found. bwx-console disabled."
24101 support_wx_console=no
24106 # Check whether --enable-tray-monitor was given.
24107 if test "${enable_tray_monitor+set}" = set; then
24108 enableval=$enable_tray_monitor;
24109 if test x$enableval = xyes; then
24110 support_tray_monitor=yes
24118 if test x$support_tray_monitor = xyes; then
24119 abc=`$PKGCONFIG --exists gtk+-2.0`
24121 if test $pkg = 0; then
24122 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24123 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24126 TRAY_MONITOR_DIR=src/tray-monitor
24127 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24129 if test $pkg = 0; then
24131 cat >>confdefs.h <<\_ACEOF
24132 #define HAVE_GTK_2_4 1
24140 # Check whether --enable-smartalloc was given.
24141 if test "${enable_smartalloc+set}" = set; then
24142 enableval=$enable_smartalloc;
24143 if test x$enableval = xno; then
24144 support_smartalloc=no
24151 if test x$support_smartalloc = xyes; then
24153 cat >>confdefs.h <<\_ACEOF
24154 #define SMARTALLOC 1
24159 # Check whether --enable-lockmgr was given.
24160 if test "${enable_lockmgr+set}" = set; then
24161 enableval=$enable_lockmgr;
24162 if test x$enableval = xyes; then
24163 support_lockmgr=yes
24170 if test x$support_lockmgr = xyes; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define _USE_LOCKMGR 1
24179 # Check whether --enable-static-tools was given.
24180 if test "${enable_static_tools+set}" = set; then
24181 enableval=$enable_static_tools;
24182 if test x$enableval = xyes; then
24183 if test x$use_libtool = xyes; then
24184 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24185 please rerun configure with --disable-libtool" >&5
24186 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24187 please rerun configure with --disable-libtool" >&2;}
24188 { (exit 1); exit 1; }; }
24190 support_static_tools=yes
24198 if test x$support_static_tools = xyes; then
24199 TTOOL_LDFLAGS="-static"
24203 # Check whether --enable-static-fd was given.
24204 if test "${enable_static_fd+set}" = set; then
24205 enableval=$enable_static_fd;
24206 if test x$enableval = xyes; then
24207 if test x$use_libtool = xyes; then
24208 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24209 please rerun configure with --disable-libtool" >&5
24210 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24211 please rerun configure with --disable-libtool" >&2;}
24212 { (exit 1); exit 1; }; }
24214 support_static_fd=yes
24222 if test x$support_static_fd = xyes; then
24223 STATIC_FD="static-bacula-fd"
24227 # Check whether --enable-static-sd was given.
24228 if test "${enable_static_sd+set}" = set; then
24229 enableval=$enable_static_sd;
24230 if test x$enableval = xyes; then
24231 if test x$use_libtool = xyes; then
24232 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24233 please rerun configure with --disable-libtool" >&5
24234 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24235 please rerun configure with --disable-libtool" >&2;}
24236 { (exit 1); exit 1; }; }
24238 support_static_sd=yes
24246 if test x$support_static_sd = xyes; then
24247 STATIC_SD="static-bacula-sd"
24251 # Check whether --enable-static-dir was given.
24252 if test "${enable_static_dir+set}" = set; then
24253 enableval=$enable_static_dir;
24254 if test x$enableval = xyes; then
24255 if test x$use_libtool = xyes; then
24256 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24257 please rerun configure with --disable-libtool" >&5
24258 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24259 please rerun configure with --disable-libtool" >&2;}
24260 { (exit 1); exit 1; }; }
24262 support_static_dir=yes
24270 if test x$support_static_dir = xyes; then
24271 STATIC_DIR="static-bacula-dir"
24275 # Check whether --enable-static-cons was given.
24276 if test "${enable_static_cons+set}" = set; then
24277 enableval=$enable_static_cons;
24278 if test x$enableval = xyes; then
24279 if test x$use_libtool = xyes; then
24280 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24281 please rerun configure with --disable-libtool" >&5
24282 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24283 please rerun configure with --disable-libtool" >&2;}
24284 { (exit 1); exit 1; }; }
24286 support_static_cons=yes
24296 if test x$support_static_cons = xyes; then
24297 STATIC_CONS="static-bconsole"
24298 STATIC_GNOME_CONS="static-bgnome-console"
24299 STATIC_WX_CONS="static-bwx-console"
24305 # Check whether --enable-client-only was given.
24306 if test "${enable_client_only+set}" = set; then
24307 enableval=$enable_client_only;
24308 if test x$enableval = xyes; then
24309 build_client_only=yes
24317 if test x$build_client_only = xno; then
24324 # Check whether --enable-build-dird was given.
24325 if test "${enable_build_dird+set}" = set; then
24326 enableval=$enable_build_dird;
24327 if test x$enableval = xno; then
24334 if test x$build_dird = xyes; then
24335 DIRD_DIR="src/dird"
24336 DIR_TOOLS="DIRTOOLS"
24339 DIR_TOOLS="NODIRTOOLS"
24344 # Check whether --enable-build-stored was given.
24345 if test "${enable_build_stored+set}" = set; then
24346 enableval=$enable_build_stored;
24347 if test x$enableval = xno; then
24354 if test x$build_stored = xyes; then
24355 STORED_DIR="src/stored"
24361 # Check whether --enable-conio was given.
24362 if test "${enable_conio+set}" = set; then
24363 enableval=$enable_conio;
24364 if test x$enableval = xno; then
24374 # Check whether --enable-ipv6 was given.
24375 if test "${enable_ipv6+set}" = set; then
24376 enableval=$enable_ipv6;
24377 if test x$enableval = xno; then
24385 if test x$support_ipv6 = xyes; then
24386 cat >conftest.$ac_ext <<_ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 #include <sys/types.h>
24393 #include <sys/socket.h>
24394 #include <netinet/in.h>
24398 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24403 rm -f conftest.$ac_objext conftest$ac_exeext
24404 if { (ac_try="$ac_link"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_link") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext &&
24420 $as_test_x conftest$ac_exeext; then
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24430 conftest$ac_exeext conftest.$ac_ext
24433 if test x$support_ipv6 = xyes; then
24435 cat >>confdefs.h <<\_ACEOF
24436 #define HAVE_IPV6 1
24442 if test x$support_conio = xyes; then
24443 if test "${ac_cv_header_termcap_h+set}" = set; then
24444 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24445 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_header_termcap_h+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24450 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24452 # Is the header compilable?
24453 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24454 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24455 cat >conftest.$ac_ext <<_ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24461 $ac_includes_default
24462 #include <termcap.h>
24464 rm -f conftest.$ac_objext
24465 if { (ac_try="$ac_compile"
24466 case "(($ac_try" in
24467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468 *) ac_try_echo=$ac_try;;
24470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24471 (eval "$ac_compile") 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest.$ac_objext; then
24481 ac_header_compiler=yes
24483 echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24486 ac_header_compiler=no
24489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24491 echo "${ECHO_T}$ac_header_compiler" >&6; }
24493 # Is the header present?
24494 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24495 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 #include <termcap.h>
24504 if { (ac_try="$ac_cpp conftest.$ac_ext"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } >/dev/null && {
24517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24520 ac_header_preproc=yes
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_header_preproc=no
24528 rm -f conftest.err conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24530 echo "${ECHO_T}$ac_header_preproc" >&6; }
24532 # So? What about this header?
24533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24535 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24536 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24537 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24538 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24539 ac_header_preproc=yes
24542 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24543 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24544 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24545 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24546 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24547 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24548 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24549 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24550 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24551 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24552 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24553 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24557 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24558 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24559 if test "${ac_cv_header_termcap_h+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 ac_cv_header_termcap_h=$ac_header_preproc
24564 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24565 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24568 if test $ac_cv_header_termcap_h = yes; then
24569 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24570 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24571 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 ac_check_lib_save_LIBS=$LIBS
24575 LIBS="-ltermcap $LIBS"
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24583 /* Override any GCC internal prototype to avoid an error.
24584 Use char because int might match the return type of a GCC
24585 builtin and then its argument prototype would still apply. */
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_link") 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } && {
24612 test -z "$ac_c_werror_flag" ||
24613 test ! -s conftest.err
24614 } && test -s conftest$ac_exeext &&
24615 $as_test_x conftest$ac_exeext; then
24616 ac_cv_lib_termcap_tgetent=yes
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ac_cv_lib_termcap_tgetent=no
24624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24625 conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24628 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24629 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24630 if test $ac_cv_lib_termcap_tgetent = yes; then
24631 CONS_LIBS="-ltermcap"
24635 support_readline=no
24637 cat >>confdefs.h <<\_ACEOF
24638 #define HAVE_CONIO 1
24643 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24644 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24645 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 ac_check_lib_save_LIBS=$LIBS
24649 LIBS="-lncurses $LIBS"
24650 cat >conftest.$ac_ext <<_ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24657 /* Override any GCC internal prototype to avoid an error.
24658 Use char because int might match the return type of a GCC
24659 builtin and then its argument prototype would still apply. */
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (ac_try="$ac_link"
24674 case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_link") 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest$ac_exeext &&
24689 $as_test_x conftest$ac_exeext; then
24690 ac_cv_lib_ncurses_tgetent=yes
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ac_cv_lib_ncurses_tgetent=no
24698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24699 conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24702 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24703 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24704 if test $ac_cv_lib_ncurses_tgetent = yes; then
24705 CONS_LIBS="-lncurses"
24709 support_readline=no
24711 cat >>confdefs.h <<\_ACEOF
24712 #define HAVE_CONIO 1
24725 for ac_header in curses.h
24727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24732 echo $ECHO_N "(cached) $ECHO_C" >&6
24734 ac_res=`eval echo '${'$as_ac_Header'}'`
24735 { echo "$as_me:$LINENO: result: $ac_res" >&5
24736 echo "${ECHO_T}$ac_res" >&6; }
24738 # Is the header compilable?
24739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24741 cat >conftest.$ac_ext <<_ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h. */
24747 $ac_includes_default
24748 #include <$ac_header>
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757 (eval "$ac_compile") 2>conftest.er1
24759 grep -v '^ *+' conftest.er1 >conftest.err
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && {
24764 test -z "$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24766 } && test -s conftest.$ac_objext; then
24767 ac_header_compiler=yes
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ac_header_compiler=no
24775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24777 echo "${ECHO_T}$ac_header_compiler" >&6; }
24779 # Is the header present?
24780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24782 cat >conftest.$ac_ext <<_ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24788 #include <$ac_header>
24790 if { (ac_try="$ac_cpp conftest.$ac_ext"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } >/dev/null && {
24803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24804 test ! -s conftest.err
24806 ac_header_preproc=yes
24808 echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24811 ac_header_preproc=no
24814 rm -f conftest.err conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24816 echo "${ECHO_T}$ac_header_preproc" >&6; }
24818 # So? What about this header?
24819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24825 ac_header_preproc=yes
24828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 eval "$as_ac_Header=\$ac_header_preproc"
24850 ac_res=`eval echo '${'$as_ac_Header'}'`
24851 { echo "$as_me:$LINENO: result: $ac_res" >&5
24852 echo "${ECHO_T}$ac_res" >&6; }
24855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24856 cat >>confdefs.h <<_ACEOF
24857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24864 { echo "$as_me:$LINENO: checking for term.h" >&5
24865 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24866 if test "${ac_cv_header_term_h+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24876 #include <curses.h>
24882 rm -f conftest.$ac_objext
24883 if { (ac_try="$ac_compile"
24884 case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_compile") 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } && {
24896 test -z "$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24898 } && test -s conftest.$ac_objext; then
24899 ac_cv_header_term_h=yes
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_cv_header_term_h=no
24907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24910 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24911 if test $ac_cv_header_term_h = yes; then
24912 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24913 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24914 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24917 ac_check_lib_save_LIBS=$LIBS
24918 LIBS="-lcurses $LIBS"
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24926 /* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24941 rm -f conftest.$ac_objext conftest$ac_exeext
24942 if { (ac_try="$ac_link"
24943 case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_link") 2>conftest.er1
24950 grep -v '^ *+' conftest.er1 >conftest.err
24952 cat conftest.err >&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } && {
24955 test -z "$ac_c_werror_flag" ||
24956 test ! -s conftest.err
24957 } && test -s conftest$ac_exeext &&
24958 $as_test_x conftest$ac_exeext; then
24959 ac_cv_lib_curses_tgetent=yes
24961 echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24964 ac_cv_lib_curses_tgetent=no
24967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24968 conftest$ac_exeext conftest.$ac_ext
24969 LIBS=$ac_check_lib_save_LIBS
24971 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24972 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24973 if test $ac_cv_lib_curses_tgetent = yes; then
24974 CONS_LIBS="-lcurses"
24978 support_readline=no
24980 cat >>confdefs.h <<\_ACEOF
24981 #define HAVE_CONIO 1
24989 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25000 # Check whether --enable-readline was given.
25001 if test "${enable_readline+set}" = set; then
25002 enableval=$enable_readline;
25003 if test x$enableval = xno; then
25004 support_readline=no
25013 if test x$support_readline = xyes; then
25015 # Check whether --with-readline was given.
25016 if test "${with_readline+set}" = set; then
25017 withval=$with_readline;
25018 case "$with_readline" in
25023 if test -f ${with_readline}/readline.h; then
25024 CONS_INC="-I${with_readline}"
25025 CONS_LDFLAGS="-L$with_readline"
25026 elif test -f ${with_readline}/include/readline/readline.h; then
25027 CONS_INC="-I${with_readline}/include/readline"
25028 CONS_LDFLAGS="-L${with_readline}/lib"
25029 with_readline="${with_readline}/include/readline"
25031 with_readline="/usr/include/readline"
25034 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25036 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25037 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 ac_res=`eval echo '${'$as_ac_Header'}'`
25042 { echo "$as_me:$LINENO: result: $ac_res" >&5
25043 echo "${ECHO_T}$ac_res" >&6; }
25045 # Is the header compilable?
25046 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25047 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25048 cat >conftest.$ac_ext <<_ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25054 $ac_includes_default
25055 #include <${with_readline}/readline.h>
25057 rm -f conftest.$ac_objext
25058 if { (ac_try="$ac_compile"
25059 case "(($ac_try" in
25060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061 *) ac_try_echo=$ac_try;;
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064 (eval "$ac_compile") 2>conftest.er1
25066 grep -v '^ *+' conftest.er1 >conftest.err
25068 cat conftest.err >&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); } && {
25071 test -z "$ac_c_werror_flag" ||
25072 test ! -s conftest.err
25073 } && test -s conftest.$ac_objext; then
25074 ac_header_compiler=yes
25076 echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25079 ac_header_compiler=no
25082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25084 echo "${ECHO_T}$ac_header_compiler" >&6; }
25086 # Is the header present?
25087 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25088 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25089 cat >conftest.$ac_ext <<_ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h. */
25095 #include <${with_readline}/readline.h>
25097 if { (ac_try="$ac_cpp conftest.$ac_ext"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } >/dev/null && {
25110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25111 test ! -s conftest.err
25113 ac_header_preproc=yes
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_header_preproc=no
25121 rm -f conftest.err conftest.$ac_ext
25122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25123 echo "${ECHO_T}$ac_header_preproc" >&6; }
25125 # So? What about this header?
25126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25128 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25129 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25130 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25131 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25132 ac_header_preproc=yes
25135 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25136 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25137 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25138 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25139 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25140 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25141 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25142 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25143 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25144 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25145 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25146 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25150 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25151 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25153 echo $ECHO_N "(cached) $ECHO_C" >&6
25155 eval "$as_ac_Header=\$ac_header_preproc"
25157 ac_res=`eval echo '${'$as_ac_Header'}'`
25158 { echo "$as_me:$LINENO: result: $ac_res" >&5
25159 echo "${ECHO_T}$ac_res" >&6; }
25162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25165 cat >>confdefs.h <<\_ACEOF
25166 #define HAVE_READLINE 1
25169 CONS_LIBS="-lreadline -lhistory -ltermcap"
25175 echo "readline.h not found. readline turned off ..."
25187 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25188 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25189 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25190 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25193 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25194 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25196 # Is the header compilable?
25197 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25198 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25205 $ac_includes_default
25206 #include </usr/include/readline/readline.h>
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_compile") 2>conftest.er1
25217 grep -v '^ *+' conftest.er1 >conftest.err
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } && {
25222 test -z "$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25224 } && test -s conftest.$ac_objext; then
25225 ac_header_compiler=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_header_compiler=no
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25235 echo "${ECHO_T}$ac_header_compiler" >&6; }
25237 # Is the header present?
25238 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25239 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include </usr/include/readline/readline.h>
25248 if { (ac_try="$ac_cpp conftest.$ac_ext"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } >/dev/null && {
25261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25264 ac_header_preproc=yes
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 ac_header_preproc=no
25272 rm -f conftest.err conftest.$ac_ext
25273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25274 echo "${ECHO_T}$ac_header_preproc" >&6; }
25276 # So? What about this header?
25277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25279 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25280 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25282 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25283 ac_header_preproc=yes
25286 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25287 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25288 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25289 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25290 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25291 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25292 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25293 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25294 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25295 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25296 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25297 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25301 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25302 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25303 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
25306 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25308 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25309 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25312 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25315 cat >>confdefs.h <<\_ACEOF
25316 #define HAVE_READLINE 1
25320 CONS_INC="-I/usr/include/readline"
25321 CONS_LIBS="-lreadline -ltermcap"
25325 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25327 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25328 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25332 ac_res=`eval echo '${'$as_ac_Header'}'`
25333 { echo "$as_me:$LINENO: result: $ac_res" >&5
25334 echo "${ECHO_T}$ac_res" >&6; }
25336 # Is the header compilable?
25337 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25338 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 $ac_includes_default
25346 #include <${TOP_DIR}/depkgs/readline/readline.h>
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25365 ac_header_compiler=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_header_compiler=no
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25375 echo "${ECHO_T}$ac_header_compiler" >&6; }
25377 # Is the header present?
25378 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25379 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25380 cat >conftest.$ac_ext <<_ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 #include <${TOP_DIR}/depkgs/readline/readline.h>
25388 if { (ac_try="$ac_cpp conftest.$ac_ext"
25389 case "(($ac_try" in
25390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391 *) ac_try_echo=$ac_try;;
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } >/dev/null && {
25401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25404 ac_header_preproc=yes
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_header_preproc=no
25412 rm -f conftest.err conftest.$ac_ext
25413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25414 echo "${ECHO_T}$ac_header_preproc" >&6; }
25416 # So? What about this header?
25417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25419 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25421 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25422 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25423 ac_header_preproc=yes
25426 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25428 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25429 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25430 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25431 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25432 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25433 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25434 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25435 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25436 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25437 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25441 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25442 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 eval "$as_ac_Header=\$ac_header_preproc"
25448 ac_res=`eval echo '${'$as_ac_Header'}'`
25449 { echo "$as_me:$LINENO: result: $ac_res" >&5
25450 echo "${ECHO_T}$ac_res" >&6; }
25453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25456 cat >>confdefs.h <<\_ACEOF
25457 #define HAVE_READLINE 1
25461 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25462 CONS_LIBS="-lreadline -lhistory -ltermcap"
25463 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25464 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25469 echo "readline.h not found. readline turned off ..."
25496 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25497 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25498 if test "${ac_cv_header_stat_broken+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25501 cat >conftest.$ac_ext <<_ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h. */
25507 #include <sys/types.h>
25508 #include <sys/stat.h>
25510 #if defined S_ISBLK && defined S_IFDIR
25511 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25514 #if defined S_ISBLK && defined S_IFCHR
25515 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25518 #if defined S_ISLNK && defined S_IFREG
25519 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25522 #if defined S_ISSOCK && defined S_IFREG
25523 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531 *) ac_try_echo=$ac_try;;
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534 (eval "$ac_compile") 2>conftest.er1
25536 grep -v '^ *+' conftest.er1 >conftest.err
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } && {
25541 test -z "$ac_c_werror_flag" ||
25542 test ! -s conftest.err
25543 } && test -s conftest.$ac_objext; then
25544 ac_cv_header_stat_broken=no
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ac_cv_header_stat_broken=yes
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25556 if test $ac_cv_header_stat_broken = yes; then
25558 cat >>confdefs.h <<\_ACEOF
25559 #define STAT_MACROS_BROKEN 1
25569 ac_header_dirent=no
25570 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25571 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25572 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25573 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 #include <sys/types.h>
25595 rm -f conftest.$ac_objext
25596 if { (ac_try="$ac_compile"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_compile") 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } && {
25609 test -z "$ac_c_werror_flag" ||
25610 test ! -s conftest.err
25611 } && test -s conftest.$ac_objext; then
25612 eval "$as_ac_Header=yes"
25614 echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25617 eval "$as_ac_Header=no"
25620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 ac_res=`eval echo '${'$as_ac_Header'}'`
25623 { echo "$as_me:$LINENO: result: $ac_res" >&5
25624 echo "${ECHO_T}$ac_res" >&6; }
25625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25626 cat >>confdefs.h <<_ACEOF
25627 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25630 ac_header_dirent=$ac_hdr; break
25634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25635 if test $ac_header_dirent = dirent.h; then
25636 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25637 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25638 if test "${ac_cv_search_opendir+set}" = set; then
25639 echo $ECHO_N "(cached) $ECHO_C" >&6
25641 ac_func_search_save_LIBS=$LIBS
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25649 /* Override any GCC internal prototype to avoid an error.
25650 Use char because int might match the return type of a GCC
25651 builtin and then its argument prototype would still apply. */
25664 for ac_lib in '' dir; do
25665 if test -z "$ac_lib"; then
25666 ac_res="none required"
25669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25671 rm -f conftest.$ac_objext conftest$ac_exeext
25672 if { (ac_try="$ac_link"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678 (eval "$ac_link") 2>conftest.er1
25680 grep -v '^ *+' conftest.er1 >conftest.err
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest$ac_exeext &&
25688 $as_test_x conftest$ac_exeext; then
25689 ac_cv_search_opendir=$ac_res
25691 echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25699 if test "${ac_cv_search_opendir+set}" = set; then
25703 if test "${ac_cv_search_opendir+set}" = set; then
25706 ac_cv_search_opendir=no
25708 rm conftest.$ac_ext
25709 LIBS=$ac_func_search_save_LIBS
25711 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25712 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25713 ac_res=$ac_cv_search_opendir
25714 if test "$ac_res" != no; then
25715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25720 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25722 if test "${ac_cv_search_opendir+set}" = set; then
25723 echo $ECHO_N "(cached) $ECHO_C" >&6
25725 ac_func_search_save_LIBS=$LIBS
25726 cat >conftest.$ac_ext <<_ACEOF
25729 cat confdefs.h >>conftest.$ac_ext
25730 cat >>conftest.$ac_ext <<_ACEOF
25731 /* end confdefs.h. */
25733 /* Override any GCC internal prototype to avoid an error.
25734 Use char because int might match the return type of a GCC
25735 builtin and then its argument prototype would still apply. */
25748 for ac_lib in '' x; do
25749 if test -z "$ac_lib"; then
25750 ac_res="none required"
25753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25755 rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest$ac_exeext &&
25772 $as_test_x conftest$ac_exeext; then
25773 ac_cv_search_opendir=$ac_res
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25783 if test "${ac_cv_search_opendir+set}" = set; then
25787 if test "${ac_cv_search_opendir+set}" = set; then
25790 ac_cv_search_opendir=no
25792 rm conftest.$ac_ext
25793 LIBS=$ac_func_search_save_LIBS
25795 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25796 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25797 ac_res=$ac_cv_search_opendir
25798 if test "$ac_res" != no; then
25799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25812 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25828 #define $ac_func innocuous_$ac_func
25830 /* System header to define __stub macros and hopefully few prototypes,
25831 which can conflict with char $ac_func (); below.
25832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25833 <limits.h> exists even on freestanding compilers. */
25836 # include <limits.h>
25838 # include <assert.h>
25843 /* Override any GCC internal prototype to avoid an error.
25844 Use char because int might match the return type of a GCC
25845 builtin and then its argument prototype would still apply. */
25850 /* The GNU C library defines this for functions which it implements
25851 to always fail with ENOSYS. Some functions are actually named
25852 something starting with __ and the normal name is an alias. */
25853 #if defined __stub_$ac_func || defined __stub___$ac_func
25860 return $ac_func ();
25865 rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (ac_try="$ac_link"
25867 case "(($ac_try" in
25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872 (eval "$ac_link") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && {
25879 test -z "$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 } && test -s conftest$ac_exeext &&
25882 $as_test_x conftest$ac_exeext; then
25883 eval "$as_ac_var=yes"
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 eval "$as_ac_var=no"
25891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25892 conftest$ac_exeext conftest.$ac_ext
25894 ac_res=`eval echo '${'$as_ac_var'}'`
25895 { echo "$as_me:$LINENO: result: $ac_res" >&5
25896 echo "${ECHO_T}$ac_res" >&6; }
25897 if test `eval echo '${'$as_ac_var'}'` = yes; then
25898 cat >>confdefs.h <<_ACEOF
25899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25907 for ac_func in nanosleep nl_langinfo
25909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25923 #define $ac_func innocuous_$ac_func
25925 /* System header to define __stub macros and hopefully few prototypes,
25926 which can conflict with char $ac_func (); below.
25927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25928 <limits.h> exists even on freestanding compilers. */
25931 # include <limits.h>
25933 # include <assert.h>
25938 /* Override any GCC internal prototype to avoid an error.
25939 Use char because int might match the return type of a GCC
25940 builtin and then its argument prototype would still apply. */
25945 /* The GNU C library defines this for functions which it implements
25946 to always fail with ENOSYS. Some functions are actually named
25947 something starting with __ and the normal name is an alias. */
25948 #if defined __stub_$ac_func || defined __stub___$ac_func
25955 return $ac_func ();
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (ac_try="$ac_link"
25962 case "(($ac_try" in
25963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25964 *) ac_try_echo=$ac_try;;
25966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25967 (eval "$ac_link") 2>conftest.er1
25969 grep -v '^ *+' conftest.er1 >conftest.err
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } && {
25974 test -z "$ac_c_werror_flag" ||
25975 test ! -s conftest.err
25976 } && test -s conftest$ac_exeext &&
25977 $as_test_x conftest$ac_exeext; then
25978 eval "$as_ac_var=yes"
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 eval "$as_ac_var=no"
25986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25987 conftest$ac_exeext conftest.$ac_ext
25989 ac_res=`eval echo '${'$as_ac_var'}'`
25990 { echo "$as_me:$LINENO: result: $ac_res" >&5
25991 echo "${ECHO_T}$ac_res" >&6; }
25992 if test `eval echo '${'$as_ac_var'}'` = yes; then
25993 cat >>confdefs.h <<_ACEOF
25994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26001 for ac_header in varargs.h
26003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26010 ac_res=`eval echo '${'$as_ac_Header'}'`
26011 { echo "$as_me:$LINENO: result: $ac_res" >&5
26012 echo "${ECHO_T}$ac_res" >&6; }
26014 # Is the header compilable?
26015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 $ac_includes_default
26024 #include <$ac_header>
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_compile") 2>conftest.er1
26035 grep -v '^ *+' conftest.er1 >conftest.err
26037 cat conftest.err >&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } && {
26040 test -z "$ac_c_werror_flag" ||
26041 test ! -s conftest.err
26042 } && test -s conftest.$ac_objext; then
26043 ac_header_compiler=yes
26045 echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_header_compiler=no
26051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26053 echo "${ECHO_T}$ac_header_compiler" >&6; }
26055 # Is the header present?
26056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 #include <$ac_header>
26066 if { (ac_try="$ac_cpp conftest.$ac_ext"
26067 case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } >/dev/null && {
26079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26082 ac_header_preproc=yes
26084 echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26087 ac_header_preproc=no
26090 rm -f conftest.err conftest.$ac_ext
26091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26092 echo "${ECHO_T}$ac_header_preproc" >&6; }
26094 # So? What about this header?
26095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26101 ac_header_preproc=yes
26104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 eval "$as_ac_Header=\$ac_header_preproc"
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26132 cat >>confdefs.h <<_ACEOF
26133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26142 { echo "$as_me:$LINENO: checking for Python support" >&5
26143 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26145 # Check whether --with-python was given.
26146 if test "${with_python+set}" = set; then
26147 withval=$with_python;
26150 if test "$withval" != "no"; then
26151 if test "$withval" = "yes"; then
26152 if test -e /usr/bin/python-config ; then
26153 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26154 PYTHON_LIBS=`/usr/bin/python-config --libs`
26156 for python_root in /usr /usr/local /usr/sfw; do
26157 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26158 if test -f $python_root/include/${ver}/Python.h; then
26159 PYTHON_INCDIR=-I$python_root/include/${ver}
26160 if test -d $python_root/lib64/${ver}/config; then
26161 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26163 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26170 if test x$PYTHON_INCDIR = x; then
26171 if test -f $prefix/include/Python.h; then
26172 PYTHON_INCDIR=-I$prefix/include
26173 if test -d $prefix/lib64/config; then
26174 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26176 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26179 { echo "$as_me:$LINENO: result: no" >&5
26180 echo "${ECHO_T}no" >&6; }
26181 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26182 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26183 { (exit 1); exit 1; }; }
26188 if test -e $withval/bin/python-config ; then
26189 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26190 PYTHON_LIBS=`$withval/bin/python-config --libs`
26191 elif test -f $withval/Python.h; then
26192 PYTHON_INCDIR=-I$withval
26193 PYTHON_LIBS="-L$withval/config -lpython"
26194 elif test -f $withval/include/Python.h; then
26195 PYTHON_INCDIR=-I$withval/include
26196 if test -d $withval/lib64/config; then
26197 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26199 PYTHON_LIBS="-L$withval/lib/config -lpython"
26201 elif test -f $withval/include/python/Python.h; then
26202 PYTHON_INCDIR=-I$withval/include/python
26203 if test -d $withval/lib64/python/config; then
26204 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26206 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26209 { echo "$as_me:$LINENO: result: no" >&5
26210 echo "${ECHO_T}no" >&6; }
26211 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26212 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26213 { (exit 1); exit 1; }; }
26217 cat >>confdefs.h <<\_ACEOF
26218 #define HAVE_PYTHON 1
26221 { echo "$as_me:$LINENO: result: yes" >&5
26222 echo "${ECHO_T}yes" >&6; }
26224 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26225 echo "$as_me: checking for more Python libs" >&6;}
26226 saved_LIBS="$LIBS"; LIBS=
26227 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26228 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26229 if test "${ac_cv_search_shm_open+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26232 ac_func_search_save_LIBS=$LIBS
26233 cat >conftest.$ac_ext <<_ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26240 /* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26250 return shm_open ();
26255 for ac_lib in '' rt; do
26256 if test -z "$ac_lib"; then
26257 ac_res="none required"
26260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26262 rm -f conftest.$ac_objext conftest$ac_exeext
26263 if { (ac_try="$ac_link"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269 (eval "$ac_link") 2>conftest.er1
26271 grep -v '^ *+' conftest.er1 >conftest.err
26273 cat conftest.err >&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } && {
26276 test -z "$ac_c_werror_flag" ||
26277 test ! -s conftest.err
26278 } && test -s conftest$ac_exeext &&
26279 $as_test_x conftest$ac_exeext; then
26280 ac_cv_search_shm_open=$ac_res
26282 echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26290 if test "${ac_cv_search_shm_open+set}" = set; then
26294 if test "${ac_cv_search_shm_open+set}" = set; then
26297 ac_cv_search_shm_open=no
26299 rm conftest.$ac_ext
26300 LIBS=$ac_func_search_save_LIBS
26302 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26303 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26304 ac_res=$ac_cv_search_shm_open
26305 if test "$ac_res" != no; then
26306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26311 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26312 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26313 if test "${ac_cv_lib_util_openpty+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 ac_check_lib_save_LIBS=$LIBS
26317 LIBS="-lutil $LIBS"
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26325 /* Override any GCC internal prototype to avoid an error.
26326 Use char because int might match the return type of a GCC
26327 builtin and then its argument prototype would still apply. */
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (ac_try="$ac_link"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347 (eval "$ac_link") 2>conftest.er1
26349 grep -v '^ *+' conftest.er1 >conftest.err
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } && {
26354 test -z "$ac_c_werror_flag" ||
26355 test ! -s conftest.err
26356 } && test -s conftest$ac_exeext &&
26357 $as_test_x conftest$ac_exeext; then
26358 ac_cv_lib_util_openpty=yes
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_cv_lib_util_openpty=no
26366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26367 conftest$ac_exeext conftest.$ac_ext
26368 LIBS=$ac_check_lib_save_LIBS
26370 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26371 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26372 if test $ac_cv_lib_util_openpty = yes; then
26373 cat >>confdefs.h <<_ACEOF
26374 #define HAVE_LIBUTIL 1
26377 LIBS="-lutil $LIBS"
26381 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26384 { echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6; }
26390 { echo "$as_me:$LINENO: result: no" >&5
26391 echo "${ECHO_T}no" >&6; }
26399 { echo "$as_me:$LINENO: checking for socket" >&5
26400 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26401 if test "${ac_cv_func_socket+set}" = set; then
26402 echo $ECHO_N "(cached) $ECHO_C" >&6
26404 cat >conftest.$ac_ext <<_ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h. */
26410 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26412 #define socket innocuous_socket
26414 /* System header to define __stub macros and hopefully few prototypes,
26415 which can conflict with char socket (); below.
26416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26417 <limits.h> exists even on freestanding compilers. */
26420 # include <limits.h>
26422 # include <assert.h>
26427 /* Override any GCC internal prototype to avoid an error.
26428 Use char because int might match the return type of a GCC
26429 builtin and then its argument prototype would still apply. */
26434 /* The GNU C library defines this for functions which it implements
26435 to always fail with ENOSYS. Some functions are actually named
26436 something starting with __ and the normal name is an alias. */
26437 #if defined __stub_socket || defined __stub___socket
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (ac_try="$ac_link"
26451 case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456 (eval "$ac_link") 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } && {
26463 test -z "$ac_c_werror_flag" ||
26464 test ! -s conftest.err
26465 } && test -s conftest$ac_exeext &&
26466 $as_test_x conftest$ac_exeext; then
26467 ac_cv_func_socket=yes
26469 echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 ac_cv_func_socket=no
26475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26476 conftest$ac_exeext conftest.$ac_ext
26478 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26479 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26480 if test $ac_cv_func_socket = yes; then
26481 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26482 echo "${ECHO_T}using libc's socket" >&6; }
26485 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26486 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26487 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26488 echo $ECHO_N "(cached) $ECHO_C" >&6
26490 ac_check_lib_save_LIBS=$LIBS
26491 LIBS="-lxnet $LIBS"
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26499 /* Override any GCC internal prototype to avoid an error.
26500 Use char because int might match the return type of a GCC
26501 builtin and then its argument prototype would still apply. */
26514 rm -f conftest.$ac_objext conftest$ac_exeext
26515 if { (ac_try="$ac_link"
26516 case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521 (eval "$ac_link") 2>conftest.er1
26523 grep -v '^ *+' conftest.er1 >conftest.err
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } && {
26528 test -z "$ac_c_werror_flag" ||
26529 test ! -s conftest.err
26530 } && test -s conftest$ac_exeext &&
26531 $as_test_x conftest$ac_exeext; then
26532 ac_cv_lib_xnet_socket=yes
26534 echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26537 ac_cv_lib_xnet_socket=no
26540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26541 conftest$ac_exeext conftest.$ac_ext
26542 LIBS=$ac_check_lib_save_LIBS
26544 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26545 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26546 if test $ac_cv_lib_xnet_socket = yes; then
26547 cat >>confdefs.h <<_ACEOF
26548 #define HAVE_LIBXNET 1
26551 LIBS="-lxnet $LIBS"
26556 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26557 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26558 if test "${ac_cv_lib_socket_socket+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26561 ac_check_lib_save_LIBS=$LIBS
26562 LIBS="-lsocket $LIBS"
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26570 /* Override any GCC internal prototype to avoid an error.
26571 Use char because int might match the return type of a GCC
26572 builtin and then its argument prototype would still apply. */
26585 rm -f conftest.$ac_objext conftest$ac_exeext
26586 if { (ac_try="$ac_link"
26587 case "(($ac_try" in
26588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589 *) ac_try_echo=$ac_try;;
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592 (eval "$ac_link") 2>conftest.er1
26594 grep -v '^ *+' conftest.er1 >conftest.err
26596 cat conftest.err >&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } && {
26599 test -z "$ac_c_werror_flag" ||
26600 test ! -s conftest.err
26601 } && test -s conftest$ac_exeext &&
26602 $as_test_x conftest$ac_exeext; then
26603 ac_cv_lib_socket_socket=yes
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 ac_cv_lib_socket_socket=no
26611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26612 conftest$ac_exeext conftest.$ac_ext
26613 LIBS=$ac_check_lib_save_LIBS
26615 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26616 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26617 if test $ac_cv_lib_socket_socket = yes; then
26618 cat >>confdefs.h <<_ACEOF
26619 #define HAVE_LIBSOCKET 1
26622 LIBS="-lsocket $LIBS"
26627 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26628 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26629 if test "${ac_cv_lib_inet_socket+set}" = set; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 ac_check_lib_save_LIBS=$LIBS
26633 LIBS="-linet $LIBS"
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26641 /* Override any GCC internal prototype to avoid an error.
26642 Use char because int might match the return type of a GCC
26643 builtin and then its argument prototype would still apply. */
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (ac_try="$ac_link"
26658 case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663 (eval "$ac_link") 2>conftest.er1
26665 grep -v '^ *+' conftest.er1 >conftest.err
26667 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && {
26670 test -z "$ac_c_werror_flag" ||
26671 test ! -s conftest.err
26672 } && test -s conftest$ac_exeext &&
26673 $as_test_x conftest$ac_exeext; then
26674 ac_cv_lib_inet_socket=yes
26676 echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26679 ac_cv_lib_inet_socket=no
26682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26683 conftest$ac_exeext conftest.$ac_ext
26684 LIBS=$ac_check_lib_save_LIBS
26686 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26687 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26688 if test $ac_cv_lib_inet_socket = yes; then
26689 cat >>confdefs.h <<_ACEOF
26690 #define HAVE_LIBINET 1
26693 LIBS="-linet $LIBS"
26703 # Check whether --with-tcp-wrappers was given.
26704 if test "${with_tcp_wrappers+set}" = set; then
26705 withval=$with_tcp_wrappers;
26706 if test "x$withval" != "xno" ; then
26708 LIBS="$saved_LIBS -lwrap"
26709 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26710 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26711 if test "${ac_cv_search_nanosleep+set}" = set; then
26712 echo $ECHO_N "(cached) $ECHO_C" >&6
26714 ac_func_search_save_LIBS=$LIBS
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26722 /* Override any GCC internal prototype to avoid an error.
26723 Use char because int might match the return type of a GCC
26724 builtin and then its argument prototype would still apply. */
26732 return nanosleep ();
26737 for ac_lib in '' rt; do
26738 if test -z "$ac_lib"; then
26739 ac_res="none required"
26742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26744 rm -f conftest.$ac_objext conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_link") 2>conftest.er1
26753 grep -v '^ *+' conftest.er1 >conftest.err
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } && {
26758 test -z "$ac_c_werror_flag" ||
26759 test ! -s conftest.err
26760 } && test -s conftest$ac_exeext &&
26761 $as_test_x conftest$ac_exeext; then
26762 ac_cv_search_nanosleep=$ac_res
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26772 if test "${ac_cv_search_nanosleep+set}" = set; then
26776 if test "${ac_cv_search_nanosleep+set}" = set; then
26779 ac_cv_search_nanosleep=no
26781 rm conftest.$ac_ext
26782 LIBS=$ac_func_search_save_LIBS
26784 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26785 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26786 ac_res=$ac_cv_search_nanosleep
26787 if test "$ac_res" != no; then
26788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26792 { echo "$as_me:$LINENO: checking for libwrap" >&5
26793 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26794 cat >conftest.$ac_ext <<_ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h. */
26801 #include <sys/types.h>
26803 int deny_severity = 0;
26804 int allow_severity = 0;
26805 struct request_info *req;
26817 rm -f conftest.$ac_objext conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_link") 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } && {
26831 test -z "$ac_c_werror_flag" ||
26832 test ! -s conftest.err
26833 } && test -s conftest$ac_exeext &&
26834 $as_test_x conftest$ac_exeext; then
26836 { echo "$as_me:$LINENO: result: yes" >&5
26837 echo "${ECHO_T}yes" >&6; }
26839 cat >>confdefs.h <<\_ACEOF
26840 #define HAVE_LIBWRAP 1
26848 echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26852 LIBS="$saved_LIBS -lwrap -lnsl"
26853 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26854 cat >conftest.$ac_ext <<_ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h. */
26861 #include <sys/types.h>
26863 int deny_severity = 0;
26864 int allow_severity = 0;
26865 struct request_info *req;
26877 rm -f conftest.$ac_objext conftest$ac_exeext
26878 if { (ac_try="$ac_link"
26879 case "(($ac_try" in
26880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884 (eval "$ac_link") 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } && {
26891 test -z "$ac_c_werror_flag" ||
26892 test ! -s conftest.err
26893 } && test -s conftest$ac_exeext &&
26894 $as_test_x conftest$ac_exeext; then
26896 { echo "$as_me:$LINENO: result: yes" >&5
26897 echo "${ECHO_T}yes" >&6; }
26899 cat >>confdefs.h <<\_ACEOF
26900 #define HAVE_LIBWRAP 1
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26912 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26913 echo "$as_me: error: *** libwrap missing" >&2;}
26914 { (exit 1); exit 1; }; }
26919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26920 conftest$ac_exeext conftest.$ac_ext
26925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26926 conftest$ac_exeext conftest.$ac_ext
26933 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26934 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26936 # Check whether --with-openssl was given.
26937 if test "${with_openssl+set}" = set; then
26938 withval=$with_openssl;
26939 with_openssl_directory=${withval}
26945 if test "x$with_openssl_directory" != "xno"; then
26946 OPENSSL_LIBS="-lssl -lcrypto"
26949 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26951 # Make sure the $with_openssl_directory also makes sense
26953 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26954 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26955 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26959 saved_LIBS="${LIBS}"
26960 saved_CFLAGS="${CFLAGS}"
26961 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26962 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26971 #include <openssl/ssl.h>
26977 CRYPTO_set_id_callback(NULL);
26983 rm -f conftest.$ac_objext conftest$ac_exeext
26984 if { (ac_try="$ac_link"
26985 case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990 (eval "$ac_link") 2>conftest.er1
26992 grep -v '^ *+' conftest.er1 >conftest.err
26994 cat conftest.err >&5
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } && {
26997 test -z "$ac_c_werror_flag" ||
26998 test ! -s conftest.err
26999 } && test -s conftest$ac_exeext &&
27000 $as_test_x conftest$ac_exeext; then
27003 support_crypto="yes"
27006 echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27011 support_crypto="no"
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017 conftest$ac_exeext conftest.$ac_ext
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27026 #include <openssl/evp.h>
27038 rm -f conftest.$ac_objext conftest$ac_exeext
27039 if { (ac_try="$ac_link"
27040 case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_link") 2>conftest.er1
27047 grep -v '^ *+' conftest.er1 >conftest.err
27049 cat conftest.err >&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } && {
27052 test -z "$ac_c_werror_flag" ||
27053 test ! -s conftest.err
27054 } && test -s conftest$ac_exeext &&
27055 $as_test_x conftest$ac_exeext; then
27057 ac_cv_openssl_sha2="yes"
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27064 ac_cv_openssl_sha2="no"
27069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27070 conftest$ac_exeext conftest.$ac_ext
27072 cat >conftest.$ac_ext <<_ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27079 #include <openssl/evp.h>
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (ac_try="$ac_link"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_link") 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } && {
27105 test -z "$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27107 } && test -s conftest$ac_exeext &&
27108 $as_test_x conftest$ac_exeext; then
27110 ac_cv_openssl_export="no"
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27117 ac_cv_openssl_export="yes"
27122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27123 conftest$ac_exeext conftest.$ac_ext
27125 LIBS="${saved_LIBS}"
27126 CFLAGS="${saved_CFLAGS}"
27128 if test "$support_tls" = "yes"; then
27130 cat >>confdefs.h <<\_ACEOF
27131 #define HAVE_OPENSSL 1
27135 cat >>confdefs.h <<\_ACEOF
27140 cat >>confdefs.h <<\_ACEOF
27141 #define HAVE_CRYPTO 1
27146 if test "$ac_cv_openssl_sha2" = "yes"; then
27148 cat >>confdefs.h <<\_ACEOF
27149 #define HAVE_SHA2 1
27154 if test "$ac_cv_openssl_export" = "yes"; then
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27163 support_crypto="no"
27168 if test "$support_tls" = "no"; then
27172 if test "$support_crypto" = "no"; then
27177 { echo "$as_me:$LINENO: result: $support_tls" >&5
27178 echo "${ECHO_T}$support_tls" >&6; }
27182 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27183 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27184 if test "${ac_cv_search_dlopen+set}" = set; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27187 ac_func_search_save_LIBS=$LIBS
27188 cat >conftest.$ac_ext <<_ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27195 /* Override any GCC internal prototype to avoid an error.
27196 Use char because int might match the return type of a GCC
27197 builtin and then its argument prototype would still apply. */
27210 for ac_lib in '' dl; do
27211 if test -z "$ac_lib"; then
27212 ac_res="none required"
27215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27217 rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_link") 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } && {
27231 test -z "$ac_c_werror_flag" ||
27232 test ! -s conftest.err
27233 } && test -s conftest$ac_exeext &&
27234 $as_test_x conftest$ac_exeext; then
27235 ac_cv_search_dlopen=$ac_res
27237 echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27245 if test "${ac_cv_search_dlopen+set}" = set; then
27249 if test "${ac_cv_search_dlopen+set}" = set; then
27252 ac_cv_search_dlopen=no
27254 rm conftest.$ac_ext
27255 LIBS=$ac_func_search_save_LIBS
27257 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27258 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27259 ac_res=$ac_cv_search_dlopen
27260 if test "$ac_res" != no; then
27261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27266 working_dir=`eval echo ${prefix}/var/bacula/working`
27268 # Check whether --with-working-dir was given.
27269 if test "${with_working_dir+set}" = set; then
27270 withval=$with_working_dir;
27271 if test "x$withval" != "xno" ; then
27272 working_dir=$withval
27283 # Check whether --with-archivedir was given.
27284 if test "${with_archivedir+set}" = set; then
27285 withval=$with_archivedir;
27286 if test "x$withval" != "xno" ; then
27287 archivedir=$withval
27296 basename=`hostname`
27298 # Check whether --with-basename was given.
27299 if test "${with_basename+set}" = set; then
27300 withval=$with_basename;
27301 if test "x$withval" != "xno" ; then
27311 hostname=`uname -n | cut -d '.' -f 1`
27312 if test x${hostname} = x ; then
27313 hostname="localhost"
27316 # Check whether --with-hostname was given.
27317 if test "${with_hostname+set}" = set; then
27318 withval=$with_hostname;
27319 if test "x$withval" != "xno" ; then
27330 scriptdir=`eval echo ${sysconfdir}`
27332 # Check whether --with-scriptdir was given.
27333 if test "${with_scriptdir+set}" = set; then
27334 withval=$with_scriptdir;
27335 if test "x$withval" != "xno" ; then
27348 # Check whether --with-bsrdir was given.
27349 if test "${with_bsrdir+set}" = set; then
27350 withval=$with_bsrdir;
27351 if test "x$withval" != "xno" ; then
27363 # Check whether --with-logdir was given.
27364 if test "${with_logdir+set}" = set; then
27365 withval=$with_logdir;
27366 if test "x$withval" != "xno" ; then
27377 # ------------------------------------------
27378 # Where to place plugindir (plugin files)
27379 # ------------------------------------------
27380 plugindir=`eval echo ${libdir}`
27382 # Check whether --with-plugindir was given.
27383 if test "${with_plugindir+set}" = set; then
27384 withval=$with_plugindir;
27385 if test "x$withval" != "xno" ; then
27395 dump_email=root@localhost
27397 # Check whether --with-dump-email was given.
27398 if test "${with_dump_email+set}" = set; then
27399 withval=$with_dump_email;
27400 if test "x$withval" != "xno" ; then
27401 dump_email=$withval
27410 job_email=root@localhost
27412 # Check whether --with-job-email was given.
27413 if test "${with_job_email+set}" = set; then
27414 withval=$with_job_email;
27415 if test "x$withval" != "xno" ; then
27425 smtp_host=localhost
27427 # Check whether --with-smtp_host was given.
27428 if test "${with_smtp_host+set}" = set; then
27429 withval=$with_smtp_host;
27430 if test "x$withval" != "xno" ; then
27442 # Check whether --with-pid-dir was given.
27443 if test "${with_pid_dir+set}" = set; then
27444 withval=$with_pid_dir;
27445 if test "x$withval" != "xno" ; then
27453 cat >>confdefs.h <<_ACEOF
27454 #define _PATH_BACULA_PIDDIR "$piddir"
27459 subsysdir=/var/run/subsys
27460 if test -d /var/run/subsys; then
27461 subsysdir=/var/run/subsys
27462 elif test -d /var/lock/subsys; then
27463 subsysdir=/var/lock/subsys
27465 subsysdir=/var/run/subsys
27468 # Check whether --with-subsys-dir was given.
27469 if test "${with_subsys_dir+set}" = set; then
27470 withval=$with_subsys_dir;
27471 if test "x$withval" != "xno" ; then
27483 # Check whether --with-baseport was given.
27484 if test "${with_baseport+set}" = set; then
27485 withval=$with_baseport;
27486 if test "x$withval" != "xno" ; then
27495 dir_port=`expr $baseport`
27496 fd_port=`expr $baseport + 1`
27497 sd_port=`expr $fd_port + 1`
27505 # Check whether --with-dir-password was given.
27506 if test "${with_dir_password+set}" = set; then
27507 withval=$with_dir_password;
27508 if test "x$withval" != "xno" ; then
27509 dir_password=$withval
27516 if test "x$dir_password" = "x" ; then
27517 if test "x$OPENSSL" = "xnone" ; then
27518 key=`autoconf/randpass 33`
27520 key=`openssl rand -base64 33`
27527 # Check whether --with-fd-password was given.
27528 if test "${with_fd_password+set}" = set; then
27529 withval=$with_fd_password;
27530 if test "x$withval" != "xno" ; then
27531 fd_password=$withval
27538 if test "x$fd_password" = "x" ; then
27539 if test "x$OPENSSL" = "xnone" ; then
27540 key=`autoconf/randpass 37`
27542 key=`openssl rand -base64 33`
27549 # Check whether --with-sd-password was given.
27550 if test "${with_sd_password+set}" = set; then
27551 withval=$with_sd_password;
27552 if test "x$withval" != "xno" ; then
27553 sd_password=$withval
27560 if test "x$sd_password" = "x" ; then
27561 if test "x$OPENSSL" = "xnone" ; then
27562 key=`autoconf/randpass 41`
27564 key=`openssl rand -base64 33`
27571 # Check whether --with-mon-dir-password was given.
27572 if test "${with_mon_dir_password+set}" = set; then
27573 withval=$with_mon_dir_password;
27574 if test "x$withval" != "xno" ; then
27575 mon_dir_password=$withval
27582 if test "x$mon_dir_password" = "x" ; then
27583 if test "x$OPENSSL" = "xnone" ; then
27584 key=`autoconf/randpass 33`
27586 key=`openssl rand -base64 33`
27588 mon_dir_password=$key
27593 # Check whether --with-mon-fd-password was given.
27594 if test "${with_mon_fd_password+set}" = set; then
27595 withval=$with_mon_fd_password;
27596 if test "x$withval" != "xno" ; then
27597 mon_fd_password=$withval
27604 if test "x$mon_fd_password" = "x" ; then
27605 if test "x$OPENSSL" = "xnone" ; then
27606 key=`autoconf/randpass 37`
27608 key=`openssl rand -base64 33`
27610 mon_fd_password=$key
27615 # Check whether --with-mon-sd-password was given.
27616 if test "${with_mon_sd_password+set}" = set; then
27617 withval=$with_mon_sd_password;
27618 if test "x$withval" != "xno" ; then
27619 mon_sd_password=$withval
27626 if test "x$mon_sd_password" = "x" ; then
27627 if test "x$OPENSSL" = "xnone" ; then
27628 key=`autoconf/randpass 41`
27630 key=`openssl rand -base64 33`
27632 mon_sd_password=$key
27644 # Check whether --with-db_name was given.
27645 if test "${with_db_name+set}" = set; then
27646 withval=$with_db_name;
27647 if test "x$withval" != "x" ; then
27658 # Check whether --with-db_user was given.
27659 if test "${with_db_user+set}" = set; then
27660 withval=$with_db_user;
27661 if test "x$withval" != "x" ; then
27672 # Check whether --with-db_password was given.
27673 if test "${with_db_password+set}" = set; then
27674 withval=$with_db_password;
27675 if test "x$withval" != "x" ; then
27676 db_password=$withval
27686 # Check whether --with-db_port was given.
27687 if test "${with_db_port+set}" = set; then
27688 withval=$with_db_port;
27689 if test "x$withval" != "x" ; then
27699 # Handle users and groups for each daemon
27703 # Check whether --with-dir_user was given.
27704 if test "${with_dir_user+set}" = set; then
27705 withval=$with_dir_user;
27706 if test "x$withval" != "x" ; then
27716 # Check whether --with-dir_group was given.
27717 if test "${with_dir_group+set}" = set; then
27718 withval=$with_dir_group;
27719 if test "x$withval" != "x" ; then
27729 # Check whether --with-sd_user was given.
27730 if test "${with_sd_user+set}" = set; then
27731 withval=$with_sd_user;
27732 if test "x$withval" != "x" ; then
27742 # Check whether --with-sd_group was given.
27743 if test "${with_sd_group+set}" = set; then
27744 withval=$with_sd_group;
27745 if test "x$withval" != "x" ; then
27755 # Check whether --with-fd_user was given.
27756 if test "${with_fd_user+set}" = set; then
27757 withval=$with_fd_user;
27758 if test "x$withval" != "x" ; then
27768 # Check whether --with-fd_group was given.
27769 if test "${with_fd_group+set}" = set; then
27770 withval=$with_fd_group;
27771 if test "x$withval" != "x" ; then
27788 # Check whether --with-sbin-perm was given.
27789 if test "${with_sbin_perm+set}" = set; then
27790 withval=$with_sbin_perm;
27791 if test "x$withval" != "x" ; then
27804 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27805 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27807 # Check whether --with-postgresql was given.
27808 if test "${with_postgresql+set}" = set; then
27809 withval=$with_postgresql;
27810 if test "$withval" != "no"; then
27811 if test "$db_found" = "yes"; then
27812 { echo "$as_me:$LINENO: result: error" >&5
27813 echo "${ECHO_T}error" >&6; }
27814 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27815 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27816 { (exit 1); exit 1; }; };
27818 if test "$withval" = "yes"; then
27819 PG_CONFIG=`which pg_config`
27820 if test -n "$PG_CONFIG";then
27821 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27822 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27823 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27824 elif test -f /usr/local/include/libpq-fe.h; then
27825 POSTGRESQL_INCDIR=/usr/local/include
27826 if test -d /usr/local/lib64; then
27827 POSTGRESQL_LIBDIR=/usr/local/lib64
27829 POSTGRESQL_LIBDIR=/usr/local/lib
27831 POSTGRESQL_BINDIR=/usr/local/bin
27832 elif test -f /usr/include/libpq-fe.h; then
27833 POSTGRESQL_INCDIR=/usr/include
27834 if test -d /usr/lib64; then
27835 POSTGRESQL_LIBDIR=/usr/lib64
27837 POSTGRESQL_LIBDIR=/usr/lib
27839 POSTGRESQL_BINDIR=/usr/bin
27840 elif test -f /usr/include/pgsql/libpq-fe.h; then
27841 POSTGRESQL_INCDIR=/usr/include/pgsql
27842 if test -d /usr/lib64/pgsql; then
27843 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27845 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27847 POSTGRESQL_BINDIR=/usr/bin
27848 elif test -f /usr/include/postgresql/libpq-fe.h; then
27849 POSTGRESQL_INCDIR=/usr/include/postgresql
27850 if test -d /usr/lib64/postgresql; then
27851 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27853 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27855 POSTGRESQL_BINDIR=/usr/bin
27857 { echo "$as_me:$LINENO: result: no" >&5
27858 echo "${ECHO_T}no" >&6; }
27859 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27860 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27861 { (exit 1); exit 1; }; }
27863 elif test -f $withval/include/libpq-fe.h; then
27864 POSTGRESQL_INCDIR=$withval/include
27865 POSTGRESQL_LIBDIR=$withval/lib
27866 POSTGRESQL_BINDIR=$withval/bin
27867 elif test -f $withval/include/postgresql/libpq-fe.h; then
27868 POSTGRESQL_INCDIR=$withval/include/postgresql
27869 if test -d $withval/lib64; then
27870 POSTGRESQL_LIBDIR=$withval/lib64
27872 POSTGRESQL_LIBDIR=$withval/lib
27874 POSTGRESQL_BINDIR=$withval/bin
27876 { echo "$as_me:$LINENO: result: no" >&5
27877 echo "${ECHO_T}no" >&6; }
27878 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27879 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27880 { (exit 1); exit 1; }; }
27882 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27883 { echo "$as_me:$LINENO: checking for crypt" >&5
27884 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27885 if test "${ac_cv_func_crypt+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 cat >conftest.$ac_ext <<_ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27896 #define crypt innocuous_crypt
27898 /* System header to define __stub macros and hopefully few prototypes,
27899 which can conflict with char crypt (); below.
27900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27901 <limits.h> exists even on freestanding compilers. */
27904 # include <limits.h>
27906 # include <assert.h>
27911 /* Override any GCC internal prototype to avoid an error.
27912 Use char because int might match the return type of a GCC
27913 builtin and then its argument prototype would still apply. */
27918 /* The GNU C library defines this for functions which it implements
27919 to always fail with ENOSYS. Some functions are actually named
27920 something starting with __ and the normal name is an alias. */
27921 #if defined __stub_crypt || defined __stub___crypt
27933 rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (ac_try="$ac_link"
27935 case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_link") 2>conftest.er1
27942 grep -v '^ *+' conftest.er1 >conftest.err
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } && {
27947 test -z "$ac_c_werror_flag" ||
27948 test ! -s conftest.err
27949 } && test -s conftest$ac_exeext &&
27950 $as_test_x conftest$ac_exeext; then
27951 ac_cv_func_crypt=yes
27953 echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27956 ac_cv_func_crypt=no
27959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27960 conftest$ac_exeext conftest.$ac_ext
27962 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27963 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27964 if test $ac_cv_func_crypt = yes; then
27967 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27968 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27969 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 ac_check_lib_save_LIBS=$LIBS
27973 LIBS="-lcrypt $LIBS"
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27981 /* Override any GCC internal prototype to avoid an error.
27982 Use char because int might match the return type of a GCC
27983 builtin and then its argument prototype would still apply. */
27996 rm -f conftest.$ac_objext conftest$ac_exeext
27997 if { (ac_try="$ac_link"
27998 case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_link") 2>conftest.er1
28005 grep -v '^ *+' conftest.er1 >conftest.err
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } && {
28010 test -z "$ac_c_werror_flag" ||
28011 test ! -s conftest.err
28012 } && test -s conftest$ac_exeext &&
28013 $as_test_x conftest$ac_exeext; then
28014 ac_cv_lib_crypt_crypt=yes
28016 echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.$ac_ext >&5
28019 ac_cv_lib_crypt_crypt=no
28022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28023 conftest$ac_exeext conftest.$ac_ext
28024 LIBS=$ac_check_lib_save_LIBS
28026 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28027 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28028 if test $ac_cv_lib_crypt_crypt = yes; then
28029 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28034 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28035 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28036 SQL_BINDIR=$POSTGRESQL_BINDIR
28037 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28039 cat >>confdefs.h <<\_ACEOF
28040 #define HAVE_POSTGRESQL 1
28043 { echo "$as_me:$LINENO: result: yes" >&5
28044 echo "${ECHO_T}yes" >&6; }
28046 support_postgresql=yes
28050 { echo "$as_me:$LINENO: result: no" >&5
28051 echo "${ECHO_T}no" >&6; }
28056 { echo "$as_me:$LINENO: result: no" >&5
28057 echo "${ECHO_T}no" >&6; }
28069 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28070 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28072 # Check whether --with-mysql was given.
28073 if test "${with_mysql+set}" = set; then
28074 withval=$with_mysql;
28075 if test "$withval" != "no"; then
28076 if test "$withval" = "yes"; then
28077 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28078 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28079 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28080 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28081 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28083 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28085 MYSQL_BINDIR=/usr/local/mysql/bin
28086 elif test -f /usr/include/mysql/mysql.h; then
28087 MYSQL_INCDIR=/usr/include/mysql
28088 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28089 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28090 MYSQL_LIBDIR=/usr/lib64/mysql
28091 elif test -f /usr/lib64/libmysqlclient_r.a \
28092 -o -f /usr/lib64/libmysqlclient_r.so; then
28093 MYSQL_LIBDIR=/usr/lib64
28094 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28095 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28096 MYSQL_LIBDIR=/usr/lib/mysql
28098 MYSQL_LIBDIR=/usr/lib
28100 MYSQL_BINDIR=/usr/bin
28101 elif test -f /usr/include/mysql.h; then
28102 MYSQL_INCDIR=/usr/include
28103 if test -f /usr/lib64/libmysqlclient_r.a \
28104 -o -f /usr/lib64/libmysqlclient_r.so; then
28105 MYSQL_LIBDIR=/usr/lib64
28107 MYSQL_LIBDIR=/usr/lib
28109 MYSQL_BINDIR=/usr/bin
28110 elif test -f /usr/local/include/mysql/mysql.h; then
28111 MYSQL_INCDIR=/usr/local/include/mysql
28112 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28113 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28114 MYSQL_LIBDIR=/usr/local/lib64/mysql
28116 MYSQL_LIBDIR=/usr/local/lib/mysql
28118 MYSQL_BINDIR=/usr/local/bin
28119 elif test -f /usr/local/include/mysql.h; then
28120 MYSQL_INCDIR=/usr/local/include
28121 if test -f /usr/local/lib64/libmysqlclient_r.a \
28122 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28123 MYSQL_LIBDIR=/usr/local/lib64
28125 MYSQL_LIBDIR=/usr/local/lib
28127 MYSQL_BINDIR=/usr/local/bin
28129 { echo "$as_me:$LINENO: result: no" >&5
28130 echo "${ECHO_T}no" >&6; }
28131 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28132 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28133 { (exit 1); exit 1; }; }
28136 if test -f $withval/include/mysql/mysql.h; then
28137 MYSQL_INCDIR=$withval/include/mysql
28138 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28139 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28140 MYSQL_LIBDIR=$withval/lib64/mysql
28141 elif test -f $withval/lib64/libmysqlclient_r.a \
28142 -o -f $withval/lib64/libmysqlclient_r.so; then
28143 MYSQL_LIBDIR=$withval/lib64
28144 elif test -f $withval/lib/libmysqlclient_r.a \
28145 -o -f $withval/lib/libmysqlclient_r.so; then
28146 MYSQL_LIBDIR=$withval/lib
28148 MYSQL_LIBDIR=$withval/lib/mysql
28150 MYSQL_BINDIR=$withval/bin
28151 elif test -f $withval/include/mysql.h; then
28152 MYSQL_INCDIR=$withval/include
28153 if test -f $withval/lib64/libmysqlclient_r.a \
28154 -o -f $withval/lib64/libmysqlclient_r.so; then
28155 MYSQL_LIBDIR=$withval/lib64
28157 MYSQL_LIBDIR=$withval/lib
28159 MYSQL_BINDIR=$withval/bin
28161 { echo "$as_me:$LINENO: result: no" >&5
28162 echo "${ECHO_T}no" >&6; }
28163 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28164 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28165 { (exit 1); exit 1; }; }
28168 SQL_INCLUDE=-I$MYSQL_INCDIR
28169 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28170 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28171 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28172 cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_THREAD_SAFE_MYSQL 1
28177 SQL_BINDIR=$MYSQL_BINDIR
28178 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28181 cat >>confdefs.h <<\_ACEOF
28182 #define HAVE_MYSQL 1
28185 { echo "$as_me:$LINENO: result: yes" >&5
28186 echo "${ECHO_T}yes" >&6; }
28193 { echo "$as_me:$LINENO: result: no" >&5
28194 echo "${ECHO_T}no" >&6; }
28202 # Check whether --with-embedded-mysql was given.
28203 if test "${with_embedded_mysql+set}" = set; then
28204 withval=$with_embedded_mysql;
28205 if test "$withval" != "no"; then
28206 if test "$withval" = "yes"; then
28207 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28208 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28209 if test -d /usr/local/mysql/lib64/mysql; then
28210 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28212 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28214 MYSQL_BINDIR=/usr/local/mysql/bin
28215 elif test -f /usr/include/mysql/mysql.h; then
28216 MYSQL_INCDIR=/usr/include/mysql
28217 if test -d /usr/lib64/mysql; then
28218 MYSQL_LIBDIR=/usr/lib64/mysql
28220 MYSQL_LIBDIR=/usr/lib/mysql
28222 MYSQL_BINDIR=/usr/bin
28223 elif test -f /usr/include/mysql.h; then
28224 MYSQL_INCDIR=/usr/include
28225 if test -d /usr/lib64; then
28226 MYSQL_LIBDIR=/usr/lib64
28228 MYSQL_LIBDIR=/usr/lib
28230 MYSQL_BINDIR=/usr/bin
28231 elif test -f /usr/local/include/mysql/mysql.h; then
28232 MYSQL_INCDIR=/usr/local/include/mysql
28233 if test -d /usr/local/lib64/mysql; then
28234 MYSQL_LIBDIR=/usr/local/lib64/mysql
28236 MYSQL_LIBDIR=/usr/local/lib/mysql
28238 MYSQL_BINDIR=/usr/local/bin
28239 elif test -f /usr/local/include/mysql.h; then
28240 MYSQL_INCDIR=/usr/local/include
28241 if test -d /usr/local/lib64; then
28242 MYSQL_LIBDIR=/usr/local/lib64
28244 MYSQL_LIBDIR=/usr/local/lib
28246 MYSQL_BINDIR=/usr/local/bin
28248 { echo "$as_me:$LINENO: result: no" >&5
28249 echo "${ECHO_T}no" >&6; }
28250 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28251 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28252 { (exit 1); exit 1; }; }
28255 if test -f $withval/include/mysql/mysql.h; then
28256 MYSQL_INCDIR=$withval/include/mysql
28257 if test -d $withval/lib64/mysql; then
28258 MYSQL_LIBDIR=$withval/lib64/mysql
28260 MYSQL_LIBDIR=$withval/lib/mysql
28262 MYSQL_BINDIR=$withval/bin
28263 elif test -f $withval/include/mysql.h; then
28264 MYSQL_INCDIR=$withval/include
28265 if test -d $withval/lib64; then
28266 MYSQL_LIBDIR=$withval/lib64
28268 MYSQL_LIBDIR=$withval/lib
28270 MYSQL_BINDIR=$withval/bin
28272 { echo "$as_me:$LINENO: result: no" >&5
28273 echo "${ECHO_T}no" >&6; }
28274 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28275 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28276 { (exit 1); exit 1; }; }
28279 SQL_INCLUDE=-I$MYSQL_INCDIR
28280 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28281 SQL_BINDIR=$MYSQL_BINDIR
28282 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28284 cat >>confdefs.h <<\_ACEOF
28285 #define HAVE_MYSQL 1
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_EMBEDDED_MYSQL 1
28292 { echo "$as_me:$LINENO: result: yes" >&5
28293 echo "${ECHO_T}yes" >&6; }
28300 { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28317 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28318 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28320 # Check whether --with-ingres was given.
28321 if test "${with_ingres+set}" = set; then
28322 withval=$with_ingres;
28323 if test "$withval" != "no"; then
28324 if test "$withval" = "yes"; then
28325 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28326 INGRES_INCDIR=${II_SYSTEM}/files
28327 INGRES_LIBDIR=${II_SYSTEM}/lib
28328 INGRES_BINDIR=${II_SYSTEM}/bin
28329 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28330 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28331 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28332 INGRES_BINDIR=${II_SYSTEM}/bin
28334 { echo "$as_me:$LINENO: result: no" >&5
28335 echo "${ECHO_T}no" >&6; }
28336 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28337 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28338 { (exit 1); exit 1; }; }
28341 if test -f $withval/files/eqdefc.h; then
28342 INGRES_INCDIR=$withval/files
28343 INGRES_LIBDIR=$withval/lib
28344 INGRES_BINDIR=$withval/bin
28346 { echo "$as_me:$LINENO: result: no" >&5
28347 echo "${ECHO_T}no" >&6; }
28348 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28349 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28350 { (exit 1); exit 1; }; }
28353 SQL_INCLUDE=-I$INGRES_INCDIR
28354 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28355 SQL_BINDIR=$INGRES_BINDIR
28356 SQL_LIB=$INGRES_LIBDIR/libingres.a
28358 cat >>confdefs.h <<\_ACEOF
28359 #define HAVE_INGRES 1
28362 { echo "$as_me:$LINENO: result: yes" >&5
28363 echo "${ECHO_T}yes" >&6; }
28370 { echo "$as_me:$LINENO: result: no" >&5
28371 echo "${ECHO_T}no" >&6; }
28376 { echo "$as_me:$LINENO: result: no" >&5
28377 echo "${ECHO_T}no" >&6; }
28389 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28390 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28392 # Check whether --with-sqlite3 was given.
28393 if test "${with_sqlite3+set}" = set; then
28394 withval=$with_sqlite3;
28395 if test "$withval" != "no"; then
28396 if test "$withval" = "yes"; then
28397 if test -f /usr/local/include/sqlite3.h; then
28398 SQLITE_INCDIR=/usr/local/include
28399 if test -d /usr/local/lib64; then
28400 SQLITE_LIBDIR=/usr/local/lib64
28402 SQLITE_LIBDIR=/usr/local/lib
28404 SQLITE_BINDIR=/usr/local/bin
28405 elif test -f /usr/include/sqlite3.h; then
28406 SQLITE_INCDIR=/usr/include
28407 if test -d /usr/lib64; then
28408 SQLITE_LIBDIR=/usr/lib64
28410 SQLITE_LIBDIR=/usr/lib
28412 SQLITE_BINDIR=/usr/bin
28413 elif test -f $prefix/include/sqlite3.h; then
28414 SQLITE_INCDIR=$prefix/include
28415 if test -d $prefix/lib64; then
28416 SQLITE_LIBDIR=$prefix/lib64
28418 SQLITE_LIBDIR=$prefix/lib
28420 SQLITE_BINDIR=$prefix/bin
28422 { echo "$as_me:$LINENO: result: no" >&5
28423 echo "${ECHO_T}no" >&6; }
28424 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28425 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28426 { (exit 1); exit 1; }; }
28429 if test -f $withval/sqlite3.h; then
28430 SQLITE_INCDIR=$withval
28431 SQLITE_LIBDIR=$withval
28432 SQLITE_BINDIR=$withval
28433 elif test -f $withval/include/sqlite3.h; then
28434 SQLITE_INCDIR=$withval/include
28435 if test -d $withval/lib64; then
28436 SQLITE_LIBDIR=$withval/lib64
28438 SQLITE_LIBDIR=$withval/lib
28440 SQLITE_BINDIR=$withval/bin
28442 { echo "$as_me:$LINENO: result: no" >&5
28443 echo "${ECHO_T}no" >&6; }
28444 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28445 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28446 { (exit 1); exit 1; }; }
28449 SQL_INCLUDE=-I$SQLITE_INCDIR
28450 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28451 SQL_BINDIR=$SQLITE_BINDIR
28452 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28454 cat >>confdefs.h <<\_ACEOF
28455 #define HAVE_SQLITE3 1
28458 { echo "$as_me:$LINENO: result: yes" >&5
28459 echo "${ECHO_T}yes" >&6; }
28461 support_sqlite3=yes
28466 { echo "$as_me:$LINENO: result: no" >&5
28467 echo "${ECHO_T}no" >&6; }
28472 { echo "$as_me:$LINENO: result: no" >&5
28473 echo "${ECHO_T}no" >&6; }
28483 # BA_CHECK_SQLITE_DB
28487 { echo "$as_me:$LINENO: checking for DBI support" >&5
28488 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28490 # Check whether --with-dbi was given.
28491 if test "${with_dbi+set}" = set; then
28493 if test "$withval" != "no"; then
28494 if test "$withval" = "yes"; then
28495 if test -f /usr/local/include/dbi/dbi.h; then
28496 DBI_INCDIR=/usr/local/dbi/include
28497 if test -d /usr/local/lib64; then
28498 DBI_LIBDIR=/usr/local/lib64
28500 DBI_LIBDIR=/usr/local/lib
28502 DBI_BINDIR=/usr/local/bin
28503 elif test -f /usr/include/dbi/dbi.h; then
28504 DBI_INCDIR=/usr/include
28505 if test -d /usr/lib64; then
28506 DBI_LIBDIR=/usr/lib64
28508 DBI_LIBDIR=/usr/lib
28510 DBI_BINDIR=/usr/bin
28511 elif test -f $prefix/include/dbi/dbi.h; then
28512 DBI_INCDIR=$prefix/include
28513 if test -d $prefix/lib64; then
28514 DBI_LIBDIR=$prefix/lib64
28516 DBI_LIBDIR=$prefix/lib
28518 DBI_BINDIR=$prefix/bin
28520 { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28522 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28523 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28524 { (exit 1); exit 1; }; }
28526 if test -d /usr/local/lib/dbd; then
28527 DRIVERDIR=/usr/local/lib/dbd
28528 if test -d /usr/local/lib64/dbd; then
28529 DRIVERDIR=/usr/local/lib64/dbd
28531 DRIVERDIR=/usr/local/lib/dbd
28533 elif test -d /usr/lib/dbd; then
28534 DRIVERDIR=/usr/lib/dbd
28535 if test -d /usr/lib64/dbd; then
28536 DRIVERDIR=/usr/lib64/dbd
28538 DRIVERDIR=/usr/lib/dbd
28540 elif test -d $prefix/lib/dbd; then
28541 if test -d $prefix/lib64/dbd; then
28542 DRIVERDIR=$prefix/lib64/dbd
28544 DRIVERDIR=$prefix/lib/dbd
28546 elif test -d /usr/local/lib64/dbd; then
28547 DRIVERDIR=/usr/local/lib64/dbd
28548 elif test -d /usr/lib64/dbd; then
28549 DRIVERDIR=/usr/lib64/dbd
28550 elif test -d $prefix/lib64/dbd; then
28551 DRIVERDIR=$prefix/lib64/dbd
28553 { echo "$as_me:$LINENO: result: no" >&5
28554 echo "${ECHO_T}no" >&6; }
28555 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28556 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28557 { (exit 1); exit 1; }; }
28560 if test -f $withval/dbi.h; then
28561 DBI_INCDIR=$withval
28562 DBI_LIBDIR=$withval
28563 DBI_BINDIR=$withval
28564 elif test -f $withval/include/dbi/dbi.h; then
28565 DBI_INCDIR=$withval/include
28566 if test -d $withval/lib64; then
28567 DBI_LIBDIR=$withval/lib64
28569 DBI_LIBDIR=$withval/lib
28571 DBI_BINDIR=$withval/bin
28573 { echo "$as_me:$LINENO: result: no" >&5
28574 echo "${ECHO_T}no" >&6; }
28575 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28576 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28577 { (exit 1); exit 1; }; }
28579 if test -d $withval/dbd; then
28580 DRIVERDIR=$withval/dbd
28581 elif test -d $withval/lib/; then
28582 if test -d $withval/lib64/dbd; then
28583 DRIVERDIR=$withval/lib64/dbd
28585 DRIVERDIR=$withval/lib/dbd
28587 elif test -d $withval/lib64/dbd; then
28588 DRIVERDIR=$withval/lib64/dbd
28590 { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28593 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28594 { (exit 1); exit 1; }; }
28597 SQL_INCLUDE=-I$DBI_INCDIR
28598 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28599 SQL_BINDIR=$DBI_BINDIR
28600 SQL_LIB=$DBI_LIBDIR/libdbi.a
28601 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28604 cat >>confdefs.h <<\_ACEOF
28608 { echo "$as_me:$LINENO: result: yes" >&5
28609 echo "${ECHO_T}yes" >&6; }
28617 { echo "$as_me:$LINENO: result: no" >&5
28618 echo "${ECHO_T}no" >&6; }
28623 { echo "$as_me:$LINENO: result: no" >&5
28624 echo "${ECHO_T}no" >&6; }
28639 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28640 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28642 # Check whether --with-dbi-driver was given.
28643 if test "${with_dbi_driver+set}" = set; then
28644 withval=$with_dbi_driver;
28645 if test "$withval" != "no"; then
28649 if test -f /usr/local/mysql/bin/mysql; then
28650 SQL_BINDIR=/usr/local/mysql/bin
28651 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28652 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28653 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28655 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28657 elif test -f /usr/bin/mysql; then
28658 SQL_BINDIR=/usr/bin
28659 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28660 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28661 SQL_LIBDIR=/usr/lib64/mysql
28662 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28663 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28664 SQL_LIBDIR=/usr/lib/mysql
28666 SQL_LIBDIR=/usr/lib
28668 elif test -f /usr/local/bin/mysql; then
28669 SQL_BINDIR=/usr/local/bin
28670 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28671 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28672 SQL_LIBDIR=/usr/local/lib64/mysql
28673 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28674 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28675 SQL_LIBDIR=/usr/local/lib/mysql
28677 SQL_LIBDIR=/usr/local/lib
28679 elif test -f $withval/bin/mysql; then
28680 SQL_BINDIR=$withval/bin
28681 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28682 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28683 SQL_LIBDIR=$withval/lib64/mysql
28684 elif test -f $withval/lib64/libmysqlclient_r.a \
28685 -o -f $withval/lib64/libmysqlclient_r.so; then
28686 SQL_LIBDIR=$withval/lib64
28687 elif test -f $withval/lib/libmysqlclient_r.a \
28688 -o -f $withval/lib/libmysqlclient_r.so; then
28689 SQL_LIBDIR=$withval/lib/
28691 SQL_LIBDIR=$withval/lib/mysql
28694 { echo "$as_me:$LINENO: result: no" >&5
28695 echo "${ECHO_T}no" >&6; }
28696 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28697 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28698 { (exit 1); exit 1; }; }
28700 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28701 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28703 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28707 db_prog="postgresql"
28708 PG_CONFIG=`which pg_config`
28709 if test -n "$PG_CONFIG"; then
28710 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28711 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28712 elif test -f /usr/local/bin/psql; then
28713 SQL_BINDIR=/usr/local/bin
28714 if test -d /usr/local/lib64; then
28715 SQL_LIBDIR=/usr/local/lib64
28717 SQL_LIBDIR=/usr/local/lib
28719 elif test -f /usr/bin/psql; then
28720 SQL_BINDIR=/usr/local/bin
28721 if test -d /usr/lib64/postgresql; then
28722 SQL_LIBDIR=/usr/lib64/postgresql
28723 elif test -d /usr/lib/postgresql; then
28724 SQL_LIBDIR=/usr/lib/postgresql
28725 elif test -d /usr/lib64; then
28726 SQL_LIBDIR=/usr/lib64
28728 SQL_LIBDIR=/usr/lib
28730 elif test -f $withval/bin/psql; then
28731 SQL_BINDIR=$withval/bin
28732 if test -d $withval/lib64; then
28733 SQL_LIBDIR=$withval/lib64
28735 SQL_LIBDIR=$withval/lib
28738 { echo "$as_me:$LINENO: result: no" >&5
28739 echo "${ECHO_T}no" >&6; }
28740 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28741 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28742 { (exit 1); exit 1; }; }
28744 if test -f $SQL_LIBDIR/libpq.so; then
28745 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28747 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28752 if test -f /usr/local/bin/sqlite; then
28753 SQL_BINDIR=/usr/local/bin
28754 if test -d /usr/local/lib64; then
28755 SQL_LIBDIR=/usr/local/lib64
28757 SQL_LIBDIR=/usr/local/lib
28759 elif test -f /usr/bin/sqlite; then
28760 SQL_BINDIR=/usr/bin
28761 if test -d /usr/lib64; then
28762 SQL_LIBDIR=/usr/lib64
28764 SQL_LIBDIR=/usr/lib
28766 elif test -f $withval/bin/sqlite; then
28767 SQL_BINDIR=$withval/bin
28768 if test -d $withval/lib64; then
28769 SQL_LIBDIR=$withval/lib64
28771 SQL_LIBDIR=$withval/lib
28774 { echo "$as_me:$LINENO: result: no" >&5
28775 echo "${ECHO_T}no" >&6; }
28776 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28777 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28778 { (exit 1); exit 1; }; }
28780 if test -f $SQL_LIBDIR/libsqlite.so; then
28781 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28783 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28788 if test -f /usr/local/bin/sqlite3; then
28789 SQL_BINDIR=/usr/local/bin
28790 if test -d /usr/local/lib64; then
28791 SQL_LIBDIR=/usr/local/lib64
28793 SQL_LIBDIR=/usr/local/lib
28795 elif test -f /usr/bin/sqlite3; then
28796 SQL_BINDIR=/usr/bin
28797 if test -d /usr/lib64; then
28798 SQL_LIBDIR=/usr/lib64
28800 SQL_LIBDIR=/usr/lib
28802 elif test -f $withval/bin/sqlite3; then
28803 SQL_BINDIR=$withval/bin
28804 if test -d $withval/lib64; then
28805 SQL_LIBDIR=$withval/lib64
28807 SQL_LIBDIR=$withval/lib
28810 { echo "$as_me:$LINENO: result: no" >&5
28811 echo "${ECHO_T}no" >&6; }
28812 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28813 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28814 { (exit 1); exit 1; }; }
28816 if test -f $SQL_LIBDIR/libsqlite3.so; then
28817 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28819 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28823 { echo "$as_me:$LINENO: result: no" >&5
28824 echo "${ECHO_T}no" >&6; }
28825 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28826 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28827 { (exit 1); exit 1; }; }
28831 { echo "$as_me:$LINENO: result: yes" >&5
28832 echo "${ECHO_T}yes" >&6; }
28835 { echo "$as_me:$LINENO: result: no" >&5
28836 echo "${ECHO_T}no" >&6; }
28841 { echo "$as_me:$LINENO: result: no" >&5
28842 echo "${ECHO_T}no" >&6; }
28855 support_batch_insert=no
28856 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28858 if test $pkg = 0; then
28859 support_batch_insert=yes
28860 # Check whether --enable-batch-insert was given.
28861 if test "${enable_batch_insert+set}" = set; then
28862 enableval=$enable_batch_insert;
28863 if test x$enableval = xno; then
28864 support_batch_insert=no
28866 support_batch_insert=yes
28874 if test x$DB_TYPE = xpostgresql; then
28875 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28876 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28877 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28878 echo $ECHO_N "(cached) $ECHO_C" >&6
28880 ac_check_lib_save_LIBS=$LIBS
28882 cat >conftest.$ac_ext <<_ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28889 /* Override any GCC internal prototype to avoid an error.
28890 Use char because int might match the return type of a GCC
28891 builtin and then its argument prototype would still apply. */
28895 char PQisthreadsafe ();
28899 return PQisthreadsafe ();
28904 rm -f conftest.$ac_objext conftest$ac_exeext
28905 if { (ac_try="$ac_link"
28906 case "(($ac_try" in
28907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908 *) ac_try_echo=$ac_try;;
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_link") 2>conftest.er1
28913 grep -v '^ *+' conftest.er1 >conftest.err
28915 cat conftest.err >&5
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } && {
28918 test -z "$ac_c_werror_flag" ||
28919 test ! -s conftest.err
28920 } && test -s conftest$ac_exeext &&
28921 $as_test_x conftest$ac_exeext; then
28922 ac_cv_lib_pq_PQisthreadsafe=yes
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_cv_lib_pq_PQisthreadsafe=no
28930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28931 conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28935 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28936 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28938 cat >>confdefs.h <<\_ACEOF
28939 #define HAVE_PQISTHREADSAFE 1
28944 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28945 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28946 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28947 echo $ECHO_N "(cached) $ECHO_C" >&6
28949 ac_check_lib_save_LIBS=$LIBS
28951 cat >conftest.$ac_ext <<_ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h. */
28958 /* Override any GCC internal prototype to avoid an error.
28959 Use char because int might match the return type of a GCC
28960 builtin and then its argument prototype would still apply. */
28964 char PQputCopyData ();
28968 return PQputCopyData ();
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977 *) ac_try_echo=$ac_try;;
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980 (eval "$ac_link") 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } && {
28987 test -z "$ac_c_werror_flag" ||
28988 test ! -s conftest.err
28989 } && test -s conftest$ac_exeext &&
28990 $as_test_x conftest$ac_exeext; then
28991 ac_cv_lib_pq_PQputCopyData=yes
28993 echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28996 ac_cv_lib_pq_PQputCopyData=no
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000 conftest$ac_exeext conftest.$ac_ext
29001 LIBS=$ac_check_lib_save_LIBS
29003 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29004 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29005 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_PQ_COPY 1
29013 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29015 support_batch_insert=no
29019 if test x$DB_TYPE = xdbi; then
29023 if test $DB_PROG = postgresql; then
29024 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29025 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29026 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29029 ac_check_lib_save_LIBS=$LIBS
29031 cat >conftest.$ac_ext <<_ACEOF
29034 cat confdefs.h >>conftest.$ac_ext
29035 cat >>conftest.$ac_ext <<_ACEOF
29036 /* end confdefs.h. */
29038 /* Override any GCC internal prototype to avoid an error.
29039 Use char because int might match the return type of a GCC
29040 builtin and then its argument prototype would still apply. */
29044 char PQisthreadsafe ();
29048 return PQisthreadsafe ();
29053 rm -f conftest.$ac_objext conftest$ac_exeext
29054 if { (ac_try="$ac_link"
29055 case "(($ac_try" in
29056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057 *) ac_try_echo=$ac_try;;
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_link") 2>conftest.er1
29062 grep -v '^ *+' conftest.er1 >conftest.err
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } && {
29067 test -z "$ac_c_werror_flag" ||
29068 test ! -s conftest.err
29069 } && test -s conftest$ac_exeext &&
29070 $as_test_x conftest$ac_exeext; then
29071 ac_cv_lib_pq_PQisthreadsafe=yes
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 ac_cv_lib_pq_PQisthreadsafe=no
29079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29080 conftest$ac_exeext conftest.$ac_ext
29081 LIBS=$ac_check_lib_save_LIBS
29083 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29084 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29085 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29086 cat >>confdefs.h <<\_ACEOF
29087 #define HAVE_PQISTHREADSAFE 1
29092 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29093 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 ac_check_lib_save_LIBS=$LIBS
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29112 char PQputCopyData ();
29116 return PQputCopyData ();
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_link") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1 >conftest.err
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && {
29135 test -z "$ac_c_werror_flag" ||
29136 test ! -s conftest.err
29137 } && test -s conftest$ac_exeext &&
29138 $as_test_x conftest$ac_exeext; then
29139 ac_cv_lib_pq_PQputCopyData=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_lib_pq_PQputCopyData=no
29147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29148 conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29152 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29153 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29154 cat >>confdefs.h <<\_ACEOF
29155 #define HAVE_PQ_COPY 1
29160 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29164 if test $DB_PROG = mysql; then
29165 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29169 if test $DB_PROG = sqlite3; then
29170 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29174 if test $pkg = 0; then
29175 # Check whether --enable-batch-insert was given.
29176 if test "${enable_batch_insert+set}" = set; then
29177 enableval=$enable_batch_insert;
29178 if test x$enableval = xno; then
29179 support_batch_insert=no
29181 support_batch_insert=yes
29194 if test $support_batch_insert = yes ; then
29196 cat >>confdefs.h <<\_ACEOF
29197 #define HAVE_BATCH_FILE_INSERT 1
29202 cat >>confdefs.h <<\_ACEOF
29203 #define PROTOTYPES 1
29207 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29208 if test -z "$CCOPTS"; then
29209 CCOPTS='-g -O2 -Wall'
29216 largefile_support="no"
29218 # Check whether --enable-largefile was given.
29219 if test "${enable_largefile+set}" = set; then
29220 enableval=$enable_largefile;
29223 if test "$enable_largefile" != no; then
29224 if test -n "$ac_tool_prefix"; then
29225 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29226 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29229 if test "${ac_cv_prog_GETCONF+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29232 if test -n "$GETCONF"; then
29233 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29236 for as_dir in $PATH
29239 test -z "$as_dir" && as_dir=.
29240 for ac_exec_ext in '' $ac_executable_extensions; do
29241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29242 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29252 GETCONF=$ac_cv_prog_GETCONF
29253 if test -n "$GETCONF"; then
29254 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29255 echo "${ECHO_T}$GETCONF" >&6; }
29257 { echo "$as_me:$LINENO: result: no" >&5
29258 echo "${ECHO_T}no" >&6; }
29263 if test -z "$ac_cv_prog_GETCONF"; then
29264 ac_ct_GETCONF=$GETCONF
29265 # Extract the first word of "getconf", so it can be a program name with args.
29266 set dummy getconf; ac_word=$2
29267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29269 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 if test -n "$ac_ct_GETCONF"; then
29273 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29276 for as_dir in $PATH
29279 test -z "$as_dir" && as_dir=.
29280 for ac_exec_ext in '' $ac_executable_extensions; do
29281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29282 ac_cv_prog_ac_ct_GETCONF="getconf"
29283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29292 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29293 if test -n "$ac_ct_GETCONF"; then
29294 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29295 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29297 { echo "$as_me:$LINENO: result: no" >&5
29298 echo "${ECHO_T}no" >&6; }
29301 if test "x$ac_ct_GETCONF" = x; then
29304 case $cross_compiling:$ac_tool_warned in
29306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29307 whose name does not start with the host triplet. If you think this
29308 configuration is useful to you, please write to autoconf@gnu.org." >&5
29309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29310 whose name does not start with the host triplet. If you think this
29311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29312 ac_tool_warned=yes ;;
29314 GETCONF=$ac_ct_GETCONF
29317 GETCONF="$ac_cv_prog_GETCONF"
29320 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29321 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29322 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29325 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29326 ac_cv_sys_largefile_CFLAGS=no
29328 # IRIX 6.2 and later require cc -n32.
29329 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29330 if test "$GCC" != yes; then
29331 ac_cv_sys_largefile_CFLAGS=-n32
29334 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29335 cat >conftest.$ac_ext <<_ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29350 rm -f conftest.$ac_objext conftest$ac_exeext
29351 if { (ac_try="$ac_link"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_link") 2>conftest.er1
29359 grep -v '^ *+' conftest.er1 >conftest.err
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } && {
29364 test -z "$ac_c_werror_flag" ||
29365 test ! -s conftest.err
29366 } && test -s conftest$ac_exeext &&
29367 $as_test_x conftest$ac_exeext; then
29370 echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373 ac_cv_sys_largefile_CFLAGS=no
29376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29377 conftest$ac_exeext conftest.$ac_ext
29382 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29383 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29384 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29385 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29386 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29389 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29390 ac_cv_sys_largefile_LDFLAGS=no
29394 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29395 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29396 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29397 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29398 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29402 ac_cv_sys_largefile_LIBS=no
29406 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29407 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29409 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29412 -D_FILE_OFFSET_BITS=*) ;;
29413 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29414 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29419 case "$CPPFLAGS" in
29420 '') CPPFLAGS="$ac_flag" ;;
29421 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29429 '') CFLAGS="$ac_flag" ;;
29430 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29435 case "$ac_cv_sys_largefile_LDFLAGS" in
29439 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29440 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29443 case "$ac_cv_sys_largefile_LIBS" in
29447 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29448 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29451 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29452 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29454 echo $ECHO_N "(cached) $ECHO_C" >&6
29456 ac_cv_sys_file_offset_bits=no
29457 ac_cv_sys_file_offset_bits=64
29458 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29460 -D_FILE_OFFSET_BITS)
29461 ac_cv_sys_file_offset_bits=1 ;;
29462 -D_FILE_OFFSET_BITS=*)
29463 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29468 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29469 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29470 if test "$ac_cv_sys_file_offset_bits" != no; then
29472 cat >>confdefs.h <<_ACEOF
29473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29477 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29478 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29479 if test "${ac_cv_sys_largefile_source+set}" = set; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29482 ac_cv_sys_largefile_source=no
29483 ac_cv_sys_largefile_source=1
29484 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29486 -D_LARGEFILE_SOURCE)
29487 ac_cv_sys_largefile_source=1 ;;
29488 -D_LARGEFILE_SOURCE=*)
29489 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29494 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29495 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29496 if test "$ac_cv_sys_largefile_source" != no; then
29498 cat >>confdefs.h <<_ACEOF
29499 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29503 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29504 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29505 if test "${ac_cv_sys_large_files+set}" = set; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29508 ac_cv_sys_large_files=no
29509 ac_cv_sys_large_files=1
29510 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29513 ac_cv_sys_large_files=1 ;;
29515 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29520 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29521 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29522 if test "$ac_cv_sys_large_files" != no; then
29524 cat >>confdefs.h <<_ACEOF
29525 #define _LARGE_FILES $ac_cv_sys_large_files
29532 { echo "$as_me:$LINENO: checking for X" >&5
29533 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29536 # Check whether --with-x was given.
29537 if test "${with_x+set}" = set; then
29541 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29542 if test "x$with_x" = xno; then
29543 # The user explicitly disabled X.
29546 case $x_includes,$x_libraries in #(
29547 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29548 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29549 { (exit 1); exit 1; }; };; #(
29550 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29553 # One or both of the vars are not set, and there is no cached value.
29554 ac_x_includes=no ac_x_libraries=no
29555 rm -f -r conftest.dir
29556 if mkdir conftest.dir; then
29558 cat >Imakefile <<'_ACEOF'
29560 @echo incroot='${INCROOT}'
29562 @echo usrlibdir='${USRLIBDIR}'
29564 @echo libdir='${LIBDIR}'
29566 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29568 for ac_var in incroot usrlibdir libdir; do
29569 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29571 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29572 for ac_extension in a so sl; do
29573 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29574 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29575 ac_im_usrlibdir=$ac_im_libdir; break
29578 # Screen out bogus values from the imake configuration. They are
29579 # bogus both because they are the default anyway, and because
29580 # using them would break gcc on systems where it needs fixed includes.
29581 case $ac_im_incroot in
29582 /usr/include) ac_x_includes= ;;
29583 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29585 case $ac_im_usrlibdir in
29586 /usr/lib | /lib) ;;
29587 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29591 rm -f -r conftest.dir
29594 # Standard set of common directories for X headers.
29595 # Check X11 before X11Rn because it is often a symlink to the current release.
29607 /usr/local/X11/include
29608 /usr/local/X11R6/include
29609 /usr/local/X11R5/include
29610 /usr/local/X11R4/include
29612 /usr/local/include/X11
29613 /usr/local/include/X11R6
29614 /usr/local/include/X11R5
29615 /usr/local/include/X11R4
29619 /usr/XFree86/include/X11
29623 /usr/unsupported/include
29624 /usr/athena/include
29625 /usr/local/x11r5/include
29626 /usr/lpp/Xamples/include
29628 /usr/openwin/include
29629 /usr/openwin/share/include'
29631 if test "$ac_x_includes" = no; then
29632 # Guess where to find include files, by looking for Xlib.h.
29633 # First, try using that file with no special directory specified.
29634 cat >conftest.$ac_ext <<_ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 #include <X11/Xlib.h>
29642 if { (ac_try="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } >/dev/null && {
29655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29658 # We can compile using X headers with no special include directory.
29661 echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29664 for ac_dir in $ac_x_header_dirs; do
29665 if test -r "$ac_dir/X11/Xlib.h"; then
29666 ac_x_includes=$ac_dir
29672 rm -f conftest.err conftest.$ac_ext
29673 fi # $ac_x_includes = no
29675 if test "$ac_x_libraries" = no; then
29676 # Check for the libraries.
29677 # See if we find them without any special options.
29678 # Don't add to $LIBS permanently.
29681 cat >conftest.$ac_ext <<_ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29687 #include <X11/Xlib.h>
29696 rm -f conftest.$ac_objext conftest$ac_exeext
29697 if { (ac_try="$ac_link"
29698 case "(($ac_try" in
29699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29700 *) ac_try_echo=$ac_try;;
29702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29703 (eval "$ac_link") 2>conftest.er1
29705 grep -v '^ *+' conftest.er1 >conftest.err
29707 cat conftest.err >&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } && {
29710 test -z "$ac_c_werror_flag" ||
29711 test ! -s conftest.err
29712 } && test -s conftest$ac_exeext &&
29713 $as_test_x conftest$ac_exeext; then
29715 # We can link X programs with no special library path.
29718 echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29722 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29724 # Don't even attempt the hair of trying to link an X program!
29725 for ac_extension in a so sl; do
29726 if test -r "$ac_dir/libX11.$ac_extension"; then
29727 ac_x_libraries=$ac_dir
29734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29735 conftest$ac_exeext conftest.$ac_ext
29736 fi # $ac_x_libraries = no
29738 case $ac_x_includes,$ac_x_libraries in #(
29739 no,* | *,no | *\'*)
29740 # Didn't find X, or a directory has "'" in its name.
29741 ac_cv_have_x="have_x=no";; #(
29743 # Record where we found X for the cache.
29744 ac_cv_have_x="have_x=yes\
29745 ac_x_includes='$ac_x_includes'\
29746 ac_x_libraries='$ac_x_libraries'"
29752 eval "$ac_cv_have_x"
29755 if test "$have_x" != yes; then
29756 { echo "$as_me:$LINENO: result: $have_x" >&5
29757 echo "${ECHO_T}$have_x" >&6; }
29760 # If each of the values was on the command line, it overrides each guess.
29761 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29762 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29763 # Update the cache value to reflect the command line values.
29764 ac_cv_have_x="have_x=yes\
29765 ac_x_includes='$x_includes'\
29766 ac_x_libraries='$x_libraries'"
29767 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29768 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29771 if test "$no_x" = yes; then
29772 # Not all programs may use this symbol, but it does not hurt to define it.
29774 cat >>confdefs.h <<\_ACEOF
29775 #define X_DISPLAY_MISSING 1
29778 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29780 if test -n "$x_includes"; then
29781 X_CFLAGS="$X_CFLAGS -I$x_includes"
29784 # It would also be nice to do this for all -L options, not just this one.
29785 if test -n "$x_libraries"; then
29786 X_LIBS="$X_LIBS -L$x_libraries"
29787 # For Solaris; some versions of Sun CC require a space after -R and
29788 # others require no space. Words are not sufficient . . . .
29789 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29791 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29792 ac_xsave_c_werror_flag=$ac_c_werror_flag
29793 ac_c_werror_flag=yes
29794 cat >conftest.$ac_ext <<_ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h. */
29809 rm -f conftest.$ac_objext conftest$ac_exeext
29810 if { (ac_try="$ac_link"
29811 case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_link") 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } && {
29823 test -z "$ac_c_werror_flag" ||
29824 test ! -s conftest.err
29825 } && test -s conftest$ac_exeext &&
29826 $as_test_x conftest$ac_exeext; then
29827 { echo "$as_me:$LINENO: result: no" >&5
29828 echo "${ECHO_T}no" >&6; }
29829 X_LIBS="$X_LIBS -R$x_libraries"
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 LIBS="$ac_xsave_LIBS -R $x_libraries"
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_link") 2>conftest.er1
29859 grep -v '^ *+' conftest.er1 >conftest.err
29861 cat conftest.err >&5
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } && {
29864 test -z "$ac_c_werror_flag" ||
29865 test ! -s conftest.err
29866 } && test -s conftest$ac_exeext &&
29867 $as_test_x conftest$ac_exeext; then
29868 { echo "$as_me:$LINENO: result: yes" >&5
29869 echo "${ECHO_T}yes" >&6; }
29870 X_LIBS="$X_LIBS -R $x_libraries"
29872 echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29875 { echo "$as_me:$LINENO: result: neither works" >&5
29876 echo "${ECHO_T}neither works" >&6; }
29879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29880 conftest$ac_exeext conftest.$ac_ext
29883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29884 conftest$ac_exeext conftest.$ac_ext
29885 ac_c_werror_flag=$ac_xsave_c_werror_flag
29886 LIBS=$ac_xsave_LIBS
29889 # Check for system-dependent libraries X programs must link with.
29890 # Do this before checking for the system-independent R6 libraries
29891 # (-lICE), since we may need -lsocket or whatever for X linking.
29893 if test "$ISC" = yes; then
29894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29896 # Martyn Johnson says this is needed for Ultrix, if the X
29897 # libraries were built with DECnet support. And Karl Berry says
29898 # the Alpha needs dnet_stub (dnet does not exist).
29899 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29900 cat >conftest.$ac_ext <<_ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h. */
29907 /* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
29913 char XOpenDisplay ();
29917 return XOpenDisplay ();
29922 rm -f conftest.$ac_objext conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926 *) ac_try_echo=$ac_try;;
29928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29929 (eval "$ac_link") 2>conftest.er1
29931 grep -v '^ *+' conftest.er1 >conftest.err
29933 cat conftest.err >&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); } && {
29936 test -z "$ac_c_werror_flag" ||
29937 test ! -s conftest.err
29938 } && test -s conftest$ac_exeext &&
29939 $as_test_x conftest$ac_exeext; then
29942 echo "$as_me: failed program was:" >&5
29943 sed 's/^/| /' conftest.$ac_ext >&5
29945 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29946 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 ac_check_lib_save_LIBS=$LIBS
29951 LIBS="-ldnet $LIBS"
29952 cat >conftest.$ac_ext <<_ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h. */
29959 /* Override any GCC internal prototype to avoid an error.
29960 Use char because int might match the return type of a GCC
29961 builtin and then its argument prototype would still apply. */
29969 return dnet_ntoa ();
29974 rm -f conftest.$ac_objext conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978 *) ac_try_echo=$ac_try;;
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_link") 2>conftest.er1
29983 grep -v '^ *+' conftest.er1 >conftest.err
29985 cat conftest.err >&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } && {
29988 test -z "$ac_c_werror_flag" ||
29989 test ! -s conftest.err
29990 } && test -s conftest$ac_exeext &&
29991 $as_test_x conftest$ac_exeext; then
29992 ac_cv_lib_dnet_dnet_ntoa=yes
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_cv_lib_dnet_dnet_ntoa=no
30000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30001 conftest$ac_exeext conftest.$ac_ext
30002 LIBS=$ac_check_lib_save_LIBS
30004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30005 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30006 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30007 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30010 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30011 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30012 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30013 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 ac_check_lib_save_LIBS=$LIBS
30017 LIBS="-ldnet_stub $LIBS"
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30025 /* Override any GCC internal prototype to avoid an error.
30026 Use char because int might match the return type of a GCC
30027 builtin and then its argument prototype would still apply. */
30035 return dnet_ntoa ();
30040 rm -f conftest.$ac_objext conftest$ac_exeext
30041 if { (ac_try="$ac_link"
30042 case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_link") 2>conftest.er1
30049 grep -v '^ *+' conftest.er1 >conftest.err
30051 cat conftest.err >&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } && {
30054 test -z "$ac_c_werror_flag" ||
30055 test ! -s conftest.err
30056 } && test -s conftest$ac_exeext &&
30057 $as_test_x conftest$ac_exeext; then
30058 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30060 echo "$as_me: failed program was:" >&5
30061 sed 's/^/| /' conftest.$ac_ext >&5
30063 ac_cv_lib_dnet_stub_dnet_ntoa=no
30066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30067 conftest$ac_exeext conftest.$ac_ext
30068 LIBS=$ac_check_lib_save_LIBS
30070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30071 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30072 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30073 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30080 conftest$ac_exeext conftest.$ac_ext
30081 LIBS="$ac_xsave_LIBS"
30083 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30084 # to get the SysV transport functions.
30085 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30087 # The nsl library prevents programs from opening the X display
30088 # on Irix 5.2, according to T.E. Dickey.
30089 # The functions gethostbyname, getservbyname, and inet_addr are
30090 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30091 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30092 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30093 if test "${ac_cv_func_gethostbyname+set}" = set; then
30094 echo $ECHO_N "(cached) $ECHO_C" >&6
30096 cat >conftest.$ac_ext <<_ACEOF
30099 cat confdefs.h >>conftest.$ac_ext
30100 cat >>conftest.$ac_ext <<_ACEOF
30101 /* end confdefs.h. */
30102 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30104 #define gethostbyname innocuous_gethostbyname
30106 /* System header to define __stub macros and hopefully few prototypes,
30107 which can conflict with char gethostbyname (); below.
30108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30109 <limits.h> exists even on freestanding compilers. */
30112 # include <limits.h>
30114 # include <assert.h>
30117 #undef gethostbyname
30119 /* Override any GCC internal prototype to avoid an error.
30120 Use char because int might match the return type of a GCC
30121 builtin and then its argument prototype would still apply. */
30125 char gethostbyname ();
30126 /* The GNU C library defines this for functions which it implements
30127 to always fail with ENOSYS. Some functions are actually named
30128 something starting with __ and the normal name is an alias. */
30129 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30136 return gethostbyname ();
30141 rm -f conftest.$ac_objext conftest$ac_exeext
30142 if { (ac_try="$ac_link"
30143 case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_link") 2>conftest.er1
30150 grep -v '^ *+' conftest.er1 >conftest.err
30152 cat conftest.err >&5
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } && {
30155 test -z "$ac_c_werror_flag" ||
30156 test ! -s conftest.err
30157 } && test -s conftest$ac_exeext &&
30158 $as_test_x conftest$ac_exeext; then
30159 ac_cv_func_gethostbyname=yes
30161 echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30164 ac_cv_func_gethostbyname=no
30167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30168 conftest$ac_exeext conftest.$ac_ext
30170 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30173 if test $ac_cv_func_gethostbyname = no; then
30174 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30175 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30179 ac_check_lib_save_LIBS=$LIBS
30181 cat >conftest.$ac_ext <<_ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h. */
30188 /* Override any GCC internal prototype to avoid an error.
30189 Use char because int might match the return type of a GCC
30190 builtin and then its argument prototype would still apply. */
30194 char gethostbyname ();
30198 return gethostbyname ();
30203 rm -f conftest.$ac_objext conftest$ac_exeext
30204 if { (ac_try="$ac_link"
30205 case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_link") 2>conftest.er1
30212 grep -v '^ *+' conftest.er1 >conftest.err
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } && {
30217 test -z "$ac_c_werror_flag" ||
30218 test ! -s conftest.err
30219 } && test -s conftest$ac_exeext &&
30220 $as_test_x conftest$ac_exeext; then
30221 ac_cv_lib_nsl_gethostbyname=yes
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30226 ac_cv_lib_nsl_gethostbyname=no
30229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30230 conftest$ac_exeext conftest.$ac_ext
30231 LIBS=$ac_check_lib_save_LIBS
30233 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30234 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30235 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30239 if test $ac_cv_lib_nsl_gethostbyname = no; then
30240 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30241 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30242 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30243 echo $ECHO_N "(cached) $ECHO_C" >&6
30245 ac_check_lib_save_LIBS=$LIBS
30247 cat >conftest.$ac_ext <<_ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h. */
30254 /* Override any GCC internal prototype to avoid an error.
30255 Use char because int might match the return type of a GCC
30256 builtin and then its argument prototype would still apply. */
30260 char gethostbyname ();
30264 return gethostbyname ();
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_link") 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && {
30283 test -z "$ac_c_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest$ac_exeext &&
30286 $as_test_x conftest$ac_exeext; then
30287 ac_cv_lib_bsd_gethostbyname=yes
30289 echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30292 ac_cv_lib_bsd_gethostbyname=no
30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296 conftest$ac_exeext conftest.$ac_ext
30297 LIBS=$ac_check_lib_save_LIBS
30299 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30300 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30301 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30302 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30308 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30309 # socket/setsockopt and other routines are undefined under SCO ODT
30310 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30311 # on later versions), says Simon Leinen: it contains gethostby*
30312 # variants that don't use the name server (or something). -lsocket
30313 # must be given before -lnsl if both are needed. We assume that
30314 # if connect needs -lnsl, so does gethostbyname.
30315 { echo "$as_me:$LINENO: checking for connect" >&5
30316 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30317 if test "${ac_cv_func_connect+set}" = set; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30328 #define connect innocuous_connect
30330 /* System header to define __stub macros and hopefully few prototypes,
30331 which can conflict with char connect (); below.
30332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30333 <limits.h> exists even on freestanding compilers. */
30336 # include <limits.h>
30338 # include <assert.h>
30343 /* Override any GCC internal prototype to avoid an error.
30344 Use char because int might match the return type of a GCC
30345 builtin and then its argument prototype would still apply. */
30350 /* The GNU C library defines this for functions which it implements
30351 to always fail with ENOSYS. Some functions are actually named
30352 something starting with __ and the normal name is an alias. */
30353 #if defined __stub_connect || defined __stub___connect
30365 rm -f conftest.$ac_objext conftest$ac_exeext
30366 if { (ac_try="$ac_link"
30367 case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_link") 2>conftest.er1
30374 grep -v '^ *+' conftest.er1 >conftest.err
30376 cat conftest.err >&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } && {
30379 test -z "$ac_c_werror_flag" ||
30380 test ! -s conftest.err
30381 } && test -s conftest$ac_exeext &&
30382 $as_test_x conftest$ac_exeext; then
30383 ac_cv_func_connect=yes
30385 echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.$ac_ext >&5
30388 ac_cv_func_connect=no
30391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30392 conftest$ac_exeext conftest.$ac_ext
30394 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30395 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30397 if test $ac_cv_func_connect = no; then
30398 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30399 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30400 if test "${ac_cv_lib_socket_connect+set}" = set; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 ac_check_lib_save_LIBS=$LIBS
30404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30412 /* Override any GCC internal prototype to avoid an error.
30413 Use char because int might match the return type of a GCC
30414 builtin and then its argument prototype would still apply. */
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_link") 2>conftest.er1
30436 grep -v '^ *+' conftest.er1 >conftest.err
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } && {
30441 test -z "$ac_c_werror_flag" ||
30442 test ! -s conftest.err
30443 } && test -s conftest$ac_exeext &&
30444 $as_test_x conftest$ac_exeext; then
30445 ac_cv_lib_socket_connect=yes
30447 echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30450 ac_cv_lib_socket_connect=no
30453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30454 conftest$ac_exeext conftest.$ac_ext
30455 LIBS=$ac_check_lib_save_LIBS
30457 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30458 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30459 if test $ac_cv_lib_socket_connect = yes; then
30460 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30465 # Guillermo Gomez says -lposix is necessary on A/UX.
30466 { echo "$as_me:$LINENO: checking for remove" >&5
30467 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30468 if test "${ac_cv_func_remove+set}" = set; then
30469 echo $ECHO_N "(cached) $ECHO_C" >&6
30471 cat >conftest.$ac_ext <<_ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h. */
30477 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30479 #define remove innocuous_remove
30481 /* System header to define __stub macros and hopefully few prototypes,
30482 which can conflict with char remove (); below.
30483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30484 <limits.h> exists even on freestanding compilers. */
30487 # include <limits.h>
30489 # include <assert.h>
30494 /* Override any GCC internal prototype to avoid an error.
30495 Use char because int might match the return type of a GCC
30496 builtin and then its argument prototype would still apply. */
30501 /* The GNU C library defines this for functions which it implements
30502 to always fail with ENOSYS. Some functions are actually named
30503 something starting with __ and the normal name is an alias. */
30504 #if defined __stub_remove || defined __stub___remove
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (ac_try="$ac_link"
30518 case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_link") 2>conftest.er1
30525 grep -v '^ *+' conftest.er1 >conftest.err
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } && {
30530 test -z "$ac_c_werror_flag" ||
30531 test ! -s conftest.err
30532 } && test -s conftest$ac_exeext &&
30533 $as_test_x conftest$ac_exeext; then
30534 ac_cv_func_remove=yes
30536 echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30539 ac_cv_func_remove=no
30542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30543 conftest$ac_exeext conftest.$ac_ext
30545 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30546 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30548 if test $ac_cv_func_remove = no; then
30549 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30550 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30551 if test "${ac_cv_lib_posix_remove+set}" = set; then
30552 echo $ECHO_N "(cached) $ECHO_C" >&6
30554 ac_check_lib_save_LIBS=$LIBS
30555 LIBS="-lposix $LIBS"
30556 cat >conftest.$ac_ext <<_ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h. */
30563 /* Override any GCC internal prototype to avoid an error.
30564 Use char because int might match the return type of a GCC
30565 builtin and then its argument prototype would still apply. */
30578 rm -f conftest.$ac_objext conftest$ac_exeext
30579 if { (ac_try="$ac_link"
30580 case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_link") 2>conftest.er1
30587 grep -v '^ *+' conftest.er1 >conftest.err
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } && {
30592 test -z "$ac_c_werror_flag" ||
30593 test ! -s conftest.err
30594 } && test -s conftest$ac_exeext &&
30595 $as_test_x conftest$ac_exeext; then
30596 ac_cv_lib_posix_remove=yes
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 ac_cv_lib_posix_remove=no
30604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30605 conftest$ac_exeext conftest.$ac_ext
30606 LIBS=$ac_check_lib_save_LIBS
30608 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30609 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30610 if test $ac_cv_lib_posix_remove = yes; then
30611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30616 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30617 { echo "$as_me:$LINENO: checking for shmat" >&5
30618 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30619 if test "${ac_cv_func_shmat+set}" = set; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30622 cat >conftest.$ac_ext <<_ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30628 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30630 #define shmat innocuous_shmat
30632 /* System header to define __stub macros and hopefully few prototypes,
30633 which can conflict with char shmat (); below.
30634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30635 <limits.h> exists even on freestanding compilers. */
30638 # include <limits.h>
30640 # include <assert.h>
30645 /* Override any GCC internal prototype to avoid an error.
30646 Use char because int might match the return type of a GCC
30647 builtin and then its argument prototype would still apply. */
30652 /* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655 #if defined __stub_shmat || defined __stub___shmat
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_link") 2>conftest.er1
30676 grep -v '^ *+' conftest.er1 >conftest.err
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } && {
30681 test -z "$ac_c_werror_flag" ||
30682 test ! -s conftest.err
30683 } && test -s conftest$ac_exeext &&
30684 $as_test_x conftest$ac_exeext; then
30685 ac_cv_func_shmat=yes
30687 echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30690 ac_cv_func_shmat=no
30693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30694 conftest$ac_exeext conftest.$ac_ext
30696 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30697 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30699 if test $ac_cv_func_shmat = no; then
30700 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30701 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30702 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30705 ac_check_lib_save_LIBS=$LIBS
30707 cat >conftest.$ac_ext <<_ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30714 /* Override any GCC internal prototype to avoid an error.
30715 Use char because int might match the return type of a GCC
30716 builtin and then its argument prototype would still apply. */
30729 rm -f conftest.$ac_objext conftest$ac_exeext
30730 if { (ac_try="$ac_link"
30731 case "(($ac_try" in
30732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30733 *) ac_try_echo=$ac_try;;
30735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30736 (eval "$ac_link") 2>conftest.er1
30738 grep -v '^ *+' conftest.er1 >conftest.err
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } && {
30743 test -z "$ac_c_werror_flag" ||
30744 test ! -s conftest.err
30745 } && test -s conftest$ac_exeext &&
30746 $as_test_x conftest$ac_exeext; then
30747 ac_cv_lib_ipc_shmat=yes
30749 echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30752 ac_cv_lib_ipc_shmat=no
30755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30756 conftest$ac_exeext conftest.$ac_ext
30757 LIBS=$ac_check_lib_save_LIBS
30759 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30760 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30761 if test $ac_cv_lib_ipc_shmat = yes; then
30762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30768 # Check for libraries that X11R6 Xt/Xaw programs need.
30769 ac_save_LDFLAGS=$LDFLAGS
30770 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30771 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30772 # check for ICE first), but we must link in the order -lSM -lICE or
30773 # we get undefined symbols. So assume we have SM if we have ICE.
30774 # These have to be linked with before -lX11, unlike the other
30775 # libraries we check for below, so use a different variable.
30776 # John Interrante, Karl Berry
30777 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30778 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30779 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 ac_check_lib_save_LIBS=$LIBS
30783 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30784 cat >conftest.$ac_ext <<_ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h. */
30791 /* Override any GCC internal prototype to avoid an error.
30792 Use char because int might match the return type of a GCC
30793 builtin and then its argument prototype would still apply. */
30797 char IceConnectionNumber ();
30801 return IceConnectionNumber ();
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (ac_try="$ac_link"
30808 case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_link") 2>conftest.er1
30815 grep -v '^ *+' conftest.er1 >conftest.err
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } && {
30820 test -z "$ac_c_werror_flag" ||
30821 test ! -s conftest.err
30822 } && test -s conftest$ac_exeext &&
30823 $as_test_x conftest$ac_exeext; then
30824 ac_cv_lib_ICE_IceConnectionNumber=yes
30826 echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30829 ac_cv_lib_ICE_IceConnectionNumber=no
30832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30833 conftest$ac_exeext conftest.$ac_ext
30834 LIBS=$ac_check_lib_save_LIBS
30836 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30837 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30838 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30839 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30842 LDFLAGS=$ac_save_LDFLAGS
30908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30913 echo $ECHO_N "(cached) $ECHO_C" >&6
30915 ac_res=`eval echo '${'$as_ac_Header'}'`
30916 { echo "$as_me:$LINENO: result: $ac_res" >&5
30917 echo "${ECHO_T}$ac_res" >&6; }
30919 # Is the header compilable?
30920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30922 cat >conftest.$ac_ext <<_ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h. */
30928 $ac_includes_default
30929 #include <$ac_header>
30931 rm -f conftest.$ac_objext
30932 if { (ac_try="$ac_compile"
30933 case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_compile") 2>conftest.er1
30940 grep -v '^ *+' conftest.er1 >conftest.err
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } && {
30945 test -z "$ac_c_werror_flag" ||
30946 test ! -s conftest.err
30947 } && test -s conftest.$ac_objext; then
30948 ac_header_compiler=yes
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 ac_header_compiler=no
30956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30958 echo "${ECHO_T}$ac_header_compiler" >&6; }
30960 # Is the header present?
30961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30963 cat >conftest.$ac_ext <<_ACEOF
30966 cat confdefs.h >>conftest.$ac_ext
30967 cat >>conftest.$ac_ext <<_ACEOF
30968 /* end confdefs.h. */
30969 #include <$ac_header>
30971 if { (ac_try="$ac_cpp conftest.$ac_ext"
30972 case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30979 grep -v '^ *+' conftest.er1 >conftest.err
30981 cat conftest.err >&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } >/dev/null && {
30984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30985 test ! -s conftest.err
30987 ac_header_preproc=yes
30989 echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 ac_header_preproc=no
30995 rm -f conftest.err conftest.$ac_ext
30996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30997 echo "${ECHO_T}$ac_header_preproc" >&6; }
30999 # So? What about this header?
31000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31006 ac_header_preproc=yes
31009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31027 echo $ECHO_N "(cached) $ECHO_C" >&6
31029 eval "$as_ac_Header=\$ac_header_preproc"
31031 ac_res=`eval echo '${'$as_ac_Header'}'`
31032 { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31037 cat >>confdefs.h <<_ACEOF
31038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31047 if test "${ac_cv_header_stdc+set}" = set; then
31048 echo $ECHO_N "(cached) $ECHO_C" >&6
31050 cat >conftest.$ac_ext <<_ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h. */
31056 #include <stdlib.h>
31057 #include <stdarg.h>
31058 #include <string.h>
31069 rm -f conftest.$ac_objext
31070 if { (ac_try="$ac_compile"
31071 case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_compile") 2>conftest.er1
31078 grep -v '^ *+' conftest.er1 >conftest.err
31080 cat conftest.err >&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); } && {
31083 test -z "$ac_c_werror_flag" ||
31084 test ! -s conftest.err
31085 } && test -s conftest.$ac_objext; then
31086 ac_cv_header_stdc=yes
31088 echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31091 ac_cv_header_stdc=no
31094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31096 if test $ac_cv_header_stdc = yes; then
31097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31098 cat >conftest.$ac_ext <<_ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h. */
31104 #include <string.h>
31107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31108 $EGREP "memchr" >/dev/null 2>&1; then
31111 ac_cv_header_stdc=no
31117 if test $ac_cv_header_stdc = yes; then
31118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31119 cat >conftest.$ac_ext <<_ACEOF
31122 cat confdefs.h >>conftest.$ac_ext
31123 cat >>conftest.$ac_ext <<_ACEOF
31124 /* end confdefs.h. */
31125 #include <stdlib.h>
31128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31129 $EGREP "free" >/dev/null 2>&1; then
31132 ac_cv_header_stdc=no
31138 if test $ac_cv_header_stdc = yes; then
31139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31140 if test "$cross_compiling" = yes; then
31143 cat >conftest.$ac_ext <<_ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h. */
31150 #include <stdlib.h>
31151 #if ((' ' & 0x0FF) == 0x020)
31152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31155 # define ISLOWER(c) \
31156 (('a' <= (c) && (c) <= 'i') \
31157 || ('j' <= (c) && (c) <= 'r') \
31158 || ('s' <= (c) && (c) <= 'z'))
31159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31167 for (i = 0; i < 256; i++)
31168 if (XOR (islower (i), ISLOWER (i))
31169 || toupper (i) != TOUPPER (i))
31174 rm -f conftest$ac_exeext
31175 if { (ac_try="$ac_link"
31176 case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_link") 2>&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
31196 echo "$as_me: program exited with status $ac_status" >&5
31197 echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31200 ( exit $ac_status )
31201 ac_cv_header_stdc=no
31203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31211 if test $ac_cv_header_stdc = yes; then
31213 cat >>confdefs.h <<\_ACEOF
31214 #define STDC_HEADERS 1
31219 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31220 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31221 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31222 echo $ECHO_N "(cached) $ECHO_C" >&6
31224 cat >conftest.$ac_ext <<_ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31230 #include <sys/types.h>
31234 return makedev(0, 0);
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (ac_try="$ac_link"
31241 case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_link") 2>conftest.er1
31248 grep -v '^ *+' conftest.er1 >conftest.err
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && {
31253 test -z "$ac_c_werror_flag" ||
31254 test ! -s conftest.err
31255 } && test -s conftest$ac_exeext &&
31256 $as_test_x conftest$ac_exeext; then
31257 ac_cv_header_sys_types_h_makedev=yes
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31262 ac_cv_header_sys_types_h_makedev=no
31265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31266 conftest$ac_exeext conftest.$ac_ext
31269 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31270 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31272 if test $ac_cv_header_sys_types_h_makedev = no; then
31273 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31274 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31275 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31276 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31280 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31282 # Is the header compilable?
31283 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31284 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31285 cat >conftest.$ac_ext <<_ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h. */
31291 $ac_includes_default
31292 #include <sys/mkdev.h>
31294 rm -f conftest.$ac_objext
31295 if { (ac_try="$ac_compile"
31296 case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_compile") 2>conftest.er1
31303 grep -v '^ *+' conftest.er1 >conftest.err
31305 cat conftest.err >&5
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } && {
31308 test -z "$ac_c_werror_flag" ||
31309 test ! -s conftest.err
31310 } && test -s conftest.$ac_objext; then
31311 ac_header_compiler=yes
31313 echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31316 ac_header_compiler=no
31319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31321 echo "${ECHO_T}$ac_header_compiler" >&6; }
31323 # Is the header present?
31324 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31325 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332 #include <sys/mkdev.h>
31334 if { (ac_try="$ac_cpp conftest.$ac_ext"
31335 case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31342 grep -v '^ *+' conftest.er1 >conftest.err
31344 cat conftest.err >&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); } >/dev/null && {
31347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31348 test ! -s conftest.err
31350 ac_header_preproc=yes
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ac_header_preproc=no
31358 rm -f conftest.err conftest.$ac_ext
31359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31360 echo "${ECHO_T}$ac_header_preproc" >&6; }
31362 # So? What about this header?
31363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31365 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31366 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31367 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31368 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31369 ac_header_preproc=yes
31372 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31373 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31374 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31375 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31376 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31377 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31378 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31379 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31380 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31381 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31382 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31383 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31387 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31388 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31389 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
31392 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31394 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31395 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31398 if test $ac_cv_header_sys_mkdev_h = yes; then
31400 cat >>confdefs.h <<\_ACEOF
31401 #define MAJOR_IN_MKDEV 1
31408 if test $ac_cv_header_sys_mkdev_h = no; then
31409 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31410 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31411 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31412 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31416 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31418 # Is the header compilable?
31419 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31420 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 $ac_includes_default
31428 #include <sys/sysmacros.h>
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31439 grep -v '^ *+' conftest.er1 >conftest.err
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest.$ac_objext; then
31447 ac_header_compiler=yes
31449 echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31452 ac_header_compiler=no
31455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31457 echo "${ECHO_T}$ac_header_compiler" >&6; }
31459 # Is the header present?
31460 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31461 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31462 cat >conftest.$ac_ext <<_ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h. */
31468 #include <sys/sysmacros.h>
31470 if { (ac_try="$ac_cpp conftest.$ac_ext"
31471 case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31478 grep -v '^ *+' conftest.er1 >conftest.err
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } >/dev/null && {
31483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31484 test ! -s conftest.err
31486 ac_header_preproc=yes
31488 echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31491 ac_header_preproc=no
31494 rm -f conftest.err conftest.$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31496 echo "${ECHO_T}$ac_header_preproc" >&6; }
31498 # So? What about this header?
31499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31501 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31502 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31504 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31505 ac_header_preproc=yes
31508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31509 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31511 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31513 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31515 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31517 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31519 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31523 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31524 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31531 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31534 if test $ac_cv_header_sys_sysmacros_h = yes; then
31536 cat >>confdefs.h <<\_ACEOF
31537 #define MAJOR_IN_SYSMACROS 1
31551 ac_header_dirent=no
31552 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31553 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31554 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31555 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 cat >conftest.$ac_ext <<_ACEOF
31562 cat confdefs.h >>conftest.$ac_ext
31563 cat >>conftest.$ac_ext <<_ACEOF
31564 /* end confdefs.h. */
31565 #include <sys/types.h>
31577 rm -f conftest.$ac_objext
31578 if { (ac_try="$ac_compile"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_compile") 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } && {
31591 test -z "$ac_c_werror_flag" ||
31592 test ! -s conftest.err
31593 } && test -s conftest.$ac_objext; then
31594 eval "$as_ac_Header=yes"
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 eval "$as_ac_Header=no"
31602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31604 ac_res=`eval echo '${'$as_ac_Header'}'`
31605 { echo "$as_me:$LINENO: result: $ac_res" >&5
31606 echo "${ECHO_T}$ac_res" >&6; }
31607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31608 cat >>confdefs.h <<_ACEOF
31609 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31612 ac_header_dirent=$ac_hdr; break
31616 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31617 if test $ac_header_dirent = dirent.h; then
31618 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31619 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31620 if test "${ac_cv_search_opendir+set}" = set; then
31621 echo $ECHO_N "(cached) $ECHO_C" >&6
31623 ac_func_search_save_LIBS=$LIBS
31624 cat >conftest.$ac_ext <<_ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31631 /* Override any GCC internal prototype to avoid an error.
31632 Use char because int might match the return type of a GCC
31633 builtin and then its argument prototype would still apply. */
31646 for ac_lib in '' dir; do
31647 if test -z "$ac_lib"; then
31648 ac_res="none required"
31651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31653 rm -f conftest.$ac_objext conftest$ac_exeext
31654 if { (ac_try="$ac_link"
31655 case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_link") 2>conftest.er1
31662 grep -v '^ *+' conftest.er1 >conftest.err
31664 cat conftest.err >&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } && {
31667 test -z "$ac_c_werror_flag" ||
31668 test ! -s conftest.err
31669 } && test -s conftest$ac_exeext &&
31670 $as_test_x conftest$ac_exeext; then
31671 ac_cv_search_opendir=$ac_res
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31681 if test "${ac_cv_search_opendir+set}" = set; then
31685 if test "${ac_cv_search_opendir+set}" = set; then
31688 ac_cv_search_opendir=no
31690 rm conftest.$ac_ext
31691 LIBS=$ac_func_search_save_LIBS
31693 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31694 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31695 ac_res=$ac_cv_search_opendir
31696 if test "$ac_res" != no; then
31697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31702 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31703 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31704 if test "${ac_cv_search_opendir+set}" = set; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31707 ac_func_search_save_LIBS=$LIBS
31708 cat >conftest.$ac_ext <<_ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31715 /* Override any GCC internal prototype to avoid an error.
31716 Use char because int might match the return type of a GCC
31717 builtin and then its argument prototype would still apply. */
31730 for ac_lib in '' x; do
31731 if test -z "$ac_lib"; then
31732 ac_res="none required"
31735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31737 rm -f conftest.$ac_objext conftest$ac_exeext
31738 if { (ac_try="$ac_link"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_link") 2>conftest.er1
31746 grep -v '^ *+' conftest.er1 >conftest.err
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } && {
31751 test -z "$ac_c_werror_flag" ||
31752 test ! -s conftest.err
31753 } && test -s conftest$ac_exeext &&
31754 $as_test_x conftest$ac_exeext; then
31755 ac_cv_search_opendir=$ac_res
31757 echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31765 if test "${ac_cv_search_opendir+set}" = set; then
31769 if test "${ac_cv_search_opendir+set}" = set; then
31772 ac_cv_search_opendir=no
31774 rm conftest.$ac_ext
31775 LIBS=$ac_func_search_save_LIBS
31777 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31778 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31779 ac_res=$ac_cv_search_opendir
31780 if test "$ac_res" != no; then
31781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31787 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31788 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31789 if test "${ac_cv_header_stat_broken+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31792 cat >conftest.$ac_ext <<_ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h. */
31798 #include <sys/types.h>
31799 #include <sys/stat.h>
31801 #if defined S_ISBLK && defined S_IFDIR
31802 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31805 #if defined S_ISBLK && defined S_IFCHR
31806 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31809 #if defined S_ISLNK && defined S_IFREG
31810 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31813 #if defined S_ISSOCK && defined S_IFREG
31814 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31818 rm -f conftest.$ac_objext
31819 if { (ac_try="$ac_compile"
31820 case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_compile") 2>conftest.er1
31827 grep -v '^ *+' conftest.er1 >conftest.err
31829 cat conftest.err >&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } && {
31832 test -z "$ac_c_werror_flag" ||
31833 test ! -s conftest.err
31834 } && test -s conftest.$ac_objext; then
31835 ac_cv_header_stat_broken=no
31837 echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31840 ac_cv_header_stat_broken=yes
31843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31845 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31847 if test $ac_cv_header_stat_broken = yes; then
31849 cat >>confdefs.h <<\_ACEOF
31850 #define STAT_MACROS_BROKEN 1
31855 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31856 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31857 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31860 cat >conftest.$ac_ext <<_ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h. */
31866 #include <sys/types.h>
31867 #include <sys/wait.h>
31868 #ifndef WEXITSTATUS
31869 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31872 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31880 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_compile") 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } && {
31899 test -z "$ac_c_werror_flag" ||
31900 test ! -s conftest.err
31901 } && test -s conftest.$ac_objext; then
31902 ac_cv_header_sys_wait_h=yes
31904 echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31907 ac_cv_header_sys_wait_h=no
31910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31913 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31914 if test $ac_cv_header_sys_wait_h = yes; then
31916 cat >>confdefs.h <<\_ACEOF
31917 #define HAVE_SYS_WAIT_H 1
31922 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31923 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31924 if test "${ac_cv_header_time+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 cat >conftest.$ac_ext <<_ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 #include <sys/types.h>
31934 #include <sys/time.h>
31940 if ((struct tm *) 0)
31946 rm -f conftest.$ac_objext
31947 if { (ac_try="$ac_compile"
31948 case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_compile") 2>conftest.er1
31955 grep -v '^ *+' conftest.er1 >conftest.err
31957 cat conftest.err >&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } && {
31960 test -z "$ac_c_werror_flag" ||
31961 test ! -s conftest.err
31962 } && test -s conftest.$ac_objext; then
31963 ac_cv_header_time=yes
31965 echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31968 ac_cv_header_time=no
31971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31973 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31974 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31975 if test $ac_cv_header_time = yes; then
31977 cat >>confdefs.h <<\_ACEOF
31978 #define TIME_WITH_SYS_TIME 1
31983 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31984 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31985 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 cat >conftest.$ac_ext <<_ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h. */
31994 $ac_includes_default
31998 static struct stat ac_aggr;
31999 if (ac_aggr.st_blksize)
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } && {
32019 test -z "$ac_c_werror_flag" ||
32020 test ! -s conftest.err
32021 } && test -s conftest.$ac_objext; then
32022 ac_cv_member_struct_stat_st_blksize=yes
32024 echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32027 cat >conftest.$ac_ext <<_ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h. */
32033 $ac_includes_default
32037 static struct stat ac_aggr;
32038 if (sizeof ac_aggr.st_blksize)
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_compile") 2>conftest.er1
32053 grep -v '^ *+' conftest.er1 >conftest.err
32055 cat conftest.err >&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } && {
32058 test -z "$ac_c_werror_flag" ||
32059 test ! -s conftest.err
32060 } && test -s conftest.$ac_objext; then
32061 ac_cv_member_struct_stat_st_blksize=yes
32063 echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32066 ac_cv_member_struct_stat_st_blksize=no
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32075 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32076 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32078 cat >>confdefs.h <<_ACEOF
32079 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32083 cat >>confdefs.h <<\_ACEOF
32084 #define HAVE_ST_BLKSIZE 1
32090 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32091 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32092 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32095 cat >conftest.$ac_ext <<_ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h. */
32101 $ac_includes_default
32105 static struct stat ac_aggr;
32106 if (ac_aggr.st_blocks)
32112 rm -f conftest.$ac_objext
32113 if { (ac_try="$ac_compile"
32114 case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_compile") 2>conftest.er1
32121 grep -v '^ *+' conftest.er1 >conftest.err
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } && {
32126 test -z "$ac_c_werror_flag" ||
32127 test ! -s conftest.err
32128 } && test -s conftest.$ac_objext; then
32129 ac_cv_member_struct_stat_st_blocks=yes
32131 echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32134 cat >conftest.$ac_ext <<_ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32140 $ac_includes_default
32144 static struct stat ac_aggr;
32145 if (sizeof ac_aggr.st_blocks)
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_compile") 2>conftest.er1
32160 grep -v '^ *+' conftest.er1 >conftest.err
32162 cat conftest.err >&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } && {
32165 test -z "$ac_c_werror_flag" ||
32166 test ! -s conftest.err
32167 } && test -s conftest.$ac_objext; then
32168 ac_cv_member_struct_stat_st_blocks=yes
32170 echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32173 ac_cv_member_struct_stat_st_blocks=no
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32181 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32182 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32183 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32185 cat >>confdefs.h <<_ACEOF
32186 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32190 cat >>confdefs.h <<\_ACEOF
32191 #define HAVE_ST_BLOCKS 1
32195 case " $LIBOBJS " in
32196 *" fileblocks.$ac_objext "* ) ;;
32197 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32204 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32205 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32206 if test "${ac_cv_struct_tm+set}" = set; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32209 cat >conftest.$ac_ext <<_ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h. */
32215 #include <sys/types.h>
32222 int *p = &tm.tm_sec;
32228 rm -f conftest.$ac_objext
32229 if { (ac_try="$ac_compile"
32230 case "(($ac_try" in
32231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232 *) ac_try_echo=$ac_try;;
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235 (eval "$ac_compile") 2>conftest.er1
32237 grep -v '^ *+' conftest.er1 >conftest.err
32239 cat conftest.err >&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } && {
32242 test -z "$ac_c_werror_flag" ||
32243 test ! -s conftest.err
32244 } && test -s conftest.$ac_objext; then
32245 ac_cv_struct_tm=time.h
32247 echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32250 ac_cv_struct_tm=sys/time.h
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32255 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32256 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32257 if test $ac_cv_struct_tm = sys/time.h; then
32259 cat >>confdefs.h <<\_ACEOF
32260 #define TM_IN_SYS_TIME 1
32265 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32266 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32267 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32270 cat >conftest.$ac_ext <<_ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h. */
32276 #include <sys/types.h>
32277 #include <$ac_cv_struct_tm>
32283 static struct tm ac_aggr;
32284 if (ac_aggr.tm_zone)
32290 rm -f conftest.$ac_objext
32291 if { (ac_try="$ac_compile"
32292 case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297 (eval "$ac_compile") 2>conftest.er1
32299 grep -v '^ *+' conftest.er1 >conftest.err
32301 cat conftest.err >&5
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); } && {
32304 test -z "$ac_c_werror_flag" ||
32305 test ! -s conftest.err
32306 } && test -s conftest.$ac_objext; then
32307 ac_cv_member_struct_tm_tm_zone=yes
32309 echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32312 cat >conftest.$ac_ext <<_ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h. */
32318 #include <sys/types.h>
32319 #include <$ac_cv_struct_tm>
32325 static struct tm ac_aggr;
32326 if (sizeof ac_aggr.tm_zone)
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339 (eval "$ac_compile") 2>conftest.er1
32341 grep -v '^ *+' conftest.er1 >conftest.err
32343 cat conftest.err >&5
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } && {
32346 test -z "$ac_c_werror_flag" ||
32347 test ! -s conftest.err
32348 } && test -s conftest.$ac_objext; then
32349 ac_cv_member_struct_tm_tm_zone=yes
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32354 ac_cv_member_struct_tm_tm_zone=no
32357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32363 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32364 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32366 cat >>confdefs.h <<_ACEOF
32367 #define HAVE_STRUCT_TM_TM_ZONE 1
32373 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32375 cat >>confdefs.h <<\_ACEOF
32376 #define HAVE_TM_ZONE 1
32380 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32381 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32382 if test "${ac_cv_have_decl_tzname+set}" = set; then
32383 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32404 rm -f conftest.$ac_objext
32405 if { (ac_try="$ac_compile"
32406 case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_compile") 2>conftest.er1
32413 grep -v '^ *+' conftest.er1 >conftest.err
32415 cat conftest.err >&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } && {
32418 test -z "$ac_c_werror_flag" ||
32419 test ! -s conftest.err
32420 } && test -s conftest.$ac_objext; then
32421 ac_cv_have_decl_tzname=yes
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_have_decl_tzname=no
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32432 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32433 if test $ac_cv_have_decl_tzname = yes; then
32435 cat >>confdefs.h <<_ACEOF
32436 #define HAVE_DECL_TZNAME 1
32441 cat >>confdefs.h <<_ACEOF
32442 #define HAVE_DECL_TZNAME 0
32449 { echo "$as_me:$LINENO: checking for tzname" >&5
32450 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32451 if test "${ac_cv_var_tzname+set}" = set; then
32452 echo $ECHO_N "(cached) $ECHO_C" >&6
32454 cat >conftest.$ac_ext <<_ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h. */
32461 #if !HAVE_DECL_TZNAME
32462 extern char *tzname[];
32468 return tzname[0][0];
32473 rm -f conftest.$ac_objext conftest$ac_exeext
32474 if { (ac_try="$ac_link"
32475 case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_link") 2>conftest.er1
32482 grep -v '^ *+' conftest.er1 >conftest.err
32484 cat conftest.err >&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); } && {
32487 test -z "$ac_c_werror_flag" ||
32488 test ! -s conftest.err
32489 } && test -s conftest$ac_exeext &&
32490 $as_test_x conftest$ac_exeext; then
32491 ac_cv_var_tzname=yes
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_cv_var_tzname=no
32499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32500 conftest$ac_exeext conftest.$ac_ext
32502 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32503 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32504 if test $ac_cv_var_tzname = yes; then
32506 cat >>confdefs.h <<\_ACEOF
32507 #define HAVE_TZNAME 1
32514 { echo "$as_me:$LINENO: checking for utime.h" >&5
32515 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32516 if test "${ba_cv_header_utime_h+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32520 cat >conftest.$ac_ext <<_ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h. */
32527 #include <sys/types.h>
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
32549 grep -v '^ *+' conftest.er1 >conftest.err
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } && {
32554 test -z "$ac_c_werror_flag" ||
32555 test ! -s conftest.err
32556 } && test -s conftest.$ac_objext; then
32558 ba_cv_header_utime_h=yes
32561 echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32565 ba_cv_header_utime_h=no
32570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32574 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32575 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32576 test $ba_cv_header_utime_h = yes &&
32577 cat >>confdefs.h <<\_ACEOF
32578 #define HAVE_UTIME_H 1
32582 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32583 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32584 if test "${ba_cv_header_socklen_t+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 cat >conftest.$ac_ext <<_ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h. */
32595 #include <sys/types.h>
32596 #include <sys/socket.h>
32608 rm -f conftest.$ac_objext
32609 if { (ac_try="$ac_compile"
32610 case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_compile") 2>conftest.er1
32617 grep -v '^ *+' conftest.er1 >conftest.err
32619 cat conftest.err >&5
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } && {
32622 test -z "$ac_c_werror_flag" ||
32623 test ! -s conftest.err
32624 } && test -s conftest.$ac_objext; then
32626 ba_cv_header_socklen_t=yes
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32633 ba_cv_header_socklen_t=no
32638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32642 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32643 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32644 test $ba_cv_header_socklen_t = yes &&
32645 cat >>confdefs.h <<\_ACEOF
32646 #define HAVE_SOCKLEN_T 1
32651 ac_cpp='$CXXCPP $CPPFLAGS'
32652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32656 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32657 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32658 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32659 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 cat >conftest.$ac_ext <<_ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32669 #include <unistd.h>
32670 #include <sys/types.h>
32671 #include <sys/ioctl.h>
32677 int (*d_ioctl)(int fd, unsigned long int request, ...);
32684 rm -f conftest.$ac_objext
32685 if { (ac_try="$ac_compile"
32686 case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_compile") 2>conftest.er1
32693 grep -v '^ *+' conftest.er1 >conftest.err
32695 cat conftest.err >&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } && {
32698 test -z "$ac_cxx_werror_flag" ||
32699 test ! -s conftest.err
32700 } && test -s conftest.$ac_objext; then
32702 ba_cv_header_ioctl_req_t=yes
32705 echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32709 ba_cv_header_ioctl_req_t=no
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32718 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32719 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32720 test $ba_cv_header_ioctl_req_t = yes &&
32721 cat >>confdefs.h <<\_ACEOF
32722 #define HAVE_IOCTL_ULINT_REQUEST 1
32727 ac_cpp='$CPP $CPPFLAGS'
32728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32734 ac_cpp='$CXXCPP $CPPFLAGS'
32735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32739 { echo "$as_me:$LINENO: checking for typeof" >&5
32740 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32741 if test "${ba_cv_have_typeof+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32745 if test "$cross_compiling" = yes; then
32747 ba_cv_have_typeof=no
32751 cat >conftest.$ac_ext <<_ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32758 main(){char *a = 0; a = (typeof a)a;}
32761 rm -f conftest$ac_exeext
32762 if { (ac_try="$ac_link"
32763 case "(($ac_try" in
32764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765 *) ac_try_echo=$ac_try;;
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768 (eval "$ac_link") 2>&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32772 { (case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_try") 2>&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32782 ba_cv_have_typeof=yes
32785 echo "$as_me: program exited with status $ac_status" >&5
32786 echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32789 ( exit $ac_status )
32791 ba_cv_have_typeof=no
32794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32801 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32802 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32803 test $ba_cv_have_typeof = yes &&
32804 cat >>confdefs.h <<\_ACEOF
32805 #define HAVE_TYPEOF 1
32809 ac_cpp='$CPP $CPPFLAGS'
32810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32817 if test "${ac_cv_c_const+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32820 cat >conftest.$ac_ext <<_ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h. */
32830 /* FIXME: Include the comments suggested by Paul. */
32831 #ifndef __cplusplus
32832 /* Ultrix mips cc rejects this. */
32833 typedef int charset[2];
32835 /* SunOS 4.1.1 cc rejects this. */
32836 char const *const *pcpcc;
32838 /* NEC SVR4.0.2 mips cc rejects this. */
32839 struct point {int x, y;};
32840 static struct point const zero = {0,0};
32841 /* AIX XL C 1.02.0.0 rejects this.
32842 It does not let you subtract one const X* pointer from another in
32843 an arm of an if-expression whose if-part is not a constant
32845 const char *g = "string";
32846 pcpcc = &g + (g ? g-g : 0);
32847 /* HPUX 7.0 cc rejects these. */
32849 ppc = (char**) pcpcc;
32850 pcpcc = (char const *const *) ppc;
32851 { /* SCO 3.2v4 cc rejects this. */
32853 char const *s = 0 ? (char *) 0 : (char const *) 0;
32858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32859 int x[] = {25, 17};
32860 const int *foo = &x[0];
32863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32864 typedef const int *iptr;
32868 { /* AIX XL C 1.02.0.0 rejects this saying
32869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32870 struct s { int j; const int *ap[3]; };
32871 struct s *b; b->j = 5;
32873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32874 const int foo = 10;
32875 if (!foo) return 0;
32877 return !cs[0] && !zero.x;
32884 rm -f conftest.$ac_objext
32885 if { (ac_try="$ac_compile"
32886 case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_compile") 2>conftest.er1
32893 grep -v '^ *+' conftest.er1 >conftest.err
32895 cat conftest.err >&5
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); } && {
32898 test -z "$ac_c_werror_flag" ||
32899 test ! -s conftest.err
32900 } && test -s conftest.$ac_objext; then
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32913 if test $ac_cv_c_const = no; then
32915 cat >>confdefs.h <<\_ACEOF
32922 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32923 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32925 # The order of these tests is important.
32926 cat >conftest.$ac_ext <<_ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32933 #include <sys/statvfs.h>
32934 #include <sys/fstyp.h>
32937 if { (ac_try="$ac_cpp conftest.$ac_ext"
32938 case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32945 grep -v '^ *+' conftest.er1 >conftest.err
32947 cat conftest.err >&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } >/dev/null && {
32950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32951 test ! -s conftest.err
32953 cat >>confdefs.h <<\_ACEOF
32954 #define FSTYPE_STATVFS 1
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32965 rm -f conftest.err conftest.$ac_ext
32966 if test $fstype = no; then
32967 cat >conftest.$ac_ext <<_ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h. */
32974 #include <sys/statfs.h>
32975 #include <sys/fstyp.h>
32978 if { (ac_try="$ac_cpp conftest.$ac_ext"
32979 case "(($ac_try" in
32980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32981 *) ac_try_echo=$ac_try;;
32983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32986 grep -v '^ *+' conftest.er1 >conftest.err
32988 cat conftest.err >&5
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); } >/dev/null && {
32991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32992 test ! -s conftest.err
32994 cat >>confdefs.h <<\_ACEOF
32995 #define FSTYPE_USG_STATFS 1
33000 echo "$as_me: failed program was:" >&5
33001 sed 's/^/| /' conftest.$ac_ext >&5
33006 rm -f conftest.err conftest.$ac_ext
33008 if test $fstype = no; then
33009 cat >conftest.$ac_ext <<_ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33016 #include <sys/statfs.h>
33017 #include <sys/vmount.h>
33020 if { (ac_try="$ac_cpp conftest.$ac_ext"
33021 case "(($ac_try" in
33022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33028 grep -v '^ *+' conftest.er1 >conftest.err
33030 cat conftest.err >&5
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); } >/dev/null && {
33033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33034 test ! -s conftest.err
33036 cat >>confdefs.h <<\_ACEOF
33037 #define FSTYPE_AIX_STATFS 1
33042 echo "$as_me: failed program was:" >&5
33043 sed 's/^/| /' conftest.$ac_ext >&5
33048 rm -f conftest.err conftest.$ac_ext
33050 if test $fstype = no; then
33051 cat >conftest.$ac_ext <<_ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h. */
33058 #include <mntent.h>
33061 if { (ac_try="$ac_cpp conftest.$ac_ext"
33062 case "(($ac_try" in
33063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064 *) ac_try_echo=$ac_try;;
33066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33069 grep -v '^ *+' conftest.er1 >conftest.err
33071 cat conftest.err >&5
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); } >/dev/null && {
33074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33075 test ! -s conftest.err
33077 cat >>confdefs.h <<\_ACEOF
33078 #define FSTYPE_MNTENT 1
33083 echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33089 rm -f conftest.err conftest.$ac_ext
33091 if test $fstype = no; then
33092 cat >conftest.$ac_ext <<_ACEOF
33095 cat confdefs.h >>conftest.$ac_ext
33096 cat >>conftest.$ac_ext <<_ACEOF
33097 /* end confdefs.h. */
33098 #include <sys/mount.h>
33101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33102 $EGREP "f_type;" >/dev/null 2>&1; then
33103 cat >>confdefs.h <<\_ACEOF
33104 #define FSTYPE_STATFS 1
33111 if test $fstype = no; then
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33119 #include <sys/mount.h>
33120 #include <sys/fs_types.h>
33123 if { (ac_try="$ac_cpp conftest.$ac_ext"
33124 case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33131 grep -v '^ *+' conftest.er1 >conftest.err
33133 cat conftest.err >&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); } >/dev/null && {
33136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33137 test ! -s conftest.err
33139 cat >>confdefs.h <<\_ACEOF
33140 #define FSTYPE_GETMNT 1
33145 echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33151 rm -f conftest.err conftest.$ac_ext
33153 { echo "$as_me:$LINENO: result: $fstype" >&5
33154 echo "${ECHO_T}$fstype" >&6; }
33156 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33157 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33158 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33159 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33162 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33163 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33165 # Is the header compilable?
33166 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33167 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33168 cat >conftest.$ac_ext <<_ACEOF
33171 cat confdefs.h >>conftest.$ac_ext
33172 cat >>conftest.$ac_ext <<_ACEOF
33173 /* end confdefs.h. */
33174 $ac_includes_default
33175 #include <sys/statvfs.h>
33177 rm -f conftest.$ac_objext
33178 if { (ac_try="$ac_compile"
33179 case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_compile") 2>conftest.er1
33186 grep -v '^ *+' conftest.er1 >conftest.err
33188 cat conftest.err >&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); } && {
33191 test -z "$ac_c_werror_flag" ||
33192 test ! -s conftest.err
33193 } && test -s conftest.$ac_objext; then
33194 ac_header_compiler=yes
33196 echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33199 ac_header_compiler=no
33202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33204 echo "${ECHO_T}$ac_header_compiler" >&6; }
33206 # Is the header present?
33207 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33208 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33209 cat >conftest.$ac_ext <<_ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h. */
33215 #include <sys/statvfs.h>
33217 if { (ac_try="$ac_cpp conftest.$ac_ext"
33218 case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33225 grep -v '^ *+' conftest.er1 >conftest.err
33227 cat conftest.err >&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); } >/dev/null && {
33230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33231 test ! -s conftest.err
33233 ac_header_preproc=yes
33235 echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238 ac_header_preproc=no
33241 rm -f conftest.err conftest.$ac_ext
33242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33243 echo "${ECHO_T}$ac_header_preproc" >&6; }
33245 # So? What about this header?
33246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33248 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33249 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33250 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33251 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33252 ac_header_preproc=yes
33255 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33256 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33257 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33258 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33259 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33260 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33261 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33262 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33263 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33264 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33265 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33266 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33270 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33271 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33272 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33275 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33277 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33278 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33281 if test $ac_cv_header_sys_statvfs_h = yes; then
33283 cat >>confdefs.h <<\_ACEOF
33284 #define HAVE_SYS_STATVFS_H 1
33291 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33292 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33293 if test "${ac_cv_type_signal+set}" = set; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 cat >conftest.$ac_ext <<_ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h. */
33302 #include <sys/types.h>
33303 #include <signal.h>
33308 return *(signal (0, 0)) (0) == 1;
33313 rm -f conftest.$ac_objext
33314 if { (ac_try="$ac_compile"
33315 case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_compile") 2>conftest.er1
33322 grep -v '^ *+' conftest.er1 >conftest.err
33324 cat conftest.err >&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } && {
33327 test -z "$ac_c_werror_flag" ||
33328 test ! -s conftest.err
33329 } && test -s conftest.$ac_objext; then
33330 ac_cv_type_signal=int
33332 echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33335 ac_cv_type_signal=void
33338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33340 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33341 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33343 cat >>confdefs.h <<_ACEOF
33344 #define RETSIGTYPE $ac_cv_type_signal
33349 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33350 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33351 if test "${bash_cv_signal_vintage+set}" = set; then
33352 echo $ECHO_N "(cached) $ECHO_C" >&6
33355 cat >conftest.$ac_ext <<_ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h. */
33361 #include <signal.h>
33367 struct sigaction sa;
33368 sigemptyset(&ss); sigsuspend(&ss);
33369 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33370 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33376 rm -f conftest.$ac_objext conftest$ac_exeext
33377 if { (ac_try="$ac_link"
33378 case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_link") 2>conftest.er1
33385 grep -v '^ *+' conftest.er1 >conftest.err
33387 cat conftest.err >&5
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); } && {
33390 test -z "$ac_c_werror_flag" ||
33391 test ! -s conftest.err
33392 } && test -s conftest$ac_exeext &&
33393 $as_test_x conftest$ac_exeext; then
33394 bash_cv_signal_vintage="posix"
33396 echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 #include <signal.h>
33411 int mask = sigmask(SIGINT);
33412 sigsetmask(mask); sigblock(mask); sigpause(mask);
33418 rm -f conftest.$ac_objext conftest$ac_exeext
33419 if { (ac_try="$ac_link"
33420 case "(($ac_try" in
33421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422 *) ac_try_echo=$ac_try;;
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425 (eval "$ac_link") 2>conftest.er1
33427 grep -v '^ *+' conftest.er1 >conftest.err
33429 cat conftest.err >&5
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); } && {
33432 test -z "$ac_c_werror_flag" ||
33433 test ! -s conftest.err
33434 } && test -s conftest$ac_exeext &&
33435 $as_test_x conftest$ac_exeext; then
33436 bash_cv_signal_vintage="4.2bsd"
33438 echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33442 cat >conftest.$ac_ext <<_ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h. */
33449 #include <signal.h>
33450 RETSIGTYPE foo() { }
33455 int mask = sigmask(SIGINT);
33456 sigset(SIGINT, foo); sigrelse(SIGINT);
33457 sighold(SIGINT); sigpause(SIGINT);
33463 rm -f conftest.$ac_objext conftest$ac_exeext
33464 if { (ac_try="$ac_link"
33465 case "(($ac_try" in
33466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33467 *) ac_try_echo=$ac_try;;
33469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33470 (eval "$ac_link") 2>conftest.er1
33472 grep -v '^ *+' conftest.er1 >conftest.err
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } && {
33477 test -z "$ac_c_werror_flag" ||
33478 test ! -s conftest.err
33479 } && test -s conftest$ac_exeext &&
33480 $as_test_x conftest$ac_exeext; then
33481 bash_cv_signal_vintage="svr3"
33483 echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33486 bash_cv_signal_vintage="v7"
33490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33491 conftest$ac_exeext conftest.$ac_ext
33495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33496 conftest$ac_exeext conftest.$ac_ext
33500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33501 conftest$ac_exeext conftest.$ac_ext
33505 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33506 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33507 if test "$bash_cv_signal_vintage" = "posix"; then
33508 cat >>confdefs.h <<\_ACEOF
33509 #define HAVE_POSIX_SIGNALS 1
33512 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33513 cat >>confdefs.h <<\_ACEOF
33514 #define HAVE_BSD_SIGNALS 1
33517 elif test "$bash_cv_signal_vintage" = "svr3"; then
33518 cat >>confdefs.h <<\_ACEOF
33519 #define HAVE_USG_SIGHOLD 1
33524 { echo "$as_me:$LINENO: checking for mode_t" >&5
33525 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33526 if test "${ac_cv_type_mode_t+set}" = set; then
33527 echo $ECHO_N "(cached) $ECHO_C" >&6
33529 cat >conftest.$ac_ext <<_ACEOF
33532 cat confdefs.h >>conftest.$ac_ext
33533 cat >>conftest.$ac_ext <<_ACEOF
33534 /* end confdefs.h. */
33535 $ac_includes_default
33536 typedef mode_t ac__type_new_;
33540 if ((ac__type_new_ *) 0)
33542 if (sizeof (ac__type_new_))
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_compile") 2>conftest.er1
33557 grep -v '^ *+' conftest.er1 >conftest.err
33559 cat conftest.err >&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); } && {
33562 test -z "$ac_c_werror_flag" ||
33563 test ! -s conftest.err
33564 } && test -s conftest.$ac_objext; then
33565 ac_cv_type_mode_t=yes
33567 echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33570 ac_cv_type_mode_t=no
33573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33576 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33577 if test $ac_cv_type_mode_t = yes; then
33581 cat >>confdefs.h <<_ACEOF
33587 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33588 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33589 if test "${ac_cv_type_uid_t+set}" = set; then
33590 echo $ECHO_N "(cached) $ECHO_C" >&6
33592 cat >conftest.$ac_ext <<_ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33598 #include <sys/types.h>
33601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33602 $EGREP "uid_t" >/dev/null 2>&1; then
33603 ac_cv_type_uid_t=yes
33605 ac_cv_type_uid_t=no
33610 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33611 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33612 if test $ac_cv_type_uid_t = no; then
33614 cat >>confdefs.h <<\_ACEOF
33619 cat >>confdefs.h <<\_ACEOF
33625 { echo "$as_me:$LINENO: checking for size_t" >&5
33626 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33627 if test "${ac_cv_type_size_t+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33630 cat >conftest.$ac_ext <<_ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h. */
33636 $ac_includes_default
33637 typedef size_t ac__type_new_;
33641 if ((ac__type_new_ *) 0)
33643 if (sizeof (ac__type_new_))
33649 rm -f conftest.$ac_objext
33650 if { (ac_try="$ac_compile"
33651 case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_compile") 2>conftest.er1
33658 grep -v '^ *+' conftest.er1 >conftest.err
33660 cat conftest.err >&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } && {
33663 test -z "$ac_c_werror_flag" ||
33664 test ! -s conftest.err
33665 } && test -s conftest.$ac_objext; then
33666 ac_cv_type_size_t=yes
33668 echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33671 ac_cv_type_size_t=no
33674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33676 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33677 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33678 if test $ac_cv_type_size_t = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683 #define size_t unsigned int
33688 { echo "$as_me:$LINENO: checking for pid_t" >&5
33689 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33690 if test "${ac_cv_type_pid_t+set}" = set; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33699 $ac_includes_default
33700 typedef pid_t ac__type_new_;
33704 if ((ac__type_new_ *) 0)
33706 if (sizeof (ac__type_new_))
33712 rm -f conftest.$ac_objext
33713 if { (ac_try="$ac_compile"
33714 case "(($ac_try" in
33715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716 *) ac_try_echo=$ac_try;;
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719 (eval "$ac_compile") 2>conftest.er1
33721 grep -v '^ *+' conftest.er1 >conftest.err
33723 cat conftest.err >&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } && {
33726 test -z "$ac_c_werror_flag" ||
33727 test ! -s conftest.err
33728 } && test -s conftest.$ac_objext; then
33729 ac_cv_type_pid_t=yes
33731 echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33734 ac_cv_type_pid_t=no
33737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33739 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33740 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33741 if test $ac_cv_type_pid_t = yes; then
33745 cat >>confdefs.h <<_ACEOF
33751 { echo "$as_me:$LINENO: checking for off_t" >&5
33752 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33753 if test "${ac_cv_type_off_t+set}" = set; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33756 cat >conftest.$ac_ext <<_ACEOF
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h. */
33762 $ac_includes_default
33763 typedef off_t ac__type_new_;
33767 if ((ac__type_new_ *) 0)
33769 if (sizeof (ac__type_new_))
33775 rm -f conftest.$ac_objext
33776 if { (ac_try="$ac_compile"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_compile") 2>conftest.er1
33784 grep -v '^ *+' conftest.er1 >conftest.err
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } && {
33789 test -z "$ac_c_werror_flag" ||
33790 test ! -s conftest.err
33791 } && test -s conftest.$ac_objext; then
33792 ac_cv_type_off_t=yes
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33797 ac_cv_type_off_t=no
33800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33802 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33803 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33804 if test $ac_cv_type_off_t = yes; then
33808 cat >>confdefs.h <<_ACEOF
33809 #define off_t long int
33815 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33816 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33817 if test "${ac_cv_type_intptr_t+set}" = set; then
33818 echo $ECHO_N "(cached) $ECHO_C" >&6
33820 cat >conftest.$ac_ext <<_ACEOF
33823 cat confdefs.h >>conftest.$ac_ext
33824 cat >>conftest.$ac_ext <<_ACEOF
33825 /* end confdefs.h. */
33826 $ac_includes_default
33827 typedef intptr_t ac__type_new_;
33831 if ((ac__type_new_ *) 0)
33833 if (sizeof (ac__type_new_))
33839 rm -f conftest.$ac_objext
33840 if { (ac_try="$ac_compile"
33841 case "(($ac_try" in
33842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843 *) ac_try_echo=$ac_try;;
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846 (eval "$ac_compile") 2>conftest.er1
33848 grep -v '^ *+' conftest.er1 >conftest.err
33850 cat conftest.err >&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } && {
33853 test -z "$ac_c_werror_flag" ||
33854 test ! -s conftest.err
33855 } && test -s conftest.$ac_objext; then
33856 ac_cv_type_intptr_t=yes
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33861 ac_cv_type_intptr_t=no
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33867 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33868 if test $ac_cv_type_intptr_t = yes; then
33870 cat >>confdefs.h <<\_ACEOF
33871 #define HAVE_INTPTR_T 1
33875 for ac_type in 'int' 'long int' 'long long int'; do
33876 cat >conftest.$ac_ext <<_ACEOF
33879 cat confdefs.h >>conftest.$ac_ext
33880 cat >>conftest.$ac_ext <<_ACEOF
33881 /* end confdefs.h. */
33882 $ac_includes_default
33886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33893 rm -f conftest.$ac_objext
33894 if { (ac_try="$ac_compile"
33895 case "(($ac_try" in
33896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33897 *) ac_try_echo=$ac_try;;
33899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33900 (eval "$ac_compile") 2>conftest.er1
33902 grep -v '^ *+' conftest.er1 >conftest.err
33904 cat conftest.err >&5
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); } && {
33907 test -z "$ac_c_werror_flag" ||
33908 test ! -s conftest.err
33909 } && test -s conftest.$ac_objext; then
33911 cat >>confdefs.h <<_ACEOF
33912 #define intptr_t $ac_type
33917 echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33924 test -z "$ac_type" && break
33930 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33931 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33932 if test "${ac_cv_type_uintptr_t+set}" = set; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33935 cat >conftest.$ac_ext <<_ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h. */
33941 $ac_includes_default
33942 typedef uintptr_t ac__type_new_;
33946 if ((ac__type_new_ *) 0)
33948 if (sizeof (ac__type_new_))
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_compile") 2>conftest.er1
33963 grep -v '^ *+' conftest.er1 >conftest.err
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } && {
33968 test -z "$ac_c_werror_flag" ||
33969 test ! -s conftest.err
33970 } && test -s conftest.$ac_objext; then
33971 ac_cv_type_uintptr_t=yes
33973 echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33976 ac_cv_type_uintptr_t=no
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33981 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33982 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33983 if test $ac_cv_type_uintptr_t = yes; then
33985 cat >>confdefs.h <<\_ACEOF
33986 #define HAVE_UINTPTR_T 1
33990 for ac_type in 'unsigned int' 'unsigned long int' \
33991 'unsigned long long int'; do
33992 cat >conftest.$ac_ext <<_ACEOF
33995 cat confdefs.h >>conftest.$ac_ext
33996 cat >>conftest.$ac_ext <<_ACEOF
33997 /* end confdefs.h. */
33998 $ac_includes_default
34002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34009 rm -f conftest.$ac_objext
34010 if { (ac_try="$ac_compile"
34011 case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_compile") 2>conftest.er1
34018 grep -v '^ *+' conftest.er1 >conftest.err
34020 cat conftest.err >&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } && {
34023 test -z "$ac_c_werror_flag" ||
34024 test ! -s conftest.err
34025 } && test -s conftest.$ac_objext; then
34027 cat >>confdefs.h <<_ACEOF
34028 #define uintptr_t $ac_type
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34040 test -z "$ac_type" && break
34045 { echo "$as_me:$LINENO: checking for ino_t" >&5
34046 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34047 if test "${ac_cv_type_ino_t+set}" = set; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34050 cat >conftest.$ac_ext <<_ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h. */
34056 $ac_includes_default
34057 typedef ino_t ac__type_new_;
34061 if ((ac__type_new_ *) 0)
34063 if (sizeof (ac__type_new_))
34069 rm -f conftest.$ac_objext
34070 if { (ac_try="$ac_compile"
34071 case "(($ac_try" in
34072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073 *) ac_try_echo=$ac_try;;
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_compile") 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } && {
34083 test -z "$ac_c_werror_flag" ||
34084 test ! -s conftest.err
34085 } && test -s conftest.$ac_objext; then
34086 ac_cv_type_ino_t=yes
34088 echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34091 ac_cv_type_ino_t=no
34094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34097 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34098 if test $ac_cv_type_ino_t = yes; then
34102 cat >>confdefs.h <<_ACEOF
34103 #define ino_t unsigned long
34108 { echo "$as_me:$LINENO: checking for dev_t" >&5
34109 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34110 if test "${ac_cv_type_dev_t+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34113 cat >conftest.$ac_ext <<_ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h. */
34119 $ac_includes_default
34120 typedef dev_t ac__type_new_;
34124 if ((ac__type_new_ *) 0)
34126 if (sizeof (ac__type_new_))
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_compile") 2>conftest.er1
34141 grep -v '^ *+' conftest.er1 >conftest.err
34143 cat conftest.err >&5
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } && {
34146 test -z "$ac_c_werror_flag" ||
34147 test ! -s conftest.err
34148 } && test -s conftest.$ac_objext; then
34149 ac_cv_type_dev_t=yes
34151 echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34154 ac_cv_type_dev_t=no
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34160 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34161 if test $ac_cv_type_dev_t = yes; then
34165 cat >>confdefs.h <<_ACEOF
34166 #define dev_t unsigned long
34171 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34172 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34173 if test "${ac_cv_type_daddr_t+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34176 cat >conftest.$ac_ext <<_ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h. */
34182 $ac_includes_default
34183 typedef daddr_t ac__type_new_;
34187 if ((ac__type_new_ *) 0)
34189 if (sizeof (ac__type_new_))
34195 rm -f conftest.$ac_objext
34196 if { (ac_try="$ac_compile"
34197 case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_compile") 2>conftest.er1
34204 grep -v '^ *+' conftest.er1 >conftest.err
34206 cat conftest.err >&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); } && {
34209 test -z "$ac_c_werror_flag" ||
34210 test ! -s conftest.err
34211 } && test -s conftest.$ac_objext; then
34212 ac_cv_type_daddr_t=yes
34214 echo "$as_me: failed program was:" >&5
34215 sed 's/^/| /' conftest.$ac_ext >&5
34217 ac_cv_type_daddr_t=no
34220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34223 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34224 if test $ac_cv_type_daddr_t = yes; then
34228 cat >>confdefs.h <<_ACEOF
34229 #define daddr_t long
34234 { echo "$as_me:$LINENO: checking for major_t" >&5
34235 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34236 if test "${ac_cv_type_major_t+set}" = set; then
34237 echo $ECHO_N "(cached) $ECHO_C" >&6
34239 cat >conftest.$ac_ext <<_ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h. */
34245 $ac_includes_default
34246 typedef major_t ac__type_new_;
34250 if ((ac__type_new_ *) 0)
34252 if (sizeof (ac__type_new_))
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262 *) ac_try_echo=$ac_try;;
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265 (eval "$ac_compile") 2>conftest.er1
34267 grep -v '^ *+' conftest.er1 >conftest.err
34269 cat conftest.err >&5
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } && {
34272 test -z "$ac_c_werror_flag" ||
34273 test ! -s conftest.err
34274 } && test -s conftest.$ac_objext; then
34275 ac_cv_type_major_t=yes
34277 echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34280 ac_cv_type_major_t=no
34283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34286 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34287 if test $ac_cv_type_major_t = yes; then
34291 cat >>confdefs.h <<_ACEOF
34292 #define major_t int
34297 { echo "$as_me:$LINENO: checking for minor_t" >&5
34298 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34299 if test "${ac_cv_type_minor_t+set}" = set; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34302 cat >conftest.$ac_ext <<_ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h. */
34308 $ac_includes_default
34309 typedef minor_t ac__type_new_;
34313 if ((ac__type_new_ *) 0)
34315 if (sizeof (ac__type_new_))
34321 rm -f conftest.$ac_objext
34322 if { (ac_try="$ac_compile"
34323 case "(($ac_try" in
34324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34325 *) ac_try_echo=$ac_try;;
34327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34328 (eval "$ac_compile") 2>conftest.er1
34330 grep -v '^ *+' conftest.er1 >conftest.err
34332 cat conftest.err >&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); } && {
34335 test -z "$ac_c_werror_flag" ||
34336 test ! -s conftest.err
34337 } && test -s conftest.$ac_objext; then
34338 ac_cv_type_minor_t=yes
34340 echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34343 ac_cv_type_minor_t=no
34346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34348 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34349 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34350 if test $ac_cv_type_minor_t = yes; then
34354 cat >>confdefs.h <<_ACEOF
34355 #define minor_t int
34360 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34361 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34362 if test "${ac_cv_type_ssize_t+set}" = set; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34371 $ac_includes_default
34372 typedef ssize_t ac__type_new_;
34376 if ((ac__type_new_ *) 0)
34378 if (sizeof (ac__type_new_))
34384 rm -f conftest.$ac_objext
34385 if { (ac_try="$ac_compile"
34386 case "(($ac_try" in
34387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388 *) ac_try_echo=$ac_try;;
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391 (eval "$ac_compile") 2>conftest.er1
34393 grep -v '^ *+' conftest.er1 >conftest.err
34395 cat conftest.err >&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); } && {
34398 test -z "$ac_c_werror_flag" ||
34399 test ! -s conftest.err
34400 } && test -s conftest.$ac_objext; then
34401 ac_cv_type_ssize_t=yes
34403 echo "$as_me: failed program was:" >&5
34404 sed 's/^/| /' conftest.$ac_ext >&5
34406 ac_cv_type_ssize_t=no
34409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34411 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34412 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34413 if test $ac_cv_type_ssize_t = yes; then
34417 cat >>confdefs.h <<_ACEOF
34418 #define ssize_t int
34423 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34424 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34425 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 cat >conftest.$ac_ext <<_ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h. */
34434 $ac_includes_default
34438 static struct stat ac_aggr;
34439 if (ac_aggr.st_blocks)
34445 rm -f conftest.$ac_objext
34446 if { (ac_try="$ac_compile"
34447 case "(($ac_try" in
34448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449 *) ac_try_echo=$ac_try;;
34451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452 (eval "$ac_compile") 2>conftest.er1
34454 grep -v '^ *+' conftest.er1 >conftest.err
34456 cat conftest.err >&5
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); } && {
34459 test -z "$ac_c_werror_flag" ||
34460 test ! -s conftest.err
34461 } && test -s conftest.$ac_objext; then
34462 ac_cv_member_struct_stat_st_blocks=yes
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 cat >conftest.$ac_ext <<_ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34473 $ac_includes_default
34477 static struct stat ac_aggr;
34478 if (sizeof ac_aggr.st_blocks)
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488 *) ac_try_echo=$ac_try;;
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491 (eval "$ac_compile") 2>conftest.er1
34493 grep -v '^ *+' conftest.er1 >conftest.err
34495 cat conftest.err >&5
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); } && {
34498 test -z "$ac_c_werror_flag" ||
34499 test ! -s conftest.err
34500 } && test -s conftest.$ac_objext; then
34501 ac_cv_member_struct_stat_st_blocks=yes
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 ac_cv_member_struct_stat_st_blocks=no
34509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34516 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34518 cat >>confdefs.h <<_ACEOF
34519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34523 cat >>confdefs.h <<\_ACEOF
34524 #define HAVE_ST_BLOCKS 1
34528 case " $LIBOBJS " in
34529 *" fileblocks.$ac_objext "* ) ;;
34530 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34537 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34538 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34539 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34540 echo $ECHO_N "(cached) $ECHO_C" >&6
34542 cat >conftest.$ac_ext <<_ACEOF
34545 cat confdefs.h >>conftest.$ac_ext
34546 cat >>conftest.$ac_ext <<_ACEOF
34547 /* end confdefs.h. */
34548 $ac_includes_default
34552 static struct stat ac_aggr;
34553 if (ac_aggr.st_rdev)
34559 rm -f conftest.$ac_objext
34560 if { (ac_try="$ac_compile"
34561 case "(($ac_try" in
34562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34563 *) ac_try_echo=$ac_try;;
34565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34566 (eval "$ac_compile") 2>conftest.er1
34568 grep -v '^ *+' conftest.er1 >conftest.err
34570 cat conftest.err >&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); } && {
34573 test -z "$ac_c_werror_flag" ||
34574 test ! -s conftest.err
34575 } && test -s conftest.$ac_objext; then
34576 ac_cv_member_struct_stat_st_rdev=yes
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 cat >conftest.$ac_ext <<_ACEOF
34584 cat confdefs.h >>conftest.$ac_ext
34585 cat >>conftest.$ac_ext <<_ACEOF
34586 /* end confdefs.h. */
34587 $ac_includes_default
34591 static struct stat ac_aggr;
34592 if (sizeof ac_aggr.st_rdev)
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_compile") 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } && {
34612 test -z "$ac_c_werror_flag" ||
34613 test ! -s conftest.err
34614 } && test -s conftest.$ac_objext; then
34615 ac_cv_member_struct_stat_st_rdev=yes
34617 echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34620 ac_cv_member_struct_stat_st_rdev=no
34623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34628 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34630 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34632 cat >>confdefs.h <<_ACEOF
34633 #define HAVE_STRUCT_STAT_ST_RDEV 1
34637 cat >>confdefs.h <<\_ACEOF
34638 #define HAVE_ST_RDEV 1
34644 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34646 if test "${ac_cv_struct_tm+set}" = set; then
34647 echo $ECHO_N "(cached) $ECHO_C" >&6
34649 cat >conftest.$ac_ext <<_ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h. */
34655 #include <sys/types.h>
34662 int *p = &tm.tm_sec;
34668 rm -f conftest.$ac_objext
34669 if { (ac_try="$ac_compile"
34670 case "(($ac_try" in
34671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34672 *) ac_try_echo=$ac_try;;
34674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34675 (eval "$ac_compile") 2>conftest.er1
34677 grep -v '^ *+' conftest.er1 >conftest.err
34679 cat conftest.err >&5
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); } && {
34682 test -z "$ac_c_werror_flag" ||
34683 test ! -s conftest.err
34684 } && test -s conftest.$ac_objext; then
34685 ac_cv_struct_tm=time.h
34687 echo "$as_me: failed program was:" >&5
34688 sed 's/^/| /' conftest.$ac_ext >&5
34690 ac_cv_struct_tm=sys/time.h
34693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34695 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34696 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34697 if test $ac_cv_struct_tm = sys/time.h; then
34699 cat >>confdefs.h <<\_ACEOF
34700 #define TM_IN_SYS_TIME 1
34705 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34706 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34707 if test "${ac_cv_c_const+set}" = set; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34710 cat >conftest.$ac_ext <<_ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34720 /* FIXME: Include the comments suggested by Paul. */
34721 #ifndef __cplusplus
34722 /* Ultrix mips cc rejects this. */
34723 typedef int charset[2];
34725 /* SunOS 4.1.1 cc rejects this. */
34726 char const *const *pcpcc;
34728 /* NEC SVR4.0.2 mips cc rejects this. */
34729 struct point {int x, y;};
34730 static struct point const zero = {0,0};
34731 /* AIX XL C 1.02.0.0 rejects this.
34732 It does not let you subtract one const X* pointer from another in
34733 an arm of an if-expression whose if-part is not a constant
34735 const char *g = "string";
34736 pcpcc = &g + (g ? g-g : 0);
34737 /* HPUX 7.0 cc rejects these. */
34739 ppc = (char**) pcpcc;
34740 pcpcc = (char const *const *) ppc;
34741 { /* SCO 3.2v4 cc rejects this. */
34743 char const *s = 0 ? (char *) 0 : (char const *) 0;
34748 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34749 int x[] = {25, 17};
34750 const int *foo = &x[0];
34753 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34754 typedef const int *iptr;
34758 { /* AIX XL C 1.02.0.0 rejects this saying
34759 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34760 struct s { int j; const int *ap[3]; };
34761 struct s *b; b->j = 5;
34763 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34764 const int foo = 10;
34765 if (!foo) return 0;
34767 return !cs[0] && !zero.x;
34774 rm -f conftest.$ac_objext
34775 if { (ac_try="$ac_compile"
34776 case "(($ac_try" in
34777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34778 *) ac_try_echo=$ac_try;;
34780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34781 (eval "$ac_compile") 2>conftest.er1
34783 grep -v '^ *+' conftest.er1 >conftest.err
34785 cat conftest.err >&5
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); } && {
34788 test -z "$ac_c_werror_flag" ||
34789 test ! -s conftest.err
34790 } && test -s conftest.$ac_objext; then
34793 echo "$as_me: failed program was:" >&5
34794 sed 's/^/| /' conftest.$ac_ext >&5
34799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34801 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34802 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34803 if test $ac_cv_c_const = no; then
34805 cat >>confdefs.h <<\_ACEOF
34812 { echo "$as_me:$LINENO: checking for char" >&5
34813 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34814 if test "${ac_cv_type_char+set}" = set; then
34815 echo $ECHO_N "(cached) $ECHO_C" >&6
34817 cat >conftest.$ac_ext <<_ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h. */
34823 $ac_includes_default
34824 typedef char ac__type_new_;
34828 if ((ac__type_new_ *) 0)
34830 if (sizeof (ac__type_new_))
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840 *) ac_try_echo=$ac_try;;
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843 (eval "$ac_compile") 2>conftest.er1
34845 grep -v '^ *+' conftest.er1 >conftest.err
34847 cat conftest.err >&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); } && {
34850 test -z "$ac_c_werror_flag" ||
34851 test ! -s conftest.err
34852 } && test -s conftest.$ac_objext; then
34853 ac_cv_type_char=yes
34855 echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34863 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34864 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34866 # The cast to long int works around a bug in the HP C Compiler
34867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34869 # This bug is HP SR number 8606223364.
34870 { echo "$as_me:$LINENO: checking size of char" >&5
34871 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34872 if test "${ac_cv_sizeof_char+set}" = set; then
34873 echo $ECHO_N "(cached) $ECHO_C" >&6
34875 if test "$cross_compiling" = yes; then
34876 # Depending upon the size, compute the lo and hi bounds.
34877 cat >conftest.$ac_ext <<_ACEOF
34880 cat confdefs.h >>conftest.$ac_ext
34881 cat >>conftest.$ac_ext <<_ACEOF
34882 /* end confdefs.h. */
34883 $ac_includes_default
34884 typedef char ac__type_sizeof_;
34888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34895 rm -f conftest.$ac_objext
34896 if { (ac_try="$ac_compile"
34897 case "(($ac_try" in
34898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34899 *) ac_try_echo=$ac_try;;
34901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902 (eval "$ac_compile") 2>conftest.er1
34904 grep -v '^ *+' conftest.er1 >conftest.err
34906 cat conftest.err >&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } && {
34909 test -z "$ac_c_werror_flag" ||
34910 test ! -s conftest.err
34911 } && test -s conftest.$ac_objext; then
34914 cat >conftest.$ac_ext <<_ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h. */
34920 $ac_includes_default
34921 typedef char ac__type_sizeof_;
34925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34932 rm -f conftest.$ac_objext
34933 if { (ac_try="$ac_compile"
34934 case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_compile") 2>conftest.er1
34941 grep -v '^ *+' conftest.er1 >conftest.err
34943 cat conftest.err >&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } && {
34946 test -z "$ac_c_werror_flag" ||
34947 test ! -s conftest.err
34948 } && test -s conftest.$ac_objext; then
34949 ac_hi=$ac_mid; break
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ac_lo=`expr $ac_mid + 1`
34955 if test $ac_lo -le $ac_mid; then
34959 ac_mid=`expr 2 '*' $ac_mid + 1`
34962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34965 echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.$ac_ext >&5
34968 cat >conftest.$ac_ext <<_ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974 $ac_includes_default
34975 typedef char ac__type_sizeof_;
34979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34986 rm -f conftest.$ac_objext
34987 if { (ac_try="$ac_compile"
34988 case "(($ac_try" in
34989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34990 *) ac_try_echo=$ac_try;;
34992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34993 (eval "$ac_compile") 2>conftest.er1
34995 grep -v '^ *+' conftest.er1 >conftest.err
34997 cat conftest.err >&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); } && {
35000 test -z "$ac_c_werror_flag" ||
35001 test ! -s conftest.err
35002 } && test -s conftest.$ac_objext; then
35005 cat >conftest.$ac_ext <<_ACEOF
35008 cat confdefs.h >>conftest.$ac_ext
35009 cat >>conftest.$ac_ext <<_ACEOF
35010 /* end confdefs.h. */
35011 $ac_includes_default
35012 typedef char ac__type_sizeof_;
35016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027 *) ac_try_echo=$ac_try;;
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030 (eval "$ac_compile") 2>conftest.er1
35032 grep -v '^ *+' conftest.er1 >conftest.err
35034 cat conftest.err >&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } && {
35037 test -z "$ac_c_werror_flag" ||
35038 test ! -s conftest.err
35039 } && test -s conftest.$ac_objext; then
35040 ac_lo=$ac_mid; break
35042 echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35045 ac_hi=`expr '(' $ac_mid ')' - 1`
35046 if test $ac_mid -le $ac_hi; then
35050 ac_mid=`expr 2 '*' $ac_mid`
35053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35066 # Binary search between lo and hi bounds.
35067 while test "x$ac_lo" != "x$ac_hi"; do
35068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35069 cat >conftest.$ac_ext <<_ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h. */
35075 $ac_includes_default
35076 typedef char ac__type_sizeof_;
35080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091 *) ac_try_echo=$ac_try;;
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094 (eval "$ac_compile") 2>conftest.er1
35096 grep -v '^ *+' conftest.er1 >conftest.err
35098 cat conftest.err >&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); } && {
35101 test -z "$ac_c_werror_flag" ||
35102 test ! -s conftest.err
35103 } && test -s conftest.$ac_objext; then
35106 echo "$as_me: failed program was:" >&5
35107 sed 's/^/| /' conftest.$ac_ext >&5
35109 ac_lo=`expr '(' $ac_mid ')' + 1`
35112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35115 ?*) ac_cv_sizeof_char=$ac_lo;;
35116 '') if test "$ac_cv_type_char" = yes; then
35117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35118 See \`config.log' for more details." >&5
35119 echo "$as_me: error: cannot compute sizeof (char)
35120 See \`config.log' for more details." >&2;}
35121 { (exit 77); exit 77; }; }
35123 ac_cv_sizeof_char=0
35127 cat >conftest.$ac_ext <<_ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h. */
35133 $ac_includes_default
35134 typedef char ac__type_sizeof_;
35135 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35136 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35138 #include <stdlib.h>
35143 FILE *f = fopen ("conftest.val", "w");
35146 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35148 long int i = longval ();
35149 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35151 fprintf (f, "%ld\n", i);
35155 unsigned long int i = ulongval ();
35156 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35158 fprintf (f, "%lu\n", i);
35160 return ferror (f) || fclose (f) != 0;
35166 rm -f conftest$ac_exeext
35167 if { (ac_try="$ac_link"
35168 case "(($ac_try" in
35169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170 *) ac_try_echo=$ac_try;;
35172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173 (eval "$ac_link") 2>&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35177 { (case "(($ac_try" in
35178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179 *) ac_try_echo=$ac_try;;
35181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182 (eval "$ac_try") 2>&5
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; }; then
35186 ac_cv_sizeof_char=`cat conftest.val`
35188 echo "$as_me: program exited with status $ac_status" >&5
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 ( exit $ac_status )
35193 if test "$ac_cv_type_char" = yes; then
35194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35195 See \`config.log' for more details." >&5
35196 echo "$as_me: error: cannot compute sizeof (char)
35197 See \`config.log' for more details." >&2;}
35198 { (exit 77); exit 77; }; }
35200 ac_cv_sizeof_char=0
35203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35207 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35208 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35212 cat >>confdefs.h <<_ACEOF
35213 #define SIZEOF_CHAR $ac_cv_sizeof_char
35217 { echo "$as_me:$LINENO: checking for short int" >&5
35218 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35219 if test "${ac_cv_type_short_int+set}" = set; then
35220 echo $ECHO_N "(cached) $ECHO_C" >&6
35222 cat >conftest.$ac_ext <<_ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h. */
35228 $ac_includes_default
35229 typedef short int ac__type_new_;
35233 if ((ac__type_new_ *) 0)
35235 if (sizeof (ac__type_new_))
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245 *) ac_try_echo=$ac_try;;
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248 (eval "$ac_compile") 2>conftest.er1
35250 grep -v '^ *+' conftest.er1 >conftest.err
35252 cat conftest.err >&5
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); } && {
35255 test -z "$ac_c_werror_flag" ||
35256 test ! -s conftest.err
35257 } && test -s conftest.$ac_objext; then
35258 ac_cv_type_short_int=yes
35260 echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35263 ac_cv_type_short_int=no
35266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35268 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35269 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35271 # The cast to long int works around a bug in the HP C Compiler
35272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35274 # This bug is HP SR number 8606223364.
35275 { echo "$as_me:$LINENO: checking size of short int" >&5
35276 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35277 if test "${ac_cv_sizeof_short_int+set}" = set; then
35278 echo $ECHO_N "(cached) $ECHO_C" >&6
35280 if test "$cross_compiling" = yes; then
35281 # Depending upon the size, compute the lo and hi bounds.
35282 cat >conftest.$ac_ext <<_ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h. */
35288 $ac_includes_default
35289 typedef short int ac__type_sizeof_;
35293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35300 rm -f conftest.$ac_objext
35301 if { (ac_try="$ac_compile"
35302 case "(($ac_try" in
35303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35304 *) ac_try_echo=$ac_try;;
35306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35307 (eval "$ac_compile") 2>conftest.er1
35309 grep -v '^ *+' conftest.er1 >conftest.err
35311 cat conftest.err >&5
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } && {
35314 test -z "$ac_c_werror_flag" ||
35315 test ! -s conftest.err
35316 } && test -s conftest.$ac_objext; then
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 $ac_includes_default
35326 typedef short int ac__type_sizeof_;
35330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35337 rm -f conftest.$ac_objext
35338 if { (ac_try="$ac_compile"
35339 case "(($ac_try" in
35340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341 *) ac_try_echo=$ac_try;;
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344 (eval "$ac_compile") 2>conftest.er1
35346 grep -v '^ *+' conftest.er1 >conftest.err
35348 cat conftest.err >&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } && {
35351 test -z "$ac_c_werror_flag" ||
35352 test ! -s conftest.err
35353 } && test -s conftest.$ac_objext; then
35354 ac_hi=$ac_mid; break
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35359 ac_lo=`expr $ac_mid + 1`
35360 if test $ac_lo -le $ac_mid; then
35364 ac_mid=`expr 2 '*' $ac_mid + 1`
35367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370 echo "$as_me: failed program was:" >&5
35371 sed 's/^/| /' conftest.$ac_ext >&5
35373 cat >conftest.$ac_ext <<_ACEOF
35376 cat confdefs.h >>conftest.$ac_ext
35377 cat >>conftest.$ac_ext <<_ACEOF
35378 /* end confdefs.h. */
35379 $ac_includes_default
35380 typedef short int ac__type_sizeof_;
35384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35391 rm -f conftest.$ac_objext
35392 if { (ac_try="$ac_compile"
35393 case "(($ac_try" in
35394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35395 *) ac_try_echo=$ac_try;;
35397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35398 (eval "$ac_compile") 2>conftest.er1
35400 grep -v '^ *+' conftest.er1 >conftest.err
35402 cat conftest.err >&5
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); } && {
35405 test -z "$ac_c_werror_flag" ||
35406 test ! -s conftest.err
35407 } && test -s conftest.$ac_objext; then
35410 cat >conftest.$ac_ext <<_ACEOF
35413 cat confdefs.h >>conftest.$ac_ext
35414 cat >>conftest.$ac_ext <<_ACEOF
35415 /* end confdefs.h. */
35416 $ac_includes_default
35417 typedef short int ac__type_sizeof_;
35421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35428 rm -f conftest.$ac_objext
35429 if { (ac_try="$ac_compile"
35430 case "(($ac_try" in
35431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35432 *) ac_try_echo=$ac_try;;
35434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35435 (eval "$ac_compile") 2>conftest.er1
35437 grep -v '^ *+' conftest.er1 >conftest.err
35439 cat conftest.err >&5
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); } && {
35442 test -z "$ac_c_werror_flag" ||
35443 test ! -s conftest.err
35444 } && test -s conftest.$ac_objext; then
35445 ac_lo=$ac_mid; break
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35450 ac_hi=`expr '(' $ac_mid ')' - 1`
35451 if test $ac_mid -le $ac_hi; then
35455 ac_mid=`expr 2 '*' $ac_mid`
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35461 echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35471 # Binary search between lo and hi bounds.
35472 while test "x$ac_lo" != "x$ac_hi"; do
35473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35474 cat >conftest.$ac_ext <<_ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480 $ac_includes_default
35481 typedef short int ac__type_sizeof_;
35485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35492 rm -f conftest.$ac_objext
35493 if { (ac_try="$ac_compile"
35494 case "(($ac_try" in
35495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496 *) ac_try_echo=$ac_try;;
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499 (eval "$ac_compile") 2>conftest.er1
35501 grep -v '^ *+' conftest.er1 >conftest.err
35503 cat conftest.err >&5
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); } && {
35506 test -z "$ac_c_werror_flag" ||
35507 test ! -s conftest.err
35508 } && test -s conftest.$ac_objext; then
35511 echo "$as_me: failed program was:" >&5
35512 sed 's/^/| /' conftest.$ac_ext >&5
35514 ac_lo=`expr '(' $ac_mid ')' + 1`
35517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35520 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35521 '') if test "$ac_cv_type_short_int" = yes; then
35522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35523 See \`config.log' for more details." >&5
35524 echo "$as_me: error: cannot compute sizeof (short int)
35525 See \`config.log' for more details." >&2;}
35526 { (exit 77); exit 77; }; }
35528 ac_cv_sizeof_short_int=0
35532 cat >conftest.$ac_ext <<_ACEOF
35535 cat confdefs.h >>conftest.$ac_ext
35536 cat >>conftest.$ac_ext <<_ACEOF
35537 /* end confdefs.h. */
35538 $ac_includes_default
35539 typedef short int ac__type_sizeof_;
35540 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35541 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35543 #include <stdlib.h>
35548 FILE *f = fopen ("conftest.val", "w");
35551 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35553 long int i = longval ();
35554 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35556 fprintf (f, "%ld\n", i);
35560 unsigned long int i = ulongval ();
35561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35563 fprintf (f, "%lu\n", i);
35565 return ferror (f) || fclose (f) != 0;
35571 rm -f conftest$ac_exeext
35572 if { (ac_try="$ac_link"
35573 case "(($ac_try" in
35574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35575 *) ac_try_echo=$ac_try;;
35577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35578 (eval "$ac_link") 2>&5
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35582 { (case "(($ac_try" in
35583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35584 *) ac_try_echo=$ac_try;;
35586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35587 (eval "$ac_try") 2>&5
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); }; }; then
35591 ac_cv_sizeof_short_int=`cat conftest.val`
35593 echo "$as_me: program exited with status $ac_status" >&5
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35597 ( exit $ac_status )
35598 if test "$ac_cv_type_short_int" = yes; then
35599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35600 See \`config.log' for more details." >&5
35601 echo "$as_me: error: cannot compute sizeof (short int)
35602 See \`config.log' for more details." >&2;}
35603 { (exit 77); exit 77; }; }
35605 ac_cv_sizeof_short_int=0
35608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35613 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35617 cat >>confdefs.h <<_ACEOF
35618 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35622 { echo "$as_me:$LINENO: checking for int" >&5
35623 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35624 if test "${ac_cv_type_int+set}" = set; then
35625 echo $ECHO_N "(cached) $ECHO_C" >&6
35627 cat >conftest.$ac_ext <<_ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h. */
35633 $ac_includes_default
35634 typedef int ac__type_new_;
35638 if ((ac__type_new_ *) 0)
35640 if (sizeof (ac__type_new_))
35646 rm -f conftest.$ac_objext
35647 if { (ac_try="$ac_compile"
35648 case "(($ac_try" in
35649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650 *) ac_try_echo=$ac_try;;
35652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35653 (eval "$ac_compile") 2>conftest.er1
35655 grep -v '^ *+' conftest.er1 >conftest.err
35657 cat conftest.err >&5
35658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); } && {
35660 test -z "$ac_c_werror_flag" ||
35661 test ! -s conftest.err
35662 } && test -s conftest.$ac_objext; then
35665 echo "$as_me: failed program was:" >&5
35666 sed 's/^/| /' conftest.$ac_ext >&5
35671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35673 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35674 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35676 # The cast to long int works around a bug in the HP C Compiler
35677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35679 # This bug is HP SR number 8606223364.
35680 { echo "$as_me:$LINENO: checking size of int" >&5
35681 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35682 if test "${ac_cv_sizeof_int+set}" = set; then
35683 echo $ECHO_N "(cached) $ECHO_C" >&6
35685 if test "$cross_compiling" = yes; then
35686 # Depending upon the size, compute the lo and hi bounds.
35687 cat >conftest.$ac_ext <<_ACEOF
35690 cat confdefs.h >>conftest.$ac_ext
35691 cat >>conftest.$ac_ext <<_ACEOF
35692 /* end confdefs.h. */
35693 $ac_includes_default
35694 typedef int ac__type_sizeof_;
35698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35705 rm -f conftest.$ac_objext
35706 if { (ac_try="$ac_compile"
35707 case "(($ac_try" in
35708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709 *) ac_try_echo=$ac_try;;
35711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712 (eval "$ac_compile") 2>conftest.er1
35714 grep -v '^ *+' conftest.er1 >conftest.err
35716 cat conftest.err >&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } && {
35719 test -z "$ac_c_werror_flag" ||
35720 test ! -s conftest.err
35721 } && test -s conftest.$ac_objext; then
35724 cat >conftest.$ac_ext <<_ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 $ac_includes_default
35731 typedef int ac__type_sizeof_;
35735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35742 rm -f conftest.$ac_objext
35743 if { (ac_try="$ac_compile"
35744 case "(($ac_try" in
35745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746 *) ac_try_echo=$ac_try;;
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749 (eval "$ac_compile") 2>conftest.er1
35751 grep -v '^ *+' conftest.er1 >conftest.err
35753 cat conftest.err >&5
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); } && {
35756 test -z "$ac_c_werror_flag" ||
35757 test ! -s conftest.err
35758 } && test -s conftest.$ac_objext; then
35759 ac_hi=$ac_mid; break
35761 echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35764 ac_lo=`expr $ac_mid + 1`
35765 if test $ac_lo -le $ac_mid; then
35769 ac_mid=`expr 2 '*' $ac_mid + 1`
35772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35778 cat >conftest.$ac_ext <<_ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h. */
35784 $ac_includes_default
35785 typedef int ac__type_sizeof_;
35789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35796 rm -f conftest.$ac_objext
35797 if { (ac_try="$ac_compile"
35798 case "(($ac_try" in
35799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800 *) ac_try_echo=$ac_try;;
35802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35803 (eval "$ac_compile") 2>conftest.er1
35805 grep -v '^ *+' conftest.er1 >conftest.err
35807 cat conftest.err >&5
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); } && {
35810 test -z "$ac_c_werror_flag" ||
35811 test ! -s conftest.err
35812 } && test -s conftest.$ac_objext; then
35815 cat >conftest.$ac_ext <<_ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h. */
35821 $ac_includes_default
35822 typedef int ac__type_sizeof_;
35826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35833 rm -f conftest.$ac_objext
35834 if { (ac_try="$ac_compile"
35835 case "(($ac_try" in
35836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35837 *) ac_try_echo=$ac_try;;
35839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35840 (eval "$ac_compile") 2>conftest.er1
35842 grep -v '^ *+' conftest.er1 >conftest.err
35844 cat conftest.err >&5
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); } && {
35847 test -z "$ac_c_werror_flag" ||
35848 test ! -s conftest.err
35849 } && test -s conftest.$ac_objext; then
35850 ac_lo=$ac_mid; break
35852 echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35855 ac_hi=`expr '(' $ac_mid ')' - 1`
35856 if test $ac_mid -le $ac_hi; then
35860 ac_mid=`expr 2 '*' $ac_mid`
35863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35866 echo "$as_me: failed program was:" >&5
35867 sed 's/^/| /' conftest.$ac_ext >&5
35872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35876 # Binary search between lo and hi bounds.
35877 while test "x$ac_lo" != "x$ac_hi"; do
35878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35879 cat >conftest.$ac_ext <<_ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35885 $ac_includes_default
35886 typedef int ac__type_sizeof_;
35890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901 *) ac_try_echo=$ac_try;;
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904 (eval "$ac_compile") 2>conftest.er1
35906 grep -v '^ *+' conftest.er1 >conftest.err
35908 cat conftest.err >&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } && {
35911 test -z "$ac_c_werror_flag" ||
35912 test ! -s conftest.err
35913 } && test -s conftest.$ac_objext; then
35916 echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35919 ac_lo=`expr '(' $ac_mid ')' + 1`
35922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35925 ?*) ac_cv_sizeof_int=$ac_lo;;
35926 '') if test "$ac_cv_type_int" = yes; then
35927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35928 See \`config.log' for more details." >&5
35929 echo "$as_me: error: cannot compute sizeof (int)
35930 See \`config.log' for more details." >&2;}
35931 { (exit 77); exit 77; }; }
35937 cat >conftest.$ac_ext <<_ACEOF
35940 cat confdefs.h >>conftest.$ac_ext
35941 cat >>conftest.$ac_ext <<_ACEOF
35942 /* end confdefs.h. */
35943 $ac_includes_default
35944 typedef int ac__type_sizeof_;
35945 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35946 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35948 #include <stdlib.h>
35953 FILE *f = fopen ("conftest.val", "w");
35956 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35958 long int i = longval ();
35959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35961 fprintf (f, "%ld\n", i);
35965 unsigned long int i = ulongval ();
35966 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35968 fprintf (f, "%lu\n", i);
35970 return ferror (f) || fclose (f) != 0;
35976 rm -f conftest$ac_exeext
35977 if { (ac_try="$ac_link"
35978 case "(($ac_try" in
35979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35980 *) ac_try_echo=$ac_try;;
35982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35983 (eval "$ac_link") 2>&5
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35987 { (case "(($ac_try" in
35988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35989 *) ac_try_echo=$ac_try;;
35991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35992 (eval "$ac_try") 2>&5
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); }; }; then
35996 ac_cv_sizeof_int=`cat conftest.val`
35998 echo "$as_me: program exited with status $ac_status" >&5
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36002 ( exit $ac_status )
36003 if test "$ac_cv_type_int" = yes; then
36004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36005 See \`config.log' for more details." >&5
36006 echo "$as_me: error: cannot compute sizeof (int)
36007 See \`config.log' for more details." >&2;}
36008 { (exit 77); exit 77; }; }
36013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36018 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36022 cat >>confdefs.h <<_ACEOF
36023 #define SIZEOF_INT $ac_cv_sizeof_int
36027 { echo "$as_me:$LINENO: checking for long int" >&5
36028 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36029 if test "${ac_cv_type_long_int+set}" = set; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36032 cat >conftest.$ac_ext <<_ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h. */
36038 $ac_includes_default
36039 typedef long int ac__type_new_;
36043 if ((ac__type_new_ *) 0)
36045 if (sizeof (ac__type_new_))
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055 *) ac_try_echo=$ac_try;;
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058 (eval "$ac_compile") 2>conftest.er1
36060 grep -v '^ *+' conftest.er1 >conftest.err
36062 cat conftest.err >&5
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } && {
36065 test -z "$ac_c_werror_flag" ||
36066 test ! -s conftest.err
36067 } && test -s conftest.$ac_objext; then
36068 ac_cv_type_long_int=yes
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36073 ac_cv_type_long_int=no
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36078 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36079 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36081 # The cast to long int works around a bug in the HP C Compiler
36082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36084 # This bug is HP SR number 8606223364.
36085 { echo "$as_me:$LINENO: checking size of long int" >&5
36086 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36087 if test "${ac_cv_sizeof_long_int+set}" = set; then
36088 echo $ECHO_N "(cached) $ECHO_C" >&6
36090 if test "$cross_compiling" = yes; then
36091 # Depending upon the size, compute the lo and hi bounds.
36092 cat >conftest.$ac_ext <<_ACEOF
36095 cat confdefs.h >>conftest.$ac_ext
36096 cat >>conftest.$ac_ext <<_ACEOF
36097 /* end confdefs.h. */
36098 $ac_includes_default
36099 typedef long int ac__type_sizeof_;
36103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36110 rm -f conftest.$ac_objext
36111 if { (ac_try="$ac_compile"
36112 case "(($ac_try" in
36113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36114 *) ac_try_echo=$ac_try;;
36116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36117 (eval "$ac_compile") 2>conftest.er1
36119 grep -v '^ *+' conftest.er1 >conftest.err
36121 cat conftest.err >&5
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); } && {
36124 test -z "$ac_c_werror_flag" ||
36125 test ! -s conftest.err
36126 } && test -s conftest.$ac_objext; then
36129 cat >conftest.$ac_ext <<_ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h. */
36135 $ac_includes_default
36136 typedef long int ac__type_sizeof_;
36140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36147 rm -f conftest.$ac_objext
36148 if { (ac_try="$ac_compile"
36149 case "(($ac_try" in
36150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151 *) ac_try_echo=$ac_try;;
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154 (eval "$ac_compile") 2>conftest.er1
36156 grep -v '^ *+' conftest.er1 >conftest.err
36158 cat conftest.err >&5
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } && {
36161 test -z "$ac_c_werror_flag" ||
36162 test ! -s conftest.err
36163 } && test -s conftest.$ac_objext; then
36164 ac_hi=$ac_mid; break
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36169 ac_lo=`expr $ac_mid + 1`
36170 if test $ac_lo -le $ac_mid; then
36174 ac_mid=`expr 2 '*' $ac_mid + 1`
36177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36180 echo "$as_me: failed program was:" >&5
36181 sed 's/^/| /' conftest.$ac_ext >&5
36183 cat >conftest.$ac_ext <<_ACEOF
36186 cat confdefs.h >>conftest.$ac_ext
36187 cat >>conftest.$ac_ext <<_ACEOF
36188 /* end confdefs.h. */
36189 $ac_includes_default
36190 typedef long int ac__type_sizeof_;
36194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36201 rm -f conftest.$ac_objext
36202 if { (ac_try="$ac_compile"
36203 case "(($ac_try" in
36204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205 *) ac_try_echo=$ac_try;;
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208 (eval "$ac_compile") 2>conftest.er1
36210 grep -v '^ *+' conftest.er1 >conftest.err
36212 cat conftest.err >&5
36213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214 (exit $ac_status); } && {
36215 test -z "$ac_c_werror_flag" ||
36216 test ! -s conftest.err
36217 } && test -s conftest.$ac_objext; then
36220 cat >conftest.$ac_ext <<_ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h. */
36226 $ac_includes_default
36227 typedef long int ac__type_sizeof_;
36231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36238 rm -f conftest.$ac_objext
36239 if { (ac_try="$ac_compile"
36240 case "(($ac_try" in
36241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242 *) ac_try_echo=$ac_try;;
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245 (eval "$ac_compile") 2>conftest.er1
36247 grep -v '^ *+' conftest.er1 >conftest.err
36249 cat conftest.err >&5
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); } && {
36252 test -z "$ac_c_werror_flag" ||
36253 test ! -s conftest.err
36254 } && test -s conftest.$ac_objext; then
36255 ac_lo=$ac_mid; break
36257 echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36260 ac_hi=`expr '(' $ac_mid ')' - 1`
36261 if test $ac_mid -le $ac_hi; then
36265 ac_mid=`expr 2 '*' $ac_mid`
36268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36271 echo "$as_me: failed program was:" >&5
36272 sed 's/^/| /' conftest.$ac_ext >&5
36277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36281 # Binary search between lo and hi bounds.
36282 while test "x$ac_lo" != "x$ac_hi"; do
36283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36284 cat >conftest.$ac_ext <<_ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h. */
36290 $ac_includes_default
36291 typedef long int ac__type_sizeof_;
36295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36302 rm -f conftest.$ac_objext
36303 if { (ac_try="$ac_compile"
36304 case "(($ac_try" in
36305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306 *) ac_try_echo=$ac_try;;
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309 (eval "$ac_compile") 2>conftest.er1
36311 grep -v '^ *+' conftest.er1 >conftest.err
36313 cat conftest.err >&5
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } && {
36316 test -z "$ac_c_werror_flag" ||
36317 test ! -s conftest.err
36318 } && test -s conftest.$ac_objext; then
36321 echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36324 ac_lo=`expr '(' $ac_mid ')' + 1`
36327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36330 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36331 '') if test "$ac_cv_type_long_int" = yes; then
36332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36333 See \`config.log' for more details." >&5
36334 echo "$as_me: error: cannot compute sizeof (long int)
36335 See \`config.log' for more details." >&2;}
36336 { (exit 77); exit 77; }; }
36338 ac_cv_sizeof_long_int=0
36342 cat >conftest.$ac_ext <<_ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h. */
36348 $ac_includes_default
36349 typedef long int ac__type_sizeof_;
36350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36353 #include <stdlib.h>
36358 FILE *f = fopen ("conftest.val", "w");
36361 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36363 long int i = longval ();
36364 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36366 fprintf (f, "%ld\n", i);
36370 unsigned long int i = ulongval ();
36371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36373 fprintf (f, "%lu\n", i);
36375 return ferror (f) || fclose (f) != 0;
36381 rm -f conftest$ac_exeext
36382 if { (ac_try="$ac_link"
36383 case "(($ac_try" in
36384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36385 *) ac_try_echo=$ac_try;;
36387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36388 (eval "$ac_link") 2>&5
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36392 { (case "(($ac_try" in
36393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36394 *) ac_try_echo=$ac_try;;
36396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36397 (eval "$ac_try") 2>&5
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
36401 ac_cv_sizeof_long_int=`cat conftest.val`
36403 echo "$as_me: program exited with status $ac_status" >&5
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36407 ( exit $ac_status )
36408 if test "$ac_cv_type_long_int" = yes; then
36409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36410 See \`config.log' for more details." >&5
36411 echo "$as_me: error: cannot compute sizeof (long int)
36412 See \`config.log' for more details." >&2;}
36413 { (exit 77); exit 77; }; }
36415 ac_cv_sizeof_long_int=0
36418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36422 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36423 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36427 cat >>confdefs.h <<_ACEOF
36428 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36432 { echo "$as_me:$LINENO: checking for long long int" >&5
36433 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36434 if test "${ac_cv_type_long_long_int+set}" = set; then
36435 echo $ECHO_N "(cached) $ECHO_C" >&6
36437 cat >conftest.$ac_ext <<_ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h. */
36443 $ac_includes_default
36444 typedef long long int ac__type_new_;
36448 if ((ac__type_new_ *) 0)
36450 if (sizeof (ac__type_new_))
36456 rm -f conftest.$ac_objext
36457 if { (ac_try="$ac_compile"
36458 case "(($ac_try" in
36459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460 *) ac_try_echo=$ac_try;;
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463 (eval "$ac_compile") 2>conftest.er1
36465 grep -v '^ *+' conftest.er1 >conftest.err
36467 cat conftest.err >&5
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } && {
36470 test -z "$ac_c_werror_flag" ||
36471 test ! -s conftest.err
36472 } && test -s conftest.$ac_objext; then
36473 ac_cv_type_long_long_int=yes
36475 echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36478 ac_cv_type_long_long_int=no
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36483 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36484 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36486 # The cast to long int works around a bug in the HP C Compiler
36487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36489 # This bug is HP SR number 8606223364.
36490 { echo "$as_me:$LINENO: checking size of long long int" >&5
36491 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36492 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36493 echo $ECHO_N "(cached) $ECHO_C" >&6
36495 if test "$cross_compiling" = yes; then
36496 # Depending upon the size, compute the lo and hi bounds.
36497 cat >conftest.$ac_ext <<_ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h. */
36503 $ac_includes_default
36504 typedef long long int ac__type_sizeof_;
36508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36515 rm -f conftest.$ac_objext
36516 if { (ac_try="$ac_compile"
36517 case "(($ac_try" in
36518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36519 *) ac_try_echo=$ac_try;;
36521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36522 (eval "$ac_compile") 2>conftest.er1
36524 grep -v '^ *+' conftest.er1 >conftest.err
36526 cat conftest.err >&5
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); } && {
36529 test -z "$ac_c_werror_flag" ||
36530 test ! -s conftest.err
36531 } && test -s conftest.$ac_objext; then
36534 cat >conftest.$ac_ext <<_ACEOF
36537 cat confdefs.h >>conftest.$ac_ext
36538 cat >>conftest.$ac_ext <<_ACEOF
36539 /* end confdefs.h. */
36540 $ac_includes_default
36541 typedef long long int ac__type_sizeof_;
36545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36552 rm -f conftest.$ac_objext
36553 if { (ac_try="$ac_compile"
36554 case "(($ac_try" in
36555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556 *) ac_try_echo=$ac_try;;
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559 (eval "$ac_compile") 2>conftest.er1
36561 grep -v '^ *+' conftest.er1 >conftest.err
36563 cat conftest.err >&5
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); } && {
36566 test -z "$ac_c_werror_flag" ||
36567 test ! -s conftest.err
36568 } && test -s conftest.$ac_objext; then
36569 ac_hi=$ac_mid; break
36571 echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36574 ac_lo=`expr $ac_mid + 1`
36575 if test $ac_lo -le $ac_mid; then
36579 ac_mid=`expr 2 '*' $ac_mid + 1`
36582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36585 echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36588 cat >conftest.$ac_ext <<_ACEOF
36591 cat confdefs.h >>conftest.$ac_ext
36592 cat >>conftest.$ac_ext <<_ACEOF
36593 /* end confdefs.h. */
36594 $ac_includes_default
36595 typedef long long int ac__type_sizeof_;
36599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36606 rm -f conftest.$ac_objext
36607 if { (ac_try="$ac_compile"
36608 case "(($ac_try" in
36609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36610 *) ac_try_echo=$ac_try;;
36612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36613 (eval "$ac_compile") 2>conftest.er1
36615 grep -v '^ *+' conftest.er1 >conftest.err
36617 cat conftest.err >&5
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); } && {
36620 test -z "$ac_c_werror_flag" ||
36621 test ! -s conftest.err
36622 } && test -s conftest.$ac_objext; then
36625 cat >conftest.$ac_ext <<_ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h. */
36631 $ac_includes_default
36632 typedef long long int ac__type_sizeof_;
36636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36643 rm -f conftest.$ac_objext
36644 if { (ac_try="$ac_compile"
36645 case "(($ac_try" in
36646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647 *) ac_try_echo=$ac_try;;
36649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650 (eval "$ac_compile") 2>conftest.er1
36652 grep -v '^ *+' conftest.er1 >conftest.err
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } && {
36657 test -z "$ac_c_werror_flag" ||
36658 test ! -s conftest.err
36659 } && test -s conftest.$ac_objext; then
36660 ac_lo=$ac_mid; break
36662 echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36665 ac_hi=`expr '(' $ac_mid ')' - 1`
36666 if test $ac_mid -le $ac_hi; then
36670 ac_mid=`expr 2 '*' $ac_mid`
36673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36676 echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686 # Binary search between lo and hi bounds.
36687 while test "x$ac_lo" != "x$ac_hi"; do
36688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36689 cat >conftest.$ac_ext <<_ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h. */
36695 $ac_includes_default
36696 typedef long long int ac__type_sizeof_;
36700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36707 rm -f conftest.$ac_objext
36708 if { (ac_try="$ac_compile"
36709 case "(($ac_try" in
36710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36711 *) ac_try_echo=$ac_try;;
36713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36714 (eval "$ac_compile") 2>conftest.er1
36716 grep -v '^ *+' conftest.er1 >conftest.err
36718 cat conftest.err >&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } && {
36721 test -z "$ac_c_werror_flag" ||
36722 test ! -s conftest.err
36723 } && test -s conftest.$ac_objext; then
36726 echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36729 ac_lo=`expr '(' $ac_mid ')' + 1`
36732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36735 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36736 '') if test "$ac_cv_type_long_long_int" = yes; then
36737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36738 See \`config.log' for more details." >&5
36739 echo "$as_me: error: cannot compute sizeof (long long int)
36740 See \`config.log' for more details." >&2;}
36741 { (exit 77); exit 77; }; }
36743 ac_cv_sizeof_long_long_int=0
36747 cat >conftest.$ac_ext <<_ACEOF
36750 cat confdefs.h >>conftest.$ac_ext
36751 cat >>conftest.$ac_ext <<_ACEOF
36752 /* end confdefs.h. */
36753 $ac_includes_default
36754 typedef long long int ac__type_sizeof_;
36755 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36756 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36758 #include <stdlib.h>
36763 FILE *f = fopen ("conftest.val", "w");
36766 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36768 long int i = longval ();
36769 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36771 fprintf (f, "%ld\n", i);
36775 unsigned long int i = ulongval ();
36776 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36778 fprintf (f, "%lu\n", i);
36780 return ferror (f) || fclose (f) != 0;
36786 rm -f conftest$ac_exeext
36787 if { (ac_try="$ac_link"
36788 case "(($ac_try" in
36789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36790 *) ac_try_echo=$ac_try;;
36792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36793 (eval "$ac_link") 2>&5
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36797 { (case "(($ac_try" in
36798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799 *) ac_try_echo=$ac_try;;
36801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36802 (eval "$ac_try") 2>&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); }; }; then
36806 ac_cv_sizeof_long_long_int=`cat conftest.val`
36808 echo "$as_me: program exited with status $ac_status" >&5
36809 echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36812 ( exit $ac_status )
36813 if test "$ac_cv_type_long_long_int" = yes; then
36814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36815 See \`config.log' for more details." >&5
36816 echo "$as_me: error: cannot compute sizeof (long long int)
36817 See \`config.log' for more details." >&2;}
36818 { (exit 77); exit 77; }; }
36820 ac_cv_sizeof_long_long_int=0
36823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36827 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36828 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36832 cat >>confdefs.h <<_ACEOF
36833 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36837 { echo "$as_me:$LINENO: checking for int *" >&5
36838 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36839 if test "${ac_cv_type_int_p+set}" = set; then
36840 echo $ECHO_N "(cached) $ECHO_C" >&6
36842 cat >conftest.$ac_ext <<_ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h. */
36848 $ac_includes_default
36849 typedef int * ac__type_new_;
36853 if ((ac__type_new_ *) 0)
36855 if (sizeof (ac__type_new_))
36861 rm -f conftest.$ac_objext
36862 if { (ac_try="$ac_compile"
36863 case "(($ac_try" in
36864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865 *) ac_try_echo=$ac_try;;
36867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36868 (eval "$ac_compile") 2>conftest.er1
36870 grep -v '^ *+' conftest.er1 >conftest.err
36872 cat conftest.err >&5
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); } && {
36875 test -z "$ac_c_werror_flag" ||
36876 test ! -s conftest.err
36877 } && test -s conftest.$ac_objext; then
36878 ac_cv_type_int_p=yes
36880 echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36883 ac_cv_type_int_p=no
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36888 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36889 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36891 # The cast to long int works around a bug in the HP C Compiler
36892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36894 # This bug is HP SR number 8606223364.
36895 { echo "$as_me:$LINENO: checking size of int *" >&5
36896 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36897 if test "${ac_cv_sizeof_int_p+set}" = set; then
36898 echo $ECHO_N "(cached) $ECHO_C" >&6
36900 if test "$cross_compiling" = yes; then
36901 # Depending upon the size, compute the lo and hi bounds.
36902 cat >conftest.$ac_ext <<_ACEOF
36905 cat confdefs.h >>conftest.$ac_ext
36906 cat >>conftest.$ac_ext <<_ACEOF
36907 /* end confdefs.h. */
36908 $ac_includes_default
36909 typedef int * ac__type_sizeof_;
36913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36920 rm -f conftest.$ac_objext
36921 if { (ac_try="$ac_compile"
36922 case "(($ac_try" in
36923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36924 *) ac_try_echo=$ac_try;;
36926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36927 (eval "$ac_compile") 2>conftest.er1
36929 grep -v '^ *+' conftest.er1 >conftest.err
36931 cat conftest.err >&5
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); } && {
36934 test -z "$ac_c_werror_flag" ||
36935 test ! -s conftest.err
36936 } && test -s conftest.$ac_objext; then
36939 cat >conftest.$ac_ext <<_ACEOF
36942 cat confdefs.h >>conftest.$ac_ext
36943 cat >>conftest.$ac_ext <<_ACEOF
36944 /* end confdefs.h. */
36945 $ac_includes_default
36946 typedef int * ac__type_sizeof_;
36950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36957 rm -f conftest.$ac_objext
36958 if { (ac_try="$ac_compile"
36959 case "(($ac_try" in
36960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36961 *) ac_try_echo=$ac_try;;
36963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36964 (eval "$ac_compile") 2>conftest.er1
36966 grep -v '^ *+' conftest.er1 >conftest.err
36968 cat conftest.err >&5
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); } && {
36971 test -z "$ac_c_werror_flag" ||
36972 test ! -s conftest.err
36973 } && test -s conftest.$ac_objext; then
36974 ac_hi=$ac_mid; break
36976 echo "$as_me: failed program was:" >&5
36977 sed 's/^/| /' conftest.$ac_ext >&5
36979 ac_lo=`expr $ac_mid + 1`
36980 if test $ac_lo -le $ac_mid; then
36984 ac_mid=`expr 2 '*' $ac_mid + 1`
36987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36990 echo "$as_me: failed program was:" >&5
36991 sed 's/^/| /' conftest.$ac_ext >&5
36993 cat >conftest.$ac_ext <<_ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h. */
36999 $ac_includes_default
37000 typedef int * ac__type_sizeof_;
37004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37011 rm -f conftest.$ac_objext
37012 if { (ac_try="$ac_compile"
37013 case "(($ac_try" in
37014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37015 *) ac_try_echo=$ac_try;;
37017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37018 (eval "$ac_compile") 2>conftest.er1
37020 grep -v '^ *+' conftest.er1 >conftest.err
37022 cat conftest.err >&5
37023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024 (exit $ac_status); } && {
37025 test -z "$ac_c_werror_flag" ||
37026 test ! -s conftest.err
37027 } && test -s conftest.$ac_objext; then
37030 cat >conftest.$ac_ext <<_ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h. */
37036 $ac_includes_default
37037 typedef int * ac__type_sizeof_;
37041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37048 rm -f conftest.$ac_objext
37049 if { (ac_try="$ac_compile"
37050 case "(($ac_try" in
37051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052 *) ac_try_echo=$ac_try;;
37054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37055 (eval "$ac_compile") 2>conftest.er1
37057 grep -v '^ *+' conftest.er1 >conftest.err
37059 cat conftest.err >&5
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); } && {
37062 test -z "$ac_c_werror_flag" ||
37063 test ! -s conftest.err
37064 } && test -s conftest.$ac_objext; then
37065 ac_lo=$ac_mid; break
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37070 ac_hi=`expr '(' $ac_mid ')' - 1`
37071 if test $ac_mid -le $ac_hi; then
37075 ac_mid=`expr 2 '*' $ac_mid`
37078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37081 echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37091 # Binary search between lo and hi bounds.
37092 while test "x$ac_lo" != "x$ac_hi"; do
37093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37094 cat >conftest.$ac_ext <<_ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h. */
37100 $ac_includes_default
37101 typedef int * ac__type_sizeof_;
37105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37112 rm -f conftest.$ac_objext
37113 if { (ac_try="$ac_compile"
37114 case "(($ac_try" in
37115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116 *) ac_try_echo=$ac_try;;
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119 (eval "$ac_compile") 2>conftest.er1
37121 grep -v '^ *+' conftest.er1 >conftest.err
37123 cat conftest.err >&5
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } && {
37126 test -z "$ac_c_werror_flag" ||
37127 test ! -s conftest.err
37128 } && test -s conftest.$ac_objext; then
37131 echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37134 ac_lo=`expr '(' $ac_mid ')' + 1`
37137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37140 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37141 '') if test "$ac_cv_type_int_p" = yes; then
37142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37143 See \`config.log' for more details." >&5
37144 echo "$as_me: error: cannot compute sizeof (int *)
37145 See \`config.log' for more details." >&2;}
37146 { (exit 77); exit 77; }; }
37148 ac_cv_sizeof_int_p=0
37152 cat >conftest.$ac_ext <<_ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h. */
37158 $ac_includes_default
37159 typedef int * ac__type_sizeof_;
37160 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37161 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37163 #include <stdlib.h>
37168 FILE *f = fopen ("conftest.val", "w");
37171 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37173 long int i = longval ();
37174 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37176 fprintf (f, "%ld\n", i);
37180 unsigned long int i = ulongval ();
37181 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37183 fprintf (f, "%lu\n", i);
37185 return ferror (f) || fclose (f) != 0;
37191 rm -f conftest$ac_exeext
37192 if { (ac_try="$ac_link"
37193 case "(($ac_try" in
37194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37195 *) ac_try_echo=$ac_try;;
37197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37198 (eval "$ac_link") 2>&5
37200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37202 { (case "(($ac_try" in
37203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37204 *) ac_try_echo=$ac_try;;
37206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37207 (eval "$ac_try") 2>&5
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); }; }; then
37211 ac_cv_sizeof_int_p=`cat conftest.val`
37213 echo "$as_me: program exited with status $ac_status" >&5
37214 echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37217 ( exit $ac_status )
37218 if test "$ac_cv_type_int_p" = yes; then
37219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37220 See \`config.log' for more details." >&5
37221 echo "$as_me: error: cannot compute sizeof (int *)
37222 See \`config.log' for more details." >&2;}
37223 { (exit 77); exit 77; }; }
37225 ac_cv_sizeof_int_p=0
37228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37233 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37237 cat >>confdefs.h <<_ACEOF
37238 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37243 { echo "$as_me:$LINENO: checking for u_int type" >&5
37244 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37245 if test "${ac_cv_have_u_int+set}" = set; then
37246 echo $ECHO_N "(cached) $ECHO_C" >&6
37249 cat >conftest.$ac_ext <<_ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h. */
37256 #include <sys/types.h>
37268 rm -f conftest.$ac_objext
37269 if { (ac_try="$ac_compile"
37270 case "(($ac_try" in
37271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37272 *) ac_try_echo=$ac_try;;
37274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37275 (eval "$ac_compile") 2>conftest.er1
37277 grep -v '^ *+' conftest.er1 >conftest.err
37279 cat conftest.err >&5
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); } && {
37282 test -z "$ac_c_werror_flag" ||
37283 test ! -s conftest.err
37284 } && test -s conftest.$ac_objext; then
37286 ac_cv_have_u_int="yes"
37289 echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37293 ac_cv_have_u_int="no"
37298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37302 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37303 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37304 if test "x$ac_cv_have_u_int" = "xyes" ; then
37305 cat >>confdefs.h <<\_ACEOF
37306 #define HAVE_U_INT 1
37312 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37313 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37314 if test "${ac_cv_have_intmax_t+set}" = set; then
37315 echo $ECHO_N "(cached) $ECHO_C" >&6
37318 cat >conftest.$ac_ext <<_ACEOF
37321 cat confdefs.h >>conftest.$ac_ext
37322 cat >>conftest.$ac_ext <<_ACEOF
37323 /* end confdefs.h. */
37325 #include <sys/types.h>
37337 rm -f conftest.$ac_objext
37338 if { (ac_try="$ac_compile"
37339 case "(($ac_try" in
37340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37341 *) ac_try_echo=$ac_try;;
37343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37344 (eval "$ac_compile") 2>conftest.er1
37346 grep -v '^ *+' conftest.er1 >conftest.err
37348 cat conftest.err >&5
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); } && {
37351 test -z "$ac_c_werror_flag" ||
37352 test ! -s conftest.err
37353 } && test -s conftest.$ac_objext; then
37355 ac_cv_have_intmax_t="yes"
37358 echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37362 cat >conftest.$ac_ext <<_ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h. */
37369 #include <stdint.h>
37381 rm -f conftest.$ac_objext
37382 if { (ac_try="$ac_compile"
37383 case "(($ac_try" in
37384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37385 *) ac_try_echo=$ac_try;;
37387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37388 (eval "$ac_compile") 2>conftest.er1
37390 grep -v '^ *+' conftest.er1 >conftest.err
37392 cat conftest.err >&5
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); } && {
37395 test -z "$ac_c_werror_flag" ||
37396 test ! -s conftest.err
37397 } && test -s conftest.$ac_objext; then
37399 ac_cv_have_intmax_t="yes"
37402 echo "$as_me: failed program was:" >&5
37403 sed 's/^/| /' conftest.$ac_ext >&5
37406 ac_cv_have_intmax_t="no"
37411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37420 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37421 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37422 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37423 cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_INTMAX_T 1
37430 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37433 echo $ECHO_N "(cached) $ECHO_C" >&6
37436 cat >conftest.$ac_ext <<_ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h. */
37443 #include <sys/types.h>
37449 u_intmax_t a; a = 1;
37455 rm -f conftest.$ac_objext
37456 if { (ac_try="$ac_compile"
37457 case "(($ac_try" in
37458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37459 *) ac_try_echo=$ac_try;;
37461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37462 (eval "$ac_compile") 2>conftest.er1
37464 grep -v '^ *+' conftest.er1 >conftest.err
37466 cat conftest.err >&5
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); } && {
37469 test -z "$ac_c_werror_flag" ||
37470 test ! -s conftest.err
37471 } && test -s conftest.$ac_objext; then
37473 ac_cv_have_u_intmax_t="yes"
37476 echo "$as_me: failed program was:" >&5
37477 sed 's/^/| /' conftest.$ac_ext >&5
37480 cat >conftest.$ac_ext <<_ACEOF
37483 cat confdefs.h >>conftest.$ac_ext
37484 cat >>conftest.$ac_ext <<_ACEOF
37485 /* end confdefs.h. */
37487 #include <stdint.h>
37493 u_intmax_t a; a = 1;
37499 rm -f conftest.$ac_objext
37500 if { (ac_try="$ac_compile"
37501 case "(($ac_try" in
37502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503 *) ac_try_echo=$ac_try;;
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506 (eval "$ac_compile") 2>conftest.er1
37508 grep -v '^ *+' conftest.er1 >conftest.err
37510 cat conftest.err >&5
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); } && {
37513 test -z "$ac_c_werror_flag" ||
37514 test ! -s conftest.err
37515 } && test -s conftest.$ac_objext; then
37517 ac_cv_have_u_intmax_t="yes"
37520 echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37524 ac_cv_have_u_intmax_t="no"
37529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37538 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37539 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37540 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37541 cat >>confdefs.h <<\_ACEOF
37542 #define HAVE_U_INTMAX_T 1
37548 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37549 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37550 if test "${ac_cv_have_intxx_t+set}" = set; then
37551 echo $ECHO_N "(cached) $ECHO_C" >&6
37554 cat >conftest.$ac_ext <<_ACEOF
37557 cat confdefs.h >>conftest.$ac_ext
37558 cat >>conftest.$ac_ext <<_ACEOF
37559 /* end confdefs.h. */
37561 #include <sys/types.h>
37567 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37573 rm -f conftest.$ac_objext
37574 if { (ac_try="$ac_compile"
37575 case "(($ac_try" in
37576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577 *) ac_try_echo=$ac_try;;
37579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37580 (eval "$ac_compile") 2>conftest.er1
37582 grep -v '^ *+' conftest.er1 >conftest.err
37584 cat conftest.err >&5
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); } && {
37587 test -z "$ac_c_werror_flag" ||
37588 test ! -s conftest.err
37589 } && test -s conftest.$ac_objext; then
37591 ac_cv_have_intxx_t="yes"
37594 echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37598 ac_cv_have_intxx_t="no"
37603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37607 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37608 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37609 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37610 cat >>confdefs.h <<\_ACEOF
37611 #define HAVE_INTXX_T 1
37617 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37618 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37619 if test "${ac_cv_have_int64_t+set}" = set; then
37620 echo $ECHO_N "(cached) $ECHO_C" >&6
37623 cat >conftest.$ac_ext <<_ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h. */
37630 #include <sys/types.h>
37642 rm -f conftest.$ac_objext
37643 if { (ac_try="$ac_compile"
37644 case "(($ac_try" in
37645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646 *) ac_try_echo=$ac_try;;
37648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37649 (eval "$ac_compile") 2>conftest.er1
37651 grep -v '^ *+' conftest.er1 >conftest.err
37653 cat conftest.err >&5
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); } && {
37656 test -z "$ac_c_werror_flag" ||
37657 test ! -s conftest.err
37658 } && test -s conftest.$ac_objext; then
37660 ac_cv_have_int64_t="yes"
37663 echo "$as_me: failed program was:" >&5
37664 sed 's/^/| /' conftest.$ac_ext >&5
37667 ac_cv_have_int64_t="no"
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37676 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37677 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37678 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37679 cat >>confdefs.h <<\_ACEOF
37680 #define HAVE_INT64_T 1
37686 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37687 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37688 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37689 echo $ECHO_N "(cached) $ECHO_C" >&6
37692 cat >conftest.$ac_ext <<_ACEOF
37695 cat confdefs.h >>conftest.$ac_ext
37696 cat >>conftest.$ac_ext <<_ACEOF
37697 /* end confdefs.h. */
37699 #include <sys/types.h>
37705 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37711 rm -f conftest.$ac_objext
37712 if { (ac_try="$ac_compile"
37713 case "(($ac_try" in
37714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715 *) ac_try_echo=$ac_try;;
37717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718 (eval "$ac_compile") 2>conftest.er1
37720 grep -v '^ *+' conftest.er1 >conftest.err
37722 cat conftest.err >&5
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); } && {
37725 test -z "$ac_c_werror_flag" ||
37726 test ! -s conftest.err
37727 } && test -s conftest.$ac_objext; then
37729 ac_cv_have_u_intxx_t="yes"
37732 echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37736 ac_cv_have_u_intxx_t="no"
37741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37745 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37746 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37747 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37748 cat >>confdefs.h <<\_ACEOF
37749 #define HAVE_U_INTXX_T 1
37755 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37756 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37757 if test "${ac_cv_have_u_int64_t+set}" = set; then
37758 echo $ECHO_N "(cached) $ECHO_C" >&6
37761 cat >conftest.$ac_ext <<_ACEOF
37764 cat confdefs.h >>conftest.$ac_ext
37765 cat >>conftest.$ac_ext <<_ACEOF
37766 /* end confdefs.h. */
37768 #include <sys/types.h>
37774 u_int64_t a; a = 1;
37780 rm -f conftest.$ac_objext
37781 if { (ac_try="$ac_compile"
37782 case "(($ac_try" in
37783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37784 *) ac_try_echo=$ac_try;;
37786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37787 (eval "$ac_compile") 2>conftest.er1
37789 grep -v '^ *+' conftest.er1 >conftest.err
37791 cat conftest.err >&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); } && {
37794 test -z "$ac_c_werror_flag" ||
37795 test ! -s conftest.err
37796 } && test -s conftest.$ac_objext; then
37798 ac_cv_have_u_int64_t="yes"
37801 echo "$as_me: failed program was:" >&5
37802 sed 's/^/| /' conftest.$ac_ext >&5
37805 ac_cv_have_u_int64_t="no"
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37814 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37815 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37816 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37817 cat >>confdefs.h <<\_ACEOF
37818 #define HAVE_U_INT64_T 1
37824 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37825 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37827 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37828 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37829 cat >conftest.$ac_ext <<_ACEOF
37832 cat confdefs.h >>conftest.$ac_ext
37833 cat >>conftest.$ac_ext <<_ACEOF
37834 /* end confdefs.h. */
37836 #include <sys/bitypes.h>
37842 int8_t a; int16_t b; int32_t c;
37843 u_int8_t e; u_int16_t f; u_int32_t g;
37844 a = b = c = e = f = g = 1;
37850 rm -f conftest.$ac_objext
37851 if { (ac_try="$ac_compile"
37852 case "(($ac_try" in
37853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37854 *) ac_try_echo=$ac_try;;
37856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37857 (eval "$ac_compile") 2>conftest.er1
37859 grep -v '^ *+' conftest.er1 >conftest.err
37861 cat conftest.err >&5
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); } && {
37864 test -z "$ac_c_werror_flag" ||
37865 test ! -s conftest.err
37866 } && test -s conftest.$ac_objext; then
37868 cat >>confdefs.h <<\_ACEOF
37869 #define HAVE_U_INTXX_T 1
37872 cat >>confdefs.h <<\_ACEOF
37873 #define HAVE_INTXX_T 1
37876 cat >>confdefs.h <<\_ACEOF
37877 #define HAVE_SYS_BITYPES_H 1
37880 { echo "$as_me:$LINENO: result: yes" >&5
37881 echo "${ECHO_T}yes" >&6; }
37884 echo "$as_me: failed program was:" >&5
37885 sed 's/^/| /' conftest.$ac_ext >&5
37888 { echo "$as_me:$LINENO: result: no" >&5
37889 echo "${ECHO_T}no" >&6; }
37894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37897 if test -z "$have_u_intxx_t" ; then
37898 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37899 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37900 if test "${ac_cv_have_uintxx_t+set}" = set; then
37901 echo $ECHO_N "(cached) $ECHO_C" >&6
37904 cat >conftest.$ac_ext <<_ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h. */
37911 #include <sys/types.h>
37917 uint8_t a; uint16_t b;
37918 uint32_t c; a = b = c = 1;
37924 rm -f conftest.$ac_objext
37925 if { (ac_try="$ac_compile"
37926 case "(($ac_try" in
37927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37928 *) ac_try_echo=$ac_try;;
37930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37931 (eval "$ac_compile") 2>conftest.er1
37933 grep -v '^ *+' conftest.er1 >conftest.err
37935 cat conftest.err >&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); } && {
37938 test -z "$ac_c_werror_flag" ||
37939 test ! -s conftest.err
37940 } && test -s conftest.$ac_objext; then
37942 ac_cv_have_uintxx_t="yes"
37945 echo "$as_me: failed program was:" >&5
37946 sed 's/^/| /' conftest.$ac_ext >&5
37949 ac_cv_have_uintxx_t="no"
37954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37958 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37959 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37960 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37961 cat >>confdefs.h <<\_ACEOF
37962 #define HAVE_UINTXX_T 1
37968 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37969 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37971 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37972 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37973 cat >conftest.$ac_ext <<_ACEOF
37976 cat confdefs.h >>conftest.$ac_ext
37977 cat >>conftest.$ac_ext <<_ACEOF
37978 /* end confdefs.h. */
37980 #include <sys/bitypes.h>
37986 int64_t a; u_int64_t b;
37993 rm -f conftest.$ac_objext
37994 if { (ac_try="$ac_compile"
37995 case "(($ac_try" in
37996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997 *) ac_try_echo=$ac_try;;
37999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38000 (eval "$ac_compile") 2>conftest.er1
38002 grep -v '^ *+' conftest.er1 >conftest.err
38004 cat conftest.err >&5
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); } && {
38007 test -z "$ac_c_werror_flag" ||
38008 test ! -s conftest.err
38009 } && test -s conftest.$ac_objext; then
38011 cat >>confdefs.h <<\_ACEOF
38012 #define HAVE_U_INT64_T 1
38015 cat >>confdefs.h <<\_ACEOF
38016 #define HAVE_INT64_T 1
38019 { echo "$as_me:$LINENO: result: yes" >&5
38020 echo "${ECHO_T}yes" >&6; }
38023 echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38027 { echo "$as_me:$LINENO: result: no" >&5
38028 echo "${ECHO_T}no" >&6; }
38033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38036 if (test -z "$have_uintxx_t" && \
38037 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38039 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38040 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38041 cat >conftest.$ac_ext <<_ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h. */
38048 #include <sys/bitypes.h>
38054 uint8_t a; uint16_t b;
38055 uint32_t c; a = b = c = 1;
38061 rm -f conftest.$ac_objext
38062 if { (ac_try="$ac_compile"
38063 case "(($ac_try" in
38064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065 *) ac_try_echo=$ac_try;;
38067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38068 (eval "$ac_compile") 2>conftest.er1
38070 grep -v '^ *+' conftest.er1 >conftest.err
38072 cat conftest.err >&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); } && {
38075 test -z "$ac_c_werror_flag" ||
38076 test ! -s conftest.err
38077 } && test -s conftest.$ac_objext; then
38079 cat >>confdefs.h <<\_ACEOF
38080 #define HAVE_UINTXX_T 1
38083 { echo "$as_me:$LINENO: result: yes" >&5
38084 echo "${ECHO_T}yes" >&6; }
38087 echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38091 { echo "$as_me:$LINENO: result: no" >&5
38092 echo "${ECHO_T}no" >&6; }
38097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38133 echo $ECHO_N "(cached) $ECHO_C" >&6
38135 cat >conftest.$ac_ext <<_ACEOF
38138 cat confdefs.h >>conftest.$ac_ext
38139 cat >>conftest.$ac_ext <<_ACEOF
38140 /* end confdefs.h. */
38141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38143 #define $ac_func innocuous_$ac_func
38145 /* System header to define __stub macros and hopefully few prototypes,
38146 which can conflict with char $ac_func (); below.
38147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38148 <limits.h> exists even on freestanding compilers. */
38151 # include <limits.h>
38153 # include <assert.h>
38158 /* Override any GCC internal prototype to avoid an error.
38159 Use char because int might match the return type of a GCC
38160 builtin and then its argument prototype would still apply. */
38165 /* The GNU C library defines this for functions which it implements
38166 to always fail with ENOSYS. Some functions are actually named
38167 something starting with __ and the normal name is an alias. */
38168 #if defined __stub_$ac_func || defined __stub___$ac_func
38175 return $ac_func ();
38180 rm -f conftest.$ac_objext conftest$ac_exeext
38181 if { (ac_try="$ac_link"
38182 case "(($ac_try" in
38183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38184 *) ac_try_echo=$ac_try;;
38186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38187 (eval "$ac_link") 2>conftest.er1
38189 grep -v '^ *+' conftest.er1 >conftest.err
38191 cat conftest.err >&5
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); } && {
38194 test -z "$ac_c_werror_flag" ||
38195 test ! -s conftest.err
38196 } && test -s conftest$ac_exeext &&
38197 $as_test_x conftest$ac_exeext; then
38198 eval "$as_ac_var=yes"
38200 echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38203 eval "$as_ac_var=no"
38206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38207 conftest$ac_exeext conftest.$ac_ext
38209 ac_res=`eval echo '${'$as_ac_var'}'`
38210 { echo "$as_me:$LINENO: result: $ac_res" >&5
38211 echo "${ECHO_T}$ac_res" >&6; }
38212 if test `eval echo '${'$as_ac_var'}'` = yes; then
38213 cat >>confdefs.h <<_ACEOF
38214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38218 echo 'configure: cannot find needed function.'; exit 1
38225 for ac_func in fchdir
38227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38231 echo $ECHO_N "(cached) $ECHO_C" >&6
38233 cat >conftest.$ac_ext <<_ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h. */
38239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38241 #define $ac_func innocuous_$ac_func
38243 /* System header to define __stub macros and hopefully few prototypes,
38244 which can conflict with char $ac_func (); below.
38245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38246 <limits.h> exists even on freestanding compilers. */
38249 # include <limits.h>
38251 # include <assert.h>
38256 /* Override any GCC internal prototype to avoid an error.
38257 Use char because int might match the return type of a GCC
38258 builtin and then its argument prototype would still apply. */
38263 /* The GNU C library defines this for functions which it implements
38264 to always fail with ENOSYS. Some functions are actually named
38265 something starting with __ and the normal name is an alias. */
38266 #if defined __stub_$ac_func || defined __stub___$ac_func
38273 return $ac_func ();
38278 rm -f conftest.$ac_objext conftest$ac_exeext
38279 if { (ac_try="$ac_link"
38280 case "(($ac_try" in
38281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38282 *) ac_try_echo=$ac_try;;
38284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38285 (eval "$ac_link") 2>conftest.er1
38287 grep -v '^ *+' conftest.er1 >conftest.err
38289 cat conftest.err >&5
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); } && {
38292 test -z "$ac_c_werror_flag" ||
38293 test ! -s conftest.err
38294 } && test -s conftest$ac_exeext &&
38295 $as_test_x conftest$ac_exeext; then
38296 eval "$as_ac_var=yes"
38298 echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38301 eval "$as_ac_var=no"
38304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38305 conftest$ac_exeext conftest.$ac_ext
38307 ac_res=`eval echo '${'$as_ac_var'}'`
38308 { echo "$as_me:$LINENO: result: $ac_res" >&5
38309 echo "${ECHO_T}$ac_res" >&6; }
38310 if test `eval echo '${'$as_ac_var'}'` = yes; then
38311 cat >>confdefs.h <<_ACEOF
38312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38314 cat >>confdefs.h <<\_ACEOF
38315 #define HAVE_FCHDIR 1
38322 for ac_func in strtoll
38324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38328 echo $ECHO_N "(cached) $ECHO_C" >&6
38330 cat >conftest.$ac_ext <<_ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38338 #define $ac_func innocuous_$ac_func
38340 /* System header to define __stub macros and hopefully few prototypes,
38341 which can conflict with char $ac_func (); below.
38342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38343 <limits.h> exists even on freestanding compilers. */
38346 # include <limits.h>
38348 # include <assert.h>
38353 /* Override any GCC internal prototype to avoid an error.
38354 Use char because int might match the return type of a GCC
38355 builtin and then its argument prototype would still apply. */
38360 /* The GNU C library defines this for functions which it implements
38361 to always fail with ENOSYS. Some functions are actually named
38362 something starting with __ and the normal name is an alias. */
38363 #if defined __stub_$ac_func || defined __stub___$ac_func
38370 return $ac_func ();
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (ac_try="$ac_link"
38377 case "(($ac_try" in
38378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379 *) ac_try_echo=$ac_try;;
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382 (eval "$ac_link") 2>conftest.er1
38384 grep -v '^ *+' conftest.er1 >conftest.err
38386 cat conftest.err >&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } && {
38389 test -z "$ac_c_werror_flag" ||
38390 test ! -s conftest.err
38391 } && test -s conftest$ac_exeext &&
38392 $as_test_x conftest$ac_exeext; then
38393 eval "$as_ac_var=yes"
38395 echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38398 eval "$as_ac_var=no"
38401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38402 conftest$ac_exeext conftest.$ac_ext
38404 ac_res=`eval echo '${'$as_ac_var'}'`
38405 { echo "$as_me:$LINENO: result: $ac_res" >&5
38406 echo "${ECHO_T}$ac_res" >&6; }
38407 if test `eval echo '${'$as_ac_var'}'` = yes; then
38408 cat >>confdefs.h <<_ACEOF
38409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38411 cat >>confdefs.h <<\_ACEOF
38412 #define HAVE_STRTOLL 1
38419 for ac_func in posix_fadvise
38421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38425 echo $ECHO_N "(cached) $ECHO_C" >&6
38427 cat >conftest.$ac_ext <<_ACEOF
38430 cat confdefs.h >>conftest.$ac_ext
38431 cat >>conftest.$ac_ext <<_ACEOF
38432 /* end confdefs.h. */
38433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38435 #define $ac_func innocuous_$ac_func
38437 /* System header to define __stub macros and hopefully few prototypes,
38438 which can conflict with char $ac_func (); below.
38439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38440 <limits.h> exists even on freestanding compilers. */
38443 # include <limits.h>
38445 # include <assert.h>
38450 /* Override any GCC internal prototype to avoid an error.
38451 Use char because int might match the return type of a GCC
38452 builtin and then its argument prototype would still apply. */
38457 /* The GNU C library defines this for functions which it implements
38458 to always fail with ENOSYS. Some functions are actually named
38459 something starting with __ and the normal name is an alias. */
38460 #if defined __stub_$ac_func || defined __stub___$ac_func
38467 return $ac_func ();
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (ac_try="$ac_link"
38474 case "(($ac_try" in
38475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38476 *) ac_try_echo=$ac_try;;
38478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38479 (eval "$ac_link") 2>conftest.er1
38481 grep -v '^ *+' conftest.er1 >conftest.err
38483 cat conftest.err >&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); } && {
38486 test -z "$ac_c_werror_flag" ||
38487 test ! -s conftest.err
38488 } && test -s conftest$ac_exeext &&
38489 $as_test_x conftest$ac_exeext; then
38490 eval "$as_ac_var=yes"
38492 echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38495 eval "$as_ac_var=no"
38498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38499 conftest$ac_exeext conftest.$ac_ext
38501 ac_res=`eval echo '${'$as_ac_var'}'`
38502 { echo "$as_me:$LINENO: result: $ac_res" >&5
38503 echo "${ECHO_T}$ac_res" >&6; }
38504 if test `eval echo '${'$as_ac_var'}'` = yes; then
38505 cat >>confdefs.h <<_ACEOF
38506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38513 for ac_func in fdatasync
38515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38519 echo $ECHO_N "(cached) $ECHO_C" >&6
38521 cat >conftest.$ac_ext <<_ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h. */
38527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38529 #define $ac_func innocuous_$ac_func
38531 /* System header to define __stub macros and hopefully few prototypes,
38532 which can conflict with char $ac_func (); below.
38533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38534 <limits.h> exists even on freestanding compilers. */
38537 # include <limits.h>
38539 # include <assert.h>
38544 /* Override any GCC internal prototype to avoid an error.
38545 Use char because int might match the return type of a GCC
38546 builtin and then its argument prototype would still apply. */
38551 /* The GNU C library defines this for functions which it implements
38552 to always fail with ENOSYS. Some functions are actually named
38553 something starting with __ and the normal name is an alias. */
38554 #if defined __stub_$ac_func || defined __stub___$ac_func
38561 return $ac_func ();
38566 rm -f conftest.$ac_objext conftest$ac_exeext
38567 if { (ac_try="$ac_link"
38568 case "(($ac_try" in
38569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38570 *) ac_try_echo=$ac_try;;
38572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38573 (eval "$ac_link") 2>conftest.er1
38575 grep -v '^ *+' conftest.er1 >conftest.err
38577 cat conftest.err >&5
38578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579 (exit $ac_status); } && {
38580 test -z "$ac_c_werror_flag" ||
38581 test ! -s conftest.err
38582 } && test -s conftest$ac_exeext &&
38583 $as_test_x conftest$ac_exeext; then
38584 eval "$as_ac_var=yes"
38586 echo "$as_me: failed program was:" >&5
38587 sed 's/^/| /' conftest.$ac_ext >&5
38589 eval "$as_ac_var=no"
38592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38593 conftest$ac_exeext conftest.$ac_ext
38595 ac_res=`eval echo '${'$as_ac_var'}'`
38596 { echo "$as_me:$LINENO: result: $ac_res" >&5
38597 echo "${ECHO_T}$ac_res" >&6; }
38598 if test `eval echo '${'$as_ac_var'}'` = yes; then
38599 cat >>confdefs.h <<_ACEOF
38600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38608 for ac_func in chflags
38610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38614 echo $ECHO_N "(cached) $ECHO_C" >&6
38616 cat >conftest.$ac_ext <<_ACEOF
38619 cat confdefs.h >>conftest.$ac_ext
38620 cat >>conftest.$ac_ext <<_ACEOF
38621 /* end confdefs.h. */
38622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38624 #define $ac_func innocuous_$ac_func
38626 /* System header to define __stub macros and hopefully few prototypes,
38627 which can conflict with char $ac_func (); below.
38628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38629 <limits.h> exists even on freestanding compilers. */
38632 # include <limits.h>
38634 # include <assert.h>
38639 /* Override any GCC internal prototype to avoid an error.
38640 Use char because int might match the return type of a GCC
38641 builtin and then its argument prototype would still apply. */
38646 /* The GNU C library defines this for functions which it implements
38647 to always fail with ENOSYS. Some functions are actually named
38648 something starting with __ and the normal name is an alias. */
38649 #if defined __stub_$ac_func || defined __stub___$ac_func
38656 return $ac_func ();
38661 rm -f conftest.$ac_objext conftest$ac_exeext
38662 if { (ac_try="$ac_link"
38663 case "(($ac_try" in
38664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38665 *) ac_try_echo=$ac_try;;
38667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38668 (eval "$ac_link") 2>conftest.er1
38670 grep -v '^ *+' conftest.er1 >conftest.err
38672 cat conftest.err >&5
38673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674 (exit $ac_status); } && {
38675 test -z "$ac_c_werror_flag" ||
38676 test ! -s conftest.err
38677 } && test -s conftest$ac_exeext &&
38678 $as_test_x conftest$ac_exeext; then
38679 eval "$as_ac_var=yes"
38681 echo "$as_me: failed program was:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38684 eval "$as_ac_var=no"
38687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38688 conftest$ac_exeext conftest.$ac_ext
38690 ac_res=`eval echo '${'$as_ac_var'}'`
38691 { echo "$as_me:$LINENO: result: $ac_res" >&5
38692 echo "${ECHO_T}$ac_res" >&6; }
38693 if test `eval echo '${'$as_ac_var'}'` = yes; then
38694 cat >>confdefs.h <<_ACEOF
38695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38706 for ac_func in snprintf vsnprintf gethostid fseeko
38708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38712 echo $ECHO_N "(cached) $ECHO_C" >&6
38714 cat >conftest.$ac_ext <<_ACEOF
38717 cat confdefs.h >>conftest.$ac_ext
38718 cat >>conftest.$ac_ext <<_ACEOF
38719 /* end confdefs.h. */
38720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38722 #define $ac_func innocuous_$ac_func
38724 /* System header to define __stub macros and hopefully few prototypes,
38725 which can conflict with char $ac_func (); below.
38726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38727 <limits.h> exists even on freestanding compilers. */
38730 # include <limits.h>
38732 # include <assert.h>
38737 /* Override any GCC internal prototype to avoid an error.
38738 Use char because int might match the return type of a GCC
38739 builtin and then its argument prototype would still apply. */
38744 /* The GNU C library defines this for functions which it implements
38745 to always fail with ENOSYS. Some functions are actually named
38746 something starting with __ and the normal name is an alias. */
38747 #if defined __stub_$ac_func || defined __stub___$ac_func
38754 return $ac_func ();
38759 rm -f conftest.$ac_objext conftest$ac_exeext
38760 if { (ac_try="$ac_link"
38761 case "(($ac_try" in
38762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38763 *) ac_try_echo=$ac_try;;
38765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38766 (eval "$ac_link") 2>conftest.er1
38768 grep -v '^ *+' conftest.er1 >conftest.err
38770 cat conftest.err >&5
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); } && {
38773 test -z "$ac_c_werror_flag" ||
38774 test ! -s conftest.err
38775 } && test -s conftest$ac_exeext &&
38776 $as_test_x conftest$ac_exeext; then
38777 eval "$as_ac_var=yes"
38779 echo "$as_me: failed program was:" >&5
38780 sed 's/^/| /' conftest.$ac_ext >&5
38782 eval "$as_ac_var=no"
38785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38786 conftest$ac_exeext conftest.$ac_ext
38788 ac_res=`eval echo '${'$as_ac_var'}'`
38789 { echo "$as_me:$LINENO: result: $ac_res" >&5
38790 echo "${ECHO_T}$ac_res" >&6; }
38791 if test `eval echo '${'$as_ac_var'}'` = yes; then
38792 cat >>confdefs.h <<_ACEOF
38793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38800 { echo "$as_me:$LINENO: checking for va_copy" >&5
38801 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38802 if test "${ba_cv_va_copy+set}" = set; then
38803 echo $ECHO_N "(cached) $ECHO_C" >&6
38806 cat >conftest.$ac_ext <<_ACEOF
38809 cat confdefs.h >>conftest.$ac_ext
38810 cat >>conftest.$ac_ext <<_ACEOF
38811 /* end confdefs.h. */
38813 #include <stdarg.h>
38814 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38815 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38821 call_use_va_copy(1,2,3)
38827 rm -f conftest.$ac_objext conftest$ac_exeext
38828 if { (ac_try="$ac_link"
38829 case "(($ac_try" in
38830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38831 *) ac_try_echo=$ac_try;;
38833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38834 (eval "$ac_link") 2>conftest.er1
38836 grep -v '^ *+' conftest.er1 >conftest.err
38838 cat conftest.err >&5
38839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840 (exit $ac_status); } && {
38841 test -z "$ac_c_werror_flag" ||
38842 test ! -s conftest.err
38843 } && test -s conftest$ac_exeext &&
38844 $as_test_x conftest$ac_exeext; then
38849 echo "$as_me: failed program was:" >&5
38850 sed 's/^/| /' conftest.$ac_ext >&5
38858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859 conftest$ac_exeext conftest.$ac_ext
38863 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38864 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38865 test $ba_cv_va_copy = yes &&
38866 cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_VA_COPY 1
38875 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38881 echo $ECHO_N "(cached) $ECHO_C" >&6
38883 cat >conftest.$ac_ext <<_ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h. */
38889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38891 #define $ac_func innocuous_$ac_func
38893 /* System header to define __stub macros and hopefully few prototypes,
38894 which can conflict with char $ac_func (); below.
38895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38896 <limits.h> exists even on freestanding compilers. */
38899 # include <limits.h>
38901 # include <assert.h>
38906 /* Override any GCC internal prototype to avoid an error.
38907 Use char because int might match the return type of a GCC
38908 builtin and then its argument prototype would still apply. */
38913 /* The GNU C library defines this for functions which it implements
38914 to always fail with ENOSYS. Some functions are actually named
38915 something starting with __ and the normal name is an alias. */
38916 #if defined __stub_$ac_func || defined __stub___$ac_func
38923 return $ac_func ();
38928 rm -f conftest.$ac_objext conftest$ac_exeext
38929 if { (ac_try="$ac_link"
38930 case "(($ac_try" in
38931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38932 *) ac_try_echo=$ac_try;;
38934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38935 (eval "$ac_link") 2>conftest.er1
38937 grep -v '^ *+' conftest.er1 >conftest.err
38939 cat conftest.err >&5
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); } && {
38942 test -z "$ac_c_werror_flag" ||
38943 test ! -s conftest.err
38944 } && test -s conftest$ac_exeext &&
38945 $as_test_x conftest$ac_exeext; then
38946 eval "$as_ac_var=yes"
38948 echo "$as_me: failed program was:" >&5
38949 sed 's/^/| /' conftest.$ac_ext >&5
38951 eval "$as_ac_var=no"
38954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38955 conftest$ac_exeext conftest.$ac_ext
38957 ac_res=`eval echo '${'$as_ac_var'}'`
38958 { echo "$as_me:$LINENO: result: $ac_res" >&5
38959 echo "${ECHO_T}$ac_res" >&6; }
38960 if test `eval echo '${'$as_ac_var'}'` = yes; then
38961 cat >>confdefs.h <<_ACEOF
38962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38969 # If resolver functions are not in libc check for -lnsl or -lresolv.
38970 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38971 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38972 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38973 echo $ECHO_N "(cached) $ECHO_C" >&6
38975 cat >conftest.$ac_ext <<_ACEOF
38978 cat confdefs.h >>conftest.$ac_ext
38979 cat >>conftest.$ac_ext <<_ACEOF
38980 /* end confdefs.h. */
38981 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38983 #define gethostbyname_r innocuous_gethostbyname_r
38985 /* System header to define __stub macros and hopefully few prototypes,
38986 which can conflict with char gethostbyname_r (); below.
38987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38988 <limits.h> exists even on freestanding compilers. */
38991 # include <limits.h>
38993 # include <assert.h>
38996 #undef gethostbyname_r
38998 /* Override any GCC internal prototype to avoid an error.
38999 Use char because int might match the return type of a GCC
39000 builtin and then its argument prototype would still apply. */
39004 char gethostbyname_r ();
39005 /* The GNU C library defines this for functions which it implements
39006 to always fail with ENOSYS. Some functions are actually named
39007 something starting with __ and the normal name is an alias. */
39008 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39015 return gethostbyname_r ();
39020 rm -f conftest.$ac_objext conftest$ac_exeext
39021 if { (ac_try="$ac_link"
39022 case "(($ac_try" in
39023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39024 *) ac_try_echo=$ac_try;;
39026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39027 (eval "$ac_link") 2>conftest.er1
39029 grep -v '^ *+' conftest.er1 >conftest.err
39031 cat conftest.err >&5
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); } && {
39034 test -z "$ac_c_werror_flag" ||
39035 test ! -s conftest.err
39036 } && test -s conftest$ac_exeext &&
39037 $as_test_x conftest$ac_exeext; then
39038 ac_cv_func_gethostbyname_r=yes
39040 echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39043 ac_cv_func_gethostbyname_r=no
39046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39047 conftest$ac_exeext conftest.$ac_ext
39049 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39050 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39051 if test $ac_cv_func_gethostbyname_r = yes; then
39052 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39053 echo "${ECHO_T}using libc's resolver" >&6; }
39056 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39057 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39058 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39059 echo $ECHO_N "(cached) $ECHO_C" >&6
39061 ac_check_lib_save_LIBS=$LIBS
39063 cat >conftest.$ac_ext <<_ACEOF
39066 cat confdefs.h >>conftest.$ac_ext
39067 cat >>conftest.$ac_ext <<_ACEOF
39068 /* end confdefs.h. */
39070 /* Override any GCC internal prototype to avoid an error.
39071 Use char because int might match the return type of a GCC
39072 builtin and then its argument prototype would still apply. */
39076 char gethostbyname_r ();
39080 return gethostbyname_r ();
39085 rm -f conftest.$ac_objext conftest$ac_exeext
39086 if { (ac_try="$ac_link"
39087 case "(($ac_try" in
39088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39089 *) ac_try_echo=$ac_try;;
39091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39092 (eval "$ac_link") 2>conftest.er1
39094 grep -v '^ *+' conftest.er1 >conftest.err
39096 cat conftest.err >&5
39097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098 (exit $ac_status); } && {
39099 test -z "$ac_c_werror_flag" ||
39100 test ! -s conftest.err
39101 } && test -s conftest$ac_exeext &&
39102 $as_test_x conftest$ac_exeext; then
39103 ac_cv_lib_nsl_gethostbyname_r=yes
39105 echo "$as_me: failed program was:" >&5
39106 sed 's/^/| /' conftest.$ac_ext >&5
39108 ac_cv_lib_nsl_gethostbyname_r=no
39111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39112 conftest$ac_exeext conftest.$ac_ext
39113 LIBS=$ac_check_lib_save_LIBS
39115 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39116 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39117 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39118 cat >>confdefs.h <<_ACEOF
39119 #define HAVE_LIBNSL 1
39127 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39128 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39129 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39130 echo $ECHO_N "(cached) $ECHO_C" >&6
39132 ac_check_lib_save_LIBS=$LIBS
39133 LIBS="-lresolv $LIBS"
39134 cat >conftest.$ac_ext <<_ACEOF
39137 cat confdefs.h >>conftest.$ac_ext
39138 cat >>conftest.$ac_ext <<_ACEOF
39139 /* end confdefs.h. */
39141 /* Override any GCC internal prototype to avoid an error.
39142 Use char because int might match the return type of a GCC
39143 builtin and then its argument prototype would still apply. */
39147 char gethostbyname_r ();
39151 return gethostbyname_r ();
39156 rm -f conftest.$ac_objext conftest$ac_exeext
39157 if { (ac_try="$ac_link"
39158 case "(($ac_try" in
39159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39160 *) ac_try_echo=$ac_try;;
39162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39163 (eval "$ac_link") 2>conftest.er1
39165 grep -v '^ *+' conftest.er1 >conftest.err
39167 cat conftest.err >&5
39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169 (exit $ac_status); } && {
39170 test -z "$ac_c_werror_flag" ||
39171 test ! -s conftest.err
39172 } && test -s conftest$ac_exeext &&
39173 $as_test_x conftest$ac_exeext; then
39174 ac_cv_lib_resolv_gethostbyname_r=yes
39176 echo "$as_me: failed program was:" >&5
39177 sed 's/^/| /' conftest.$ac_ext >&5
39179 ac_cv_lib_resolv_gethostbyname_r=no
39182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39183 conftest$ac_exeext conftest.$ac_ext
39184 LIBS=$ac_check_lib_save_LIBS
39186 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39187 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39188 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39189 cat >>confdefs.h <<_ACEOF
39190 #define HAVE_LIBRESOLV 1
39193 LIBS="-lresolv $LIBS"
39201 for ac_func in inet_pton
39203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39207 echo $ECHO_N "(cached) $ECHO_C" >&6
39209 cat >conftest.$ac_ext <<_ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h. */
39215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39217 #define $ac_func innocuous_$ac_func
39219 /* System header to define __stub macros and hopefully few prototypes,
39220 which can conflict with char $ac_func (); below.
39221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39222 <limits.h> exists even on freestanding compilers. */
39225 # include <limits.h>
39227 # include <assert.h>
39232 /* Override any GCC internal prototype to avoid an error.
39233 Use char because int might match the return type of a GCC
39234 builtin and then its argument prototype would still apply. */
39239 /* The GNU C library defines this for functions which it implements
39240 to always fail with ENOSYS. Some functions are actually named
39241 something starting with __ and the normal name is an alias. */
39242 #if defined __stub_$ac_func || defined __stub___$ac_func
39249 return $ac_func ();
39254 rm -f conftest.$ac_objext conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258 *) ac_try_echo=$ac_try;;
39260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39261 (eval "$ac_link") 2>conftest.er1
39263 grep -v '^ *+' conftest.er1 >conftest.err
39265 cat conftest.err >&5
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); } && {
39268 test -z "$ac_c_werror_flag" ||
39269 test ! -s conftest.err
39270 } && test -s conftest$ac_exeext &&
39271 $as_test_x conftest$ac_exeext; then
39272 eval "$as_ac_var=yes"
39274 echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39277 eval "$as_ac_var=no"
39280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39281 conftest$ac_exeext conftest.$ac_ext
39283 ac_res=`eval echo '${'$as_ac_var'}'`
39284 { echo "$as_me:$LINENO: result: $ac_res" >&5
39285 echo "${ECHO_T}$ac_res" >&6; }
39286 if test `eval echo '${'$as_ac_var'}'` = yes; then
39287 cat >>confdefs.h <<_ACEOF
39288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39290 cat >>confdefs.h <<\_ACEOF
39291 #define HAVE_INET_PTON 1
39298 for ac_func in inet_ntop
39300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39304 echo $ECHO_N "(cached) $ECHO_C" >&6
39306 cat >conftest.$ac_ext <<_ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h. */
39312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39314 #define $ac_func innocuous_$ac_func
39316 /* System header to define __stub macros and hopefully few prototypes,
39317 which can conflict with char $ac_func (); below.
39318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39319 <limits.h> exists even on freestanding compilers. */
39322 # include <limits.h>
39324 # include <assert.h>
39329 /* Override any GCC internal prototype to avoid an error.
39330 Use char because int might match the return type of a GCC
39331 builtin and then its argument prototype would still apply. */
39336 /* The GNU C library defines this for functions which it implements
39337 to always fail with ENOSYS. Some functions are actually named
39338 something starting with __ and the normal name is an alias. */
39339 #if defined __stub_$ac_func || defined __stub___$ac_func
39346 return $ac_func ();
39351 rm -f conftest.$ac_objext conftest$ac_exeext
39352 if { (ac_try="$ac_link"
39353 case "(($ac_try" in
39354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39355 *) ac_try_echo=$ac_try;;
39357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39358 (eval "$ac_link") 2>conftest.er1
39360 grep -v '^ *+' conftest.er1 >conftest.err
39362 cat conftest.err >&5
39363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); } && {
39365 test -z "$ac_c_werror_flag" ||
39366 test ! -s conftest.err
39367 } && test -s conftest$ac_exeext &&
39368 $as_test_x conftest$ac_exeext; then
39369 eval "$as_ac_var=yes"
39371 echo "$as_me: failed program was:" >&5
39372 sed 's/^/| /' conftest.$ac_ext >&5
39374 eval "$as_ac_var=no"
39377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39378 conftest$ac_exeext conftest.$ac_ext
39380 ac_res=`eval echo '${'$as_ac_var'}'`
39381 { echo "$as_me:$LINENO: result: $ac_res" >&5
39382 echo "${ECHO_T}$ac_res" >&6; }
39383 if test `eval echo '${'$as_ac_var'}'` = yes; then
39384 cat >>confdefs.h <<_ACEOF
39385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39387 cat >>confdefs.h <<\_ACEOF
39388 #define HAVE_INET_NTOP 1
39395 for ac_func in gethostbyname2
39397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39403 cat >conftest.$ac_ext <<_ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h. */
39409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39411 #define $ac_func innocuous_$ac_func
39413 /* System header to define __stub macros and hopefully few prototypes,
39414 which can conflict with char $ac_func (); below.
39415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39416 <limits.h> exists even on freestanding compilers. */
39419 # include <limits.h>
39421 # include <assert.h>
39426 /* Override any GCC internal prototype to avoid an error.
39427 Use char because int might match the return type of a GCC
39428 builtin and then its argument prototype would still apply. */
39433 /* The GNU C library defines this for functions which it implements
39434 to always fail with ENOSYS. Some functions are actually named
39435 something starting with __ and the normal name is an alias. */
39436 #if defined __stub_$ac_func || defined __stub___$ac_func
39443 return $ac_func ();
39448 rm -f conftest.$ac_objext conftest$ac_exeext
39449 if { (ac_try="$ac_link"
39450 case "(($ac_try" in
39451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39452 *) ac_try_echo=$ac_try;;
39454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39455 (eval "$ac_link") 2>conftest.er1
39457 grep -v '^ *+' conftest.er1 >conftest.err
39459 cat conftest.err >&5
39460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); } && {
39462 test -z "$ac_c_werror_flag" ||
39463 test ! -s conftest.err
39464 } && test -s conftest$ac_exeext &&
39465 $as_test_x conftest$ac_exeext; then
39466 eval "$as_ac_var=yes"
39468 echo "$as_me: failed program was:" >&5
39469 sed 's/^/| /' conftest.$ac_ext >&5
39471 eval "$as_ac_var=no"
39474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39475 conftest$ac_exeext conftest.$ac_ext
39477 ac_res=`eval echo '${'$as_ac_var'}'`
39478 { echo "$as_me:$LINENO: result: $ac_res" >&5
39479 echo "${ECHO_T}$ac_res" >&6; }
39480 if test `eval echo '${'$as_ac_var'}'` = yes; then
39481 cat >>confdefs.h <<_ACEOF
39482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39484 cat >>confdefs.h <<\_ACEOF
39485 #define HAVE_GETHOSTBYNAME2 1
39492 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39493 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39494 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39495 echo $ECHO_N "(cached) $ECHO_C" >&6
39498 cat >conftest.$ac_ext <<_ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h. */
39505 #include <sys/socket.h>
39511 struct sockaddr s; s.sa_len;
39517 rm -f conftest.$ac_objext
39518 if { (ac_try="$ac_compile"
39519 case "(($ac_try" in
39520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39521 *) ac_try_echo=$ac_try;;
39523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39524 (eval "$ac_compile") 2>conftest.er1
39526 grep -v '^ *+' conftest.er1 >conftest.err
39528 cat conftest.err >&5
39529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39530 (exit $ac_status); } && {
39531 test -z "$ac_c_werror_flag" ||
39532 test ! -s conftest.err
39533 } && test -s conftest.$ac_objext; then
39535 ac_cv_struct_sockaddr_sa_len=yes
39538 echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39541 ac_cv_struct_sockaddr_sa_len=no
39546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39550 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39551 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39553 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39555 cat >>confdefs.h <<\_ACEOF
39556 #define HAVE_SA_LEN 1
39562 for ac_func in strftime
39564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39568 echo $ECHO_N "(cached) $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39578 #define $ac_func innocuous_$ac_func
39580 /* System header to define __stub macros and hopefully few prototypes,
39581 which can conflict with char $ac_func (); below.
39582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39583 <limits.h> exists even on freestanding compilers. */
39586 # include <limits.h>
39588 # include <assert.h>
39593 /* Override any GCC internal prototype to avoid an error.
39594 Use char because int might match the return type of a GCC
39595 builtin and then its argument prototype would still apply. */
39600 /* The GNU C library defines this for functions which it implements
39601 to always fail with ENOSYS. Some functions are actually named
39602 something starting with __ and the normal name is an alias. */
39603 #if defined __stub_$ac_func || defined __stub___$ac_func
39610 return $ac_func ();
39615 rm -f conftest.$ac_objext conftest$ac_exeext
39616 if { (ac_try="$ac_link"
39617 case "(($ac_try" in
39618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619 *) ac_try_echo=$ac_try;;
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622 (eval "$ac_link") 2>conftest.er1
39624 grep -v '^ *+' conftest.er1 >conftest.err
39626 cat conftest.err >&5
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); } && {
39629 test -z "$ac_c_werror_flag" ||
39630 test ! -s conftest.err
39631 } && test -s conftest$ac_exeext &&
39632 $as_test_x conftest$ac_exeext; then
39633 eval "$as_ac_var=yes"
39635 echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39638 eval "$as_ac_var=no"
39641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39642 conftest$ac_exeext conftest.$ac_ext
39644 ac_res=`eval echo '${'$as_ac_var'}'`
39645 { echo "$as_me:$LINENO: result: $ac_res" >&5
39646 echo "${ECHO_T}$ac_res" >&6; }
39647 if test `eval echo '${'$as_ac_var'}'` = yes; then
39648 cat >>confdefs.h <<_ACEOF
39649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39653 # strftime is in -lintl on SCO UNIX.
39654 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39655 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39656 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39657 echo $ECHO_N "(cached) $ECHO_C" >&6
39659 ac_check_lib_save_LIBS=$LIBS
39660 LIBS="-lintl $LIBS"
39661 cat >conftest.$ac_ext <<_ACEOF
39664 cat confdefs.h >>conftest.$ac_ext
39665 cat >>conftest.$ac_ext <<_ACEOF
39666 /* end confdefs.h. */
39668 /* Override any GCC internal prototype to avoid an error.
39669 Use char because int might match the return type of a GCC
39670 builtin and then its argument prototype would still apply. */
39678 return strftime ();
39683 rm -f conftest.$ac_objext conftest$ac_exeext
39684 if { (ac_try="$ac_link"
39685 case "(($ac_try" in
39686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687 *) ac_try_echo=$ac_try;;
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690 (eval "$ac_link") 2>conftest.er1
39692 grep -v '^ *+' conftest.er1 >conftest.err
39694 cat conftest.err >&5
39695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696 (exit $ac_status); } && {
39697 test -z "$ac_c_werror_flag" ||
39698 test ! -s conftest.err
39699 } && test -s conftest$ac_exeext &&
39700 $as_test_x conftest$ac_exeext; then
39701 ac_cv_lib_intl_strftime=yes
39703 echo "$as_me: failed program was:" >&5
39704 sed 's/^/| /' conftest.$ac_ext >&5
39706 ac_cv_lib_intl_strftime=no
39709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39710 conftest$ac_exeext conftest.$ac_ext
39711 LIBS=$ac_check_lib_save_LIBS
39713 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39714 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39715 if test $ac_cv_lib_intl_strftime = yes; then
39716 cat >>confdefs.h <<\_ACEOF
39717 #define HAVE_STRFTIME 1
39720 LIBS="-lintl $LIBS"
39727 for ac_func in vprintf
39729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39733 echo $ECHO_N "(cached) $ECHO_C" >&6
39735 cat >conftest.$ac_ext <<_ACEOF
39738 cat confdefs.h >>conftest.$ac_ext
39739 cat >>conftest.$ac_ext <<_ACEOF
39740 /* end confdefs.h. */
39741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39743 #define $ac_func innocuous_$ac_func
39745 /* System header to define __stub macros and hopefully few prototypes,
39746 which can conflict with char $ac_func (); below.
39747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39748 <limits.h> exists even on freestanding compilers. */
39751 # include <limits.h>
39753 # include <assert.h>
39758 /* Override any GCC internal prototype to avoid an error.
39759 Use char because int might match the return type of a GCC
39760 builtin and then its argument prototype would still apply. */
39765 /* The GNU C library defines this for functions which it implements
39766 to always fail with ENOSYS. Some functions are actually named
39767 something starting with __ and the normal name is an alias. */
39768 #if defined __stub_$ac_func || defined __stub___$ac_func
39775 return $ac_func ();
39780 rm -f conftest.$ac_objext conftest$ac_exeext
39781 if { (ac_try="$ac_link"
39782 case "(($ac_try" in
39783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39784 *) ac_try_echo=$ac_try;;
39786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39787 (eval "$ac_link") 2>conftest.er1
39789 grep -v '^ *+' conftest.er1 >conftest.err
39791 cat conftest.err >&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); } && {
39794 test -z "$ac_c_werror_flag" ||
39795 test ! -s conftest.err
39796 } && test -s conftest$ac_exeext &&
39797 $as_test_x conftest$ac_exeext; then
39798 eval "$as_ac_var=yes"
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39803 eval "$as_ac_var=no"
39806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39807 conftest$ac_exeext conftest.$ac_ext
39809 ac_res=`eval echo '${'$as_ac_var'}'`
39810 { echo "$as_me:$LINENO: result: $ac_res" >&5
39811 echo "${ECHO_T}$ac_res" >&6; }
39812 if test `eval echo '${'$as_ac_var'}'` = yes; then
39813 cat >>confdefs.h <<_ACEOF
39814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39817 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39818 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39819 if test "${ac_cv_func__doprnt+set}" = set; then
39820 echo $ECHO_N "(cached) $ECHO_C" >&6
39822 cat >conftest.$ac_ext <<_ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h. */
39828 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39830 #define _doprnt innocuous__doprnt
39832 /* System header to define __stub macros and hopefully few prototypes,
39833 which can conflict with char _doprnt (); below.
39834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39835 <limits.h> exists even on freestanding compilers. */
39838 # include <limits.h>
39840 # include <assert.h>
39845 /* Override any GCC internal prototype to avoid an error.
39846 Use char because int might match the return type of a GCC
39847 builtin and then its argument prototype would still apply. */
39852 /* The GNU C library defines this for functions which it implements
39853 to always fail with ENOSYS. Some functions are actually named
39854 something starting with __ and the normal name is an alias. */
39855 #if defined __stub__doprnt || defined __stub____doprnt
39867 rm -f conftest.$ac_objext conftest$ac_exeext
39868 if { (ac_try="$ac_link"
39869 case "(($ac_try" in
39870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871 *) ac_try_echo=$ac_try;;
39873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39874 (eval "$ac_link") 2>conftest.er1
39876 grep -v '^ *+' conftest.er1 >conftest.err
39878 cat conftest.err >&5
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); } && {
39881 test -z "$ac_c_werror_flag" ||
39882 test ! -s conftest.err
39883 } && test -s conftest$ac_exeext &&
39884 $as_test_x conftest$ac_exeext; then
39885 ac_cv_func__doprnt=yes
39887 echo "$as_me: failed program was:" >&5
39888 sed 's/^/| /' conftest.$ac_ext >&5
39890 ac_cv_func__doprnt=no
39893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39894 conftest$ac_exeext conftest.$ac_ext
39896 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39897 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39898 if test $ac_cv_func__doprnt = yes; then
39900 cat >>confdefs.h <<\_ACEOF
39901 #define HAVE_DOPRNT 1
39910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39911 # for constant arguments. Useless!
39912 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39913 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39914 if test "${ac_cv_working_alloca_h+set}" = set; then
39915 echo $ECHO_N "(cached) $ECHO_C" >&6
39917 cat >conftest.$ac_ext <<_ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h. */
39923 #include <alloca.h>
39927 char *p = (char *) alloca (2 * sizeof (int));
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937 *) ac_try_echo=$ac_try;;
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940 (eval "$ac_link") 2>conftest.er1
39942 grep -v '^ *+' conftest.er1 >conftest.err
39944 cat conftest.err >&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); } && {
39947 test -z "$ac_c_werror_flag" ||
39948 test ! -s conftest.err
39949 } && test -s conftest$ac_exeext &&
39950 $as_test_x conftest$ac_exeext; then
39951 ac_cv_working_alloca_h=yes
39953 echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39956 ac_cv_working_alloca_h=no
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960 conftest$ac_exeext conftest.$ac_ext
39962 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39963 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39964 if test $ac_cv_working_alloca_h = yes; then
39966 cat >>confdefs.h <<\_ACEOF
39967 #define HAVE_ALLOCA_H 1
39972 { echo "$as_me:$LINENO: checking for alloca" >&5
39973 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39974 if test "${ac_cv_func_alloca_works+set}" = set; then
39975 echo $ECHO_N "(cached) $ECHO_C" >&6
39977 cat >conftest.$ac_ext <<_ACEOF
39980 cat confdefs.h >>conftest.$ac_ext
39981 cat >>conftest.$ac_ext <<_ACEOF
39982 /* end confdefs.h. */
39984 # define alloca __builtin_alloca
39987 # include <malloc.h>
39988 # define alloca _alloca
39990 # ifdef HAVE_ALLOCA_H
39991 # include <alloca.h>
39996 # ifndef alloca /* predefined by HP cc +Olibcalls */
40007 char *p = (char *) alloca (1);
40013 rm -f conftest.$ac_objext conftest$ac_exeext
40014 if { (ac_try="$ac_link"
40015 case "(($ac_try" in
40016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40017 *) ac_try_echo=$ac_try;;
40019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40020 (eval "$ac_link") 2>conftest.er1
40022 grep -v '^ *+' conftest.er1 >conftest.err
40024 cat conftest.err >&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); } && {
40027 test -z "$ac_c_werror_flag" ||
40028 test ! -s conftest.err
40029 } && test -s conftest$ac_exeext &&
40030 $as_test_x conftest$ac_exeext; then
40031 ac_cv_func_alloca_works=yes
40033 echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40036 ac_cv_func_alloca_works=no
40039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40040 conftest$ac_exeext conftest.$ac_ext
40042 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40043 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40045 if test $ac_cv_func_alloca_works = yes; then
40047 cat >>confdefs.h <<\_ACEOF
40048 #define HAVE_ALLOCA 1
40052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40053 # that cause trouble. Some versions do not even contain alloca or
40054 # contain a buggy version. If you still want to use their alloca,
40055 # use ar to extract alloca.o from them instead of compiling alloca.c.
40057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40059 cat >>confdefs.h <<\_ACEOF
40064 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40065 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40066 if test "${ac_cv_os_cray+set}" = set; then
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40069 cat >conftest.$ac_ext <<_ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h. */
40075 #if defined CRAY && ! defined CRAY2
40082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40083 $EGREP "webecray" >/dev/null 2>&1; then
40091 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40092 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40093 if test $ac_cv_os_cray = yes; then
40094 for ac_func in _getb67 GETB67 getb67; do
40095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40099 echo $ECHO_N "(cached) $ECHO_C" >&6
40101 cat >conftest.$ac_ext <<_ACEOF
40104 cat confdefs.h >>conftest.$ac_ext
40105 cat >>conftest.$ac_ext <<_ACEOF
40106 /* end confdefs.h. */
40107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40109 #define $ac_func innocuous_$ac_func
40111 /* System header to define __stub macros and hopefully few prototypes,
40112 which can conflict with char $ac_func (); below.
40113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40114 <limits.h> exists even on freestanding compilers. */
40117 # include <limits.h>
40119 # include <assert.h>
40124 /* Override any GCC internal prototype to avoid an error.
40125 Use char because int might match the return type of a GCC
40126 builtin and then its argument prototype would still apply. */
40131 /* The GNU C library defines this for functions which it implements
40132 to always fail with ENOSYS. Some functions are actually named
40133 something starting with __ and the normal name is an alias. */
40134 #if defined __stub_$ac_func || defined __stub___$ac_func
40141 return $ac_func ();
40146 rm -f conftest.$ac_objext conftest$ac_exeext
40147 if { (ac_try="$ac_link"
40148 case "(($ac_try" in
40149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40150 *) ac_try_echo=$ac_try;;
40152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40153 (eval "$ac_link") 2>conftest.er1
40155 grep -v '^ *+' conftest.er1 >conftest.err
40157 cat conftest.err >&5
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); } && {
40160 test -z "$ac_c_werror_flag" ||
40161 test ! -s conftest.err
40162 } && test -s conftest$ac_exeext &&
40163 $as_test_x conftest$ac_exeext; then
40164 eval "$as_ac_var=yes"
40166 echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40169 eval "$as_ac_var=no"
40172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40173 conftest$ac_exeext conftest.$ac_ext
40175 ac_res=`eval echo '${'$as_ac_var'}'`
40176 { echo "$as_me:$LINENO: result: $ac_res" >&5
40177 echo "${ECHO_T}$ac_res" >&6; }
40178 if test `eval echo '${'$as_ac_var'}'` = yes; then
40180 cat >>confdefs.h <<_ACEOF
40181 #define CRAY_STACKSEG_END $ac_func
40190 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40191 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40192 if test "${ac_cv_c_stack_direction+set}" = set; then
40193 echo $ECHO_N "(cached) $ECHO_C" >&6
40195 if test "$cross_compiling" = yes; then
40196 ac_cv_c_stack_direction=0
40198 cat >conftest.$ac_ext <<_ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h. */
40204 $ac_includes_default
40206 find_stack_direction ()
40208 static char *addr = 0;
40213 return find_stack_direction ();
40216 return (&dummy > addr) ? 1 : -1;
40222 return find_stack_direction () < 0;
40225 rm -f conftest$ac_exeext
40226 if { (ac_try="$ac_link"
40227 case "(($ac_try" in
40228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40229 *) ac_try_echo=$ac_try;;
40231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40232 (eval "$ac_link") 2>&5
40234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40236 { (case "(($ac_try" in
40237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40238 *) ac_try_echo=$ac_try;;
40240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40241 (eval "$ac_try") 2>&5
40243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40245 ac_cv_c_stack_direction=1
40247 echo "$as_me: program exited with status $ac_status" >&5
40248 echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40251 ( exit $ac_status )
40252 ac_cv_c_stack_direction=-1
40254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40259 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40260 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40262 cat >>confdefs.h <<_ACEOF
40263 #define STACK_DIRECTION $ac_cv_c_stack_direction
40269 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40270 # -lseq on Dynix/PTX, -lgen on Unixware.
40271 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40272 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40273 if test "${ac_cv_search_getmntent+set}" = set; then
40274 echo $ECHO_N "(cached) $ECHO_C" >&6
40276 ac_func_search_save_LIBS=$LIBS
40277 cat >conftest.$ac_ext <<_ACEOF
40280 cat confdefs.h >>conftest.$ac_ext
40281 cat >>conftest.$ac_ext <<_ACEOF
40282 /* end confdefs.h. */
40284 /* Override any GCC internal prototype to avoid an error.
40285 Use char because int might match the return type of a GCC
40286 builtin and then its argument prototype would still apply. */
40294 return getmntent ();
40299 for ac_lib in '' sun seq gen; do
40300 if test -z "$ac_lib"; then
40301 ac_res="none required"
40304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40306 rm -f conftest.$ac_objext conftest$ac_exeext
40307 if { (ac_try="$ac_link"
40308 case "(($ac_try" in
40309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40310 *) ac_try_echo=$ac_try;;
40312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40313 (eval "$ac_link") 2>conftest.er1
40315 grep -v '^ *+' conftest.er1 >conftest.err
40317 cat conftest.err >&5
40318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319 (exit $ac_status); } && {
40320 test -z "$ac_c_werror_flag" ||
40321 test ! -s conftest.err
40322 } && test -s conftest$ac_exeext &&
40323 $as_test_x conftest$ac_exeext; then
40324 ac_cv_search_getmntent=$ac_res
40326 echo "$as_me: failed program was:" >&5
40327 sed 's/^/| /' conftest.$ac_ext >&5
40332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40334 if test "${ac_cv_search_getmntent+set}" = set; then
40338 if test "${ac_cv_search_getmntent+set}" = set; then
40341 ac_cv_search_getmntent=no
40343 rm conftest.$ac_ext
40344 LIBS=$ac_func_search_save_LIBS
40346 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40347 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40348 ac_res=$ac_cv_search_getmntent
40349 if test "$ac_res" != no; then
40350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40351 ac_cv_func_getmntent=yes
40353 cat >>confdefs.h <<\_ACEOF
40354 #define HAVE_GETMNTENT 1
40358 ac_cv_func_getmntent=no
40362 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40363 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40364 if test "${ac_cv_func_closedir_void+set}" = set; then
40365 echo $ECHO_N "(cached) $ECHO_C" >&6
40367 if test "$cross_compiling" = yes; then
40368 ac_cv_func_closedir_void=yes
40370 cat >conftest.$ac_ext <<_ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h. */
40376 $ac_includes_default
40377 #include <$ac_header_dirent>
40378 #ifndef __cplusplus
40385 return closedir (opendir (".")) != 0;
40390 rm -f conftest$ac_exeext
40391 if { (ac_try="$ac_link"
40392 case "(($ac_try" in
40393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40394 *) ac_try_echo=$ac_try;;
40396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40397 (eval "$ac_link") 2>&5
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40401 { (case "(($ac_try" in
40402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40403 *) ac_try_echo=$ac_try;;
40405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40406 (eval "$ac_try") 2>&5
40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
40410 ac_cv_func_closedir_void=no
40412 echo "$as_me: program exited with status $ac_status" >&5
40413 echo "$as_me: failed program was:" >&5
40414 sed 's/^/| /' conftest.$ac_ext >&5
40416 ( exit $ac_status )
40417 ac_cv_func_closedir_void=yes
40419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40424 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40425 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40426 if test $ac_cv_func_closedir_void = yes; then
40428 cat >>confdefs.h <<\_ACEOF
40429 #define CLOSEDIR_VOID 1
40434 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40435 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40436 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40439 if test "$cross_compiling" = yes; then
40440 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40441 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40442 { (exit 1); exit 1; }; }
40444 cat >conftest.$ac_ext <<_ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h. */
40450 $ac_includes_default
40454 /* If this system has a BSD-style setpgrp which takes arguments,
40455 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40456 exit successfully. */
40457 return setpgrp (1,1) != -1;
40462 rm -f conftest$ac_exeext
40463 if { (ac_try="$ac_link"
40464 case "(($ac_try" in
40465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40466 *) ac_try_echo=$ac_try;;
40468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40469 (eval "$ac_link") 2>&5
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40473 { (case "(($ac_try" in
40474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40475 *) ac_try_echo=$ac_try;;
40477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40478 (eval "$ac_try") 2>&5
40480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481 (exit $ac_status); }; }; then
40482 ac_cv_func_setpgrp_void=no
40484 echo "$as_me: program exited with status $ac_status" >&5
40485 echo "$as_me: failed program was:" >&5
40486 sed 's/^/| /' conftest.$ac_ext >&5
40488 ( exit $ac_status )
40489 ac_cv_func_setpgrp_void=yes
40491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40496 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40497 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40498 if test $ac_cv_func_setpgrp_void = yes; then
40500 cat >>confdefs.h <<\_ACEOF
40501 #define SETPGRP_VOID 1
40505 # AC_FUNC_FNMATCH dnl use local version
40507 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40508 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40509 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40510 echo $ECHO_N "(cached) $ECHO_C" >&6
40512 ac_check_lib_save_LIBS=$LIBS
40513 LIBS="-lintl $LIBS"
40514 cat >conftest.$ac_ext <<_ACEOF
40517 cat confdefs.h >>conftest.$ac_ext
40518 cat >>conftest.$ac_ext <<_ACEOF
40519 /* end confdefs.h. */
40521 /* Override any GCC internal prototype to avoid an error.
40522 Use char because int might match the return type of a GCC
40523 builtin and then its argument prototype would still apply. */
40536 rm -f conftest.$ac_objext conftest$ac_exeext
40537 if { (ac_try="$ac_link"
40538 case "(($ac_try" in
40539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40540 *) ac_try_echo=$ac_try;;
40542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40543 (eval "$ac_link") 2>conftest.er1
40545 grep -v '^ *+' conftest.er1 >conftest.err
40547 cat conftest.err >&5
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); } && {
40550 test -z "$ac_c_werror_flag" ||
40551 test ! -s conftest.err
40552 } && test -s conftest$ac_exeext &&
40553 $as_test_x conftest$ac_exeext; then
40554 ac_cv_lib_intl_gettext=yes
40556 echo "$as_me: failed program was:" >&5
40557 sed 's/^/| /' conftest.$ac_ext >&5
40559 ac_cv_lib_intl_gettext=no
40562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40563 conftest$ac_exeext conftest.$ac_ext
40564 LIBS=$ac_check_lib_save_LIBS
40566 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40567 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40568 if test $ac_cv_lib_intl_gettext = yes; then
40569 LIBS="$LIBS -lintl"
40574 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40575 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40576 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40577 echo $ECHO_N "(cached) $ECHO_C" >&6
40579 ac_check_lib_save_LIBS=$LIBS
40581 cat >conftest.$ac_ext <<_ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h. */
40588 /* Override any GCC internal prototype to avoid an error.
40589 Use char because int might match the return type of a GCC
40590 builtin and then its argument prototype would still apply. */
40598 return getpwnam ();
40603 rm -f conftest.$ac_objext conftest$ac_exeext
40604 if { (ac_try="$ac_link"
40605 case "(($ac_try" in
40606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40607 *) ac_try_echo=$ac_try;;
40609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40610 (eval "$ac_link") 2>conftest.er1
40612 grep -v '^ *+' conftest.er1 >conftest.err
40614 cat conftest.err >&5
40615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616 (exit $ac_status); } && {
40617 test -z "$ac_c_werror_flag" ||
40618 test ! -s conftest.err
40619 } && test -s conftest$ac_exeext &&
40620 $as_test_x conftest$ac_exeext; then
40621 ac_cv_lib_sun_getpwnam=yes
40623 echo "$as_me: failed program was:" >&5
40624 sed 's/^/| /' conftest.$ac_ext >&5
40626 ac_cv_lib_sun_getpwnam=no
40629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40630 conftest$ac_exeext conftest.$ac_ext
40631 LIBS=$ac_check_lib_save_LIBS
40633 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40634 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40635 if test $ac_cv_lib_sun_getpwnam = yes; then
40636 cat >>confdefs.h <<_ACEOF
40637 #define HAVE_LIBSUN 1
40646 for ac_header in zlib.h
40648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40653 echo $ECHO_N "(cached) $ECHO_C" >&6
40655 ac_res=`eval echo '${'$as_ac_Header'}'`
40656 { echo "$as_me:$LINENO: result: $ac_res" >&5
40657 echo "${ECHO_T}$ac_res" >&6; }
40659 # Is the header compilable?
40660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40662 cat >conftest.$ac_ext <<_ACEOF
40665 cat confdefs.h >>conftest.$ac_ext
40666 cat >>conftest.$ac_ext <<_ACEOF
40667 /* end confdefs.h. */
40668 $ac_includes_default
40669 #include <$ac_header>
40671 rm -f conftest.$ac_objext
40672 if { (ac_try="$ac_compile"
40673 case "(($ac_try" in
40674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40675 *) ac_try_echo=$ac_try;;
40677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40678 (eval "$ac_compile") 2>conftest.er1
40680 grep -v '^ *+' conftest.er1 >conftest.err
40682 cat conftest.err >&5
40683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684 (exit $ac_status); } && {
40685 test -z "$ac_c_werror_flag" ||
40686 test ! -s conftest.err
40687 } && test -s conftest.$ac_objext; then
40688 ac_header_compiler=yes
40690 echo "$as_me: failed program was:" >&5
40691 sed 's/^/| /' conftest.$ac_ext >&5
40693 ac_header_compiler=no
40696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40698 echo "${ECHO_T}$ac_header_compiler" >&6; }
40700 # Is the header present?
40701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40703 cat >conftest.$ac_ext <<_ACEOF
40706 cat confdefs.h >>conftest.$ac_ext
40707 cat >>conftest.$ac_ext <<_ACEOF
40708 /* end confdefs.h. */
40709 #include <$ac_header>
40711 if { (ac_try="$ac_cpp conftest.$ac_ext"
40712 case "(($ac_try" in
40713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40714 *) ac_try_echo=$ac_try;;
40716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40719 grep -v '^ *+' conftest.er1 >conftest.err
40721 cat conftest.err >&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); } >/dev/null && {
40724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40725 test ! -s conftest.err
40727 ac_header_preproc=yes
40729 echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40732 ac_header_preproc=no
40735 rm -f conftest.err conftest.$ac_ext
40736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40737 echo "${ECHO_T}$ac_header_preproc" >&6; }
40739 # So? What about this header?
40740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40746 ac_header_preproc=yes
40749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40767 echo $ECHO_N "(cached) $ECHO_C" >&6
40769 eval "$as_ac_Header=\$ac_header_preproc"
40771 ac_res=`eval echo '${'$as_ac_Header'}'`
40772 { echo "$as_me:$LINENO: result: $ac_res" >&5
40773 echo "${ECHO_T}$ac_res" >&6; }
40776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40777 cat >>confdefs.h <<_ACEOF
40778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40785 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40786 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40787 if test "${ac_cv_lib_z_deflate+set}" = set; then
40788 echo $ECHO_N "(cached) $ECHO_C" >&6
40790 ac_check_lib_save_LIBS=$LIBS
40792 cat >conftest.$ac_ext <<_ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h. */
40799 /* Override any GCC internal prototype to avoid an error.
40800 Use char because int might match the return type of a GCC
40801 builtin and then its argument prototype would still apply. */
40814 rm -f conftest.$ac_objext conftest$ac_exeext
40815 if { (ac_try="$ac_link"
40816 case "(($ac_try" in
40817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40818 *) ac_try_echo=$ac_try;;
40820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40821 (eval "$ac_link") 2>conftest.er1
40823 grep -v '^ *+' conftest.er1 >conftest.err
40825 cat conftest.err >&5
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); } && {
40828 test -z "$ac_c_werror_flag" ||
40829 test ! -s conftest.err
40830 } && test -s conftest$ac_exeext &&
40831 $as_test_x conftest$ac_exeext; then
40832 ac_cv_lib_z_deflate=yes
40834 echo "$as_me: failed program was:" >&5
40835 sed 's/^/| /' conftest.$ac_ext >&5
40837 ac_cv_lib_z_deflate=no
40840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40841 conftest$ac_exeext conftest.$ac_ext
40842 LIBS=$ac_check_lib_save_LIBS
40844 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40845 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40846 if test $ac_cv_lib_z_deflate = yes; then
40851 if test x$FDLIBS = x-lz; then
40852 cat >>confdefs.h <<\_ACEOF
40853 #define HAVE_LIBZ 1
40860 # Check whether --enable-acl was given.
40861 if test "${enable_acl+set}" = set; then
40862 enableval=$enable_acl;
40863 if test x$enableval = xyes; then
40865 elif test x$enableval = xno; then
40874 have_extended_acl=no
40875 if test x$support_acl = xyes -o x$support_acl = xauto; then
40876 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40877 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40878 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40879 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40880 echo $ECHO_N "(cached) $ECHO_C" >&6
40882 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40883 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40885 # Is the header compilable?
40886 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40887 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40888 cat >conftest.$ac_ext <<_ACEOF
40891 cat confdefs.h >>conftest.$ac_ext
40892 cat >>conftest.$ac_ext <<_ACEOF
40893 /* end confdefs.h. */
40894 $ac_includes_default
40895 #include <sys/acl.h>
40897 rm -f conftest.$ac_objext
40898 if { (ac_try="$ac_compile"
40899 case "(($ac_try" in
40900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40901 *) ac_try_echo=$ac_try;;
40903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40904 (eval "$ac_compile") 2>conftest.er1
40906 grep -v '^ *+' conftest.er1 >conftest.err
40908 cat conftest.err >&5
40909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910 (exit $ac_status); } && {
40911 test -z "$ac_c_werror_flag" ||
40912 test ! -s conftest.err
40913 } && test -s conftest.$ac_objext; then
40914 ac_header_compiler=yes
40916 echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40919 ac_header_compiler=no
40922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40924 echo "${ECHO_T}$ac_header_compiler" >&6; }
40926 # Is the header present?
40927 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40928 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40929 cat >conftest.$ac_ext <<_ACEOF
40932 cat confdefs.h >>conftest.$ac_ext
40933 cat >>conftest.$ac_ext <<_ACEOF
40934 /* end confdefs.h. */
40935 #include <sys/acl.h>
40937 if { (ac_try="$ac_cpp conftest.$ac_ext"
40938 case "(($ac_try" in
40939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40940 *) ac_try_echo=$ac_try;;
40942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40945 grep -v '^ *+' conftest.er1 >conftest.err
40947 cat conftest.err >&5
40948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40949 (exit $ac_status); } >/dev/null && {
40950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40951 test ! -s conftest.err
40953 ac_header_preproc=yes
40955 echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40958 ac_header_preproc=no
40961 rm -f conftest.err conftest.$ac_ext
40962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40963 echo "${ECHO_T}$ac_header_preproc" >&6; }
40965 # So? What about this header?
40966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40968 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40969 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40970 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40971 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40972 ac_header_preproc=yes
40975 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40976 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40977 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40978 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40979 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40980 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40981 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40982 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40983 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40984 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40985 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40986 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40990 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40991 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40992 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40993 echo $ECHO_N "(cached) $ECHO_C" >&6
40995 ac_cv_header_sys_acl_h=$ac_header_preproc
40997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40998 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41001 if test $ac_cv_header_sys_acl_h = yes; then
41003 cat >>confdefs.h <<\_ACEOF
41004 #define HAVE_SYS_ACL_H 1
41010 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41011 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41012 if test "${ac_cv_func_acl_get_file+set}" = set; then
41013 echo $ECHO_N "(cached) $ECHO_C" >&6
41015 cat >conftest.$ac_ext <<_ACEOF
41018 cat confdefs.h >>conftest.$ac_ext
41019 cat >>conftest.$ac_ext <<_ACEOF
41020 /* end confdefs.h. */
41021 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41023 #define acl_get_file innocuous_acl_get_file
41025 /* System header to define __stub macros and hopefully few prototypes,
41026 which can conflict with char acl_get_file (); below.
41027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41028 <limits.h> exists even on freestanding compilers. */
41031 # include <limits.h>
41033 # include <assert.h>
41036 #undef acl_get_file
41038 /* Override any GCC internal prototype to avoid an error.
41039 Use char because int might match the return type of a GCC
41040 builtin and then its argument prototype would still apply. */
41044 char acl_get_file ();
41045 /* The GNU C library defines this for functions which it implements
41046 to always fail with ENOSYS. Some functions are actually named
41047 something starting with __ and the normal name is an alias. */
41048 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41055 return acl_get_file ();
41060 rm -f conftest.$ac_objext conftest$ac_exeext
41061 if { (ac_try="$ac_link"
41062 case "(($ac_try" in
41063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41064 *) ac_try_echo=$ac_try;;
41066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41067 (eval "$ac_link") 2>conftest.er1
41069 grep -v '^ *+' conftest.er1 >conftest.err
41071 cat conftest.err >&5
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); } && {
41074 test -z "$ac_c_werror_flag" ||
41075 test ! -s conftest.err
41076 } && test -s conftest$ac_exeext &&
41077 $as_test_x conftest$ac_exeext; then
41078 ac_cv_func_acl_get_file=yes
41080 echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41083 ac_cv_func_acl_get_file=no
41086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41087 conftest$ac_exeext conftest.$ac_ext
41089 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41090 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41091 if test $ac_cv_func_acl_get_file = yes; then
41097 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41098 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41099 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41100 echo $ECHO_N "(cached) $ECHO_C" >&6
41102 ac_check_lib_save_LIBS=$LIBS
41104 cat >conftest.$ac_ext <<_ACEOF
41107 cat confdefs.h >>conftest.$ac_ext
41108 cat >>conftest.$ac_ext <<_ACEOF
41109 /* end confdefs.h. */
41111 /* Override any GCC internal prototype to avoid an error.
41112 Use char because int might match the return type of a GCC
41113 builtin and then its argument prototype would still apply. */
41117 char acl_get_file ();
41121 return acl_get_file ();
41126 rm -f conftest.$ac_objext conftest$ac_exeext
41127 if { (ac_try="$ac_link"
41128 case "(($ac_try" in
41129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41130 *) ac_try_echo=$ac_try;;
41132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41133 (eval "$ac_link") 2>conftest.er1
41135 grep -v '^ *+' conftest.er1 >conftest.err
41137 cat conftest.err >&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); } && {
41140 test -z "$ac_c_werror_flag" ||
41141 test ! -s conftest.err
41142 } && test -s conftest$ac_exeext &&
41143 $as_test_x conftest$ac_exeext; then
41144 ac_cv_lib_acl_acl_get_file=yes
41146 echo "$as_me: failed program was:" >&5
41147 sed 's/^/| /' conftest.$ac_ext >&5
41149 ac_cv_lib_acl_acl_get_file=no
41152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41153 conftest$ac_exeext conftest.$ac_ext
41154 LIBS=$ac_check_lib_save_LIBS
41156 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41157 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41158 if test $ac_cv_lib_acl_acl_get_file = yes; then
41161 FDLIBS="-lacl $FDLIBS"
41165 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41166 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41167 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41168 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 ac_check_lib_save_LIBS=$LIBS
41171 LIBS="-lpacl $LIBS"
41172 cat >conftest.$ac_ext <<_ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h. */
41179 /* Override any GCC internal prototype to avoid an error.
41180 Use char because int might match the return type of a GCC
41181 builtin and then its argument prototype would still apply. */
41185 char acl_get_file ();
41189 return acl_get_file ();
41194 rm -f conftest.$ac_objext conftest$ac_exeext
41195 if { (ac_try="$ac_link"
41196 case "(($ac_try" in
41197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41198 *) ac_try_echo=$ac_try;;
41200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41201 (eval "$ac_link") 2>conftest.er1
41203 grep -v '^ *+' conftest.er1 >conftest.err
41205 cat conftest.err >&5
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); } && {
41208 test -z "$ac_c_werror_flag" ||
41209 test ! -s conftest.err
41210 } && test -s conftest$ac_exeext &&
41211 $as_test_x conftest$ac_exeext; then
41212 ac_cv_lib_pacl_acl_get_file=yes
41214 echo "$as_me: failed program was:" >&5
41215 sed 's/^/| /' conftest.$ac_ext >&5
41217 ac_cv_lib_pacl_acl_get_file=no
41220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41221 conftest$ac_exeext conftest.$ac_ext
41222 LIBS=$ac_check_lib_save_LIBS
41224 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41225 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41226 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41229 FDLIBS="-lpacl $FDLIBS"
41233 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41234 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41235 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41236 echo $ECHO_N "(cached) $ECHO_C" >&6
41238 ac_check_lib_save_LIBS=$LIBS
41240 cat >conftest.$ac_ext <<_ACEOF
41243 cat confdefs.h >>conftest.$ac_ext
41244 cat >>conftest.$ac_ext <<_ACEOF
41245 /* end confdefs.h. */
41247 /* Override any GCC internal prototype to avoid an error.
41248 Use char because int might match the return type of a GCC
41249 builtin and then its argument prototype would still apply. */
41257 return acltotext ();
41262 rm -f conftest.$ac_objext conftest$ac_exeext
41263 if { (ac_try="$ac_link"
41264 case "(($ac_try" in
41265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41266 *) ac_try_echo=$ac_try;;
41268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41269 (eval "$ac_link") 2>conftest.er1
41271 grep -v '^ *+' conftest.er1 >conftest.err
41273 cat conftest.err >&5
41274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275 (exit $ac_status); } && {
41276 test -z "$ac_c_werror_flag" ||
41277 test ! -s conftest.err
41278 } && test -s conftest$ac_exeext &&
41279 $as_test_x conftest$ac_exeext; then
41280 ac_cv_lib_sec_acltotext=yes
41282 echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41285 ac_cv_lib_sec_acltotext=no
41288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41289 conftest$ac_exeext conftest.$ac_ext
41290 LIBS=$ac_check_lib_save_LIBS
41292 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41293 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41294 if test $ac_cv_lib_sec_acltotext = yes; then
41297 FDLIBS="-lsec $FDLIBS"
41299 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41300 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41301 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41302 echo $ECHO_N "(cached) $ECHO_C" >&6
41304 ac_check_lib_save_LIBS=$LIBS
41306 cat >conftest.$ac_ext <<_ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h. */
41313 /* Override any GCC internal prototype to avoid an error.
41314 Use char because int might match the return type of a GCC
41315 builtin and then its argument prototype would still apply. */
41319 char acl_totext ();
41323 return acl_totext ();
41328 rm -f conftest.$ac_objext conftest$ac_exeext
41329 if { (ac_try="$ac_link"
41330 case "(($ac_try" in
41331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41332 *) ac_try_echo=$ac_try;;
41334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41335 (eval "$ac_link") 2>conftest.er1
41337 grep -v '^ *+' conftest.er1 >conftest.err
41339 cat conftest.err >&5
41340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341 (exit $ac_status); } && {
41342 test -z "$ac_c_werror_flag" ||
41343 test ! -s conftest.err
41344 } && test -s conftest$ac_exeext &&
41345 $as_test_x conftest$ac_exeext; then
41346 ac_cv_lib_sec_acl_totext=yes
41348 echo "$as_me: failed program was:" >&5
41349 sed 's/^/| /' conftest.$ac_ext >&5
41351 ac_cv_lib_sec_acl_totext=no
41354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41355 conftest$ac_exeext conftest.$ac_ext
41356 LIBS=$ac_check_lib_save_LIBS
41358 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41359 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41360 if test $ac_cv_lib_sec_acl_totext = yes; then
41362 have_extended_acl=yes
41384 if test x$support_acl = xyes -a $have_acl != yes; then
41385 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41386 please either load the acl libraries or rerun configure without --enable-acl" >&5
41387 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41388 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41389 { (exit 1); exit 1; }; }
41391 if test $have_acl = yes; then
41393 cat >>confdefs.h <<\_ACEOF
41399 if test $have_extended_acl = yes; then
41401 cat >>confdefs.h <<\_ACEOF
41402 #define HAVE_EXTENDED_ACL 1
41410 # Check whether --enable-xattr was given.
41411 if test "${enable_xattr+set}" = set; then
41412 enableval=$enable_xattr;
41413 if test x$enableval = xyes; then
41415 elif test x$enableval = xno; then
41424 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41425 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41426 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41427 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41428 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41429 echo $ECHO_N "(cached) $ECHO_C" >&6
41431 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41432 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41434 # Is the header compilable?
41435 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41436 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41437 cat >conftest.$ac_ext <<_ACEOF
41440 cat confdefs.h >>conftest.$ac_ext
41441 cat >>conftest.$ac_ext <<_ACEOF
41442 /* end confdefs.h. */
41443 $ac_includes_default
41444 #include <sys/extattr.h>
41446 rm -f conftest.$ac_objext
41447 if { (ac_try="$ac_compile"
41448 case "(($ac_try" in
41449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41450 *) ac_try_echo=$ac_try;;
41452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41453 (eval "$ac_compile") 2>conftest.er1
41455 grep -v '^ *+' conftest.er1 >conftest.err
41457 cat conftest.err >&5
41458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459 (exit $ac_status); } && {
41460 test -z "$ac_c_werror_flag" ||
41461 test ! -s conftest.err
41462 } && test -s conftest.$ac_objext; then
41463 ac_header_compiler=yes
41465 echo "$as_me: failed program was:" >&5
41466 sed 's/^/| /' conftest.$ac_ext >&5
41468 ac_header_compiler=no
41471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41473 echo "${ECHO_T}$ac_header_compiler" >&6; }
41475 # Is the header present?
41476 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41477 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41478 cat >conftest.$ac_ext <<_ACEOF
41481 cat confdefs.h >>conftest.$ac_ext
41482 cat >>conftest.$ac_ext <<_ACEOF
41483 /* end confdefs.h. */
41484 #include <sys/extattr.h>
41486 if { (ac_try="$ac_cpp conftest.$ac_ext"
41487 case "(($ac_try" in
41488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41489 *) ac_try_echo=$ac_try;;
41491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41494 grep -v '^ *+' conftest.er1 >conftest.err
41496 cat conftest.err >&5
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); } >/dev/null && {
41499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41500 test ! -s conftest.err
41502 ac_header_preproc=yes
41504 echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41507 ac_header_preproc=no
41510 rm -f conftest.err conftest.$ac_ext
41511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41512 echo "${ECHO_T}$ac_header_preproc" >&6; }
41514 # So? What about this header?
41515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41517 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41518 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41519 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41520 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41521 ac_header_preproc=yes
41524 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41525 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41526 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41527 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41528 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41529 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41530 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41531 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41532 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41533 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41534 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41535 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41539 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41540 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41541 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41542 echo $ECHO_N "(cached) $ECHO_C" >&6
41544 ac_cv_header_sys_extattr_h=$ac_header_preproc
41546 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41547 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41550 if test $ac_cv_header_sys_extattr_h = yes; then
41552 cat >>confdefs.h <<\_ACEOF
41553 #define HAVE_SYS_EXTATTR_H 1
41559 if test "${ac_cv_header_libutil_h+set}" = set; then
41560 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41561 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41562 if test "${ac_cv_header_libutil_h+set}" = set; then
41563 echo $ECHO_N "(cached) $ECHO_C" >&6
41565 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41566 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41568 # Is the header compilable?
41569 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41570 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41571 cat >conftest.$ac_ext <<_ACEOF
41574 cat confdefs.h >>conftest.$ac_ext
41575 cat >>conftest.$ac_ext <<_ACEOF
41576 /* end confdefs.h. */
41577 $ac_includes_default
41578 #include <libutil.h>
41580 rm -f conftest.$ac_objext
41581 if { (ac_try="$ac_compile"
41582 case "(($ac_try" in
41583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41584 *) ac_try_echo=$ac_try;;
41586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41587 (eval "$ac_compile") 2>conftest.er1
41589 grep -v '^ *+' conftest.er1 >conftest.err
41591 cat conftest.err >&5
41592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41593 (exit $ac_status); } && {
41594 test -z "$ac_c_werror_flag" ||
41595 test ! -s conftest.err
41596 } && test -s conftest.$ac_objext; then
41597 ac_header_compiler=yes
41599 echo "$as_me: failed program was:" >&5
41600 sed 's/^/| /' conftest.$ac_ext >&5
41602 ac_header_compiler=no
41605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41607 echo "${ECHO_T}$ac_header_compiler" >&6; }
41609 # Is the header present?
41610 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41611 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41612 cat >conftest.$ac_ext <<_ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h. */
41618 #include <libutil.h>
41620 if { (ac_try="$ac_cpp conftest.$ac_ext"
41621 case "(($ac_try" in
41622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623 *) ac_try_echo=$ac_try;;
41625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41628 grep -v '^ *+' conftest.er1 >conftest.err
41630 cat conftest.err >&5
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); } >/dev/null && {
41633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41634 test ! -s conftest.err
41636 ac_header_preproc=yes
41638 echo "$as_me: failed program was:" >&5
41639 sed 's/^/| /' conftest.$ac_ext >&5
41641 ac_header_preproc=no
41644 rm -f conftest.err conftest.$ac_ext
41645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41646 echo "${ECHO_T}$ac_header_preproc" >&6; }
41648 # So? What about this header?
41649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41651 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41652 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41653 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41654 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41655 ac_header_preproc=yes
41658 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41659 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41660 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41661 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41662 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41663 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41664 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41665 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41666 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41667 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41668 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41669 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41673 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41674 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41675 if test "${ac_cv_header_libutil_h+set}" = set; then
41676 echo $ECHO_N "(cached) $ECHO_C" >&6
41678 ac_cv_header_libutil_h=$ac_header_preproc
41680 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41681 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41684 if test $ac_cv_header_libutil_h = yes; then
41686 cat >>confdefs.h <<\_ACEOF
41687 #define HAVE_LIBUTIL_H 1
41696 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41702 echo $ECHO_N "(cached) $ECHO_C" >&6
41704 cat >conftest.$ac_ext <<_ACEOF
41707 cat confdefs.h >>conftest.$ac_ext
41708 cat >>conftest.$ac_ext <<_ACEOF
41709 /* end confdefs.h. */
41710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41712 #define $ac_func innocuous_$ac_func
41714 /* System header to define __stub macros and hopefully few prototypes,
41715 which can conflict with char $ac_func (); below.
41716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41717 <limits.h> exists even on freestanding compilers. */
41720 # include <limits.h>
41722 # include <assert.h>
41727 /* Override any GCC internal prototype to avoid an error.
41728 Use char because int might match the return type of a GCC
41729 builtin and then its argument prototype would still apply. */
41734 /* The GNU C library defines this for functions which it implements
41735 to always fail with ENOSYS. Some functions are actually named
41736 something starting with __ and the normal name is an alias. */
41737 #if defined __stub_$ac_func || defined __stub___$ac_func
41744 return $ac_func ();
41749 rm -f conftest.$ac_objext conftest$ac_exeext
41750 if { (ac_try="$ac_link"
41751 case "(($ac_try" in
41752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41753 *) ac_try_echo=$ac_try;;
41755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41756 (eval "$ac_link") 2>conftest.er1
41758 grep -v '^ *+' conftest.er1 >conftest.err
41760 cat conftest.err >&5
41761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762 (exit $ac_status); } && {
41763 test -z "$ac_c_werror_flag" ||
41764 test ! -s conftest.err
41765 } && test -s conftest$ac_exeext &&
41766 $as_test_x conftest$ac_exeext; then
41767 eval "$as_ac_var=yes"
41769 echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41772 eval "$as_ac_var=no"
41775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41776 conftest$ac_exeext conftest.$ac_ext
41778 ac_res=`eval echo '${'$as_ac_var'}'`
41779 { echo "$as_me:$LINENO: result: $ac_res" >&5
41780 echo "${ECHO_T}$ac_res" >&6; }
41781 if test `eval echo '${'$as_ac_var'}'` = yes; then
41782 cat >>confdefs.h <<_ACEOF
41783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41788 cat >>confdefs.h <<\_ACEOF
41789 #define HAVE_EXTATTR_GET_LINK 1
41793 cat >>confdefs.h <<\_ACEOF
41794 #define HAVE_EXTATTR_SET_LINK 1
41798 cat >>confdefs.h <<\_ACEOF
41799 #define HAVE_EXTATTR_LIST_LINK 1
41808 if test $have_xattr = no; then
41812 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41818 echo $ECHO_N "(cached) $ECHO_C" >&6
41820 cat >conftest.$ac_ext <<_ACEOF
41823 cat confdefs.h >>conftest.$ac_ext
41824 cat >>conftest.$ac_ext <<_ACEOF
41825 /* end confdefs.h. */
41826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41828 #define $ac_func innocuous_$ac_func
41830 /* System header to define __stub macros and hopefully few prototypes,
41831 which can conflict with char $ac_func (); below.
41832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41833 <limits.h> exists even on freestanding compilers. */
41836 # include <limits.h>
41838 # include <assert.h>
41843 /* Override any GCC internal prototype to avoid an error.
41844 Use char because int might match the return type of a GCC
41845 builtin and then its argument prototype would still apply. */
41850 /* The GNU C library defines this for functions which it implements
41851 to always fail with ENOSYS. Some functions are actually named
41852 something starting with __ and the normal name is an alias. */
41853 #if defined __stub_$ac_func || defined __stub___$ac_func
41860 return $ac_func ();
41865 rm -f conftest.$ac_objext conftest$ac_exeext
41866 if { (ac_try="$ac_link"
41867 case "(($ac_try" in
41868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41869 *) ac_try_echo=$ac_try;;
41871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41872 (eval "$ac_link") 2>conftest.er1
41874 grep -v '^ *+' conftest.er1 >conftest.err
41876 cat conftest.err >&5
41877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41878 (exit $ac_status); } && {
41879 test -z "$ac_c_werror_flag" ||
41880 test ! -s conftest.err
41881 } && test -s conftest$ac_exeext &&
41882 $as_test_x conftest$ac_exeext; then
41883 eval "$as_ac_var=yes"
41885 echo "$as_me: failed program was:" >&5
41886 sed 's/^/| /' conftest.$ac_ext >&5
41888 eval "$as_ac_var=no"
41891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41892 conftest$ac_exeext conftest.$ac_ext
41894 ac_res=`eval echo '${'$as_ac_var'}'`
41895 { echo "$as_me:$LINENO: result: $ac_res" >&5
41896 echo "${ECHO_T}$ac_res" >&6; }
41897 if test `eval echo '${'$as_ac_var'}'` = yes; then
41898 cat >>confdefs.h <<_ACEOF
41899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41904 cat >>confdefs.h <<\_ACEOF
41905 #define HAVE_EXTATTR_GET_FILE 1
41909 cat >>confdefs.h <<\_ACEOF
41910 #define HAVE_EXTATTR_SET_FILE 1
41914 cat >>confdefs.h <<\_ACEOF
41915 #define HAVE_EXTATTR_LIST_FILE 1
41925 if test $have_xattr = yes; then
41926 have_extattr_string_in_libc=no
41929 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41935 echo $ECHO_N "(cached) $ECHO_C" >&6
41937 cat >conftest.$ac_ext <<_ACEOF
41940 cat confdefs.h >>conftest.$ac_ext
41941 cat >>conftest.$ac_ext <<_ACEOF
41942 /* end confdefs.h. */
41943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41945 #define $ac_func innocuous_$ac_func
41947 /* System header to define __stub macros and hopefully few prototypes,
41948 which can conflict with char $ac_func (); below.
41949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41950 <limits.h> exists even on freestanding compilers. */
41953 # include <limits.h>
41955 # include <assert.h>
41960 /* Override any GCC internal prototype to avoid an error.
41961 Use char because int might match the return type of a GCC
41962 builtin and then its argument prototype would still apply. */
41967 /* The GNU C library defines this for functions which it implements
41968 to always fail with ENOSYS. Some functions are actually named
41969 something starting with __ and the normal name is an alias. */
41970 #if defined __stub_$ac_func || defined __stub___$ac_func
41977 return $ac_func ();
41982 rm -f conftest.$ac_objext conftest$ac_exeext
41983 if { (ac_try="$ac_link"
41984 case "(($ac_try" in
41985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986 *) ac_try_echo=$ac_try;;
41988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41989 (eval "$ac_link") 2>conftest.er1
41991 grep -v '^ *+' conftest.er1 >conftest.err
41993 cat conftest.err >&5
41994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995 (exit $ac_status); } && {
41996 test -z "$ac_c_werror_flag" ||
41997 test ! -s conftest.err
41998 } && test -s conftest$ac_exeext &&
41999 $as_test_x conftest$ac_exeext; then
42000 eval "$as_ac_var=yes"
42002 echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42005 eval "$as_ac_var=no"
42008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42009 conftest$ac_exeext conftest.$ac_ext
42011 ac_res=`eval echo '${'$as_ac_var'}'`
42012 { echo "$as_me:$LINENO: result: $ac_res" >&5
42013 echo "${ECHO_T}$ac_res" >&6; }
42014 if test `eval echo '${'$as_ac_var'}'` = yes; then
42015 cat >>confdefs.h <<_ACEOF
42016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42019 have_extattr_string_in_libc=yes
42021 cat >>confdefs.h <<\_ACEOF
42022 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42026 cat >>confdefs.h <<\_ACEOF
42027 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42036 if test $have_extattr_string_in_libc = no; then
42037 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42038 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42039 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42040 echo $ECHO_N "(cached) $ECHO_C" >&6
42042 ac_check_lib_save_LIBS=$LIBS
42043 LIBS="-lutil $LIBS"
42044 cat >conftest.$ac_ext <<_ACEOF
42047 cat confdefs.h >>conftest.$ac_ext
42048 cat >>conftest.$ac_ext <<_ACEOF
42049 /* end confdefs.h. */
42051 /* Override any GCC internal prototype to avoid an error.
42052 Use char because int might match the return type of a GCC
42053 builtin and then its argument prototype would still apply. */
42057 char extattr_namespace_to_string extattr_string_to_namespace ();
42061 return extattr_namespace_to_string extattr_string_to_namespace ();
42066 rm -f conftest.$ac_objext conftest$ac_exeext
42067 if { (ac_try="$ac_link"
42068 case "(($ac_try" in
42069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070 *) ac_try_echo=$ac_try;;
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073 (eval "$ac_link") 2>conftest.er1
42075 grep -v '^ *+' conftest.er1 >conftest.err
42077 cat conftest.err >&5
42078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42079 (exit $ac_status); } && {
42080 test -z "$ac_c_werror_flag" ||
42081 test ! -s conftest.err
42082 } && test -s conftest$ac_exeext &&
42083 $as_test_x conftest$ac_exeext; then
42084 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42086 echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42089 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42093 conftest$ac_exeext conftest.$ac_ext
42094 LIBS=$ac_check_lib_save_LIBS
42096 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42097 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42098 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42101 cat >>confdefs.h <<\_ACEOF
42102 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42106 cat >>confdefs.h <<\_ACEOF
42107 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42110 FDLIBS="-lutil $FDLIBS"
42118 if test $have_xattr = no; then
42119 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42120 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42121 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42122 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42123 echo $ECHO_N "(cached) $ECHO_C" >&6
42125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42126 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42128 # Is the header compilable?
42129 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42130 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42131 cat >conftest.$ac_ext <<_ACEOF
42134 cat confdefs.h >>conftest.$ac_ext
42135 cat >>conftest.$ac_ext <<_ACEOF
42136 /* end confdefs.h. */
42137 $ac_includes_default
42138 #include <sys/xattr.h>
42140 rm -f conftest.$ac_objext
42141 if { (ac_try="$ac_compile"
42142 case "(($ac_try" in
42143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42144 *) ac_try_echo=$ac_try;;
42146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42147 (eval "$ac_compile") 2>conftest.er1
42149 grep -v '^ *+' conftest.er1 >conftest.err
42151 cat conftest.err >&5
42152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153 (exit $ac_status); } && {
42154 test -z "$ac_c_werror_flag" ||
42155 test ! -s conftest.err
42156 } && test -s conftest.$ac_objext; then
42157 ac_header_compiler=yes
42159 echo "$as_me: failed program was:" >&5
42160 sed 's/^/| /' conftest.$ac_ext >&5
42162 ac_header_compiler=no
42165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42167 echo "${ECHO_T}$ac_header_compiler" >&6; }
42169 # Is the header present?
42170 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42171 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42172 cat >conftest.$ac_ext <<_ACEOF
42175 cat confdefs.h >>conftest.$ac_ext
42176 cat >>conftest.$ac_ext <<_ACEOF
42177 /* end confdefs.h. */
42178 #include <sys/xattr.h>
42180 if { (ac_try="$ac_cpp conftest.$ac_ext"
42181 case "(($ac_try" in
42182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42183 *) ac_try_echo=$ac_try;;
42185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42188 grep -v '^ *+' conftest.er1 >conftest.err
42190 cat conftest.err >&5
42191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192 (exit $ac_status); } >/dev/null && {
42193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42194 test ! -s conftest.err
42196 ac_header_preproc=yes
42198 echo "$as_me: failed program was:" >&5
42199 sed 's/^/| /' conftest.$ac_ext >&5
42201 ac_header_preproc=no
42204 rm -f conftest.err conftest.$ac_ext
42205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42206 echo "${ECHO_T}$ac_header_preproc" >&6; }
42208 # So? What about this header?
42209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42211 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42212 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42213 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42214 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42215 ac_header_preproc=yes
42218 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42219 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42220 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42221 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42222 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42223 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42224 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42225 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42226 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42227 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42228 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42229 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42233 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42234 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42235 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42236 echo $ECHO_N "(cached) $ECHO_C" >&6
42238 ac_cv_header_sys_xattr_h=$ac_header_preproc
42240 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42241 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42244 if test $ac_cv_header_sys_xattr_h = yes; then
42246 cat >>confdefs.h <<\_ACEOF
42247 #define HAVE_SYS_XATTR_H 1
42256 for ac_func in llistxattr lgetxattr lsetxattr
42258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42262 echo $ECHO_N "(cached) $ECHO_C" >&6
42264 cat >conftest.$ac_ext <<_ACEOF
42267 cat confdefs.h >>conftest.$ac_ext
42268 cat >>conftest.$ac_ext <<_ACEOF
42269 /* end confdefs.h. */
42270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42272 #define $ac_func innocuous_$ac_func
42274 /* System header to define __stub macros and hopefully few prototypes,
42275 which can conflict with char $ac_func (); below.
42276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42277 <limits.h> exists even on freestanding compilers. */
42280 # include <limits.h>
42282 # include <assert.h>
42287 /* Override any GCC internal prototype to avoid an error.
42288 Use char because int might match the return type of a GCC
42289 builtin and then its argument prototype would still apply. */
42294 /* The GNU C library defines this for functions which it implements
42295 to always fail with ENOSYS. Some functions are actually named
42296 something starting with __ and the normal name is an alias. */
42297 #if defined __stub_$ac_func || defined __stub___$ac_func
42304 return $ac_func ();
42309 rm -f conftest.$ac_objext conftest$ac_exeext
42310 if { (ac_try="$ac_link"
42311 case "(($ac_try" in
42312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42313 *) ac_try_echo=$ac_try;;
42315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42316 (eval "$ac_link") 2>conftest.er1
42318 grep -v '^ *+' conftest.er1 >conftest.err
42320 cat conftest.err >&5
42321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 (exit $ac_status); } && {
42323 test -z "$ac_c_werror_flag" ||
42324 test ! -s conftest.err
42325 } && test -s conftest$ac_exeext &&
42326 $as_test_x conftest$ac_exeext; then
42327 eval "$as_ac_var=yes"
42329 echo "$as_me: failed program was:" >&5
42330 sed 's/^/| /' conftest.$ac_ext >&5
42332 eval "$as_ac_var=no"
42335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42336 conftest$ac_exeext conftest.$ac_ext
42338 ac_res=`eval echo '${'$as_ac_var'}'`
42339 { echo "$as_me:$LINENO: result: $ac_res" >&5
42340 echo "${ECHO_T}$ac_res" >&6; }
42341 if test `eval echo '${'$as_ac_var'}'` = yes; then
42342 cat >>confdefs.h <<_ACEOF
42343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42348 cat >>confdefs.h <<\_ACEOF
42349 #define HAVE_LLISTXATTR 1
42353 cat >>confdefs.h <<\_ACEOF
42354 #define HAVE_LGETXATTR 1
42358 cat >>confdefs.h <<\_ACEOF
42359 #define HAVE_LSETXATTR 1
42368 if test $have_xattr = no; then
42372 for ac_func in listxattr getxattr setxattr
42374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42378 echo $ECHO_N "(cached) $ECHO_C" >&6
42380 cat >conftest.$ac_ext <<_ACEOF
42383 cat confdefs.h >>conftest.$ac_ext
42384 cat >>conftest.$ac_ext <<_ACEOF
42385 /* end confdefs.h. */
42386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42388 #define $ac_func innocuous_$ac_func
42390 /* System header to define __stub macros and hopefully few prototypes,
42391 which can conflict with char $ac_func (); below.
42392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42393 <limits.h> exists even on freestanding compilers. */
42396 # include <limits.h>
42398 # include <assert.h>
42403 /* Override any GCC internal prototype to avoid an error.
42404 Use char because int might match the return type of a GCC
42405 builtin and then its argument prototype would still apply. */
42410 /* The GNU C library defines this for functions which it implements
42411 to always fail with ENOSYS. Some functions are actually named
42412 something starting with __ and the normal name is an alias. */
42413 #if defined __stub_$ac_func || defined __stub___$ac_func
42420 return $ac_func ();
42425 rm -f conftest.$ac_objext conftest$ac_exeext
42426 if { (ac_try="$ac_link"
42427 case "(($ac_try" in
42428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429 *) ac_try_echo=$ac_try;;
42431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42432 (eval "$ac_link") 2>conftest.er1
42434 grep -v '^ *+' conftest.er1 >conftest.err
42436 cat conftest.err >&5
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); } && {
42439 test -z "$ac_c_werror_flag" ||
42440 test ! -s conftest.err
42441 } && test -s conftest$ac_exeext &&
42442 $as_test_x conftest$ac_exeext; then
42443 eval "$as_ac_var=yes"
42445 echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42448 eval "$as_ac_var=no"
42451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42452 conftest$ac_exeext conftest.$ac_ext
42454 ac_res=`eval echo '${'$as_ac_var'}'`
42455 { echo "$as_me:$LINENO: result: $ac_res" >&5
42456 echo "${ECHO_T}$ac_res" >&6; }
42457 if test `eval echo '${'$as_ac_var'}'` = yes; then
42458 cat >>confdefs.h <<_ACEOF
42459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42464 cat >>confdefs.h <<\_ACEOF
42465 #define HAVE_LISTXATTR 1
42469 cat >>confdefs.h <<\_ACEOF
42470 #define HAVE_GETXATTR 1
42474 cat >>confdefs.h <<\_ACEOF
42475 #define HAVE_SETXATTR 1
42486 if test $have_xattr = no; then
42487 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42488 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42489 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42490 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42491 echo $ECHO_N "(cached) $ECHO_C" >&6
42493 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42494 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42496 # Is the header compilable?
42497 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42498 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42499 cat >conftest.$ac_ext <<_ACEOF
42502 cat confdefs.h >>conftest.$ac_ext
42503 cat >>conftest.$ac_ext <<_ACEOF
42504 /* end confdefs.h. */
42505 $ac_includes_default
42506 #include <sys/attr.h>
42508 rm -f conftest.$ac_objext
42509 if { (ac_try="$ac_compile"
42510 case "(($ac_try" in
42511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42512 *) ac_try_echo=$ac_try;;
42514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42515 (eval "$ac_compile") 2>conftest.er1
42517 grep -v '^ *+' conftest.er1 >conftest.err
42519 cat conftest.err >&5
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); } && {
42522 test -z "$ac_c_werror_flag" ||
42523 test ! -s conftest.err
42524 } && test -s conftest.$ac_objext; then
42525 ac_header_compiler=yes
42527 echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42530 ac_header_compiler=no
42533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42535 echo "${ECHO_T}$ac_header_compiler" >&6; }
42537 # Is the header present?
42538 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42539 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42540 cat >conftest.$ac_ext <<_ACEOF
42543 cat confdefs.h >>conftest.$ac_ext
42544 cat >>conftest.$ac_ext <<_ACEOF
42545 /* end confdefs.h. */
42546 #include <sys/attr.h>
42548 if { (ac_try="$ac_cpp conftest.$ac_ext"
42549 case "(($ac_try" in
42550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551 *) ac_try_echo=$ac_try;;
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42556 grep -v '^ *+' conftest.er1 >conftest.err
42558 cat conftest.err >&5
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } >/dev/null && {
42561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42562 test ! -s conftest.err
42564 ac_header_preproc=yes
42566 echo "$as_me: failed program was:" >&5
42567 sed 's/^/| /' conftest.$ac_ext >&5
42569 ac_header_preproc=no
42572 rm -f conftest.err conftest.$ac_ext
42573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42574 echo "${ECHO_T}$ac_header_preproc" >&6; }
42576 # So? What about this header?
42577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42579 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42580 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42581 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42582 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42583 ac_header_preproc=yes
42586 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42587 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42588 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42589 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42590 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42591 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42592 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42593 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42594 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42595 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42596 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42597 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42601 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42602 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42603 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42604 echo $ECHO_N "(cached) $ECHO_C" >&6
42606 ac_cv_header_sys_attr_h=$ac_header_preproc
42608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42609 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42612 if test $ac_cv_header_sys_attr_h = yes; then
42614 cat >>confdefs.h <<\_ACEOF
42615 #define HAVE_SYS_ATTR_H 1
42621 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42622 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42623 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42624 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42625 echo $ECHO_N "(cached) $ECHO_C" >&6
42627 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42628 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42630 # Is the header compilable?
42631 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42632 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42633 cat >conftest.$ac_ext <<_ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h. */
42639 $ac_includes_default
42640 #include <sys/nvpair.h>
42642 rm -f conftest.$ac_objext
42643 if { (ac_try="$ac_compile"
42644 case "(($ac_try" in
42645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42646 *) ac_try_echo=$ac_try;;
42648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42649 (eval "$ac_compile") 2>conftest.er1
42651 grep -v '^ *+' conftest.er1 >conftest.err
42653 cat conftest.err >&5
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); } && {
42656 test -z "$ac_c_werror_flag" ||
42657 test ! -s conftest.err
42658 } && test -s conftest.$ac_objext; then
42659 ac_header_compiler=yes
42661 echo "$as_me: failed program was:" >&5
42662 sed 's/^/| /' conftest.$ac_ext >&5
42664 ac_header_compiler=no
42667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42669 echo "${ECHO_T}$ac_header_compiler" >&6; }
42671 # Is the header present?
42672 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42673 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42674 cat >conftest.$ac_ext <<_ACEOF
42677 cat confdefs.h >>conftest.$ac_ext
42678 cat >>conftest.$ac_ext <<_ACEOF
42679 /* end confdefs.h. */
42680 #include <sys/nvpair.h>
42682 if { (ac_try="$ac_cpp conftest.$ac_ext"
42683 case "(($ac_try" in
42684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42685 *) ac_try_echo=$ac_try;;
42687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42690 grep -v '^ *+' conftest.er1 >conftest.err
42692 cat conftest.err >&5
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); } >/dev/null && {
42695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42696 test ! -s conftest.err
42698 ac_header_preproc=yes
42700 echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42703 ac_header_preproc=no
42706 rm -f conftest.err conftest.$ac_ext
42707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42708 echo "${ECHO_T}$ac_header_preproc" >&6; }
42710 # So? What about this header?
42711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42713 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42714 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42715 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42716 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42717 ac_header_preproc=yes
42720 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42721 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42722 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42723 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42724 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42725 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42726 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42727 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42728 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42729 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42730 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42731 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42735 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42736 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42737 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42738 echo $ECHO_N "(cached) $ECHO_C" >&6
42740 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42742 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42743 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42746 if test $ac_cv_header_sys_nvpair_h = yes; then
42748 cat >>confdefs.h <<\_ACEOF
42749 #define HAVE_SYS_NVPAIR_H 1
42755 if test "${ac_cv_header_attr_h+set}" = set; then
42756 { echo "$as_me:$LINENO: checking for attr.h" >&5
42757 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_attr_h+set}" = set; then
42759 echo $ECHO_N "(cached) $ECHO_C" >&6
42761 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42762 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42764 # Is the header compilable?
42765 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42766 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42767 cat >conftest.$ac_ext <<_ACEOF
42770 cat confdefs.h >>conftest.$ac_ext
42771 cat >>conftest.$ac_ext <<_ACEOF
42772 /* end confdefs.h. */
42773 $ac_includes_default
42776 rm -f conftest.$ac_objext
42777 if { (ac_try="$ac_compile"
42778 case "(($ac_try" in
42779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42780 *) ac_try_echo=$ac_try;;
42782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42783 (eval "$ac_compile") 2>conftest.er1
42785 grep -v '^ *+' conftest.er1 >conftest.err
42787 cat conftest.err >&5
42788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 (exit $ac_status); } && {
42790 test -z "$ac_c_werror_flag" ||
42791 test ! -s conftest.err
42792 } && test -s conftest.$ac_objext; then
42793 ac_header_compiler=yes
42795 echo "$as_me: failed program was:" >&5
42796 sed 's/^/| /' conftest.$ac_ext >&5
42798 ac_header_compiler=no
42801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42803 echo "${ECHO_T}$ac_header_compiler" >&6; }
42805 # Is the header present?
42806 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42807 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42808 cat >conftest.$ac_ext <<_ACEOF
42811 cat confdefs.h >>conftest.$ac_ext
42812 cat >>conftest.$ac_ext <<_ACEOF
42813 /* end confdefs.h. */
42816 if { (ac_try="$ac_cpp conftest.$ac_ext"
42817 case "(($ac_try" in
42818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42819 *) ac_try_echo=$ac_try;;
42821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42824 grep -v '^ *+' conftest.er1 >conftest.err
42826 cat conftest.err >&5
42827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828 (exit $ac_status); } >/dev/null && {
42829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42830 test ! -s conftest.err
42832 ac_header_preproc=yes
42834 echo "$as_me: failed program was:" >&5
42835 sed 's/^/| /' conftest.$ac_ext >&5
42837 ac_header_preproc=no
42840 rm -f conftest.err conftest.$ac_ext
42841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42842 echo "${ECHO_T}$ac_header_preproc" >&6; }
42844 # So? What about this header?
42845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42847 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42848 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42849 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42850 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42851 ac_header_preproc=yes
42854 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42855 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42856 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42857 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42858 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42859 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42860 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42861 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42862 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42863 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42864 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42865 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42869 { echo "$as_me:$LINENO: checking for attr.h" >&5
42870 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42871 if test "${ac_cv_header_attr_h+set}" = set; then
42872 echo $ECHO_N "(cached) $ECHO_C" >&6
42874 ac_cv_header_attr_h=$ac_header_preproc
42876 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42877 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42880 if test $ac_cv_header_attr_h = yes; then
42882 cat >>confdefs.h <<\_ACEOF
42883 #define HAVE_ATTR_H 1
42895 for ac_func in openat fstatat unlinkat fchownat futimesat
42897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42901 echo $ECHO_N "(cached) $ECHO_C" >&6
42903 cat >conftest.$ac_ext <<_ACEOF
42906 cat confdefs.h >>conftest.$ac_ext
42907 cat >>conftest.$ac_ext <<_ACEOF
42908 /* end confdefs.h. */
42909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42911 #define $ac_func innocuous_$ac_func
42913 /* System header to define __stub macros and hopefully few prototypes,
42914 which can conflict with char $ac_func (); below.
42915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42916 <limits.h> exists even on freestanding compilers. */
42919 # include <limits.h>
42921 # include <assert.h>
42926 /* Override any GCC internal prototype to avoid an error.
42927 Use char because int might match the return type of a GCC
42928 builtin and then its argument prototype would still apply. */
42933 /* The GNU C library defines this for functions which it implements
42934 to always fail with ENOSYS. Some functions are actually named
42935 something starting with __ and the normal name is an alias. */
42936 #if defined __stub_$ac_func || defined __stub___$ac_func
42943 return $ac_func ();
42948 rm -f conftest.$ac_objext conftest$ac_exeext
42949 if { (ac_try="$ac_link"
42950 case "(($ac_try" in
42951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42952 *) ac_try_echo=$ac_try;;
42954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42955 (eval "$ac_link") 2>conftest.er1
42957 grep -v '^ *+' conftest.er1 >conftest.err
42959 cat conftest.err >&5
42960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961 (exit $ac_status); } && {
42962 test -z "$ac_c_werror_flag" ||
42963 test ! -s conftest.err
42964 } && test -s conftest$ac_exeext &&
42965 $as_test_x conftest$ac_exeext; then
42966 eval "$as_ac_var=yes"
42968 echo "$as_me: failed program was:" >&5
42969 sed 's/^/| /' conftest.$ac_ext >&5
42971 eval "$as_ac_var=no"
42974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42975 conftest$ac_exeext conftest.$ac_ext
42977 ac_res=`eval echo '${'$as_ac_var'}'`
42978 { echo "$as_me:$LINENO: result: $ac_res" >&5
42979 echo "${ECHO_T}$ac_res" >&6; }
42980 if test `eval echo '${'$as_ac_var'}'` = yes; then
42981 cat >>confdefs.h <<_ACEOF
42982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42987 cat >>confdefs.h <<\_ACEOF
42988 #define HAVE_OPENAT 1
42992 cat >>confdefs.h <<\_ACEOF
42993 #define HAVE_FSTATAT 1
42997 cat >>confdefs.h <<\_ACEOF
42998 #define HAVE_UNLINKAT 1
43002 cat >>confdefs.h <<\_ACEOF
43003 #define HAVE_FCHOWNAT 1
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_FUTIMESAT 1
43017 if test $have_xattr = yes; then
43018 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43019 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43020 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43021 echo $ECHO_N "(cached) $ECHO_C" >&6
43023 ac_check_lib_save_LIBS=$LIBS
43024 LIBS="-lnvpair $LIBS"
43025 cat >conftest.$ac_ext <<_ACEOF
43028 cat confdefs.h >>conftest.$ac_ext
43029 cat >>conftest.$ac_ext <<_ACEOF
43030 /* end confdefs.h. */
43032 /* Override any GCC internal prototype to avoid an error.
43033 Use char because int might match the return type of a GCC
43034 builtin and then its argument prototype would still apply. */
43038 char nvlist_next_nvpair ();
43042 return nvlist_next_nvpair ();
43047 rm -f conftest.$ac_objext conftest$ac_exeext
43048 if { (ac_try="$ac_link"
43049 case "(($ac_try" in
43050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43051 *) ac_try_echo=$ac_try;;
43053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43054 (eval "$ac_link") 2>conftest.er1
43056 grep -v '^ *+' conftest.er1 >conftest.err
43058 cat conftest.err >&5
43059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060 (exit $ac_status); } && {
43061 test -z "$ac_c_werror_flag" ||
43062 test ! -s conftest.err
43063 } && test -s conftest$ac_exeext &&
43064 $as_test_x conftest$ac_exeext; then
43065 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43067 echo "$as_me: failed program was:" >&5
43068 sed 's/^/| /' conftest.$ac_ext >&5
43070 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43074 conftest$ac_exeext conftest.$ac_ext
43075 LIBS=$ac_check_lib_save_LIBS
43077 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43078 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43079 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43082 cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_NVLIST_NEXT_NVPAIR 1
43086 FDLIBS="-lnvpair $FDLIBS"
43094 if test x$support_xattr = xyes -a $have_xattr != yes; then
43095 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43096 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43097 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43098 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43099 { (exit 1); exit 1; }; }
43101 if test $have_xattr = yes; then
43103 cat >>confdefs.h <<\_ACEOF
43104 #define HAVE_XATTR 1
43112 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43113 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43114 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43115 echo $ECHO_N "(cached) $ECHO_C" >&6
43117 ac_check_lib_save_LIBS=$LIBS
43118 LIBS="-lpthread $LIBS"
43119 cat >conftest.$ac_ext <<_ACEOF
43122 cat confdefs.h >>conftest.$ac_ext
43123 cat >>conftest.$ac_ext <<_ACEOF
43124 /* end confdefs.h. */
43126 /* Override any GCC internal prototype to avoid an error.
43127 Use char because int might match the return type of a GCC
43128 builtin and then its argument prototype would still apply. */
43132 char pthread_create ();
43136 return pthread_create ();
43141 rm -f conftest.$ac_objext conftest$ac_exeext
43142 if { (ac_try="$ac_link"
43143 case "(($ac_try" in
43144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43145 *) ac_try_echo=$ac_try;;
43147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43148 (eval "$ac_link") 2>conftest.er1
43150 grep -v '^ *+' conftest.er1 >conftest.err
43152 cat conftest.err >&5
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); } && {
43155 test -z "$ac_c_werror_flag" ||
43156 test ! -s conftest.err
43157 } && test -s conftest$ac_exeext &&
43158 $as_test_x conftest$ac_exeext; then
43159 ac_cv_lib_pthread_pthread_create=yes
43161 echo "$as_me: failed program was:" >&5
43162 sed 's/^/| /' conftest.$ac_ext >&5
43164 ac_cv_lib_pthread_pthread_create=no
43167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43168 conftest$ac_exeext conftest.$ac_ext
43169 LIBS=$ac_check_lib_save_LIBS
43171 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43172 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43173 if test $ac_cv_lib_pthread_pthread_create = yes; then
43174 PTHREAD_LIB="-lpthread"
43177 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43178 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43179 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43180 echo $ECHO_N "(cached) $ECHO_C" >&6
43182 ac_check_lib_save_LIBS=$LIBS
43183 LIBS="-lpthreads $LIBS"
43184 cat >conftest.$ac_ext <<_ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h. */
43191 /* Override any GCC internal prototype to avoid an error.
43192 Use char because int might match the return type of a GCC
43193 builtin and then its argument prototype would still apply. */
43197 char pthread_create ();
43201 return pthread_create ();
43206 rm -f conftest.$ac_objext conftest$ac_exeext
43207 if { (ac_try="$ac_link"
43208 case "(($ac_try" in
43209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43210 *) ac_try_echo=$ac_try;;
43212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43213 (eval "$ac_link") 2>conftest.er1
43215 grep -v '^ *+' conftest.er1 >conftest.err
43217 cat conftest.err >&5
43218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43219 (exit $ac_status); } && {
43220 test -z "$ac_c_werror_flag" ||
43221 test ! -s conftest.err
43222 } && test -s conftest$ac_exeext &&
43223 $as_test_x conftest$ac_exeext; then
43224 ac_cv_lib_pthreads_pthread_create=yes
43226 echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43229 ac_cv_lib_pthreads_pthread_create=no
43232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43233 conftest$ac_exeext conftest.$ac_ext
43234 LIBS=$ac_check_lib_save_LIBS
43236 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43237 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43238 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43239 PTHREAD_LIB="-lpthreads"
43242 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43243 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43244 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43245 echo $ECHO_N "(cached) $ECHO_C" >&6
43247 ac_check_lib_save_LIBS=$LIBS
43249 cat >conftest.$ac_ext <<_ACEOF
43252 cat confdefs.h >>conftest.$ac_ext
43253 cat >>conftest.$ac_ext <<_ACEOF
43254 /* end confdefs.h. */
43256 /* Override any GCC internal prototype to avoid an error.
43257 Use char because int might match the return type of a GCC
43258 builtin and then its argument prototype would still apply. */
43262 char pthread_create ();
43266 return pthread_create ();
43271 rm -f conftest.$ac_objext conftest$ac_exeext
43272 if { (ac_try="$ac_link"
43273 case "(($ac_try" in
43274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43275 *) ac_try_echo=$ac_try;;
43277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43278 (eval "$ac_link") 2>conftest.er1
43280 grep -v '^ *+' conftest.er1 >conftest.err
43282 cat conftest.err >&5
43283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284 (exit $ac_status); } && {
43285 test -z "$ac_c_werror_flag" ||
43286 test ! -s conftest.err
43287 } && test -s conftest$ac_exeext &&
43288 $as_test_x conftest$ac_exeext; then
43289 ac_cv_lib_c_r_pthread_create=yes
43291 echo "$as_me: failed program was:" >&5
43292 sed 's/^/| /' conftest.$ac_ext >&5
43294 ac_cv_lib_c_r_pthread_create=no
43297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43298 conftest$ac_exeext conftest.$ac_ext
43299 LIBS=$ac_check_lib_save_LIBS
43301 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43302 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43303 if test $ac_cv_lib_c_r_pthread_create = yes; then
43304 PTHREAD_LIB="-lc_r"
43307 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43308 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43309 if test "${ac_cv_func_pthread_create+set}" = set; then
43310 echo $ECHO_N "(cached) $ECHO_C" >&6
43312 cat >conftest.$ac_ext <<_ACEOF
43315 cat confdefs.h >>conftest.$ac_ext
43316 cat >>conftest.$ac_ext <<_ACEOF
43317 /* end confdefs.h. */
43318 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43320 #define pthread_create innocuous_pthread_create
43322 /* System header to define __stub macros and hopefully few prototypes,
43323 which can conflict with char pthread_create (); below.
43324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43325 <limits.h> exists even on freestanding compilers. */
43328 # include <limits.h>
43330 # include <assert.h>
43333 #undef pthread_create
43335 /* Override any GCC internal prototype to avoid an error.
43336 Use char because int might match the return type of a GCC
43337 builtin and then its argument prototype would still apply. */
43341 char pthread_create ();
43342 /* The GNU C library defines this for functions which it implements
43343 to always fail with ENOSYS. Some functions are actually named
43344 something starting with __ and the normal name is an alias. */
43345 #if defined __stub_pthread_create || defined __stub___pthread_create
43352 return pthread_create ();
43357 rm -f conftest.$ac_objext conftest$ac_exeext
43358 if { (ac_try="$ac_link"
43359 case "(($ac_try" in
43360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43361 *) ac_try_echo=$ac_try;;
43363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43364 (eval "$ac_link") 2>conftest.er1
43366 grep -v '^ *+' conftest.er1 >conftest.err
43368 cat conftest.err >&5
43369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370 (exit $ac_status); } && {
43371 test -z "$ac_c_werror_flag" ||
43372 test ! -s conftest.err
43373 } && test -s conftest$ac_exeext &&
43374 $as_test_x conftest$ac_exeext; then
43375 ac_cv_func_pthread_create=yes
43377 echo "$as_me: failed program was:" >&5
43378 sed 's/^/| /' conftest.$ac_ext >&5
43380 ac_cv_func_pthread_create=no
43383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43384 conftest$ac_exeext conftest.$ac_ext
43386 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43387 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43404 for ac_header in sys/prctl.h sys/capability.h
43406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43411 echo $ECHO_N "(cached) $ECHO_C" >&6
43413 ac_res=`eval echo '${'$as_ac_Header'}'`
43414 { echo "$as_me:$LINENO: result: $ac_res" >&5
43415 echo "${ECHO_T}$ac_res" >&6; }
43417 # Is the header compilable?
43418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43420 cat >conftest.$ac_ext <<_ACEOF
43423 cat confdefs.h >>conftest.$ac_ext
43424 cat >>conftest.$ac_ext <<_ACEOF
43425 /* end confdefs.h. */
43426 $ac_includes_default
43427 #include <$ac_header>
43429 rm -f conftest.$ac_objext
43430 if { (ac_try="$ac_compile"
43431 case "(($ac_try" in
43432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43433 *) ac_try_echo=$ac_try;;
43435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43436 (eval "$ac_compile") 2>conftest.er1
43438 grep -v '^ *+' conftest.er1 >conftest.err
43440 cat conftest.err >&5
43441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442 (exit $ac_status); } && {
43443 test -z "$ac_c_werror_flag" ||
43444 test ! -s conftest.err
43445 } && test -s conftest.$ac_objext; then
43446 ac_header_compiler=yes
43448 echo "$as_me: failed program was:" >&5
43449 sed 's/^/| /' conftest.$ac_ext >&5
43451 ac_header_compiler=no
43454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43456 echo "${ECHO_T}$ac_header_compiler" >&6; }
43458 # Is the header present?
43459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43461 cat >conftest.$ac_ext <<_ACEOF
43464 cat confdefs.h >>conftest.$ac_ext
43465 cat >>conftest.$ac_ext <<_ACEOF
43466 /* end confdefs.h. */
43467 #include <$ac_header>
43469 if { (ac_try="$ac_cpp conftest.$ac_ext"
43470 case "(($ac_try" in
43471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43472 *) ac_try_echo=$ac_try;;
43474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43477 grep -v '^ *+' conftest.er1 >conftest.err
43479 cat conftest.err >&5
43480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481 (exit $ac_status); } >/dev/null && {
43482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43483 test ! -s conftest.err
43485 ac_header_preproc=yes
43487 echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43490 ac_header_preproc=no
43493 rm -f conftest.err conftest.$ac_ext
43494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43495 echo "${ECHO_T}$ac_header_preproc" >&6; }
43497 # So? What about this header?
43498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43504 ac_header_preproc=yes
43507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43525 echo $ECHO_N "(cached) $ECHO_C" >&6
43527 eval "$as_ac_Header=\$ac_header_preproc"
43529 ac_res=`eval echo '${'$as_ac_Header'}'`
43530 { echo "$as_me:$LINENO: result: $ac_res" >&5
43531 echo "${ECHO_T}$ac_res" >&6; }
43534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43535 cat >>confdefs.h <<_ACEOF
43536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43545 for ac_func in prctl setreuid
43547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43551 echo $ECHO_N "(cached) $ECHO_C" >&6
43553 cat >conftest.$ac_ext <<_ACEOF
43556 cat confdefs.h >>conftest.$ac_ext
43557 cat >>conftest.$ac_ext <<_ACEOF
43558 /* end confdefs.h. */
43559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43561 #define $ac_func innocuous_$ac_func
43563 /* System header to define __stub macros and hopefully few prototypes,
43564 which can conflict with char $ac_func (); below.
43565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43566 <limits.h> exists even on freestanding compilers. */
43569 # include <limits.h>
43571 # include <assert.h>
43576 /* Override any GCC internal prototype to avoid an error.
43577 Use char because int might match the return type of a GCC
43578 builtin and then its argument prototype would still apply. */
43583 /* The GNU C library defines this for functions which it implements
43584 to always fail with ENOSYS. Some functions are actually named
43585 something starting with __ and the normal name is an alias. */
43586 #if defined __stub_$ac_func || defined __stub___$ac_func
43593 return $ac_func ();
43598 rm -f conftest.$ac_objext conftest$ac_exeext
43599 if { (ac_try="$ac_link"
43600 case "(($ac_try" in
43601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43602 *) ac_try_echo=$ac_try;;
43604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43605 (eval "$ac_link") 2>conftest.er1
43607 grep -v '^ *+' conftest.er1 >conftest.err
43609 cat conftest.err >&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); } && {
43612 test -z "$ac_c_werror_flag" ||
43613 test ! -s conftest.err
43614 } && test -s conftest$ac_exeext &&
43615 $as_test_x conftest$ac_exeext; then
43616 eval "$as_ac_var=yes"
43618 echo "$as_me: failed program was:" >&5
43619 sed 's/^/| /' conftest.$ac_ext >&5
43621 eval "$as_ac_var=no"
43624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43625 conftest$ac_exeext conftest.$ac_ext
43627 ac_res=`eval echo '${'$as_ac_var'}'`
43628 { echo "$as_me:$LINENO: result: $ac_res" >&5
43629 echo "${ECHO_T}$ac_res" >&6; }
43630 if test `eval echo '${'$as_ac_var'}'` = yes; then
43631 cat >>confdefs.h <<_ACEOF
43632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43638 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43639 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43640 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43641 echo $ECHO_N "(cached) $ECHO_C" >&6
43643 ac_check_lib_save_LIBS=$LIBS
43645 cat >conftest.$ac_ext <<_ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h. */
43652 /* Override any GCC internal prototype to avoid an error.
43653 Use char because int might match the return type of a GCC
43654 builtin and then its argument prototype would still apply. */
43658 char cap_set_proc ();
43662 return cap_set_proc ();
43667 rm -f conftest.$ac_objext conftest$ac_exeext
43668 if { (ac_try="$ac_link"
43669 case "(($ac_try" in
43670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43671 *) ac_try_echo=$ac_try;;
43673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43674 (eval "$ac_link") 2>conftest.er1
43676 grep -v '^ *+' conftest.er1 >conftest.err
43678 cat conftest.err >&5
43679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680 (exit $ac_status); } && {
43681 test -z "$ac_c_werror_flag" ||
43682 test ! -s conftest.err
43683 } && test -s conftest$ac_exeext &&
43684 $as_test_x conftest$ac_exeext; then
43685 ac_cv_lib_cap_cap_set_proc=yes
43687 echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43690 ac_cv_lib_cap_cap_set_proc=no
43693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43694 conftest$ac_exeext conftest.$ac_ext
43695 LIBS=$ac_check_lib_save_LIBS
43697 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43698 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43699 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43705 if test x$CAP_LIBS = x-lcap; then
43707 cat >>confdefs.h <<\_ACEOF
43708 #define HAVE_LIBCAP 1
43715 cat >>confdefs.h <<\_ACEOF
43720 CFLAGS=${CFLAGS--O}
43722 if test x$have_gcc = xyes ; then
43723 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43724 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43726 LDFLAGS=${LDFLAGS--O}
43727 DB_LIBS="${SQL_LFLAGS}"
43728 CPPFLAGS="$CPPFLAGS"
43755 PFILES="platforms/Makefile"
43760 hostname=`uname -n | cut -d '.' -f 1`
43761 if test x${hostname} = x ; then
43762 hostname="localhost"
43764 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43765 if test ! $? = 0; then
43766 hostname="localhost"
43769 case "$DISTNAME" in
43772 PSCMD="ps -e -o pid,comm"
43773 PFILES="${PFILES} \
43774 platforms/aix/Makefile"
43775 TAPEDRIVE="/dev/rmt0.1"
43779 PTHREAD_LIB="-lpthread -lexc"
43780 if test "${CC}" = "gcc" ; then
43787 TAPEDRIVE="/dev/nrmt0"
43790 DISTVER=`uname -a |awk '{print $3}'`
43791 TAPEDRIVE="/dev/nrmt0"
43792 PTHREAD_LIB="-pthread"
43793 CFLAGS="${CFLAGS} -pthread"
43794 PSCMD="ps -ax -o pid,command"
43797 PFILES="${PFILES} \
43798 platforms/bsdi/Makefile \
43799 platforms/bsdi/bacula-fd \
43800 platforms/bsdi/bacula-sd \
43801 platforms/bsdi/bacula-dir"
43802 largefile_support="yes"
43805 DISTVER=`uname -a |awk '{print $3}'`
43806 TAPEDRIVE="/dev/nrst0"
43808 WCFLAGS="-mwindows"
43809 WLDFLAGS="-mwindows"
43813 TAPEDRIVE="/dev/nst0"
43814 PSCMD="ps -e -o pid,command"
43816 PFILES="${PFILES} \
43817 platforms/darwin/Makefile"
43821 TAPEDRIVE="/dev/nst0"
43822 PSCMD="ps -e -o pid,command"
43824 PFILES="${PFILES} \
43825 platforms/osx/Makefile"
43828 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43831 DISTVER=`cat /etc/debian_version`
43832 if test -f /etc/lsb-release ; then
43834 if test "x$DISTRIB_ID" != "x" ; then
43835 DISTNAME=$DISTRIB_ID
43837 if test "x$DISTRIB_RELEASE" != "x" ; then
43838 DISTVER=$DISTRIB_RELEASE
43841 if test "$DISTNAME" = "Ubuntu" ; then
43844 TAPEDRIVE="/dev/nst0"
43845 PSCMD="ps -e -o pid,command"
43846 if test "$DISTNAME" = "ubuntu" ; then
43847 PFILES="${PFILES} \
43848 platforms/ubuntu/Makefile \
43849 platforms/ubuntu/bacula-fd \
43850 platforms/ubuntu/bacula-sd \
43851 platforms/ubuntu/bacula-dir"
43853 PFILES="${PFILES} \
43854 platforms/debian/Makefile \
43855 platforms/debian/bacula-fd \
43856 platforms/debian/bacula-sd \
43857 platforms/debian/bacula-dir"
43861 DISTVER=`uname -a |awk '{print $3}'`
43862 VER=`echo $DISTVER | cut -c 1`
43863 if test x$VER = x4 ; then
43864 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43865 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43869 TAPEDRIVE="/dev/nrsa0"
43870 PSCMD="ps -ax -o pid,command"
43871 PFILES="${PFILES} \
43872 platforms/freebsd/Makefile \
43873 platforms/freebsd/bacula-fd \
43874 platforms/freebsd/bacula-sd \
43875 platforms/freebsd/bacula-dir"
43876 largefile_support="yes"
43879 PSCMD="UNIX95=1; ps -e -o pid,comm"
43880 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43882 TAPEDRIVE="/dev/rmt/0hnb"
43883 PTHREAD_LIB="-lpthread"
43884 cat >>confdefs.h <<\_ACEOF
43885 #define _INCLUDE_LONGLONG 1
43891 TAPEDRIVE="/dev/rmt/0cbn"
43892 PSCMD="ps -e -o pid,comm"
43893 PFILES="${PFILES} \
43894 platforms/irix/Makefile \
43895 platforms/irix/bacula-fd \
43896 platforms/irix/bacula-sd \
43897 platforms/irix/bacula-dir"
43900 DISTVER=`uname -a |awk '{print $3}'`
43903 TAPEDRIVE="/dev/nrst0"
43904 PSCMD="ps -ax -o pid,command"
43905 PTHREAD_LIB="-pthread"
43906 CFLAGS="${CFLAGS} -pthread"
43909 DISTVER=`uname -a |awk '{print $3}'`
43912 TAPEDRIVE="/dev/nrst0"
43913 PSCMD="ps -ax -o pid,command"
43914 PTHREAD_LIB="-pthread"
43915 CFLAGS="${CFLAGS} -pthread"
43916 PFILES="${PFILES} \
43917 platforms/openbsd/Makefile \
43918 platforms/openbsd/bacula-fd \
43919 platforms/openbsd/bacula-sd \
43920 platforms/openbsd/bacula-dir"
43923 if test -f /etc/whitebox-release ; then
43924 f=/etc/whitebox-release
43926 f=/etc/redhat-release
43928 if test `cat $f | grep release |\
43929 cut -f 3 -d ' '`x = "Enterprise"x ; then
43930 DISTVER="Enterprise "`cat $f | grep release |\
43933 DISTVER=`cat /etc/redhat-release | grep release |\
43936 TAPEDRIVE="/dev/nst0"
43937 PSCMD="ps -e -o pid,command"
43938 PFILES="${PFILES} \
43939 platforms/redhat/Makefile \
43940 platforms/redhat/bacula-fd \
43941 platforms/redhat/bacula-sd \
43942 platforms/redhat/bacula-dir
43946 DISTVER=`cat /etc/mandrake-release | grep release |\
43948 TAPEDRIVE="/dev/nst0"
43949 PSCMD="ps -e -o pid,command"
43950 PFILES="${PFILES} \
43951 platforms/mandrake/Makefile \
43952 platforms/mandrake/bacula-fd \
43953 platforms/mandrake/bacula-sd \
43954 platforms/mandrake/bacula-dir \
43955 platforms/mandrake/bacula.spec \
43959 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43960 TAPEDRIVE="/dev/nst0"
43961 PSCMD="ps -e -o pid,command"
43962 PFILES="${PFILES} \
43963 platforms/gentoo/Makefile \
43964 platforms/gentoo/bacula-init \
43965 platforms/gentoo/bacula-fd \
43966 platforms/gentoo/bacula-sd \
43967 platforms/gentoo/bacula-dir"
43970 DISTVER=`cat /etc/slackware-version`
43971 TAPEDRIVE="/dev/nst0"
43972 PSCMD="ps -e -o pid,command"
43973 PFILES="${PFILES} \
43974 platforms/slackware/Makefile \
43975 platforms/slackware/rc.bacula-fd \
43976 platforms/slackware/rc.bacula-sd \
43977 platforms/slackware/rc.bacula-dir\
43978 platforms/slackware/functions.bacula"
43982 TAPEDRIVE="/dev/rmt/0cbn"
43983 PSCMD="ps -e -o pid,comm"
43984 PFILES="${PFILES} \
43985 platforms/solaris/Makefile \
43986 platforms/solaris/bacula-fd \
43987 platforms/solaris/bacula-sd \
43988 platforms/solaris/bacula-dir"
43989 if test x$DISTVER = x5.6 ; then
43990 cat >>confdefs.h <<\_ACEOF
43991 #define HAVE_OLD_SOCKOPT 1
43995 LIBS="$LIBS -lresolv"
43998 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44000 TAPEDRIVE="/dev/nst0"
44001 PSCMD="ps -e -o pid,command"
44002 PFILES="${PFILES} \
44003 platforms/suse/Makefile \
44004 platforms/suse/bacula-fd \
44005 platforms/suse/bacula-sd \
44006 platforms/suse/bacula-dir \
44007 platforms/suse/bacula \
44008 platforms/suse/bacula.spec"
44013 TAPEDRIVE="/dev/nst0"
44014 PSCMD="ps -e -o pid,command"
44015 PFILES="${PFILES} \
44016 platforms/suse/Makefile \
44017 platforms/suse/bacula-fd \
44018 platforms/suse/bacula-sd \
44019 platforms/suse/bacula-dir"
44023 TAPEDRIVE="/dev/nst0"
44026 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44032 LIBS="$PTHREAD_LIB $LIBS"
44034 cat >>confdefs.h <<_ACEOF
44038 cat >>confdefs.h <<_ACEOF
44049 MCOMMON=./autoconf/Make.common
44052 if test "x${subsysdir}" = "x${sbindir}" ; then
44055 echo "You have set both --sbindir and --with-subsys-dir"
44056 echo " equal to: ${subsysdir} "
44057 echo "This is not permitted. Please reconfigure."
44059 echo "Aborting configuration ..."
44065 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44067 ac_config_commands="$ac_config_commands default"
44069 cat >confcache <<\_ACEOF
44070 # This file is a shell script that caches the results of configure
44071 # tests run on this system so they can be shared between configure
44072 # scripts and configure runs, see configure's option --config-cache.
44073 # It is not useful on other systems. If it contains results you don't
44074 # want to keep, you may remove or edit it.
44076 # config.status only pays attention to the cache file if you give it
44077 # the --recheck option to rerun configure.
44079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44081 # following values.
44085 # The following way of writing the cache mishandles newlines in values,
44086 # but we know of no workaround that is simple, portable, and efficient.
44087 # So, we kill variables containing newlines.
44088 # Ultrix sh set writes to stderr and can't be redirected directly,
44089 # and sets the high bit in the cache file unless we assign to the vars.
44091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44092 eval ac_val=\$$ac_var
44096 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44100 _ | IFS | as_nl) ;; #(
44101 *) $as_unset $ac_var ;;
44107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44108 *${as_nl}ac_space=\ *)
44109 # `set' does not quote correctly, so add quotes (double-quote
44110 # substitution turns \\\\ into \\, and sed turns \\ into \).
44113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44116 # `set' quotes correctly as required by POSIX, so do not add quotes.
44117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44131 if test -w "$cache_file"; then
44132 test "x$cache_file" != "x/dev/null" &&
44133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44134 echo "$as_me: updating cache $cache_file" >&6;}
44135 cat confcache >$cache_file
44137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44144 # Let make expand exec_prefix.
44145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44147 DEFS=-DHAVE_CONFIG_H
44151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44152 # 1. Remove the extension, and $U if already installed.
44153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44154 ac_i=`echo "$ac_i" | sed "$ac_script"`
44155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44156 # will be set to the directory where LIBOBJS objects are built.
44157 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44158 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44160 LIBOBJS=$ac_libobjs
44162 LTLIBOBJS=$ac_ltlibobjs
44166 : ${CONFIG_STATUS=./config.status}
44167 ac_clean_files_save=$ac_clean_files
44168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44171 cat >$CONFIG_STATUS <<_ACEOF
44173 # Generated by $as_me.
44174 # Run this file to recreate the current configuration.
44175 # Compiler output produced by configure, useful for debugging
44176 # configure, is in config.log if it exists.
44179 ac_cs_recheck=false
44181 SHELL=\${CONFIG_SHELL-$SHELL}
44184 cat >>$CONFIG_STATUS <<\_ACEOF
44185 ## --------------------- ##
44186 ## M4sh Initialization. ##
44187 ## --------------------- ##
44189 # Be more Bourne compatible
44190 DUALCASE=1; export DUALCASE # for MKS sh
44191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44195 # is contrary to our usage. Disable this feature.
44196 alias -g '${1+"$@"}'='"$@"'
44197 setopt NO_GLOB_SUBST
44199 case `(set -o) 2>/dev/null` in
44200 *posix*) set -o posix ;;
44209 # Avoid depending upon Character Ranges.
44210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44213 as_cr_digits='0123456789'
44214 as_cr_alnum=$as_cr_Letters$as_cr_digits
44216 # The user is always right.
44217 if test "${PATH_SEPARATOR+set}" != set; then
44218 echo "#! /bin/sh" >conf$$.sh
44219 echo "exit 0" >>conf$$.sh
44221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44229 # Support unset when possible.
44230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44238 # We need space, tab and new line, in precisely that order. Quoting is
44239 # there to prevent editors from complaining about space-tab.
44240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44241 # splitting by setting IFS to empty value.)
44246 # Find who we are. Look in the path if we contain no directory separator.
44248 *[\\/]* ) as_myself=$0 ;;
44249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44250 for as_dir in $PATH
44253 test -z "$as_dir" && as_dir=.
44254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44260 # We did not find ourselves, most probably we were run as `sh COMMAND'
44261 # in which case we are not to be found in the path.
44262 if test "x$as_myself" = x; then
44265 if test ! -f "$as_myself"; then
44266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44267 { (exit 1); exit 1; }
44270 # Work around bugs in pre-3.0 UWIN ksh.
44271 for as_var in ENV MAIL MAILPATH
44272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44282 LC_TELEPHONE LC_TIME
44284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44285 eval $as_var=C; export $as_var
44287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44291 # Required to use basename.
44292 if expr a : '\(a\)' >/dev/null 2>&1 &&
44293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44300 as_basename=basename
44306 # Name of the executable.
44307 as_me=`$as_basename -- "$0" ||
44308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44309 X"$0" : 'X\(//\)$' \| \
44310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44312 sed '/^.*\/\([^/][^/]*\)\/*$/{
44331 as_lineno_1=$LINENO
44332 as_lineno_2=$LINENO
44333 test "x$as_lineno_1" != "x$as_lineno_2" &&
44334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44337 # uniformly replaced by the line number. The first 'sed' inserts a
44338 # line-number line after each line using $LINENO; the second 'sed'
44339 # does the real work. The second script uses 'N' to pair each
44340 # line-number line with the line containing $LINENO, and appends
44341 # trailing '-' during substitution so that $LINENO is not a special
44342 # case at line end.
44343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44344 # scripts with optimization help from Paolo Bonzini. Blame Lee
44345 # E. McMahon (1931-1989) for sed's syntax. :-)
44357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44360 ' >$as_me.lineno &&
44361 chmod +x "$as_me.lineno" ||
44362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44363 { (exit 1); exit 1; }; }
44365 # Don't try to exec as it changes $[0], causing all sort of problems
44366 # (the dirname of $[0] is not the place where we might find the
44367 # original and so on. Autoconf is especially sensitive to this).
44368 . "./$as_me.lineno"
44369 # Exit status is that of the last command.
44374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44380 ECHO_C= ECHO_N= ECHO_T=
44381 case `echo -n x` in
44383 case `echo 'x\c'` in
44384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44391 if expr a : '\(a\)' >/dev/null 2>&1 &&
44392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44398 rm -f conf$$ conf$$.exe conf$$.file
44399 if test -d conf$$.dir; then
44400 rm -f conf$$.dir/conf$$.file
44406 if ln -s conf$$.file conf$$ 2>/dev/null; then
44408 # ... but there are two gotchas:
44409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44411 # In both cases, we have to default to `cp -p'.
44412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44414 elif ln conf$$.file conf$$ 2>/dev/null; then
44419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44420 rmdir conf$$.dir 2>/dev/null
44422 if mkdir -p . 2>/dev/null; then
44425 test -d ./-p && rmdir ./-p
44429 if test -x / >/dev/null 2>&1; then
44430 as_test_x='test -x'
44432 if ls -dL / >/dev/null 2>&1; then
44439 if test -d "$1"; then
44445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44446 ???[sx]*):;;*)false;;esac;fi
44450 as_executable_p=$as_test_x
44452 # Sed expression to map a string onto a valid CPP name.
44453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44455 # Sed expression to map a string onto a valid variable name.
44456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44461 # Save the log message, to keep $[0] and so on meaningful, and to
44462 # report actual input values of CONFIG_FILES etc. instead of their
44463 # values after options handling.
44465 This file was extended by $as_me, which was
44466 generated by GNU Autoconf 2.61. Invocation command line was
44468 CONFIG_FILES = $CONFIG_FILES
44469 CONFIG_HEADERS = $CONFIG_HEADERS
44470 CONFIG_LINKS = $CONFIG_LINKS
44471 CONFIG_COMMANDS = $CONFIG_COMMANDS
44474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44479 cat >>$CONFIG_STATUS <<_ACEOF
44480 # Files that config.status was made for.
44481 config_files="$ac_config_files"
44482 config_headers="$ac_config_headers"
44483 config_commands="$ac_config_commands"
44487 cat >>$CONFIG_STATUS <<\_ACEOF
44489 \`$as_me' instantiates files from templates according to the
44490 current configuration.
44492 Usage: $0 [OPTIONS] [FILE]...
44494 -h, --help print this help, then exit
44495 -V, --version print version number and configuration settings, then exit
44496 -q, --quiet do not print progress messages
44497 -d, --debug don't remove temporary files
44498 --recheck update $as_me by reconfiguring in the same conditions
44499 --file=FILE[:TEMPLATE]
44500 instantiate the configuration file FILE
44501 --header=FILE[:TEMPLATE]
44502 instantiate the configuration header FILE
44504 Configuration files:
44507 Configuration headers:
44510 Configuration commands:
44513 Report bugs to <bug-autoconf@gnu.org>."
44516 cat >>$CONFIG_STATUS <<_ACEOF
44519 configured by $0, generated by GNU Autoconf 2.61,
44520 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44522 Copyright (C) 2006 Free Software Foundation, Inc.
44523 This config.status script is free software; the Free Software Foundation
44524 gives unlimited permission to copy, distribute and modify it."
44531 cat >>$CONFIG_STATUS <<\_ACEOF
44532 # If no file are specified by the user, then we need to provide default
44533 # value. By we need to know if files were specified by the user.
44539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44540 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44551 # Handling of the options.
44552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44555 echo "$ac_cs_version"; exit ;;
44556 --debug | --debu | --deb | --de | --d | -d )
44558 --file | --fil | --fi | --f )
44560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44561 ac_need_defaults=false;;
44562 --header | --heade | --head | --hea )
44564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44565 ac_need_defaults=false;;
44567 # Conflict between --help and --header
44568 { echo "$as_me: error: ambiguous option: $1
44569 Try \`$0 --help' for more information." >&2
44570 { (exit 1); exit 1; }; };;
44571 --help | --hel | -h )
44572 echo "$ac_cs_usage"; exit ;;
44573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44577 # This is an error.
44578 -*) { echo "$as_me: error: unrecognized option: $1
44579 Try \`$0 --help' for more information." >&2
44580 { (exit 1); exit 1; }; } ;;
44582 *) ac_config_targets="$ac_config_targets $1"
44583 ac_need_defaults=false ;;
44589 ac_configure_extra_args=
44591 if $ac_cs_silent; then
44593 ac_configure_extra_args="$ac_configure_extra_args --silent"
44597 cat >>$CONFIG_STATUS <<_ACEOF
44598 if \$ac_cs_recheck; then
44599 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44600 CONFIG_SHELL=$SHELL
44601 export CONFIG_SHELL
44602 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44606 cat >>$CONFIG_STATUS <<\_ACEOF
44610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44611 ## Running $as_me. ##
44617 cat >>$CONFIG_STATUS <<_ACEOF
44623 # The HP-UX ksh and POSIX shell print the target directory to stdout
44624 # if CDPATH is set.
44625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44627 sed_quote_subst='$sed_quote_subst'
44628 double_quote_subst='$double_quote_subst'
44629 delay_variable_subst='$delay_variable_subst'
44630 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44631 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44632 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44633 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44634 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44635 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44636 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44637 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44638 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44639 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44640 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44641 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44642 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44643 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44644 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44645 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44646 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44647 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44648 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44649 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44650 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44651 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44652 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44653 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44654 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44655 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44656 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44657 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44658 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44659 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44660 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44661 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44662 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44663 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44664 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44665 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44666 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44667 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44668 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44669 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44670 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44671 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44672 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44674 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
44675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44676 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44677 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44678 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44679 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44680 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44681 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44682 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44683 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44684 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44685 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44686 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44687 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44688 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44689 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44690 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44691 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44692 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44693 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44694 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44695 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44696 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44697 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44698 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44699 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44700 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44701 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44702 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44703 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44704 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44705 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44706 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44707 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44708 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44709 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44710 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44711 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44712 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44713 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44714 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44715 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44716 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44717 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44718 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44719 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44720 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44722 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44723 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44725 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44726 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44727 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44728 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44729 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44730 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44731 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44732 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44733 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44734 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44735 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44736 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44737 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44738 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44739 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44740 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44741 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44742 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44743 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44744 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44745 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44746 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44747 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44748 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44749 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44750 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44751 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44752 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44753 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44754 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44755 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44756 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44757 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44758 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44759 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44760 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44761 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44762 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44763 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44765 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44766 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44767 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44768 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44769 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44770 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44771 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44772 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44773 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44774 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44775 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 LTCFLAGS='$LTCFLAGS'
44804 compiler='$compiler_DEFAULT'
44806 # Quote evaled strings.
44818 deplibs_check_method \
44827 lt_cv_sys_global_symbol_pipe \
44828 lt_cv_sys_global_symbol_to_cdecl \
44829 lt_cv_sys_global_symbol_to_c_name_address \
44830 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44833 lt_prog_compiler_no_builtin_flag \
44834 lt_prog_compiler_wl \
44835 lt_prog_compiler_pic \
44836 lt_prog_compiler_static \
44837 lt_cv_prog_compiler_c_o \
44845 export_dynamic_flag_spec \
44846 whole_archive_flag_spec \
44847 compiler_needs_object \
44849 allow_undefined_flag \
44850 no_undefined_flag \
44851 hardcode_libdir_flag_spec \
44852 hardcode_libdir_flag_spec_ld \
44853 hardcode_libdir_separator \
44858 variables_saved_for_relink \
44860 library_names_spec \
44865 compiler_lib_search_dirs \
44870 compiler_lib_search_path \
44873 lt_prog_compiler_no_builtin_flag_CXX \
44874 lt_prog_compiler_wl_CXX \
44875 lt_prog_compiler_pic_CXX \
44876 lt_prog_compiler_static_CXX \
44877 lt_cv_prog_compiler_c_o_CXX \
44878 export_dynamic_flag_spec_CXX \
44879 whole_archive_flag_spec_CXX \
44880 compiler_needs_object_CXX \
44882 allow_undefined_flag_CXX \
44883 no_undefined_flag_CXX \
44884 hardcode_libdir_flag_spec_CXX \
44885 hardcode_libdir_flag_spec_ld_CXX \
44886 hardcode_libdir_separator_CXX \
44887 fix_srcfile_path_CXX \
44888 exclude_expsyms_CXX \
44889 include_expsyms_CXX \
44890 file_list_spec_CXX \
44891 compiler_lib_search_dirs_CXX \
44892 predep_objects_CXX \
44893 postdep_objects_CXX \
44896 compiler_lib_search_path_CXX; do
44897 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44898 *[\\\\\\\`\\"\\\$]*)
44899 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44902 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44907 # Double-quote double-evaled strings.
44908 for var in reload_cmds \
44909 old_postinstall_cmds \
44910 old_postuninstall_cmds \
44912 extract_expsyms_cmds \
44913 old_archive_from_new_cmds \
44914 old_archive_from_expsyms_cmds \
44916 archive_expsym_cmds \
44918 module_expsym_cmds \
44919 export_symbols_cmds \
44922 postuninstall_cmds \
44924 sys_lib_search_path_spec \
44925 sys_lib_dlsearch_path_spec \
44926 old_archive_cmds_CXX \
44927 old_archive_from_new_cmds_CXX \
44928 old_archive_from_expsyms_cmds_CXX \
44930 archive_expsym_cmds_CXX \
44932 module_expsym_cmds_CXX \
44933 export_symbols_cmds_CXX \
44934 prelink_cmds_CXX; do
44935 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44936 *[\\\\\\\`\\"\\\$]*)
44937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44945 # Fix-up fallback echo if it was mangled by the above quoting rules.
44947 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44951 ac_aux_dir='$ac_aux_dir'
44952 xsi_shell='$xsi_shell'
44953 lt_shell_append='$lt_shell_append'
44955 # See if we are running on zsh, and set the options which allow our
44956 # commands through without removal of \ escapes INIT.
44957 if test -n "\${ZSH_VERSION+set}" ; then
44958 setopt NO_GLOB_SUBST
44964 TIMESTAMP='$TIMESTAMP'
44972 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44973 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44975 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44976 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44977 LINGUAS="${LINGUAS-%UNSET%}"
44982 cat >>$CONFIG_STATUS <<\_ACEOF
44984 # Handling of arguments.
44985 for ac_config_target in $ac_config_targets
44987 case $ac_config_target in
44988 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44989 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44990 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44991 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44993 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44994 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44995 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44996 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44997 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44998 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44999 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45000 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45001 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45002 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45003 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45004 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45005 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45006 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45007 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45008 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45009 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45010 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45011 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45012 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45013 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45014 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45015 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45016 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45017 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45018 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45019 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45020 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45021 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45022 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45023 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45024 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45025 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45026 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45027 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45028 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45029 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45030 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45031 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45032 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45033 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45034 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45035 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45036 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45037 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45038 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45039 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45040 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45041 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45042 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45043 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45044 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45045 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45046 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45047 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45048 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45049 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45050 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45051 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45052 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45053 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45054 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45055 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45056 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45057 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45058 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45059 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45060 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45061 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45062 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45063 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45064 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45065 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45066 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45067 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45068 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45069 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45070 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45071 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45072 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45073 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45074 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45075 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45076 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45077 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45078 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45079 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45080 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45081 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45082 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45083 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45084 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45085 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45086 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45087 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45088 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45089 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45090 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45091 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45092 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45093 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45094 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45095 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45096 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45097 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45098 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45099 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45100 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45101 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45102 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45103 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45104 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45105 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45107 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45109 { (exit 1); exit 1; }; };;
45114 # If the user did not use the arguments to specify the items to instantiate,
45115 # then the envvar interface is used. Set only those that are not.
45116 # We use the long form for the default assignment because of an extremely
45117 # bizarre bug on SunOS 4.1.3.
45118 if $ac_need_defaults; then
45119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45124 # Have a temporary directory for convenience. Make it in the build tree
45125 # simply because there is no reason against having it here, and in addition,
45126 # creating and moving files from /tmp can sometimes cause problems.
45127 # Hook for its removal unless debugging.
45128 # Note that there is a small window in which the directory will not be cleaned:
45129 # after its creation but before its name has been assigned to `$tmp'.
45133 trap 'exit_status=$?
45134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45136 trap '{ (exit 1); exit 1; }' 1 2 13 15
45138 # Create a (secure) tmp directory for tmp files.
45141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45142 test -n "$tmp" && test -d "$tmp"
45145 tmp=./conf$$-$RANDOM
45146 (umask 077 && mkdir "$tmp")
45149 echo "$me: cannot create a temporary directory in ." >&2
45150 { (exit 1); exit 1; }
45154 # Set up the sed scripts for CONFIG_FILES section.
45157 # No need to generate the scripts if there are no CONFIG_FILES.
45158 # This happens for instance when ./config.status config.h
45159 if test -n "$CONFIG_FILES"; then
45163 # Create sed commands to just substitute file output variables.
45165 # Remaining file output variables are in a fragment that also has non-file
45171 for ac_last_try in false false false false false :; do
45172 cat >conf$$subs.sed <<_ACEOF
45173 SHELL!$SHELL$ac_delim
45174 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45175 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45176 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45177 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45178 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45179 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45180 exec_prefix!$exec_prefix$ac_delim
45181 prefix!$prefix$ac_delim
45182 program_transform_name!$program_transform_name$ac_delim
45183 bindir!$bindir$ac_delim
45184 sbindir!$sbindir$ac_delim
45185 libexecdir!$libexecdir$ac_delim
45186 datarootdir!$datarootdir$ac_delim
45187 datadir!$datadir$ac_delim
45188 sysconfdir!$sysconfdir$ac_delim
45189 sharedstatedir!$sharedstatedir$ac_delim
45190 localstatedir!$localstatedir$ac_delim
45191 includedir!$includedir$ac_delim
45192 oldincludedir!$oldincludedir$ac_delim
45193 docdir!$docdir$ac_delim
45194 infodir!$infodir$ac_delim
45195 htmldir!$htmldir$ac_delim
45196 dvidir!$dvidir$ac_delim
45197 pdfdir!$pdfdir$ac_delim
45198 psdir!$psdir$ac_delim
45199 libdir!$libdir$ac_delim
45200 localedir!$localedir$ac_delim
45201 mandir!$mandir$ac_delim
45202 DEFS!$DEFS$ac_delim
45203 ECHO_C!$ECHO_C$ac_delim
45204 ECHO_N!$ECHO_N$ac_delim
45205 ECHO_T!$ECHO_T$ac_delim
45206 LIBS!$LIBS$ac_delim
45207 build_alias!$build_alias$ac_delim
45208 host_alias!$host_alias$ac_delim
45209 target_alias!$target_alias$ac_delim
45210 BUILD_DIR!$BUILD_DIR$ac_delim
45211 TOP_DIR!$TOP_DIR$ac_delim
45212 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45213 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45214 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45215 TRUEPRG!$TRUEPRG$ac_delim
45216 FALSEPRG!$FALSEPRG$ac_delim
45217 VERSION!$VERSION$ac_delim
45218 DATE!$DATE$ac_delim
45219 LSMDATE!$LSMDATE$ac_delim
45220 BACULA!$BACULA$ac_delim
45221 post_host!$post_host$ac_delim
45223 CFLAGS!$CFLAGS$ac_delim
45224 LDFLAGS!$LDFLAGS$ac_delim
45225 CPPFLAGS!$CPPFLAGS$ac_delim
45226 ac_ct_CC!$ac_ct_CC$ac_delim
45227 EXEEXT!$EXEEXT$ac_delim
45228 OBJEXT!$OBJEXT$ac_delim
45230 CXXFLAGS!$CXXFLAGS$ac_delim
45231 ac_ct_CXX!$ac_ct_CXX$ac_delim
45233 GREP!$GREP$ac_delim
45234 EGREP!$EGREP$ac_delim
45235 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45236 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45237 INSTALL_DATA!$INSTALL_DATA$ac_delim
45239 REMOVE!$REMOVE$ac_delim
45242 ECHO!$ECHO$ac_delim
45246 OPENSSL!$OPENSSL$ac_delim
45249 MKISOFS!$MKISOFS$ac_delim
45250 PYTHON!$PYTHON$ac_delim
45251 GROWISOFS!$GROWISOFS$ac_delim
45252 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45253 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45254 PKGCONFIG!$PKGCONFIG$ac_delim
45255 QMAKE!$QMAKE$ac_delim
45256 GMAKE!$GMAKE$ac_delim
45257 WXCONFIG!$WXCONFIG$ac_delim
45258 WXFLAGS!$WXFLAGS$ac_delim
45259 CDRECORD!$CDRECORD$ac_delim
45260 PIDOF!$PIDOF$ac_delim
45262 ARFLAGS!$ARFLAGS$ac_delim
45263 MAKE_SHELL!$MAKE_SHELL$ac_delim
45264 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45265 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45266 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45269 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45271 elif $ac_last_try; then
45272 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45273 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45274 { (exit 1); exit 1; }; }
45276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45280 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45281 if test -n "$ac_eof"; then
45282 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45283 ac_eof=`expr $ac_eof + 1`
45286 cat >>$CONFIG_STATUS <<_ACEOF
45287 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45289 /^[ ]*@MCOMMON@[ ]*$/{
45295 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45296 s/^/s,@/; s/!/@,|#_!!_#|/
45299 s/'"$ac_delim"'$/,g/; t
45301 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45302 ' >>$CONFIG_STATUS <conf$$subs.sed
45303 rm -f conf$$subs.sed
45304 cat >>$CONFIG_STATUS <<_ACEOF
45310 for ac_last_try in false false false false false :; do
45311 cat >conf$$subs.sed <<_ACEOF
45312 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45313 LIBTOOL!$LIBTOOL$ac_delim
45314 build!$build$ac_delim
45315 build_cpu!$build_cpu$ac_delim
45316 build_vendor!$build_vendor$ac_delim
45317 build_os!$build_os$ac_delim
45318 host!$host$ac_delim
45319 host_cpu!$host_cpu$ac_delim
45320 host_vendor!$host_vendor$ac_delim
45321 host_os!$host_os$ac_delim
45322 FGREP!$FGREP$ac_delim
45324 DUMPBIN!$DUMPBIN$ac_delim
45325 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45327 LN_S!$LN_S$ac_delim
45328 OBJDUMP!$OBJDUMP$ac_delim
45329 STRIP!$STRIP$ac_delim
45330 RANLIB!$RANLIB$ac_delim
45331 lt_ECHO!$lt_ECHO$ac_delim
45332 DSYMUTIL!$DSYMUTIL$ac_delim
45333 NMEDIT!$NMEDIT$ac_delim
45334 LIPO!$LIPO$ac_delim
45335 OTOOL!$OTOOL$ac_delim
45336 OTOOL64!$OTOOL64$ac_delim
45337 CXXCPP!$CXXCPP$ac_delim
45338 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45339 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45340 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45341 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45342 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45343 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45344 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45345 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45346 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45347 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45348 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45349 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45350 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45351 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45352 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45353 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45354 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45355 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45356 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45357 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45358 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45359 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45360 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45361 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45362 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45363 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45364 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45365 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45366 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45367 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45368 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45369 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45370 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45371 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45372 SET_MAKE!$SET_MAKE$ac_delim
45373 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45374 USE_NLS!$USE_NLS$ac_delim
45375 MSGFMT!$MSGFMT$ac_delim
45376 GMSGFMT!$GMSGFMT$ac_delim
45377 XGETTEXT!$XGETTEXT$ac_delim
45378 MSGMERGE!$MSGMERGE$ac_delim
45379 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45380 LIBICONV!$LIBICONV$ac_delim
45381 LTLIBICONV!$LTLIBICONV$ac_delim
45382 INTLLIBS!$INTLLIBS$ac_delim
45383 LIBINTL!$LIBINTL$ac_delim
45384 LTLIBINTL!$LTLIBINTL$ac_delim
45385 POSUB!$POSUB$ac_delim
45386 GLIBC2!$GLIBC2$ac_delim
45387 ALLOCA!$ALLOCA$ac_delim
45388 GLIBC21!$GLIBC21$ac_delim
45389 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45390 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45391 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45392 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45393 INTLBISON!$INTLBISON$ac_delim
45394 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45395 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45396 CATOBJEXT!$CATOBJEXT$ac_delim
45397 DATADIRNAME!$DATADIRNAME$ac_delim
45398 INSTOBJEXT!$INSTOBJEXT$ac_delim
45399 GENCAT!$GENCAT$ac_delim
45400 INTLOBJS!$INTLOBJS$ac_delim
45401 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45402 BAT_DIR!$BAT_DIR$ac_delim
45403 QWT_INC!$QWT_INC$ac_delim
45404 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45405 QWT_LIB!$QWT_LIB$ac_delim
45407 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45408 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45411 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45413 elif $ac_last_try; then
45414 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45416 { (exit 1); exit 1; }; }
45418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45423 if test -n "$ac_eof"; then
45424 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45425 ac_eof=`expr $ac_eof + 1`
45428 cat >>$CONFIG_STATUS <<_ACEOF
45429 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45434 s/^/s,@/; s/!/@,|#_!!_#|/
45437 s/'"$ac_delim"'$/,g/; t
45439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45440 ' >>$CONFIG_STATUS <conf$$subs.sed
45441 rm -f conf$$subs.sed
45442 cat >>$CONFIG_STATUS <<_ACEOF
45448 for ac_last_try in false false false false false :; do
45449 cat >conf$$subs.sed <<_ACEOF
45450 WX_DIR!$WX_DIR$ac_delim
45451 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45452 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45453 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45454 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45455 STATIC_FD!$STATIC_FD$ac_delim
45456 STATIC_SD!$STATIC_SD$ac_delim
45457 STATIC_DIR!$STATIC_DIR$ac_delim
45458 STATIC_CONS!$STATIC_CONS$ac_delim
45459 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45460 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45461 ALL_DIRS!$ALL_DIRS$ac_delim
45462 DIRD_DIR!$DIRD_DIR$ac_delim
45463 DIR_TOOLS!$DIR_TOOLS$ac_delim
45464 STORED_DIR!$STORED_DIR$ac_delim
45465 CONS_INC!$CONS_INC$ac_delim
45466 CONS_OBJ!$CONS_OBJ$ac_delim
45467 CONS_SRC!$CONS_SRC$ac_delim
45468 CONS_LIBS!$CONS_LIBS$ac_delim
45469 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45470 READLINE_SRC!$READLINE_SRC$ac_delim
45471 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45472 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45473 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45474 OPENSSL_INC!$OPENSSL_INC$ac_delim
45475 working_dir!$working_dir$ac_delim
45476 archivedir!$archivedir$ac_delim
45477 basename!$basename$ac_delim
45478 hostname!$hostname$ac_delim
45479 scriptdir!$scriptdir$ac_delim
45480 bsrdir!$bsrdir$ac_delim
45481 logdir!$logdir$ac_delim
45482 plugindir!$plugindir$ac_delim
45483 dump_email!$dump_email$ac_delim
45484 job_email!$job_email$ac_delim
45485 smtp_host!$smtp_host$ac_delim
45486 piddir!$piddir$ac_delim
45487 subsysdir!$subsysdir$ac_delim
45488 baseport!$baseport$ac_delim
45489 dir_port!$dir_port$ac_delim
45490 fd_port!$fd_port$ac_delim
45491 sd_port!$sd_port$ac_delim
45492 dir_password!$dir_password$ac_delim
45493 fd_password!$fd_password$ac_delim
45494 sd_password!$sd_password$ac_delim
45495 mon_dir_password!$mon_dir_password$ac_delim
45496 mon_fd_password!$mon_fd_password$ac_delim
45497 mon_sd_password!$mon_sd_password$ac_delim
45498 db_name!$db_name$ac_delim
45499 db_user!$db_user$ac_delim
45500 db_password!$db_password$ac_delim
45501 db_port!$db_port$ac_delim
45502 dir_user!$dir_user$ac_delim
45503 dir_group!$dir_group$ac_delim
45504 sd_user!$sd_user$ac_delim
45505 sd_group!$sd_group$ac_delim
45506 fd_user!$fd_user$ac_delim
45507 fd_group!$fd_group$ac_delim
45508 SBINPERM!$SBINPERM$ac_delim
45509 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45510 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45511 SQL_BINDIR!$SQL_BINDIR$ac_delim
45512 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45513 uncomment_dbi!$uncomment_dbi$ac_delim
45514 DB_PROG!$DB_PROG$ac_delim
45515 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45516 cats!$cats$ac_delim
45517 DB_TYPE!$DB_TYPE$ac_delim
45518 GETCONF!$GETCONF$ac_delim
45519 XMKMF!$XMKMF$ac_delim
45520 X_CFLAGS!$X_CFLAGS$ac_delim
45521 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45522 X_LIBS!$X_LIBS$ac_delim
45523 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45524 LIBOBJS!$LIBOBJS$ac_delim
45525 CAP_LIBS!$CAP_LIBS$ac_delim
45526 FDLIBS!$FDLIBS$ac_delim
45527 DEBUG!$DEBUG$ac_delim
45528 DINCLUDE!$DINCLUDE$ac_delim
45529 DLIB!$DLIB$ac_delim
45530 DB_LIBS!$DB_LIBS$ac_delim
45531 WCFLAGS!$WCFLAGS$ac_delim
45532 WLDFLAGS!$WLDFLAGS$ac_delim
45533 WRAPLIBS!$WRAPLIBS$ac_delim
45534 OBJLIST!$OBJLIST$ac_delim
45535 TAPEDRIVE!$TAPEDRIVE$ac_delim
45536 PSCMD!$PSCMD$ac_delim
45537 WIN32!$WIN32$ac_delim
45538 MACOSX!$MACOSX$ac_delim
45539 DISTNAME!$DISTNAME$ac_delim
45540 DISTVER!$DISTVER$ac_delim
45541 LTLIBOBJS!$LTLIBOBJS$ac_delim
45544 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45546 elif $ac_last_try; then
45547 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45548 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45549 { (exit 1); exit 1; }; }
45551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45555 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45556 if test -n "$ac_eof"; then
45557 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45558 ac_eof=`expr $ac_eof + 1`
45561 cat >>$CONFIG_STATUS <<_ACEOF
45562 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45566 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45567 s/^/s,@/; s/!/@,|#_!!_#|/
45570 s/'"$ac_delim"'$/,g/; t
45572 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45573 ' >>$CONFIG_STATUS <conf$$subs.sed
45574 rm -f conf$$subs.sed
45575 cat >>$CONFIG_STATUS <<_ACEOF
45582 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45583 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45584 # trailing colons and then remove the whole line if VPATH becomes empty
45585 # (actually we leave an empty line to preserve line numbers).
45586 if test "x$srcdir" = x.; then
45587 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45588 s/:*\$(srcdir):*/:/
45589 s/:*\${srcdir}:*/:/
45591 s/^\([^=]*=[ ]*\):*/\1/
45597 cat >>$CONFIG_STATUS <<\_ACEOF
45598 fi # test -n "$CONFIG_FILES"
45601 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45604 :[FHLC]) ac_mode=$ac_tag; continue;;
45606 case $ac_mode$ac_tag in
45608 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45609 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45610 { (exit 1); exit 1; }; };;
45611 :[FH]-) ac_tag=-:-;;
45612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45629 -) ac_f="$tmp/stdin";;
45630 *) # Look for the file first in the build tree, then in the source tree
45631 # (if the path is not absolute). The absolute path cannot be DOS-style,
45632 # because $ac_f cannot contain `:'.
45636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45638 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45639 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45640 { (exit 1); exit 1; }; };;
45642 ac_file_inputs="$ac_file_inputs $ac_f"
45645 # Let's still pretend it is `configure' which instantiates (i.e., don't
45646 # use $as_me), people would be surprised to read:
45647 # /* config.h. Generated by config.status. */
45648 configure_input="Generated from "`IFS=:
45649 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45650 if test x"$ac_file" != x-; then
45651 configure_input="$ac_file. $configure_input"
45652 { echo "$as_me:$LINENO: creating $ac_file" >&5
45653 echo "$as_me: creating $ac_file" >&6;}
45657 *:-:* | *:-) cat >"$tmp/stdin";;
45662 ac_dir=`$as_dirname -- "$ac_file" ||
45663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45664 X"$ac_file" : 'X\(//\)[^/]' \| \
45665 X"$ac_file" : 'X\(//\)$' \| \
45666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45672 /^X\(\/\/\)[^/].*/{
45687 -*) as_dir=./$as_dir;;
45689 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45693 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45694 *) as_qdir=$as_dir;;
45696 as_dirs="'$as_qdir' $as_dirs"
45697 as_dir=`$as_dirname -- "$as_dir" ||
45698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45699 X"$as_dir" : 'X\(//\)[^/]' \| \
45700 X"$as_dir" : 'X\(//\)$' \| \
45701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45707 /^X\(\/\/\)[^/].*/{
45720 test -d "$as_dir" && break
45722 test -z "$as_dirs" || eval "mkdir $as_dirs"
45723 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45724 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45725 { (exit 1); exit 1; }; }; }
45729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45731 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45732 # A ".." for each directory in $ac_dir_suffix.
45733 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45734 case $ac_top_builddir_sub in
45735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45739 ac_abs_top_builddir=$ac_pwd
45740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45741 # for backward compatibility:
45742 ac_top_builddir=$ac_top_build_prefix
45745 .) # We are building in place.
45747 ac_top_srcdir=$ac_top_builddir_sub
45748 ac_abs_top_srcdir=$ac_pwd ;;
45749 [\\/]* | ?:[\\/]* ) # Absolute name.
45750 ac_srcdir=$srcdir$ac_dir_suffix;
45751 ac_top_srcdir=$srcdir
45752 ac_abs_top_srcdir=$srcdir ;;
45753 *) # Relative name.
45754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45755 ac_top_srcdir=$ac_top_build_prefix$srcdir
45756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45773 cat >>$CONFIG_STATUS <<\_ACEOF
45774 # If the template does not know about datarootdir, expand it.
45775 # FIXME: This hack should be removed a few years after 2.60.
45776 ac_datarootdir_hack=; ac_datarootdir_seen=
45778 case `sed -n '/datarootdir/ {
45787 ' $ac_file_inputs` in
45788 *datarootdir*) ac_datarootdir_seen=yes;;
45789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45790 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45791 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45793 cat >>$CONFIG_STATUS <<_ACEOF
45794 ac_datarootdir_hack='
45795 s&@datadir@&$datadir&g
45796 s&@docdir@&$docdir&g
45797 s&@infodir@&$infodir&g
45798 s&@localedir@&$localedir&g
45799 s&@mandir@&$mandir&g
45800 s&\\\${datarootdir}&$datarootdir&g' ;;
45804 # Neutralize VPATH when `$srcdir' = `.'.
45805 # Shell code in configure.ac might set extrasub.
45806 # FIXME: do we really want to maintain this feature?
45807 cat >>$CONFIG_STATUS <<_ACEOF
45811 cat >>$CONFIG_STATUS <<\_ACEOF
45813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45814 s&@configure_input@&$configure_input&;t t
45815 s&@top_builddir@&$ac_top_builddir_sub&;t t
45816 s&@srcdir@&$ac_srcdir&;t t
45817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45818 s&@top_srcdir@&$ac_top_srcdir&;t t
45819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45820 s&@builddir@&$ac_builddir&;t t
45821 s&@abs_builddir@&$ac_abs_builddir&;t t
45822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45823 s&@INSTALL@&$ac_INSTALL&;t t
45824 $ac_datarootdir_hack
45825 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45828 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45830 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45831 which seems to be undefined. Please make sure it is defined." >&5
45832 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45833 which seems to be undefined. Please make sure it is defined." >&2;}
45837 -) cat "$tmp/out"; rm -f "$tmp/out";;
45838 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45847 # Transform confdefs.h into a sed script `conftest.defines', that
45848 # substitutes the proper values into config.h.in to produce config.h.
45849 rm -f conftest.defines conftest.tail
45850 # First, append a space to every undef/define line, to ease matching.
45851 echo 's/$/ /' >conftest.defines
45852 # Then, protect against being on the right side of a sed subst, or in
45853 # an unquoted here document, in config.status. If some macros were
45854 # called several times there might be several #defines for the same
45855 # symbol, which is useless. But do not sort them, since the last
45856 # AC_DEFINE must be honored.
45857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45858 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45859 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45860 # PARAMS is the parameter list in the macro definition--in most cases, it's
45861 # just an empty string.
45862 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45863 ac_dB='\\)[ (].*,\\1define\\2'
45871 s/^[ ]*#[ ]*define[ ][ ]*//
45876 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45877 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45878 ' >>conftest.defines
45880 # Remove the space that was appended to ease matching.
45881 # Then replace #undef with comments. This is necessary, for
45882 # example, in the case of _POSIX_SOURCE, which is predefined and required
45883 # on some systems where configure will not decide to define it.
45884 # (The regexp can be short, since the line contains either #define or #undef.)
45886 s,^[ #]*u.*,/* & */,' >>conftest.defines
45888 # Break up conftest.defines:
45889 ac_max_sed_lines=50
45891 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45892 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45893 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45895 ac_in='$ac_file_inputs'
45896 ac_out='"$tmp/out1"'
45897 ac_nxt='"$tmp/out2"'
45901 # Write a here document:
45902 cat >>$CONFIG_STATUS <<_ACEOF
45903 # First, check the format of the line:
45904 cat >"\$tmp/defines.sed" <<\\CEOF
45905 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45906 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45910 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45912 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45913 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45914 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45915 grep . conftest.tail >/dev/null || break
45916 rm -f conftest.defines
45917 mv conftest.tail conftest.defines
45919 rm -f conftest.defines conftest.tail
45921 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45922 cat >>$CONFIG_STATUS <<\_ACEOF
45923 if test x"$ac_file" != x-; then
45924 echo "/* $configure_input */" >"$tmp/config.h"
45925 cat "$ac_result" >>"$tmp/config.h"
45926 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45927 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45928 echo "$as_me: $ac_file is unchanged" >&6;}
45931 mv "$tmp/config.h" $ac_file
45934 echo "/* $configure_input */"
45940 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45941 echo "$as_me: executing $ac_file commands" >&6;}
45946 case $ac_file$ac_mode in
45949 # See if we are running on zsh, and set the options which allow our
45950 # commands through without removal of \ escapes.
45951 if test -n "${ZSH_VERSION+set}" ; then
45952 setopt NO_GLOB_SUBST
45955 cfgfile="${ofile}T"
45956 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45959 cat <<_LT_EOF >> "$cfgfile"
45962 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45963 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45965 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45967 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45968 # 2006, 2007, 2008 Free Software Foundation, Inc.
45969 # Written by Gordon Matzigkeit, 1996
45971 # This file is part of GNU Libtool.
45973 # GNU Libtool is free software; you can redistribute it and/or
45974 # modify it under the terms of the GNU General Public License as
45975 # published by the Free Software Foundation; either version 2 of
45976 # the License, or (at your option) any later version.
45978 # As a special exception to the GNU General Public License,
45979 # if you distribute this file as part of a program or library that
45980 # is built using GNU Libtool, you may include this file under the
45981 # same distribution terms that you use for the rest of that program.
45983 # GNU Libtool is distributed in the hope that it will be useful,
45984 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45986 # GNU General Public License for more details.
45988 # You should have received a copy of the GNU General Public License
45989 # along with GNU Libtool; see the file COPYING. If not, a copy
45990 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45991 # obtained by writing to the Free Software Foundation, Inc.,
45992 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45995 # The names of the tagged configurations supported by this script.
45996 available_tags="CXX "
45998 # ### BEGIN LIBTOOL CONFIG
46000 # Which release of libtool.m4 was used?
46001 macro_version=$macro_version
46002 macro_revision=$macro_revision
46004 # Whether or not to build shared libraries.
46005 build_libtool_libs=$enable_shared
46007 # Whether or not to build static libraries.
46008 build_old_libs=$enable_static
46010 # What type of objects to build.
46013 # Whether or not to optimize for fast installation.
46014 fast_install=$enable_fast_install
46017 host_alias=$host_alias
46021 # The build system.
46022 build_alias=$build_alias
46026 # A sed program that does not truncate output.
46029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46030 Xsed="\$SED -e 1s/^X//"
46032 # A grep program that handles long lines.
46038 # A literal string matcher.
46041 # A BSD- or MS-compatible name lister.
46044 # Whether we need soft or hard links.
46047 # What is the maximum length of a command?
46048 max_cmd_len=$max_cmd_len
46050 # Object file suffix (normally "o").
46053 # Executable file suffix (normally "").
46056 # whether the shell understands "unset".
46059 # turn spaces into newlines.
46062 # turn newlines into spaces.
46065 # How to create reloadable object files.
46066 reload_flag=$lt_reload_flag
46067 reload_cmds=$lt_reload_cmds
46069 # An object symbol dumper.
46070 OBJDUMP=$lt_OBJDUMP
46072 # Method to check whether dependent libraries are shared objects.
46073 deplibs_check_method=$lt_deplibs_check_method
46075 # Command to use when deplibs_check_method == "file_magic".
46076 file_magic_cmd=$lt_file_magic_cmd
46080 AR_FLAGS=$lt_AR_FLAGS
46082 # A symbol stripping program.
46085 # Commands used to install an old-style archive.
46087 old_postinstall_cmds=$lt_old_postinstall_cmds
46088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46093 # LTCC compiler flags.
46094 LTCFLAGS=$lt_CFLAGS
46096 # Take the output of nm and produce a listing of raw symbols and C names.
46097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46099 # Transform the output of nm in a proper C declaration.
46100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46102 # Transform the output of nm in a C name address pair.
46103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46105 # Transform the output of nm in a C name address pair when lib prefix is needed.
46106 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46108 # The name of the directory that contains temporary libtool files.
46111 # Shell to use when invoking shell scripts.
46114 # An echo program that does not interpret backslashes.
46117 # Used to examine libraries when file_magic_cmd begins with "file".
46118 MAGIC_CMD=$MAGIC_CMD
46120 # Must we lock files when doing compilation?
46121 need_locks=$lt_need_locks
46123 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46124 DSYMUTIL=$lt_DSYMUTIL
46126 # Tool to change global to local symbols on Mac OS X.
46129 # Tool to manipulate fat objects and archives on Mac OS X.
46132 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46135 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46136 OTOOL64=$lt_OTOOL64
46138 # Old archive suffix (normally "a").
46141 # Shared library suffix (normally ".so").
46142 shrext_cmds=$lt_shrext_cmds
46144 # The commands to extract the exported symbol list from a shared archive.
46145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46147 # Variables whose values should be saved in libtool wrapper scripts and
46148 # restored at link time.
46149 variables_saved_for_relink=$lt_variables_saved_for_relink
46151 # Do we need the "lib" prefix for modules?
46152 need_lib_prefix=$need_lib_prefix
46154 # Do we need a version for libraries?
46155 need_version=$need_version
46157 # Library versioning type.
46158 version_type=$version_type
46160 # Shared library runtime path variable.
46161 runpath_var=$runpath_var
46163 # Shared library path variable.
46164 shlibpath_var=$shlibpath_var
46166 # Is shlibpath searched before the hard-coded library search path?
46167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46169 # Format of library name prefix.
46170 libname_spec=$lt_libname_spec
46172 # List of archive names. First name is the real one, the rest are links.
46173 # The last name is the one that the linker finds with -lNAME
46174 library_names_spec=$lt_library_names_spec
46176 # The coded name of the library, if different from the real name.
46177 soname_spec=$lt_soname_spec
46179 # Command to use after installation of a shared archive.
46180 postinstall_cmds=$lt_postinstall_cmds
46182 # Command to use after uninstallation of a shared archive.
46183 postuninstall_cmds=$lt_postuninstall_cmds
46185 # Commands used to finish a libtool library installation in a directory.
46186 finish_cmds=$lt_finish_cmds
46188 # As "finish_cmds", except a single script fragment to be evaled but
46190 finish_eval=$lt_finish_eval
46192 # Whether we should hardcode library paths into libraries.
46193 hardcode_into_libs=$hardcode_into_libs
46195 # Compile-time system search path for libraries.
46196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46198 # Run-time system search path for libraries.
46199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46201 # Whether dlopen is supported.
46202 dlopen_support=$enable_dlopen
46204 # Whether dlopen of programs is supported.
46205 dlopen_self=$enable_dlopen_self
46207 # Whether dlopen of statically linked programs is supported.
46208 dlopen_self_static=$enable_dlopen_self_static
46210 # Commands to strip libraries.
46211 old_striplib=$lt_old_striplib
46212 striplib=$lt_striplib
46215 # The linker used to build libraries.
46218 # Commands used to build an old-style archive.
46219 old_archive_cmds=$lt_old_archive_cmds
46221 # A language specific compiler.
46224 # Is the compiler the GNU compiler?
46227 # Compiler flag to turn off builtin functions.
46228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46230 # How to pass a linker flag through the compiler.
46231 wl=$lt_lt_prog_compiler_wl
46233 # Additional compiler flags for building library objects.
46234 pic_flag=$lt_lt_prog_compiler_pic
46236 # Compiler flag to prevent dynamic linking.
46237 link_static_flag=$lt_lt_prog_compiler_static
46239 # Does compiler simultaneously support -c and -o options?
46240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46242 # Whether or not to add -lc for building shared libraries.
46243 build_libtool_need_lc=$archive_cmds_need_lc
46245 # Whether or not to disallow shared libs when runtime libs are static.
46246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46248 # Compiler flag to allow reflexive dlopens.
46249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46251 # Compiler flag to generate shared objects directly from archives.
46252 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46254 # Whether the compiler copes with passing no objects directly.
46255 compiler_needs_object=$lt_compiler_needs_object
46257 # Create an old-style archive from a shared archive.
46258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46260 # Create a temporary old-style archive to link instead of a shared archive.
46261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46263 # Commands used to build a shared archive.
46264 archive_cmds=$lt_archive_cmds
46265 archive_expsym_cmds=$lt_archive_expsym_cmds
46267 # Commands used to build a loadable module if different from building
46268 # a shared archive.
46269 module_cmds=$lt_module_cmds
46270 module_expsym_cmds=$lt_module_expsym_cmds
46272 # Whether we are building with GNU ld or not.
46273 with_gnu_ld=$lt_with_gnu_ld
46275 # Flag that allows shared libraries with undefined symbols to be built.
46276 allow_undefined_flag=$lt_allow_undefined_flag
46278 # Flag that enforces no undefined symbols.
46279 no_undefined_flag=$lt_no_undefined_flag
46281 # Flag to hardcode \$libdir into a binary during linking.
46282 # This must work even if \$libdir does not exist
46283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46285 # If ld is used when linking, flag to hardcode \$libdir into a binary
46286 # during linking. This must work even if \$libdir does not exist.
46287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46289 # Whether we need a single "-rpath" flag with a separated argument.
46290 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46293 # DIR into the resulting binary.
46294 hardcode_direct=$hardcode_direct
46296 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46297 # DIR into the resulting binary and the resulting library dependency is
46298 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46299 # library is relocated.
46300 hardcode_direct_absolute=$hardcode_direct_absolute
46302 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46303 # into the resulting binary.
46304 hardcode_minus_L=$hardcode_minus_L
46306 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46307 # into the resulting binary.
46308 hardcode_shlibpath_var=$hardcode_shlibpath_var
46310 # Set to "yes" if building a shared library automatically hardcodes DIR
46311 # into the library and all subsequent libraries and executables linked
46313 hardcode_automatic=$hardcode_automatic
46315 # Set to yes if linker adds runtime paths of dependent libraries
46316 # to runtime path list.
46317 inherit_rpath=$inherit_rpath
46319 # Whether libtool must link a program against all its dependency libraries.
46320 link_all_deplibs=$link_all_deplibs
46322 # Fix the shell variable \$srcfile for the compiler.
46323 fix_srcfile_path=$lt_fix_srcfile_path
46325 # Set to "yes" if exported symbols are required.
46326 always_export_symbols=$always_export_symbols
46328 # The commands to list exported symbols.
46329 export_symbols_cmds=$lt_export_symbols_cmds
46331 # Symbols that should not be listed in the preloaded symbols.
46332 exclude_expsyms=$lt_exclude_expsyms
46334 # Symbols that must always be exported.
46335 include_expsyms=$lt_include_expsyms
46337 # Commands necessary for linking programs (against libraries) with templates.
46338 prelink_cmds=$lt_prelink_cmds
46340 # Specify filename containing input files.
46341 file_list_spec=$lt_file_list_spec
46343 # How to hardcode a shared library path into an executable.
46344 hardcode_action=$hardcode_action
46346 # The directories searched by this compiler when creating a shared library.
46347 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46349 # Dependencies to place before and after the objects being linked to
46350 # create a shared library.
46351 predep_objects=$lt_predep_objects
46352 postdep_objects=$lt_postdep_objects
46353 predeps=$lt_predeps
46354 postdeps=$lt_postdeps
46356 # The library search path used internally by the compiler when linking
46357 # a shared library.
46358 compiler_lib_search_path=$lt_compiler_lib_search_path
46360 # ### END LIBTOOL CONFIG
46366 cat <<\_LT_EOF >> "$cfgfile"
46367 # AIX sometimes has problems with the GCC collect2 program. For some
46368 # reason, if we set the COLLECT_NAMES environment variable, the problems
46369 # vanish in a puff of smoke.
46370 if test "X${COLLECT_NAMES+set}" != Xset; then
46372 export COLLECT_NAMES
46379 ltmain="$ac_aux_dir/ltmain.sh"
46382 # We use sed instead of cat because bash on DJGPP gets confused if
46383 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46384 # text mode, it properly converts lines to CR/LF. This bash problem
46385 # is reportedly fixed, but why not run on old versions too?
46386 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46387 || (rm -f "$cfgfile"; exit 1)
46391 cat << \_LT_EOF >> "$cfgfile"
46393 # func_dirname file append nondir_replacement
46394 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46395 # otherwise set result to NONDIR_REPLACEMENT.
46399 */*) func_dirname_result="${1%/*}${2}" ;;
46400 * ) func_dirname_result="${3}" ;;
46404 # func_basename file
46407 func_basename_result="${1##*/}"
46410 # func_dirname_and_basename file append nondir_replacement
46411 # perform func_basename and func_dirname in a single function
46413 # dirname: Compute the dirname of FILE. If nonempty,
46414 # add APPEND to the result, otherwise set result
46415 # to NONDIR_REPLACEMENT.
46416 # value returned in "$func_dirname_result"
46417 # basename: Compute filename of FILE.
46418 # value retuned in "$func_basename_result"
46419 # Implementation must be kept synchronized with func_dirname
46420 # and func_basename. For efficiency, we do not delegate to
46421 # those functions but instead duplicate the functionality here.
46422 func_dirname_and_basename ()
46425 */*) func_dirname_result="${1%/*}${2}" ;;
46426 * ) func_dirname_result="${3}" ;;
46428 func_basename_result="${1##*/}"
46431 # func_stripname prefix suffix name
46432 # strip PREFIX and SUFFIX off of NAME.
46433 # PREFIX and SUFFIX must not contain globbing or regex special
46434 # characters, hashes, percent signs, but SUFFIX may contain a leading
46435 # dot (in which case that matches only a dot).
46438 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46439 # positional parameters, so assign one to ordinary parameter first.
46440 func_stripname_result=${3}
46441 func_stripname_result=${func_stripname_result#"${1}"}
46442 func_stripname_result=${func_stripname_result%"${2}"}
46448 func_opt_split_opt=${1%%=*}
46449 func_opt_split_arg=${1#*=}
46456 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46457 *) func_lo2o_result=${1} ;;
46461 # func_xform libobj-or-source
46464 func_xform_result=${1%.*}.lo
46467 # func_arith arithmetic-term...
46470 func_arith_result=$(( $* ))
46474 # STRING may not start with a hyphen.
46477 func_len_result=${#1}
46482 *) # Bourne compatible functions.
46483 cat << \_LT_EOF >> "$cfgfile"
46485 # func_dirname file append nondir_replacement
46486 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46487 # otherwise set result to NONDIR_REPLACEMENT.
46490 # Extract subdirectory from the argument.
46491 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46492 if test "X$func_dirname_result" = "X${1}"; then
46493 func_dirname_result="${3}"
46495 func_dirname_result="$func_dirname_result${2}"
46499 # func_basename file
46502 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46506 # func_stripname prefix suffix name
46507 # strip PREFIX and SUFFIX off of NAME.
46508 # PREFIX and SUFFIX must not contain globbing or regex special
46509 # characters, hashes, percent signs, but SUFFIX may contain a leading
46510 # dot (in which case that matches only a dot).
46511 # func_strip_suffix prefix name
46515 .*) func_stripname_result=`$ECHO "X${3}" \
46516 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46517 *) func_stripname_result=`$ECHO "X${3}" \
46518 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46523 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46524 my_sed_long_arg='1s/^-[^=]*=//'
46529 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46530 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46536 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46539 # func_xform libobj-or-source
46542 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46545 # func_arith arithmetic-term...
46548 func_arith_result=`expr "$@"`
46552 # STRING may not start with a hyphen.
46555 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46561 case $lt_shell_append in
46563 cat << \_LT_EOF >> "$cfgfile"
46565 # func_append var value
46566 # Append VALUE to the end of shell variable VAR.
46574 cat << \_LT_EOF >> "$cfgfile"
46576 # func_append var value
46577 # Append VALUE to the end of shell variable VAR.
46588 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46589 || (rm -f "$cfgfile"; exit 1)
46591 mv -f "$cfgfile" "$ofile" ||
46592 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46596 cat <<_LT_EOF >> "$ofile"
46598 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46600 # The linker used to build libraries.
46603 # Commands used to build an old-style archive.
46604 old_archive_cmds=$lt_old_archive_cmds_CXX
46606 # A language specific compiler.
46607 CC=$lt_compiler_CXX
46609 # Is the compiler the GNU compiler?
46612 # Compiler flag to turn off builtin functions.
46613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46615 # How to pass a linker flag through the compiler.
46616 wl=$lt_lt_prog_compiler_wl_CXX
46618 # Additional compiler flags for building library objects.
46619 pic_flag=$lt_lt_prog_compiler_pic_CXX
46621 # Compiler flag to prevent dynamic linking.
46622 link_static_flag=$lt_lt_prog_compiler_static_CXX
46624 # Does compiler simultaneously support -c and -o options?
46625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46627 # Whether or not to add -lc for building shared libraries.
46628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46630 # Whether or not to disallow shared libs when runtime libs are static.
46631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46633 # Compiler flag to allow reflexive dlopens.
46634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46636 # Compiler flag to generate shared objects directly from archives.
46637 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46639 # Whether the compiler copes with passing no objects directly.
46640 compiler_needs_object=$lt_compiler_needs_object_CXX
46642 # Create an old-style archive from a shared archive.
46643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46645 # Create a temporary old-style archive to link instead of a shared archive.
46646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46648 # Commands used to build a shared archive.
46649 archive_cmds=$lt_archive_cmds_CXX
46650 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46652 # Commands used to build a loadable module if different from building
46653 # a shared archive.
46654 module_cmds=$lt_module_cmds_CXX
46655 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46657 # Whether we are building with GNU ld or not.
46658 with_gnu_ld=$lt_with_gnu_ld_CXX
46660 # Flag that allows shared libraries with undefined symbols to be built.
46661 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46663 # Flag that enforces no undefined symbols.
46664 no_undefined_flag=$lt_no_undefined_flag_CXX
46666 # Flag to hardcode \$libdir into a binary during linking.
46667 # This must work even if \$libdir does not exist
46668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46670 # If ld is used when linking, flag to hardcode \$libdir into a binary
46671 # during linking. This must work even if \$libdir does not exist.
46672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46674 # Whether we need a single "-rpath" flag with a separated argument.
46675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46678 # DIR into the resulting binary.
46679 hardcode_direct=$hardcode_direct_CXX
46681 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46682 # DIR into the resulting binary and the resulting library dependency is
46683 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46684 # library is relocated.
46685 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46687 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46688 # into the resulting binary.
46689 hardcode_minus_L=$hardcode_minus_L_CXX
46691 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46692 # into the resulting binary.
46693 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46695 # Set to "yes" if building a shared library automatically hardcodes DIR
46696 # into the library and all subsequent libraries and executables linked
46698 hardcode_automatic=$hardcode_automatic_CXX
46700 # Set to yes if linker adds runtime paths of dependent libraries
46701 # to runtime path list.
46702 inherit_rpath=$inherit_rpath_CXX
46704 # Whether libtool must link a program against all its dependency libraries.
46705 link_all_deplibs=$link_all_deplibs_CXX
46707 # Fix the shell variable \$srcfile for the compiler.
46708 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46710 # Set to "yes" if exported symbols are required.
46711 always_export_symbols=$always_export_symbols_CXX
46713 # The commands to list exported symbols.
46714 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46716 # Symbols that should not be listed in the preloaded symbols.
46717 exclude_expsyms=$lt_exclude_expsyms_CXX
46719 # Symbols that must always be exported.
46720 include_expsyms=$lt_include_expsyms_CXX
46722 # Commands necessary for linking programs (against libraries) with templates.
46723 prelink_cmds=$lt_prelink_cmds_CXX
46725 # Specify filename containing input files.
46726 file_list_spec=$lt_file_list_spec_CXX
46728 # How to hardcode a shared library path into an executable.
46729 hardcode_action=$hardcode_action_CXX
46731 # The directories searched by this compiler when creating a shared library.
46732 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46734 # Dependencies to place before and after the objects being linked to
46735 # create a shared library.
46736 predep_objects=$lt_predep_objects_CXX
46737 postdep_objects=$lt_postdep_objects_CXX
46738 predeps=$lt_predeps_CXX
46739 postdeps=$lt_postdeps_CXX
46741 # The library search path used internally by the compiler when linking
46742 # a shared library.
46743 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46745 # ### END LIBTOOL TAG CONFIG: CXX
46750 for ac_file in $CONFIG_FILES; do
46751 # Support "outfile[:infile[:infile...]]"
46753 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46755 # PO directories have a Makefile.in generated from Makefile.in.in.
46756 case "$ac_file" in */Makefile.in)
46757 # Adjust a relative srcdir.
46758 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46759 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46760 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46761 # In autoconf-2.13 it is called $ac_given_srcdir.
46762 # In autoconf-2.50 it is called $srcdir.
46763 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46764 case "$ac_given_srcdir" in
46765 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46766 /*) top_srcdir="$ac_given_srcdir" ;;
46767 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46769 # Treat a directory as a PO directory if and only if it has a
46770 # POTFILES.in file. This allows packages to have multiple PO
46771 # directories under different names or in different locations.
46772 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46773 rm -f "$ac_dir/POTFILES"
46774 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46775 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46776 POMAKEFILEDEPS="POTFILES.in"
46777 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46778 # on $ac_dir but don't depend on user-specified configuration
46780 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46781 # The LINGUAS file contains the set of available languages.
46782 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46783 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46785 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46786 # Hide the ALL_LINGUAS assigment from automake.
46787 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46788 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46790 # The set of available languages was given in configure.in.
46791 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46794 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46795 # Compute UPDATEPOFILES
46796 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46797 # Compute DUMMYPOFILES
46798 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46800 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46801 case "$ac_given_srcdir" in
46803 *) srcdirpre='$(srcdir)/' ;;
46809 for lang in $ALL_LINGUAS; do
46810 POFILES="$POFILES $srcdirpre$lang.po"
46811 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46812 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46813 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46815 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46816 # environment variable.
46818 if test -n "$ALL_LINGUAS"; then
46819 for presentlang in $ALL_LINGUAS; do
46821 if test "%UNSET%" != "$LINGUAS"; then
46822 desiredlanguages="$LINGUAS"
46824 desiredlanguages="$ALL_LINGUAS"
46826 for desiredlang in $desiredlanguages; do
46827 # Use the presentlang catalog if desiredlang is
46828 # a. equal to presentlang, or
46829 # b. a variant of presentlang (because in this case,
46830 # presentlang can be used as a fallback for messages
46831 # which are not translated in the desiredlang catalog).
46832 case "$desiredlang" in
46833 "$presentlang"*) useit=yes;;
46836 if test $useit = yes; then
46837 INST_LINGUAS="$INST_LINGUAS $presentlang"
46842 if test -n "$INST_LINGUAS"; then
46843 for lang in $INST_LINGUAS; do
46844 CATALOGS="$CATALOGS $lang.gmo"
46847 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46848 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
46849 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46850 if test -f "$f"; then
46852 *.orig | *.bak | *~) ;;
46853 *) cat "$f" >> "$ac_dir/Makefile" ;;
46868 { (exit 0); exit 0; }
46870 chmod +x $CONFIG_STATUS
46871 ac_clean_files=$ac_clean_files_save
46874 # configure is writing to config.log, and then calls config.status.
46875 # config.status does its own redirection, appending to config.log.
46876 # Unfortunately, on DOS this fails, as config.log is still kept open
46877 # by configure, so config.status won't be able to write to it; its
46878 # output is simply discarded. So we exec the FD to /dev/null,
46879 # effectively closing config.log, so it can be properly (re)opened and
46880 # appended to by config.status. When coming back to configure, we
46881 # need to make the FD available again.
46882 if test "$no_create" != yes; then
46884 ac_config_status_args=
46885 test "$silent" = yes &&
46886 ac_config_status_args="$ac_config_status_args --quiet"
46888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46891 # would make configure fail if this is the last instruction.
46892 $ac_cs_success || { (exit 1); exit 1; }
46896 if test "${support_bat}" = "yes" ; then
46897 if test "x$QMAKE" = "xnone"; then
46898 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
46899 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
46900 { (exit 1); exit 1; }; }
46905 echo "Creating bat Makefile"
46910 ${MAKE:-make} clean
46914 if test X"$GCC" = "Xyes" ; then
46915 echo "Doing make of dependencies"
46916 ${MAKE:-make} depend
46920 chmod 755 install_conf_file build-depkgs-qt-console
46924 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46925 chmod 755 dvd-handler dvd-simulator
46926 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46930 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46931 chmod 755 $c/update_postgresql_tables_10_to_11
46935 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46936 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46938 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46939 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46941 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46942 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46944 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46945 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46947 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46948 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46950 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
46951 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
46954 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
46955 chmod 755 $c/sqlite
46958 chmod 755 src/win32/build-depkgs-mingw32
46960 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46961 largefile_support="yes"
46964 if test X"$GCC" = "Xyes" ; then
46965 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46966 if test "x${CCVERSION}" = "x" ; then
46967 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46969 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46970 if test x"${CXXVERSION}" = x ; then
46971 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46975 # clean up any old junk
46979 ${MAKE:-make} clean
46981 if test "x${db_type}" = "xInternal" ; then
46984 echo "You have not specified either --enable-client-only or one of the"
46985 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
46986 echo " This is not permitted. Please reconfigure."
46988 echo "Aborting the configuration ..."
46995 Configuration on `date`:
46997 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46998 Bacula version: ${BACULA} ${VERSION} (${DATE})
46999 Source code location: ${srcdir}
47000 Install binaries: ${sbindir}
47001 Install libraries: ${libdir}
47002 Install config files: ${sysconfdir}
47003 Scripts directory: ${scriptdir}
47004 Archive directory: ${archivedir}
47005 Working directory: ${working_dir}
47006 PID directory: ${piddir}
47007 Subsys directory: ${subsysdir}
47008 Man directory: ${mandir}
47009 Data directory: ${datarootdir}
47010 Plugin directory: ${plugindir}
47011 C Compiler: ${CC} ${CCVERSION}
47012 C++ Compiler: ${CXX} ${CXXVERSION}
47013 Compiler flags: ${WCFLAGS} ${CFLAGS}
47014 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47016 Statically Linked Tools: ${support_static_tools}
47017 Statically Linked FD: ${support_static_fd}
47018 Statically Linked SD: ${support_static_sd}
47019 Statically Linked DIR: ${support_static_dir}
47020 Statically Linked CONS: ${support_static_cons}
47021 Database type: ${db_type}
47022 Database port: ${db_port}
47023 Database lib: ${DB_LIBS}
47024 Database name: ${db_name}
47025 Database user: ${db_user}
47027 Job Output Email: ${job_email}
47028 Traceback Email: ${dump_email}
47029 SMTP Host Address: ${smtp_host}
47031 Director Port: ${dir_port}
47032 File daemon Port: ${fd_port}
47033 Storage daemon Port: ${sd_port}
47035 Director User: ${dir_user}
47036 Director Group: ${dir_group}
47037 Storage Daemon User: ${sd_user}
47038 Storage DaemonGroup: ${sd_group}
47039 File Daemon User: ${fd_user}
47040 File Daemon Group: ${fd_group}
47042 SQL binaries Directory ${SQL_BINDIR}
47044 Large file support: $largefile_support
47045 Bacula conio support: ${got_conio} ${CONS_LIBS}
47046 readline support: ${got_readline} ${PRTREADLINE_SRC}
47047 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47048 TLS support: ${support_tls}
47049 Encryption support: ${support_crypto}
47050 ZLIB support: ${have_zlib}
47051 enable-smartalloc: ${support_smartalloc}
47052 enable-lockmgr: ${support_lockmgr}
47053 bat support: ${support_bat}
47054 enable-gnome: ${support_gnome} ${gnome_version}
47055 enable-bwx-console: ${support_wx_console} ${wx_version}
47056 enable-tray-monitor: ${support_tray_monitor}
47057 client-only: ${build_client_only}
47058 build-dird: ${build_dird}
47059 build-stored: ${build_stored}
47060 Plugin support: ${have_plugins}
47061 ACL support: ${have_acl}
47062 XATTR support: ${have_xattr}
47063 Python support: ${support_python} ${PYTHON_LIBS}
47064 Batch insert enabled: ${support_batch_insert}
47068 # create a small shell script useful for support with
47069 # configure options and config.out info
47070 cat > scripts/bacula_config << EOF
47073 $ $0 $ac_configure_args
47075 cat config.out >> scripts/bacula_config
47076 echo __EOC__ >> scripts/bacula_config
47077 chmod 755 scripts/bacula_config
47081 # Display a warning message if postgresql client lib is <= 8.1
47082 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47083 -a x$support_batch_insert = xyes
47085 echo "WARNING: Your PostgreSQL client library is too old to detect "
47086 echo " if it was compiled with --enable-thread-safety, consider to"
47087 echo " upgrade it in order to avoid problems with Batch insert mode"